/* --- VARIABLES CSS (PALETA DE COLORES Y FUENTES) --- */
:root {
    /* Regla 60-30-10 */
    --color-60: #F5E6D3;
    /* Blanco Almendra / Arena */
    --color-30: #A0E8AF;
    /* Verde Menta (Fondos de sección) */
    --color-10: #c18274;
    /* Terracota (Botones/Acentos) */
    --bg-dark: #000;
    --text-dark: #2C2C2C;
    /* Texto oscuro para legibilidad */
    --text-light: #FFFFFF;
    --bg-white: #FFFFFF;
    /* Tipografía */
    --font-script: 'Great Vibes', cursive;
    /* Estilo Brithany */
    --font-body: 'Montserrat', sans-serif;
    --font-description: 'Miller Display Light', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* Compensación para que el header fijo no tape el título de la sección */
}

body {
    font-family: var(--font-body);
    background-color: var(--color-60);
    color: var(--text-dark);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: var(--font-script);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- 1.1 BARRA DE MENÚ (FIXED) --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
}

.logo {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--color-10);
    font-weight: bold;
}

/* Menú Desktop */
.nav-center {
    display: flex;
    gap: 30px;
}

.nav-center a {
    font-weight: 600;
    transition: color 0.3s;
}

.nav-center a:hover {
    color: var(--color-10);
}

.user-icon {
    font-size: 1.2rem;
    color: var(--color-10);
    cursor: pointer;
}

/* Menú Hamburguesa (Oculto en PC) */
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Dropdown Menu (Desplegable) */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
    padding: 10px 0;
    text-align: left;
}

