/* public/css/catalogo.css */

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fef9f9;
    color: #333;
    line-height: 1.6;
}

/* HEADER */
header {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* FILTROS - Versión corregida */
.filters {
    display: flex;
    gap: 0.8rem;
}

.filter-btn {
    background: white;
    border: none;
    padding: 0.7rem 1.3rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 2px solid #e0e0e0;
    color: #2d3436;
}

.filter-btn i {
    font-size: 1.1rem;
}

.filter-btn.active {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

/* Efectos hover */
.filter-btn:not(.active):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.filter-btn[data-gender="niño"]:not(.active):hover {
    background: #6c5ce7;
    color: white;
    border-color: #6c5ce7;
}

.filter-btn[data-gender="niña"]:not(.active):hover {
    background: #e84393;
    color: white;
    border-color: #e84393;
}

.filter-btn[data-gender="todos"]:not(.active):hover {
    background: #4ecdc4;
    color: white;
    border-color: #4ecdc4;
}

/* Main menu */
.main-menu ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.main-menu a {
    text-decoration: none;
    color: #2d3436;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.main-menu a:hover {
    color: #ff6b6b;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #2d3436;
    cursor: pointer;
}

/* MOBILE NAV */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 2000;
    transition: left 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.mobile-nav-overlay.active {
    left: 0;
}

.close-menu {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #ff6b6b;
}

.mobile-filters,
.mobile-main-menu {
    margin-top: 2rem;
}

.mobile-filters .filter-btn {
    width: 100%;
    margin-bottom: 0.8rem;
    justify-content: center;
}

.mobile-main-menu ul {
    list-style: none;
}

.mobile-main-menu li {
    margin-bottom: 1rem;
}

.mobile-main-menu a {
    text-decoration: none;
    color: #2d3436;
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* CARRUSEL */
.carousel-section {
    margin: 2rem auto;
    max-width: 1200px;
    padding: 0 1rem;
}

.carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.carousel-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

/* TÍTULO SECCIÓN */
.section-title {
    text-align: center;
    margin: 3rem 0 2rem;
    font-size: 2.2rem;
    color: #2d3436;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ff9a9e, #fad0c4);
    border-radius: 2px;
}

/* PRODUCT GALLERY */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 107, 107, 0.1);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.15);
    border-color: #ff6b6b;
}

.product-image-container {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

.product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ff6b6b;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #2d3436;
    font-weight: 600;
    line-height: 1.4;
}

.product-code {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.product-prices {
    margin: 1rem 0;
    padding: 0.8rem 0;
    border-top: 1px dashed #dfe6e9;
    border-bottom: 1px dashed #dfe6e9;
}

.price-retail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #2d3436;
}

.price-retail span:first-child {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #636e72;
}

.price-retail strong {
    font-size: 1.3rem;
    color: #ff6b6b;
}

.price-dozen {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2d3436;
}

.price-dozen span:first-child {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #636e72;
}

.price-dozen strong {
    font-size: 1.2rem;
    color: #6c5ce7;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.stock-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.stock-high { background: #27ae60; }
.stock-medium { background: #f39c12; }
.stock-low { background: #e74c3c; }

.view-details {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, #ff9a9e, #ff6b6b);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
}

.view-details:hover {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    background: white;
    border-radius: 20px;
    color: #7f8c8d;
}

.no-products i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #b2bec3;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 25px;
    max-width: 900px;
    width: 90%;
    position: relative;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2.5rem;
    cursor: pointer;
    color: #ff6b6b;
    transition: transform 0.3s ease;
    z-index: 10;
}

.close:hover {
    transform: rotate(90deg);
}

.modal-product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.modal-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.modal-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-info {
    display: flex;
    flex-direction: column;
}

.modal-info h2 {
    font-size: 2rem;
    color: #2d3436;
    margin-bottom: 0.5rem;
}

.modal-code {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.modal-prices {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1rem 0;
}

.modal-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-price-item:last-child {
    margin-bottom: 0;
}

.modal-price-label {
    font-size: 1rem;
    color: #636e72;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b6b;
}

.modal-stock {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fff3cd;
    border-radius: 10px;
    margin: 1.5rem 0;
    color: #856404;
}

.modal-description {
    line-height: 1.8;
    color: #2d3436;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    z-index: 100;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
}

/* FOOTER */
footer {
    background: #2d3436;
    color: white;
    padding: 3rem 2rem;
    margin-top: 4rem;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-icons a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-5px);
}

.social-icons img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}