/* --- REGISTRO DE FUENTE --- */
@font-face {
    font-family: 'MiFuenteMarca';
    src: url('../fonts/baby_girly_script/Baby\ Girly.ttf') format('truetype');
}

:root {
    --fondo-dark: #0a0c0a; 
    --pistache: #9BB67E;
    --oro: #C5A028;
    --crema: #fdfcf0;
    --amarillo: #FFD700;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: 'Poppins', sans-serif; background: var(--fondo-dark); color: var(--crema); overflow-x: hidden; }
body.no-scroll { overflow: hidden; height: 100vh; position: fixed; width: 100%; }

/* CORTINA */
.welcome-overlay {
    position: fixed; inset: 0; z-index: 10000; 
    background: rgba(10, 12, 10, 0.4); 
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s;
    backdrop-filter: blur(15px);
    cursor: pointer;
}
.welcome-overlay.hide { opacity: 0; visibility: hidden; pointer-events: none; }

.sunflower-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding-inline: 20px;
}

.sunflower-icon {
    display: block;
    margin-inline: auto;
    font-size: 85px;
    color: var(--amarillo);
    animation: spin 15s linear infinite;
    filter: drop-shadow(0 0 20px var(--oro));
}

.tap-text {
    margin-top: 25px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    letter-spacing: 3px;
    text-align: center;
}

/* LOGO Y TÍTULOS */
.logo { font-family: 'MiFuenteMarca', cursive !important; font-size: 3.8rem; text-decoration: none; color: var(--crema); text-align: center; display: block; padding: 20px;padding-top:50px;padding-bottom: 0px; }
.logo span { color: var(--pistache); }
.section-title { font-family: 'MiFuenteMarca', cursive !important; font-size: 2.8rem; text-align: center; margin: 40px 0 20px; color: var(--pistache);}

/* VIDEO */
.video-container { width: 92%; max-width: 600px; margin: 0 auto; border-radius: 35px; overflow: hidden; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.8); }
video { width: 100%; display: block; background: #000; }
.video-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.btn-play-video { background: var(--pistache); color: var(--fondo-dark); border: none; padding: 15px 30px; border-radius: 50px; font-weight: 700; }

/* TARJETAS CON LINK */
.mini-card { 
    background: #151815; 
    border-radius: 30px; 
    overflow: hidden; 
    text-align: center; 
    border: 1px solid rgba(255,255,255,0.05); 
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}
.mini-card:hover { transform: translateY(-10px); border-color: var(--pistache); }
.mini-card img { width: 100%; height: 300px; object-fit: cover; opacity: 0.7; }
.mini-card h4 { font-family: 'MiFuenteMarca', cursive !important; font-size: 2.2rem; padding: 15px; color: var(--oro); }

/* BOTÓN CATÁLOGO */
.catalog-cta {
    text-align: center;
    padding: 80px 20px 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-catalog {
    display: inline-block;
    background: var(--pistache);
    color: var(--fondo-dark);
    padding: 25px 60px;
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(155, 182, 126, 0.4);
}

.btn-catalog:hover {
    background: var(--oro);
    transform: scale(1.1);
    box-shadow: 0 15px 45px rgba(197, 160, 40, 0.6);
    color: white;
}

/* BOTÓN WHATSAPP */
.whatsapp-float {
    position: fixed;
    right: clamp(10px, 2.4vw, 20px);
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    top: auto;
    z-index: 9000;
    display: inline-flex;
    width: fit-content;
    max-width: calc(100vw - 20px);
    align-items: center;
    gap: 9px;
    padding: 13px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #25d366, #1fb85b);
    color: white;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    animation: whatsappBob 2.8s ease-in-out infinite;
    isolation: isolate;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: -1;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
    animation: whatsappPulse 2.8s ease-out infinite;
}

.whatsapp-float i {
    font-size: 1.28rem;
    flex: 0 0 auto;
}

.whatsapp-float span {
    display: inline-block;
    line-height: 1.1;
    white-space: nowrap;
}

.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 16px 36px rgba(37, 211, 102, 0.45);
    filter: brightness(1.03);
}

.whatsapp-float:active {
    transform: scale(0.97);
}

.previews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; padding: 20px; max-width: 1100px; margin: 0 auto; }

@media (max-width: 640px) {
    .whatsapp-float {
        right: 8px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        max-width: calc(100vw - 16px);
        padding: 10px 11px;
        gap: 7px;
        font-size: 0.88rem;
        border-radius: 22px;
    }

    .whatsapp-float i {
        font-size: 1.08rem;
    }

    .whatsapp-float span {
        white-space: normal;
        text-wrap: balance;
        max-width: 96px;
        line-height: 1.05;
    }

    .tap-text {
        letter-spacing: 2px;
    }
}

@media (max-width: 380px) {
    .whatsapp-float {
        right: 6px;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        max-width: calc(100vw - 12px);
        padding: 9px 10px;
        gap: 6px;
        font-size: 0.84rem;
    }

    .whatsapp-float span {
        max-width: 88px;
    }

    .whatsapp-float i {
        font-size: 1rem;
    }
}

@keyframes spin { from {transform: rotate(0deg);} to {transform: rotate(360deg);} }

@keyframes whatsappBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.42); }
    70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
