/* --- CONFIGURACIÓN BASE Y VARIABLES --- */
:root {
    /* Colores del Logo TPQ */
    --tpq-teal: #006064;    /* Color Primario */
    --tpq-orange: #ed820e;  /* Color Acento/Botones */
    --tpq-dark: #00363a;    /* Versión más oscura del teal para textos */
    
    /* Neutros */
    --white: #ffffff;
    --gray-light: #f4f7f8;
    --gray-text: #555555;
    --black-bg: #1a1a1a;

    /* Fuentes */
    --font-main: 'Outfit', sans-serif;
    --font-title: 'Playfair Display', serif;
    --font-handwriting: 'Great Vibes', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    color: var(--tpq-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- CORRECCIÓN DE SCROLL (NUEVO) --- */
/* Esto evita que el menú tape el título al hacer clic en los enlaces */
section {
    scroll-margin-top: 180px; /* Altura del menú + espacio extra */
}

/* --- TIPOGRAFÍA --- */
h1, h2, h3, h4 { 
    font-family: var(--font-title); 
    font-weight: 700; 
    line-height: 1.1; 
    margin-bottom: 1rem; 
}
p { margin-bottom: 1.5rem; color: var(--gray-text); }
a { text-decoration: none; transition: 0.3s; }
img { max-width: 100%; display: block; }

/* --- UTILIDADES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.container-small { max-width: 800px; margin: 0 auto; padding: 0 5%; }
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }
.text-primary { color: var(--tpq-teal); }
.text-accent { color: var(--tpq-orange); }
.text-white { color: var(--white) !important; }
.bg-light { background-color: var(--gray-light); }
.bg-dark { background-color: var(--black-bg); color: var(--white); }
.max-w-700 { max-width: 700px; margin: 0 auto 3rem auto; font-size: 1.1rem; }

/* Títulos Especiales */
.pre-title {
    display: block;
    font-family: var(--font-main);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px; 
    font-weight: 700;
    color: var(--tpq-teal);
    margin-bottom: 10px;
}
.bg-dark .pre-title { color: var(--tpq-orange); }

.section-title {
    font-size: 3rem; 
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--tpq-orange);
    margin: 15px auto 0; 
    border-radius: 2px;
}
.section-separator {
    margin: 80px 0 40px 0;
    border-top: 1px solid #ddd;
    padding-top: 40px;
}
.section-separator h3 { font-size: 2rem; color: var(--tpq-teal); }

/* --- BOTONES --- */
.btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.btn-primary {
    background-color: var(--tpq-orange);
    color: var(--white);
    border: 2px solid var(--tpq-orange);
}
.btn-primary:hover {
    background-color: transparent;
    color: var(--tpq-orange);
}
.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn-outline:hover {
    background-color: var(--white);
    color: var(--tpq-teal);
}

/* --- NAVBAR --- */
.navbar {
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo */
.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    z-index: 1001; 
}
.nav-logo { 
    height: 130px; 
    width: auto; 
    transition: transform 0.3s ease;
}
.logo-wrapper:hover .nav-logo { transform: scale(1.02); }

.logo-slogan {
    font-family: var(--font-handwriting);
    font-size: 1.6rem; 
    color: var(--tpq-orange); 
    line-height: 1;
    margin-top: 10px; 
    font-weight: 400;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.1); 
}

/* Menú Desktop */
.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}
.nav-links a {
    color: var(--tpq-teal);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
}
.nav-links a:hover { color: var(--tpq-orange); }
.btn-cta-nav {
    background: var(--tpq-teal);
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: 4px;
}
.btn-cta-nav:hover { background: var(--tpq-orange) !important; }

/* Botón Hamburguesa (Oculto en escritorio) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem; 
    color: var(--tpq-teal);
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

/* --- HERO SECTION --- */
.hero {
    height: 85vh; 
    min-height: 600px;
    background: url('https://images.unsplash.com/photo-1532187863486-abf9dbad1b69?auto=format&fit=crop&q=80') center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0, 96, 100, 0.85), rgba(0, 50, 55, 0.9)); 
}
.hero-content { position: relative; z-index: 2; max-width: 850px; } 
.badge-hero {
    background: var(--tpq-orange);
    padding: 5px 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 20px;
    border-radius: 20px;
}
.hero h1 { font-size: 4rem; margin-bottom: 25px; color: var(--white); }
.hero p { color: #f0f0f0; font-size: 1.3rem; margin-bottom: 40px; }
.hero-buttons { display: flex; gap: 15px; }

/* --- TRAYECTORIA --- */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.stat-box {
    display: flex;
    gap: 15px;
    align-items: center;
    background: var(--gray-light);
    padding: 25px;
    border-left: 5px solid var(--tpq-orange);
    margin-top: 30px;
}
.stat-box i { font-size: 2.5rem; color: var(--tpq-teal); }
.strategy-card {
    background: var(--tpq-teal);
    color: var(--white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,96,100,0.3);
}
.strategy-card h3 { color: var(--tpq-orange); margin-bottom: 20px; font-size: 1.8rem; }
.strategy-card p { color: #e0e0e0; margin-bottom: 20px; }
.strategy-card ul { list-style: none; }
.strategy-card ul li { margin-bottom: 12px; display: flex; align-items: center; gap: 12px; font-size: 1.05rem; }
.strategy-card ul li i { color: var(--tpq-orange); }

/* --- CATEGORÍAS (Fragancias) --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin-bottom: 60px;
}
.category-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.category-img-wrapper {
    position: relative;
    height: 300px;
    overflow: hidden;
}
.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease;
}
.category-card:hover .category-img { transform: scale(1.05); }

/* Etiquetas de categoría */
.category-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--tpq-orange);
    color: var(--white);
    padding: 10px 25px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 5;
}
.category-content { padding: 30px; }
.category-content h3 {
    color: var(--tpq-teal);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-family: var(--font-title);
}

