/* --- 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);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-container input {
    padding: 6px 12px 6px 30px;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
    outline: none;
    width: 140px;
    transition: width 0.3s ease;
}

.search-container input:focus {
    width: 180px;
}

.search-container i.fa-search {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
}

#search-results-dropdown {
    position: absolute;
    top: 40px;
    left: 0;
    background: #fff;
    width: 280px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    z-index: 1010;
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.user-icon {
    font-size: 1.3rem;
    color: var(--color-10);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Anclado sin encogerse ni desbordarse */
}

/* Menú Hamburguesa (Oculto en PC) */
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    flex-shrink: 0;
}

/* 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;
}

/* Sub-dropdown (Tercer nivel) */
.sub-dropdown {
    position: relative;
    display: block;
}

.sub-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: 1002;
    top: 0;
    left: 100%;
    border-radius: 4px;
    padding: 10px 0;
}

.sub-dropdown:hover .sub-dropdown-content {
    display: block;
}

.sub-dropdown-content a {
    font-weight: 400;
    padding: 10px 20px;
    display: block;
    white-space: nowrap;
    color: var(--text-dark);
}

/* --- 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/hero.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;
}

/* Modo Carrusel para más de 3 categorías */
.cards-container.carousel-mode {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 30px;
    -ms-overflow-style: none;
    /* IE y Edge */
    scrollbar-width: none;
    /* Firefox */
    padding-bottom: 10px;
    padding-top: 10px;
}

.cards-container.carousel-mode::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari y Opera */
}

.cards-container.carousel-mode .card {
    flex: 0 0 calc((100% - 60px) / 3);
    min-width: 280px;
}

/* Flechas de navegación para Carrusel */
.carousel-arrow {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: var(--color-10);
    font-size: 1.1rem;
}

.carousel-arrow:hover {
    background-color: var(--color-10);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-arrow.prev {
    left: 15px;
}

.carousel-arrow.next {
    right: 15px;
}

/* Responsive del Carrusel */
@media (max-width: 992px) {
    .cards-container.carousel-mode .card {
        flex: 0 0 calc((100% - 30px) / 2);
    }

    .carousel-arrow {
        display: none !important;
        /* Ocultar en tablet para usar scroll táctil */
    }
}

@media (max-width: 576px) {
    .cards-container.carousel-mode .card {
        flex: 0 0 100%;
    }
}

/* --- 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) {
    header {
        padding: 0 12px;
    }

    .logo {
        font-size: 1.4rem;
        white-space: nowrap;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        position: relative;
    }

    .search-container input {
        width: 95px !important;
        font-size: 0.8rem;
        padding: 4px 8px 4px 24px !important;
    }

    .search-container input:focus {
        width: 130px !important;
    }

    #search-results-dropdown {
        width: 240px;
        right: -30px;
    }

    /* Navbar Mobile */
    .hamburger {
        display: block !important;
        position: static !important;
        font-size: 1.4rem;
        cursor: pointer;
        color: var(--text-dark);
        margin-left: 2px;
    }

    .user-icon {
        display: block !important;
        position: relative;
        font-size: 1.1rem;
    }

    @media (max-width: 480px) {
        .logo {
            font-size: 1.15rem;
        }

        .header-actions {
            gap: 5px;
        }

        .search-container input {
            width: 75px !important;
            font-size: 0.75rem;
        }

        .search-container input:focus {
            width: 110px !important;
        }
    }

    .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: 600;
}

.shop-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 8px;
}

.btn-view-prod {
    background-color: var(--color-10);
    color: #fff !important;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(193, 130, 116, 0.25);
}

.btn-view-prod:hover {
    background-color: #a6695b;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(193, 130, 116, 0.35);
}

/* --- 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/El origen HCP.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 */
}

/* --- ESTILOS DE FICHA DE PRODUCTO DETALLE --- */
.product-detail-container {
    padding: 120px 5% 60px;
    display: flex;
    gap: 50px;
    background-color: var(--bg-white);
    min-height: 80vh;
}