.dropdown-content a {
    font-weight: 400; /* Peso normal para subitems */
    padding: 10px 20px;
    display: block;
    white-space: nowrap;
    color: var(--text-dark);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* --- 1.2 SECCIÓN HERO (PORTADA) --- */
.hero {
    height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('/img/Panoramica\ de\ productos.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 70px;
    /* Offset del header */
}

.hero h1 {
    color: var(--text-light);
    font-size: 5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* --- 2. TRES IMÁGENES HORIZONTAL (CARDS) --- */
.section-cards {
    padding: 50px 5%;
    background-color: var(--color-60);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-desc {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--text-dark);
    text-align: center;
}

.img-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    margin-bottom: 15px;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.img-wrapper:hover img {
    transform: scale(1.1);
    /* Efecto crecimiento */
}

.card-title-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-light);
    font-family: var(--font-script);
    font-size: 2.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    width: 100%;
    text-align: center;
}

.btn-card {
    background-color: var(--color-10);
    color: var(--text-light);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-card:hover {
    background-color: #a05a4a;
}

/* --- 3. SECCIÓN DE 6 ICONOS --- */
.section-icons {
    padding: 60px 10%;
    /* Margen lateral del 10% */
    background-color: #fff;
    /* Fondo blanco para contraste */
    text-align: center;
}

.section-icons h2 {
    font-size: 3.5rem;
    color: var(--color-10);
    margin-bottom: 40px;
}

.icons-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.icon-item i {
    font-size: 2.5rem;
    color: var(--color-30);
    /* Icono verde menta */
    margin-bottom: 10px;
}

.icon-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.icon-item p {
    font-size: 0.8rem;
    color: #666;
}

/* --- 4. SECCIÓN VIDEO --- */
.section-video {
    width: 100%;
    height: 80vh;
    /* 50% del alto */
    position: relative;
    background-color: #000;
}

.section-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay opcional para texto sobre video si se desea */
.video-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: #fff;
    text-align: left;
    max-width: 700px;
}

.video-content h2 {
    font-size: 5rem;
    color: var(--color-60); /* Color Almendra para contraste */
    line-height: 1.1;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}

.video-content p {
    font-size: 1.8rem;
    margin-top: 10px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

/* --- 5. NUESTRA HISTORIA --- */
.section-history {
    padding: 80px 20px;
    background-color: var(--color-30);
    /* Fondo Verde Menta (30%) */
    text-align: center;
}

.section-history h2 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-history p {
    max-width: 800px;
    margin: 0 auto 30px auto;
    font-size: 1.1rem;
}

.link-more {
    color: var(--color-10);
    font-weight: bold;
    border-bottom: 2px solid var(--color-10);
}

/* --- 5.1 RECOMENDACIONES (CANDLE CARE) --- */
.section-recommendations {
    padding: 30px 10%;
    background-color: #fff; /* Fondo blanco para contraste entre secciones */
    text-align: center;
}

.section-recommendations h2 {
    font-size: 3.5rem;
    color: var(--color-10);
    margin-bottom: 20px;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.recommendations-grid .icon-item i {
    font-size: 2.5rem;
    color: var(--color-30); /* Iconos oscuros para esta sección */
    margin-bottom: 25px;
}

/* --- 5.2 RECOMENDACIONES DECORACIÓN (ESPECÍFICO) --- */
.section-recommendations-deco {
    padding: 30px 10%;
    background-color: #fff;
    text-align: center;
}

.section-recommendations-deco h2 {
    font-size: 3.5rem;
    color: var(--color-10);
    margin-bottom: 20px;
}

.recommendations-grid-deco {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Ajustado a 4 columnas para los 8 items */
    gap: 30px;
}

.recommendations-grid-deco .icon-item img {
    width: 90px;       /* Ancho de la imagen icono */
    height: 90px;      /* Alto de la imagen icono */
    object-fit: contain; /* Mantiene la proporción sin recortar */
    margin-bottom: 15px;
}

/* --- 6. INSTAGRAM GRID --- */
.section-insta {
    padding: 60px 5%;
    text-align: center;
    background-color: var(--color-60);
}

.section-insta h2 {
    font-size: 3.5rem;
    color: var(--color-10);
    margin-bottom: 40px;
}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 15px;
}

.insta-item {
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.insta-item:hover img {
    opacity: 0.8;
}

/* --- 7. FOOTER --- */
footer {
    background-color: var(--bg-dark);
    /* Fondo oscuro para footer */
    color: #fff;
    padding: 40px 5% 15px 5%;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
    margin-bottom: 25px;
}

.footer-col h3 {
    font-family: var(--font-body);
    /* Titulos footer sans serif para legibilidad */
    margin-bottom: 15px;
    color: var(--color-30);
    text-transform: uppercase;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 6px;
}

.footer-col ul li a:hover {
    color: var(--color-30);
}

.footer-social {
    text-align: center;
    margin-bottom: 15px;
}

.footer-social i {
    font-size: 1.5rem;
    margin: 0 10px;
    color: var(--color-60);
    transition: color 0.3s;
}

.footer-social i:hover {
    color: var(--color-10);
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 15px;
    border-top: 1px solid #444;
    padding-top: 15px;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
    .icons-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 cols en tablet */
    }
}

@media (max-width: 768px) {

    /* Navbar Mobile */
    .hamburger {
        display: block;
        /* Mostrar icono hamburguesa */
        position: absolute;
        right: 5%;
    }

    .user-icon {
        /* Movemos el icono de usuario dentro del menú desplegable o lo ocultamos en header principal */
        display: none;
    }

    .nav-center {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transform: translateY(-200%);
        /* Oculto arriba */
        transition: transform 0.4s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-center.active {
        transform: translateY(0);
        /* Mostrar */
    }

    .nav-center a {
        margin: 10px 0;
        font-size: 1.2rem;
    }

    /* Icono usuario en movil dentro del menú desplegado */
    .mobile-user-link {
        display: block;
        font-size: 1.2rem;
        margin-top: 10px;
        color: var(--color-10);
    }

    /* Ajustes Dropdown para Móvil */
    .dropdown {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .dropdown-content {
        position: static; /* Flujo natural en móvil */
        box-shadow: none;
        transform: none;
        width: 100%;
        background-color: rgba(0,0,0,0.02); /* Fondo sutil para distinguir */
    }

    .dropdown-content a {
        font-size: 1rem;
        padding: 15px;
        margin: 0;
    }

    .hero h1 {
        font-size: 3rem;
    }

    /* Grid Iconos y Recomendaciones */
    .icons-grid,
    .recommendations-grid,
    .recommendations-grid-deco {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cols en movil grande */
    }

    /* Grid Instagram */
    .insta-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 150px);
    }

    /* Footer */
    .footer-cols {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .icons-grid,
    .recommendations-grid,
    .recommendations-grid-deco {
        grid-template-columns: 1fr;
        /* 1 col en celular */
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Clase auxiliar para mostrar icono user en movil */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }

    /* Responsive About Page */
    .about-row, .about-row:nth-child(even) {
        flex-direction: column !important; /* Forzamos columna para sobrescribir row-reverse */
        text-align: center;
        gap: 30px;
    }

    .about-image {
        height: auto; /* Altura automática para evitar cortes */
        min-height: 300px;
    }

    .about-text h2 {
        margin-top: 20px;
    }

    /* Correcciones About Responsive */
    .desktop-only {
        display: none !important;
    }
    .about-image, .about-text {
        width: 100%; /* Evita que se corten a los lados */
        flex: none; /* Desactiva flex-grow de escritorio */
    }
    .about-row > h2 { /* Estilo para el título móvil duplicado */
        font-size: 3rem;
        color: var(--color-10);
        margin-bottom: 20px;
    }
    
    /* Responsive Shop */
    .shop-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablet */
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .shop-grid {
        grid-template-columns: 1fr; /* 1 columna en móvil */
    }
}

/* --- ESTILOS TIENDA (SHOP / DECORACIÓN) --- */

.shop-header {
    padding: 120px 5% 40px; /* Espacio para el header fixed */
    text-align: center;
    background-color: var(--bg-white);
}

.shop-header h1 {
    font-size: 4rem;
    color: var(--color-10);
    margin-bottom: 10px;
}

.shop-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-dark);
}

.shop-section {
    padding: 0 5% 40px;
    background-color: var(--bg-white);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas en desktop estilo Brooklyn */
    gap: 40px 20px;
}

.shop-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.shop-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.25; /* Formato vertical ligero */
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 4px;
}