/* --- PRODUCTOS (FLIP CARDS) --- */
.grid-interactive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.flip-card {
    background-color: transparent;
    height: 400px; 
    perspective: 1000px;
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    transform-style: preserve-3d;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
}
.flip-card-front {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}
.flip-card-front::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; top: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.card-title {
    position: relative; z-index: 2;
    width: 100%;
    padding: 20px;
    text-align: left;
}
.card-title h3 { margin: 0; font-size: 1.5rem; color: var(--white); text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.flip-card-back {
    background-color: var(--tpq-teal);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
.flip-card-back h4 { 
    color: var(--tpq-orange); 
    border-bottom: 1px solid rgba(255,255,255,0.2); 
    padding-bottom: 15px; 
    margin-bottom: 20px; 
    font-size: 1.4rem;
}
.flip-card-back p { color: #f0f0f0; font-size: 1rem; margin-bottom: 10px; }

/* --- EXTRACTOS --- */
.extracts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.extract-column {
    background: rgba(255,255,255,0.05);
    padding: 35px;
    border-radius: 8px;
    border-top: 4px solid var(--tpq-orange);
    transition: transform 0.3s;
}
.extract-column:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.08);
}
.extract-title { font-size: 1.5rem; color: var(--tpq-orange); display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.extract-column ul { list-style: none; padding-left: 0; }
.extract-column ul li { margin-bottom: 15px; font-size: 1rem; color: #ddd; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
.extract-column ul li strong { color: var(--white); display: block; margin-bottom: 2px; }

/* --- CONTACTO --- */
.contact-box {
    background: var(--white);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}
.form-grid {
    display: grid;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}
input, select, textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: 0.3s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--tpq-orange);
    box-shadow: 0 0 0 4px rgba(237, 130, 14, 0.1);
}
.full-width { width: 100%; cursor: pointer; }

/* --- FOOTER --- */
footer {
    background: #0d1214;
    padding: 60px 0;
    text-align: center;
    color: #666;
}
.footer-logo { height: 60px; margin: 0 auto 25px; filter: grayscale(100%) brightness(200%); opacity: 0.5; }

/* --- BOTÓN WHATSAPP --- */
.btn-wsp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366; 
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
    z-index: 2000; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse-green 2s infinite;
}
.btn-wsp:hover {
    background-color: #1faf56; 
    transform: scale(1.1) translateY(-5px); 
    box-shadow: 0px 8px 15px rgba(0,0,0,0.4);
    color: #fff;
}
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- MEDIA QUERIES (RESPONSIVE AVANZADO) --- */

/* 1. TABLETS Y LAPTOPS PEQUEÑAS (Hasta 1200px) 
   Aquí activamos el MENÚ HAMBURGUESA pero mantenemos las 2 columnas */
@media (max-width: 1200px) {
    
    /* Scroll margin más pequeño para móvil/tablet */
    section {
        scroll-margin-top: 120px; 
    }

    .nav-container { padding: 0 20px; }
    .nav-logo { height: 70px; } 
    .logo-slogan { font-size: 1rem; margin-top: 5px; }

    .mobile-menu-btn { 
        display: block !important;
        font-size: 2.2rem;
        color: var(--tpq-teal);
        cursor: pointer;
        background: transparent;
        border: none;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
        border-top: 1px solid #f0f0f0;
        z-index: 999;
    }

    .nav-links.active { display: flex !important; }

    .nav-links a {
        padding: 15px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
        font-size: 1.1rem;
    }

    .btn-cta-nav {
        margin: 15px auto;
        display: inline-block;
        width: 80%;
        text-align: center;
    }
    
    /* Ajustes de Texto */
    h1 { font-size: 3rem; } 
    .hero { text-align: center; padding: 100px 0 80px; height: auto; }
    .hero-buttons { justify-content: center; } 

    /* NOTA: Aquí NO forzamos 1 columna todavía, por eso en iPad se verán 2 */
}

/* 2. CELULARES (Hasta 768px)
   Aquí sí forzamos todo a 1 sola columna para pantallas estrechas */
@media (max-width: 768px) {
    
    h1 { font-size: 2.5rem; } 
    .section-title { font-size: 2rem; } 

    /* Botones uno debajo del otro */
    .hero-buttons { flex-direction: column; }
    .btn { display: block; width: 100%; text-align: center; margin-bottom: 10px; }

    /* Forzar Grids a 1 Columna */
    .grid-2-col { grid-template-columns: 1fr; gap: 40px; }
    
    .categories-grid { 
        grid-template-columns: 1fr; /* 1 columna en celular */
        gap: 30px; 
    }
    
    .grid-interactive { 
        grid-template-columns: 1fr; /* 1 columna en celular */
    }
    
    .flip-card { height: 350px; } 
    .contact-box { padding: 30px; }
    .extracts-grid { grid-template-columns: 1fr; }
}