.product-gallery {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1.1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    background-color: #fafafa;
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumbnail-item.active,
.thumbnail-item:hover {
    border-color: var(--color-10);
    opacity: 1;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-category-badge {
    color: var(--color-10);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
}

.product-name {
    font-family: var(--font-body);
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
}

.price-tag {
    font-size: 1.6rem;
    color: var(--color-10);
    font-weight: bold;
    margin: 0;
}

.product-stock-badge {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.stock-in {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.stock-out {
    background-color: #ffebee;
    color: #c62828;
}

.product-description {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    padding: 20px 0;
}

.purchase-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 25px;
    overflow: hidden;
    width: 130px;
    height: 45px;
    background-color: #fff;
}

.quantity-selector button {
    border: none;
    background: none;
    flex: 1;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    height: 100%;
    transition: background 0.2s;
}

.quantity-selector button:hover {
    background-color: #f0f0f0;
}

.quantity-selector input {
    border: none;
    text-align: center;
    width: 45px;
    font-size: 1.1rem;
    font-weight: bold;
    height: 100%;
    pointer-events: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.btn-add-cart {
    border: none;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1rem;
    background-color: var(--color-10);
    color: #fff;
    padding: 0 35px;
    border-radius: 25px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-add-cart:hover {
    background-color: #a05a4a;
}

.btn-add-cart:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* --- ESTILOS DE CARRITO DE COMPRAS --- */
.cart-header {
    padding: 120px 5% 40px;
    text-align: center;
    background-color: var(--color-60);
}

.cart-header h1 {
    font-size: 4rem;
    color: var(--color-10);
}

.cart-section {
    padding: 0 5% 60px;
    background-color: var(--color-60);
}

.cart-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.cart-table-wrapper {
    flex: 2;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    background-color: #f9f9f9;
    padding: 15px 20px;
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tracking-items-table-wrapper {
    overflow-x: auto;
    width: 100%;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.cart-table td {
    padding: 20px;
    border-bottom: 1px solid #eaeaea;
    vertical-align: middle;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #eee;
}

.cart-item-details h3 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.cart-item-details p {
    font-size: 0.8rem;
    color: #777;
}

.cart-qty-ctrl {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 15px;
    overflow: hidden;
    width: 100px;
    height: 32px;
}

.cart-qty-ctrl button {
    border: none;
    background: none;
    flex: 1;
    cursor: pointer;
    font-size: 1rem;
    height: 100%;
}

.cart-qty-ctrl button:hover {
    background-color: #f5f5f5;
}

.cart-qty-ctrl input {
    border: none;
    text-align: center;
    width: 32px;
    font-size: 0.95rem;
    font-weight: bold;
    height: 100%;
    pointer-events: none;
}

.btn-remove-item {
    background: none;
    border: none;
    color: #c62828;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.btn-remove-item:hover {
    color: #e53935;
}

.cart-summary {
    flex: 1;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 30px;
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-summary h2 {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.25rem;
    border-top: 1px solid #ddd;
    padding-top: 15px;
    color: var(--color-10);
}

.btn-checkout {
    display: block;
    width: 100%;
    background-color: #25d366;
    /* Verde de WhatsApp */
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
    text-decoration: none;
}

.btn-checkout:hover {
    background-color: #1ebd5d;
}

.btn-empty-cart {
    background: none;
    border: 1px solid #ddd;
    color: #555;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-empty-cart:hover {
    background-color: #f5f5f5;
    color: #333;
}

.cart-empty-message {
    text-align: center;
    padding: 60px 0;
    width: 100%;
}

.cart-empty-message i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.cart-badge {
    background-color: var(--color-10);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 6px;
    margin-left: 5px;
    position: relative;
    top: -2px;
}

/* Responsividad para Carrito y Detalle */
@media (max-width: 900px) {
    .product-detail-container {
        flex-direction: column;
        gap: 30px;
    }

    .cart-container {
        flex-direction: column;
        width: 100%;
    }

    .cart-table-wrapper,
    .cart-summary {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .cart-table th {
        display: none;
    }

    .cart-table td {
        display: block;
        width: 100%;
        text-align: right;
        padding: 10px 20px;
        position: relative;
    }

    .cart-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
    }

    .cart-table td.cart-item-td {
        text-align: left;
        padding-top: 20px;
    }

    .cart-table td.cart-item-td::before {
        display: none;
    }

}


/* --- CHECKOUT Y RASTREO DE COMPRA (ESTILOS COMPLEMENTARIOS) --- */
.checkout-section,
.tracking-section {
    padding: 60px 10%;
    background-color: var(--color-60);
    min-height: 70vh;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.checkout-billing-card,
.checkout-summary-card,
.tracking-form-container,
.tracking-results-container {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(193, 130, 116, 0.1);
}

.checkout-billing-card h2,
.checkout-summary-card h2,
.tracking-form-container h2,
.tracking-results-container h2 {
    font-family: var(--font-body);
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--color-30);
    padding-bottom: 10px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group-half {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group-full {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.checkout-billing-card label,
.tracking-form-container label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 8px;
}

.checkout-billing-card input,
.checkout-billing-card select,
.checkout-billing-card textarea,
.tracking-form-container input {
    font-family: var(--font-body);
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.checkout-billing-card input:focus,
.checkout-billing-card select:focus,
.checkout-billing-card textarea:focus,
.tracking-form-container input:focus {
    outline: none;
    border-color: var(--color-10);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(193, 130, 116, 0.15);
}

.required {
    color: #d32f2f;
}

/* Tabla resumen orden */
.order-review-table,
.tracking-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.order-review-table th,
.order-review-table td,
.tracking-items-table th,
.tracking-items-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.order-review-table th {
    font-weight: 600;
    color: #444;
}

.order-review-table tfoot th,
.order-review-table tfoot td {
    border-bottom: none;
    padding-top: 15px;
}

.order-total th,
.order-total td {
    border-top: 2px solid #ddd;
    padding-top: 15px;
    font-size: 1.1rem;
}

/* Caja de pago SINPE */
.checkout-payment-box {
    background-color: #faf5f0;
    border: 1px dashed var(--color-10);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.checkout-payment-box h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-10);
    margin-bottom: 15px;
}

.payment-instructions p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 8px;
}

.payment-phone {
    font-size: 1.4rem;
    color: var(--text-dark);
    text-align: center;
    background: #fff;
    border-radius: 6px;
    padding: 8px;
    border: 1px solid rgba(193, 130, 116, 0.2);
    margin: 12px 0;
}

.payment-warning {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 15px;
    background-color: rgba(193, 130, 116, 0.1);
    padding: 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #8c5b50;
}

.payment-warning i {
    font-size: 1rem;
    margin-top: 2px;
}

/* Botón Checkout */
.btn-place-order,
.btn-track-submit {
    width: 100%;
    background-color: var(--color-10);
    color: var(--text-light);
    border: none;
    border-radius: 6px;
    padding: 15px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(193, 130, 116, 0.3);
}

.btn-place-order:hover,
.btn-track-submit:hover {
    background-color: #b07062;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(193, 130, 116, 0.4);
}

/* Términos y Condiciones Checkbox */
.checkout-terms-container {
    margin: 20px 0 15px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555;
}

.checkout-terms-container input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--color-10);
}

.checkout-terms-container label {
    cursor: pointer;
    user-select: none;
}

.checkout-terms-container a {
    color: var(--color-10);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.checkout-terms-container a:hover {
    color: #b07062;
    text-decoration: underline;
}

/* --- ESTILOS DE RASTREO --- */
.tracking-form-container {
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.tracking-intro {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #666;
    text-align: center;
    margin-bottom: 25px;
}

.tracking-results-container {
    max-width: 800px;
    margin: 0 auto;
}

.tracking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.res-badge {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.res-badge.recibido {
    background: #e2e3e5;
    color: #383d41;
}

.res-badge.alistando {
    background: #fff3cd;
    color: #856404;
}

.res-badge.facturado,
.res-badge.entregado {
    background: #d4edda;
    color: #155724;
}

.res-badge.cancelado {
    background: #f8d7da;
    color: #721c24;
}

/* Timeline de Progreso */
.tracking-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 40px 0;
    padding: 0 30px;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 4px;
    background-color: #ddd;
    z-index: 1;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #ddd;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.step-label {
    margin-top: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    color: #777;
    transition: all 0.3s ease;
}

/* Estados activos del timeline */
.timeline-step.active .step-circle {
    background-color: var(--color-30);
    color: #1b5e20;
}

.timeline-step.active .step-label {
    color: #1b5e20;
}

.timeline-step.current .step-circle {
    background-color: var(--color-10);
    color: #fff;
    transform: scale(1.15);
}

.timeline-step.current .step-label {
    color: var(--color-10);
}

.tracking-cancelled-alert {
    display: flex;
    gap: 15px;
    align-items: center;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.tracking-cancelled-alert i {
    font-size: 2rem;
}

.tracking-cancelled-alert p {
    margin-top: 5px;
    font-size: 0.9rem;
    color: #491217;
}

/* Info grid */
.tracking-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background-color: #fafafa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 35px;
    border: 1px solid #eee;
}

.info-block h3 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.info-block p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.tracking-support-actions {
    margin-top: 30px;
    text-align: center;
}

.btn-track-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #25d366;
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-track-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* Responsive */
@media (max-width: 900px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .tracking-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .checkout-section,
    .tracking-section {
        padding: 40px 5%;
    }
}