.shop-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* --- Segunda imagen para Hover en Tienda --- */
.shop-image .img-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0; /* Invisible por defecto */
    z-index: 2; /* Se coloca encima */
}

.shop-card:hover .shop-image .img-hover {
    opacity: 1; /* Visible al pasar el mouse */
}

/* Efecto hover: Zoom suave */
.shop-card:hover .shop-image img {
    transform: scale(1.03);
}

.shop-info h3 {
    font-family: var(--font-body); /* Sans-serif para legibilidad en productos */
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 3px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shop-info h4 {
    font-family: var(--font-description); /* Sans-serif para legibilidad en productos */
    letter-spacing: 0em;
    font-size: 0.8rem;
    color: var(--text-dark);
    text-align: inherit;
    line-height: 1.3;
    font-style: italic;
    font-weight: 400;
   margin-bottom: 3px;
}

.shop-info .price {
    font-size: 0.95rem;
    color: var(--color-10);
    font-weight: 500;
}

/* --- ESTILOS PÁGINA SOBRE NOSOTROS (About) --- */
.about-hero {
    height: 60vh;
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('img/Panoramica de productos.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 70px;
    padding: 0 5%; /* Padding lateral seguro */
}

.about-hero h1 {
    font-size: 5rem;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.about-section {
    padding: 80px 10%;
    background-color: var(--color-60);
}

.about-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

/* Invierte el orden de la segunda fila (Texto izquierda, Imagen derecha) */
.about-row:nth-child(even) {
    flex-direction: row-reverse;
}

.about-image {
    flex: 1;
    height: 500px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 3.5rem;
    color: var(--color-10);
    margin-bottom: 25px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-text .signature {
    font-family: var(--font-script);
    font-size: 2rem;
    margin-top: 30px;
    color: var(--color-10);
}

/* --- AJUSTES RESPONSIVE PARA TIENDA Y MENÚ (para asegurar prioridad) --- */

@media (max-width: 768px) {
    /* Ajustes Header Tienda */
    .shop-header {
        padding-top: 100px;
    }
    .shop-header h1 {
        font-size: 3rem;
    }
    .shop-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablet */
    }

    /* Dropdown Menú Móvil */
    .dropdown.active .dropdown-content {
        display: block;
    }
}

@media (max-width: 480px) {
    .shop-header h1 {
        font-size: 2.5rem; /* Título más pequeño */
    }
    .shop-grid {
        grid-template-columns: 1fr; /* 1 columna en celulares */
    }
}

/* --- BOTÓN WHATSAPP FLOTANTE --- */
.btn-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 2000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0,0,0,0.4);
    color: #fff;
}

/* --- CLASE PARA ENLACES INACTIVOS --- */
.disabled-link {
    pointer-events: none; /* Evita que se pueda hacer clic */
    cursor: default;      /* Cambia el cursor para que no parezca un enlace */
    opacity: 0.6;         /* (Opcional) Lo hace ver un poco transparente */
    text-decoration: none;
    color: inherit;       /* Mantiene el color del texto o puedes ponerle gris */
}
