/* --- Variables y Estilos Globales --- */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #fdf5f8; /* Rosa muy pálido */
    --accent-color: #D9468C; /* Rosa Diva */
    --text-color: #333;
    --font-headings: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    color: var(--text-color);
    background-color: #fff;
}

/* --- Encabezado y Navegación --- */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #eee;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display:inline-block;
    line-height:0;
}

.nav-logo .logo-img{
    width:48px;
    height:48px;
    object-fit:contain;
    display:block;
    border-radius:8px; /* opcional */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

/* --- Iconos Flotantes --- */
.floating-socials {
    position: fixed;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1001;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.social-icon:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-color);
}
.whatsapp { background-color: #25D366; }
.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.facebook { background-color: #1877F2; }
.tiktok { background-color: #000000; }

/* --- Sección Hero --- */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(./img/banner.png);
    background-size: cover;
    background-position: center;
    color: white;
}

.hero-content h1 {
    font-family: var(--font-headings);
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: var(--accent-color);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #b89b2e;
}

/* --- Secciones de Productos --- */
.product-section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 1fr);
    gap: 2rem;
    padding-bottom: 1rem; /* Espacio para la sombra al hacer hover */
}

.product-grid-wrapper {
    overflow-x: auto;
    scroll-behavior: smooth;
    /* Para navegadores que no son webkit, la barra será estándar */
    scrollbar-color: var(--accent-color) var(--secondary-color);
    scrollbar-width: thin;
}

.product-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Estilos para la barra de scroll en navegadores Webkit (Chrome, Safari) */
.product-grid-wrapper::-webkit-scrollbar {
    height: 12px;
}

.product-grid-wrapper::-webkit-scrollbar-track {
    background: var(--secondary-color);
    border-radius: 10px;
}

.product-grid-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 10px;
    border: 3px solid var(--secondary-color);
}
.product-grid-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: #b89b2e;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    cursor: pointer;
}

.product-card h3 {
    
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem;
}

.product-card .price {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.add-to-cart-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: #333;
}

.product-carousel {
    position: relative;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.3s, transform 0.3s;
}

.scroll-btn:hover {
    background-color: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

.see-more-btn {
    display: inline-block;
    margin-top: 2rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.see-more-btn:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* --- Pie de Página --- */
.footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding-top: 3rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-about, .footer-links, .footer-social {
    flex: 1;
    min-width: 250px;
}

.footer h3 {
    
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-social-icons {
    display: flex;
    gap: 1rem;
}

.footer-social-icons a {
    color: var(--secondary-color);
    font-size: 1.8rem;
    transition: color 0.3s ease;
}

.footer-social-icons a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid #333;
}

/* --- Anuncio Coming Soon --- */
.announcement.coming-soon{
    display:inline-flex;
    align-items:center;
    gap:0.6rem;
    padding:0.55rem 1.1rem;
    background: linear-gradient(135deg,#6a11cb 0%, #2575fc 100%);
    color:#ffffff;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:1px;
    border-radius:999px;
    box-shadow: 0 10px 30px rgba(37,117,252,0.18), 0 2px 6px rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.12);
    font-family: 'Playfair Display', 'Roboto', sans-serif;
    transform-origin: center;
    animation: subtlePulse 6s ease-in-out infinite;
}

/* icono tipo logo (emoji) */
.announcement.coming-soon::before{
    content: "✨";
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:36px;
    height:36px;
    border-radius:50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
    color:#fff;
    font-size:18px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* variante más discreta si lo colocas en bloque */
.announcement.coming-soon.fullwidth{
    display:flex;
    justify-content:center;
    width:100%;
    margin:0.6rem 0 1rem 0;
}

/* animación sutil */
@keyframes subtlePulse{
    0%{ transform: scale(1); }
    50%{ transform: scale(1.02); }
    100%{ transform: scale(1); }
}

/* --- Tipografías --- */
/* H1 (hero) — más elegante y llamativo */
h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 3.2rem;
    line-height: 1.02;
    margin: 0 0 0.6rem 0;
    letter-spacing: 0.6px;
    /* Texto en degradado */
    background: linear-gradient(90deg, #d86bbf 0%, #6a11cb 50%, #2575fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 8px 26px rgba(37,117,252,0.08);
}

/* H2 / títulos de sección */
.section-title, h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    margin: 0 0 1rem 0;
    color: #2b2b2b;
    letter-spacing: 0.8px;
    padding: 0.35rem 0.8rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(106,17,203,0.04), rgba(37,117,252,0.03));
    border: 1px solid rgba(106,17,203,0.06);
    box-shadow: 0 6px 18px rgba(37,117,252,0.04);
    display: inline-block;
}

/* Ajustes responsivos */
@media (max-width: 900px) {
    h1 { font-size: 2.4rem; }
    .section-title, h2 { font-size: 1.35rem; padding: 0.3rem 0.6rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    .section-title, h2 { font-size: 1.1rem; padding: 0.25rem 0.5rem; letter-spacing: 0.4px; }
}

/* --- Responsividad --- */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 5rem;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1.5rem 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.6rem;
    }

    .floating-socials {
        flex-direction: row;
        bottom: 10px;
        top: auto;
        right: 50%;
        transform: translateX(50%);
        background-color: rgba(255, 255, 255, 0.9);
        padding: 5px 10px;
        border-radius: 25px;
    }

    .hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(./img/banner.png);
    background-size: cover;
    background-position: center;
    color: white;
}
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .scroll-btn {
        display: none; /* Ocultar flechas en móvil, se usa swipe */
    }

    .product-grid {
        padding-left: 5%;
        padding-right: 5%;
    }
}

@media (max-width:600px){
    .announcement.coming-soon{
        padding:0.45rem 0.9rem;
        font-size:0.95rem;
    }
    .announcement.coming-soon::before{
        width:30px;
        height:30px;
        font-size:16px;
    }
}

/* Estilo para el logo en la navegación */
.nav-logo { display:inline-block; line-height:0; }
.nav-logo .logo-img{
    width:auto;
    height:4rem;
    object-fit:contain;
    display:block;
    border-radius:8px; /* opcional */
}
/* Ajustes responsivos */
@media (max-width:600px){
    .nav-logo .logo-img{ 
        width:auto; 
        height:5rem ; }
}

/* Modal producto */
.modal{
    position:fixed;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    background: rgba(0,0,0,0.6);
    z-index:9999;
    padding:1.25rem;
}
.modal.hidden{ display:none; }
.modal-content{
    background:#fff;
    max-width:720px;
    width:auto;
    border-radius:12px;
    box-shadow:0 20px 50px rgba(0,0,0,0.35);
    overflow:auto;
    position:relative;
    padding:1.25rem;
}
.modal-close{
    position:absolute;
    top:10px;
    right:12px;
    background:transparent;
    border:none;
    font-size:1rem;
    cursor:pointer;
    color:#333;
}
.modal-body .product-card{
    display:inline-block;
    gap:1rem;
    align-items:flex-start;
}
.modal-body .product-card img{
    max-width:180px;
    width:100%;
    height:auto;
    border-radius:8px;
    object-fit:cover;
    box-shadow:0 8px 30px rgba(0,0,0,0.12);
}
.modal-body h3, .modal-body h4, .modal-body p.price{
    margin:0.25rem 0;
}
@media (max-width:600px){
    .modal-content{ padding:0.9rem; }
    .modal-body .product-card{ flex-direction:column; align-items:center; text-align:center; }
    .modal-body .product-card img{ max-width:240px; }
}
