/* ============================================================
   1. RESET Y GLOBALES
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background-color: #2d4635;
    /* Forzamos el color crema de forma global */
    color: #f5e6be; 
}

section {
    margin: 0 !important;
    padding: 100px 20px;
}

/* ============================================================
   2. HERO SECTION
   ============================================================ */
#hero {
    background-color: #2d4635;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 80px;
    overflow: hidden;
    position: relative;
}

.hero-container {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    width: 55%;
    max-width: 800px;
}

.hero-text-box {
    color: #f5e6be;
    margin-top: 20px;
    z-index: 11;
}

.hero-text-box h1 {
    font-family: 'NewIcon', serif;
    font-size: 4.6rem;
    line-height: 1;
    white-space: nowrap;
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 20px;
}

.subtitulo {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 5px;
    font-family: sans-serif;
    color: #f5e6be;
}

.hero-text-box h2 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 5px;
    color: #f5e6be;
}

.botella {
    max-height: 85vh;
    width: auto;
    filter: drop-shadow(10px 10px 20px rgba(0,0,0,0.3));
    object-fit: contain;
    position: relative;
    z-index: 10;
}

.hero-definition {
    max-width: 550px;
    margin-top: 60px;
    padding-left: 20px;
    border-left: 2px solid #f5e6be;
}

.hero-definition p {
    color: #f5e6be;
    font-size: 1.15rem;
    line-height: 1.6;
    font-style: italic;
    opacity: 0.9;
    text-align: left;
}

.hero-definition strong {
    color: #f5e6be;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-description {
    color: #f5e6be;
    font-size: 1.4rem;
    max-width: 600px;
    line-height: 1.6;
    margin-top: 45px;
    font-style: italic;
    letter-spacing: 1px;
    opacity: 0.9;
}

.hero-bar {
    width: 100vw;
    position: absolute;
    left: 0;
    height: 180px;
    background-color: rgba(74, 107, 86, 0.2);
    top: 12vh;
    z-index: 0;
}

/* --- CARRUSEL HERO --- */
.carousel-wrapper {
    width: 25%;
    margin-top: 195px;
    margin-left: auto;
    margin-right: 5%;
    z-index: 20;
    text-align: center;
}

.hero-carousel {
    width: 100%;
    height: 40vh;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; 
    z-index: 21;
}

.slide.active { opacity: 1; }

.carousel-caption {
    color: #f5e6be;
    font-size: 0.9rem;
    margin-top: 15px;
    font-style: italic;
    opacity: 0.8;
}

/* ============================================================
   3. SECCIÓN HISTORIA
   ============================================================ */
#historia {
    background: linear-gradient(rgba(45, 70, 53, 0.9), rgba(45, 70, 53, 0.9)), url('../img/teggiano.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5e6be;
}

.historia-container {
    max-width: 1100px;
    width: 90%;
    margin: 0 auto;
}

.historia-layout {
    display: flex;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
    justify-content: center;
}

.historia-img {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
}

.historia-img img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(245, 230, 190, 0.2);
}

.historia-text {
    flex: 1.2;
    min-width: 300px;
    text-align: left;
    color: #f5e6be;
}

.historia-text h2 {
    font-family: 'NewIcon', serif;
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: #f5e6be;
}

.subtitulo-historia {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.8;
    font-style: italic;
    color: #f5e6be;
}

.historia-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #f5e6be;
}

.resaltado-final {
    font-weight: bold;
    font-size: 1.4rem !important;
    margin-top: 40px;
    line-height: 1.4;
    color: #f5e6be;
}

/* ============================================================
   4. SECCIÓN TEGGIANO
   ============================================================ */
#teggiano-historia {
    padding: 100px 0;
    display: flex;
    justify-content: center;
    color: #f5e6be;
}

.teggiano-container {
    max-width: 900px;
    width: 95%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 50px;
}

.sub-titulo {
    display: block;
    color: #f5e6be;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.teggiano-text h2 {
    font-family: 'NewIcon', serif;
    font-size: 3.5rem;
    margin-bottom: 25px;
    line-height: 1.1;
    color: #f5e6be;
}

.teggiano-text p {
    color: #f5e6be;
    line-height: 1.8;
    font-size: 1.15rem;
    margin-bottom: 20px;
    opacity: 0.95;
}

.san-cono-box {
    margin: 40px auto 0;
    max-width: 750px;
    text-align: left;
    border-left: 4px solid #f5e6be;
    background-color: rgba(245, 230, 190, 0.07);
    padding: 25px 30px;
    border-radius: 0 15px 15px 0;
}

.san-cono-box p {
    margin-bottom: 0;
    font-size: 1.05rem;
    font-style: italic;
    color: #f5e6be;
}

.teggiano-mapa-container {
    width: 100%;
    max-width: 850px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.teggiano-mapa-container:hover { transform: scale(1.03); }

.teggiano-mapa-container img { width: 100%; display: block; }

.mapa-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #f5e6be;
    padding: 20px;
    font-weight: bold;
}

/* ============================================================
   5. SECCIÓN PRODUCTO DESTAQUE (PC)
   ============================================================ */
#limoncello-destaque {
    background-color: #2d4635;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #f5e6be;
}

.titulo-destaque {
    font-family: 'Playfair Display', serif;
    font-size: 7rem;
    color: #f5e6be;
    text-transform: uppercase;
    letter-spacing: 10px;
    margin-bottom: -20px;
}

.destaque-container {
    max-width: 1000px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.destaque-col { flex: 1; color: #f5e6be; }
.texto-izq { text-align: left; }
.specs-der { text-align: right; }

.destaque-botella { flex: 0 0 420px; text-align: center; }
.destaque-botella img {
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
}

.destaque-col h3 { font-size: 2rem; margin-bottom: 15px; color: #f5e6be; }
.destaque-col p { font-size: 1.2rem; color: #f5e6be; }

.spec-val { font-size: 4rem; font-weight: bold; display: block; color: #f5e6be; }
.spec-label { font-size: 0.8rem; text-transform: uppercase; opacity: 0.8; color: #f5e6be; }

/* ============================================================
   6. SECCIÓN PROCESO
   ============================================================ */
#proceso { text-align: center; color: #f5e6be; }
.proceso-container { max-width: 1100px; margin: 0 auto; }
#proceso h2 { font-family: 'NewIcon', serif; font-size: 3rem; margin-bottom: 60px; color: #f5e6be; }

.proceso-steps { display: flex; gap: 40px; justify-content: center; }
.step {
    background-color: #203627;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 300px;
    color: #f5e6be;
}

.step h3 { color: #f5e6be; margin-bottom: 10px; }
.step p { color: #f5e6be; }

.proceso-cierre {
    margin-top: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.proceso-cierre p {
    color: #f5e6be;
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.6;
    opacity: 0.9;
    font-family: 'Playfair Display', serif;
}

.proceso-cierre::before {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background-color: rgba(245, 230, 190, 0.3);
    margin: 0 auto 30px;
}

/* ============================================================
   7. SECCIÓN CÓCTELES (CON FLIP CARD)
   ============================================================ */
#cocteles { text-align: center; color: #f5e6be; }
.cocteles-container { max-width: 1100px; margin: 0 auto; }
#cocteles h2 { font-family: 'NewIcon', serif; font-size: 3.5rem; margin-bottom: 20px; letter-spacing: 2px; color: #f5e6be; }

.cocteles-intro {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 60px auto;
    opacity: 0.9;
    line-height: 1.6;
    color: #f5e6be;
}

.cocteles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* --- FLIP CARD LOGIC --- */
.coctel-card-scene { width: 100%; height: 450px; perspective: 1000px; cursor: pointer; }
.coctel-card-inner {
    width: 100%; height: 100%;
    position: relative;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border-radius: 16px;
}
.coctel-card-inner.is-flipped { transform: rotateY(180deg); }

.coctel-card-face {
    position: absolute; width: 100%; height: 100%;
    backface-visibility: hidden;
    border-radius: 16px; padding: 35px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}

.coctel-card-front { background-color: #203627; color: #f5e6be; }
.coctel-card-back {
    background-color: #1a2e21;
    transform: rotateY(180deg);
    border: 2px solid rgba(245, 230, 190, 0.1);
    align-items: flex-start; justify-content: flex-start; padding: 30px;
    color: #f5e6be;
}

.coctel-card-front img { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; margin-bottom: 20px; }
.coctel-card-front h3, .coctel-card-back h3 { font-family: 'NewIcon', serif; font-size: 2rem; margin-bottom: 15px; color: #f5e6be; }

.coctel-card-back ul { list-style: none; width: 100%; text-align: left; }
.coctel-card-back li { margin-bottom: 12px; font-size: 1rem; display: flex; gap: 10px; color: #f5e6be; }
.coctel-card-back li::before { content: '🍋'; flex-shrink: 0; }

.cocteles-tradicion {
    margin-top: 80px; padding: 40px; border-top: 1px solid rgba(245, 230, 190, 0.2);
    max-width: 800px; margin-left: auto; margin-right: auto;
}
.cocteles-tradicion p { font-size: 1.2rem; font-style: italic; color: #f5e6be; }
.cocteles-tradicion strong { font-weight: bold; border-bottom: 1px solid #f5e6be; color: #f5e6be; }

/* ============================================================
   8. SECCIÓN POSTRES
   ============================================================ */
.postres-container {
    margin-top: 80px; padding-top: 50px;
    border-top: 1px solid rgba(245, 230, 190, 0.2);
    display: flex; align-items: center;
    max-width: 1200px; gap: 80px; text-align: left;
    color: #f5e6be;
}

.postres-img { flex: 0 0 550px; display: flex; justify-content: center; }
.postres-img img { width: 100%; max-width: 450px; object-fit: contain; }

.postres-text h3 { font-family: 'NewIcon', serif; font-size: 2.5rem; margin-bottom: 10px; color: #f5e6be; }
.postres-text h4 { font-size: 1.5rem; font-weight: 300; margin-bottom: 25px; opacity: 0.9; color: #f5e6be; }
.postres-text p { font-size: 1.1rem; line-height: 1.7; margin-bottom: 25px; opacity: 0.9; color: #f5e6be; }
.postres-text li { margin-bottom: 15px; display: flex; align-items: center; font-size: 1.05rem; color: #f5e6be; }
.postres-text li::before { content: '-'; margin-right: 15px; }

.btn-preparacion {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 25px;
    padding: 12px 25px; border: 1px solid #f5e6be; color: #f5e6be;
    text-decoration: none; text-transform: uppercase; font-weight: bold;
    transition: all 0.3s ease; border-radius: 5px;
}
.btn-preparacion:hover { background-color: #f5e6be; color: #2d4635; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* ============================================================
   9. BANNER Y FOOTER
   ============================================================ */
.proximamente-banner {
    margin: 100px 0 60px; padding: 60px 40px;
    background-color: #203627; border: 2px dashed #f5e6be;
    border-radius: 20px; text-align: center;
    color: #f5e6be;
}

.tag-lanzamiento {
    background-color: #f5e6be; color: #2d4635; padding: 5px 15px;
    border-radius: 50px; font-weight: bold; text-transform: uppercase;
    margin-bottom: 20px; display: inline-block;
}

.proximamente-banner h2 { font-family: 'NewIcon', serif; font-size: 3rem; margin-bottom: 20px; color: #f5e6be; }
.proximamente-banner p { color: #f5e6be; }

footer { padding: 60px 20px 20px; border-top: 1px solid #f5e6be; background-color: #1a2e21; color: #f5e6be; }
.footer-container { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-logo h2 { font-family: 'NewIcon', serif; font-size: 2rem; color: #f5e6be; }
.footer-info h3, .footer-social h3 { font-size: 1.2rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; color: #f5e6be; }
.footer-info p, .social-links a { display: block; margin-bottom: 10px; color: #f5e6be; text-decoration: none; opacity: 0.8; }
.footer-bottom { text-align: center; margin-top: 60px; padding-top: 20px; border-top: 1px solid rgba(245, 230, 190, 0.1); font-size: 0.9rem; opacity: 0.6; color: #f5e6be; }

/* ============================================================
   10. RESPONSIVE (CELULAR Y TABLETS)
   ============================================================ */
@media (max-width: 1024px) {
    /* FIX PARA TABLETS Y IPAD AIR */
    .hero-container, .historia-layout, .postres-container {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    .historia-text, .postres-text { text-align: center; color: #f5e6be; }
    .postres-img { flex: none; width: 100%; margin-bottom: 30px; }
}

@media (max-width: 768px) {
    /* HERO MÓVIL */
    #hero { height: auto; min-height: 100vh; padding-top: 40px; flex-direction: column; align-items: center; justify-content: flex-start; }
    .hero-container { flex-direction: column; align-items: center; width: 100%; gap: 20px; }
    .hero-image-box { width: 100%; display: flex; justify-content: center; order: 1; }
    .botella { max-height: 60vh; width: auto; }
    .hero-text-box { width: 90%; text-align: center; order: 2; color: #f5e6be; }
    .hero-text-box h1 { font-size: 2.5em; white-space: normal; display: block; color: #f5e6be; }
    .hero-text-box h2 { font-size: 2.3em; white-space: normal; display: block; color: #f5e6be; }
    .hero-definition { border-left: none; border-top: 1px solid #f5e6be; padding: 15px 0 0 0; margin-top: 20px; }
    .carousel-wrapper { width: 90%; margin: 40px auto; position: static; order: 3; }
    .hero-carousel { height: 250px; }

    /* PRODUCTO MÓVIL */
    #limoncello-destaque { padding: 40px 15px; color: #f5e6be; }
    .titulo-destaque { font-size: 2.5rem; letter-spacing: 4px; margin-bottom: 30px; color: #f5e6be; }
    .destaque-container { flex-direction: row; gap: 5px; }
    .destaque-col { width: 30%; color: #f5e6be; }
    .destaque-botella { width: 40%; flex: auto; }
    .destaque-botella img { transform: scale(1.1); }
    .destaque-col h3 { font-size: 1rem; color: #f5e6be; }
    .destaque-col p { font-size: 0.75rem; line-height: 1.2; color: #f5e6be; }
    .spec-val { font-size: 1.8rem; color: #f5e6be; }

    /* OTRAS SECCIONES MÓVIL */
    .proceso-steps { flex-direction: column; align-items: center; }
    .postres-img img { max-width: 300px; }
    .footer-container { flex-direction: column; align-items: center; }
    .proximamente-banner { padding: 40px 20px; color: #f5e6be; }
    .proximamente-banner h2 { 
        font-size: 1.6rem !important; letter-spacing: 1px !important; 
        line-height: 1.2; margin-bottom: 15px !important; 
        white-space: normal; word-wrap: break-word; 
        color: #f5e6be;
    }
}

/* --- FIX DEFINITIVO PARA TABLETS (IPAD, SURFACE, ETC) --- */
/* --- FIX FINAL PARA IPAD AIR Y SURFACE PRO (769px a 1100px) --- */
@media (min-width: 769px) and (max-width: 1100px) {
    
    /* 1. HERO Y HISTORIA: Forzamos el apilado vertical */
    .hero-container, 
    .historia-layout, 
    .postres-container {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto !important;
        gap: 40px !important;
    }

    /* 2. LA BOTELLA: La centramos y le damos un tamaño coherente */
    .botella {
        max-height: 50vh !important;
        width: auto !important;
        margin: 0 auto 30px !important;
        position: relative !important;
        left: 0 !important;
        transform: none !important;
    }

    /* 3. TEXTOS: Les damos aire para que no toquen los bordes */
    .hero-text-box, .historia-text, .postres-text {
        width: 90% !important;
        max-width: 700px !important;
        text-align: center !important;
        border: none !important;
        padding: 0 !important;
    }

    .hero-text-box h1 {
        font-size: 3.5rem !important;
        white-space: normal !important;
        justify-content: center !important;
    }

    /* 4. DESTAQUE: El look de marca de agua centrado para tablets */
    #limoncello-destaque {
        padding: 60px 20px 200px !important;
        min-height: auto !important;
    }

    .destaque-container {
        flex-direction: row !important; /* Mantenemos el "espejo" pero con más ancho */
        width: 100% !important;
        justify-content: space-between !important;
    }

    .titulo-destaque {
        font-size: 4.5rem !important;
        margin-bottom: 40px !important;
    }
}

/* PARCHE QUIRÚRGICO PARA TABLETS (iPad/Surface) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-container, .historia-layout, .destaque-container {
        flex-direction: column !important; /* Los pone uno abajo del otro */
        text-align: center !important;
    }
    .botella {
        max-height: 50vh !important; /* Achica la botella para que no pise nada */
        margin-bottom: 20px !important;
    }
}

/* --- AGE GATE: ESTÉTICA IL TEGGIANESE --- */
.age-gate-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #2d4635; /* Tu verde oficial */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000; /* Por encima de todo */
    visibility: visible;
    transition: opacity 0.5s ease;
}

.age-gate-content {
    text-align: center;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    border: 1px solid rgba(245, 230, 190, 0.3); /* Línea crema sutil */
    border-radius: 15px;
}

.age-gate-logo {
    font-family: 'NewIcon', serif;
    font-size: 3rem;
    color: #f5e6be;
    margin-bottom: 20px;
}

.age-gate-text {
    color: #f5e6be;
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-style: italic;
}

.age-gate-input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.age-gate-input-group input {
    background: transparent;
    border: none;
    border-bottom: 2px solid #f5e6be;
    color: #f5e6be;
    font-size: 2rem;
    text-align: center;
    width: 120px;
    outline: none;
    font-family: serif;
}

#age-gate-btn {
    background-color: #f5e6be;
    color: #2d4635;
    border: none;
    padding: 12px 40px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

#age-gate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.age-error-msg {
    color: #ff6b6b; /* Un rojo que resalte sobre el verde */
    margin-top: 20px;
    font-size: 0.9rem;
    min-height: 20px;
}

.age-gate-footer {
    margin-top: 40px;
    border-top: 1px solid rgba(245, 230, 190, 0.1);
    padding-top: 20px;
}

.age-gate-footer p {
    font-size: 0.7rem;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* AJUSTE FINO DEL AGE GATE PARA MÓVILES */
@media (max-width: 480px) {
    .age-gate-content {
        padding: 30px 20px !important; /* Menos padding para que respire */
        width: 95% !important;
    }

    .age-gate-logo {
        font-size: 2.2rem !important; /* Achicamos el logo para que no sature */
    }

    .age-gate-text {
        font-size: 1rem !important;
    }

    .age-gate-input-group input {
        font-size: 1.5rem !important; /* Input más cómodo para el teclado del celu */
        width: 100px !important;
    }
}

/* --- ANIMACIÓN PREMIUM DE APARICIÓN --- */

/* El estado inicial: un poco más abajo y totalmente transparente */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Curva suave */
    visibility: hidden;
}

/* El estado cuando el usuario llega al elemento */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}