/* ============================= */
/* 🌴 RESET GENERAL */
/* ============================= */
html, body{
    
}
body{
    margin:0;
    font-family:"Segoe UI", Arial, sans-serif;
    color:#114b2c;
    line-height:1.6;
    min-height:100vh;
    position:relative;
}

/* ============================= */
/* 🌴 FONDO GLOBAL (ARREGLADO) */
/* ============================= */

body::before{
    content:"";
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;

    background-image:url("imagenes-fondo/fondo-bali.avif");

    /* 🔥 CLAVE: proporcional sin zoom */
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    z-index:-1;
}

/* ============================= */
/* 🌴 HEADER */
/* ============================= */

header{
    text-align:center;
    padding:50px 20px 25px;
}

header h1{
    font-size:52px;
    font-weight:900;
    color:white;
    letter-spacing:1px;

    background:rgba(0,0,0,0.25);
    backdrop-filter:blur(6px);
    display:inline-block;
    padding:15px 35px;
    border-radius:22px;

    text-shadow:0 6px 18px rgba(0,0,0,0.6);
}

/* ============================= */
/* 🌴 MENÚ */
/* ============================= */

nav{
    position:sticky;
    top:0;
    z-index:1000;
    background:rgba(170,205,176,0.35);
    backdrop-filter:blur(12px);
    box-shadow:0 6px 18px rgba(0,0,0,0.15);
    overflow:visible;
}

nav ul{
    list-style:none;
    margin:0;
    padding:16px;
    display:flex;
    justify-content:center;
    gap:35px;
}

nav a{
    text-decoration:none;
    font-weight:700;
    font-size:18px;
    color:#0f5132;
    padding:10px 18px;
    border-radius:12px;
    transition:0.25s ease;
}

nav a:hover{
    background:#2e8b57;
    color:white;
    transform:translateY(-2px);
}

/* SUBMENU */

.submenu{position:relative;}

.dropdown{
    position:absolute;
    top:100%;
    left:0;
    background:rgba(235,255,240,0.95);
    border-radius:14px;
    box-shadow:0 10px 25px rgba(0,0,0,0.2);
    padding:10px 0;
    list-style:none;
    display:none;
    min-width:220px;
    z-index:9999;
}

.submenu:hover .dropdown{
    display:block;
}

/* ============================= */
/* 🌴 TÍTULOS SECCIÓN */
/* ============================= */

section h2{
    text-align:center;
    font-size:36px;
    color:white;
    margin:60px 0 25px;
    font-weight:900;
    text-shadow:0 4px 14px rgba(0,0,0,0.6);
}

section h2::after{
    content:"";
    display:block;
    width:140px;
    height:4px;
    margin:12px auto 0;
    border-radius:10px;
    background:linear-gradient(90deg,#52b788,#95d5b2);
}

/* ============================= */
/* 🌴 ARTÍCULOS */
/* ============================= */
article{
    background:rgba(226,245,232,0.6);
    border:1px solid rgba(82,183,136,0.3);
    border-radius:18px;
    padding:24px;
    margin:20px auto;
    width:92%;
    max-width:900px;
    box-shadow:0 12px 35px rgba(0,0,0,0.18);
    transition:0.3s ease;
}

article:hover{
    transform:translateY(-6px);
}

article h3{
    font-size:26px;
    color:#1b4332;
    border-left:6px solid #52b788;
    padding-left:12px;
    margin-bottom:12px;
}

/* ============================= */
/* 🌿 LISTAS ECO */
/* ============================= */

article ul{
    list-style:none;
    padding-left:0;
}

article ul li{
    position:relative;
    padding-left:28px;
    margin-bottom:8px;
}

article ul li::before{
    content:"🌿";
    position:absolute;
    left:0;
}

/* ============================= */
/* 🌴 LINKS */
/* ============================= */

.enlaces a,
.mapa a,
.reserva-vuelo a{
    display:inline-block;
    margin-top:12px;
    padding:10px 18px;
    border-radius:30px;
    background:linear-gradient(135deg,#40916c,#2d6a4f);
    color:white;
    text-decoration:none;
    font-weight:600;
    box-shadow:0 8px 18px rgba(0,0,0,0.25);
    transition:0.25s ease;
}

.enlaces a:hover,
.mapa a:hover,
.reserva-vuelo a:hover{
    background:linear-gradient(135deg,#2d6a4f,#1b4332);
    transform:translateY(-2px) scale(1.03);
}

/* ============================= */
/* 🌴 GALERÍA */
/* ============================= */

.fotos-lugares{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    justify-content:center;
    margin-top:15px;
}

figure{
    margin:0;
    width:300px;
    border-radius:20px;
    overflow:hidden;
    background:white;
    box-shadow:0 12px 30px rgba(0,0,0,0.18);
    transition:0.3s ease;
}

figure:hover{
    transform:translateY(-8px);
}

figure img{
    width:100%;
    height:220px;
    object-fit:cover;
}

figcaption{
    padding:10px;
    font-size:14px;
    text-align:center;
    background:#edf7f1;
    font-style:italic;
    color:#14532d;
}

/* ============================= */
/* 🌿 HERO BALI */
/* ============================= */

.hero-bali{
    text-align:center;
    margin:20px auto 30px;
    padding:25px;
    border-radius:20px;
    background:linear-gradient(rgba(27,67,50,0.65),rgba(64,145,108,0.65));
    backdrop-filter:blur(8px);
    color:white;
    width:80%;
    box-shadow:0 15px 35px rgba(0,0,0,0.25);
}

/* ============================= */
/* 🌿 FOOTER */
/* ============================= */

footer{
    text-align:center;
    padding:35px;
    margin-top:50px;
    color:white;
    background:rgba(0,0,0,0.35);
    backdrop-filter:blur(6px);
    border-radius:20px 20px 0 0;
}

/* ============================= */
/* 📱 RESPONSIVE MOBILE */
/* ============================= */

@media (max-width:768px){

header h1{
    font-size:30px;
    padding:10px;
}

nav ul{
    flex-direction:column;
    gap:10px;
    align-items:center;
}

.dropdown{
    position:static;
    box-shadow:none;
    background:rgba(255,255,255,0.15);
    margin-top:8px;
}
article{
    width:100% !important;
    max-width:100% !important;
    margin:15px 0 !important;
    padding:18px !important;
    border-radius:18px;
}

.fotos-lugares{
    flex-direction:column;
    align-items:center;
}

figure{
    width:90%;
}

.enlaces a,
.reserva-vuelo a{
    display:block;
    text-align:center;
    margin:10px auto;
    width:90%;
}

/* 🔥 FONDO PROPORCIONAL MOVIL */
body::before{
    background-size:100% 100%;
}

}
/* ============================= */
/* 🌴 RESET GENERAL */
/* ============================= */

body{
    margin:0;
    font-family:"Segoe UI", Arial, sans-serif;
    color:#114b2c;
    line-height:1.6;
    min-height:100vh;
    position:relative;
}

/* ============================= */
/* 🌴 FONDO GLOBAL (ARREGLADO) */
/* ============================= */

body::before{
    content:"";
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;

    background-image:url("imagenes-fondo/fondo-bali.avif");

    /* 🔥 CLAVE: proporcional sin zoom */
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    z-index:-1;
}

/* ============================= */
/* 🌴 HEADER */
/* ============================= */

header{
    text-align:center;
    padding:50px 20px 25px;
}

header h1{
    font-size:52px;
    font-weight:900;
    color:white;
    letter-spacing:1px;

    background:rgba(0,0,0,0.25);
    backdrop-filter:blur(6px);
    display:inline-block;
    padding:15px 35px;
    border-radius:22px;

    text-shadow:0 6px 18px rgba(0,0,0,0.6);
}

/* ============================= */
/* 🌴 MENÚ */
/* ============================= */

nav{
    position:sticky;
    top:0;
    z-index:1000;
    background:rgba(170,205,176,0.35);
    backdrop-filter:blur(12px);
    box-shadow:0 6px 18px rgba(0,0,0,0.15);
    overflow:visible;
}

nav ul{
    list-style:none;
    margin:0;
    padding:16px;
    display:flex;
    justify-content:center;
    gap:35px;
}

nav a{
    text-decoration:none;
    font-weight:700;
    font-size:18px;
    color:#0f5132;
    padding:10px 18px;
    border-radius:12px;
    transition:0.25s ease;
}

nav a:hover{
    background:#2e8b57;
    color:white;
    transform:translateY(-2px);
}

/* SUBMENU */

.submenu{position:relative;}

.dropdown{
    position:absolute;
    top:100%;
    left:0;
    background:rgba(235,255,240,0.95);
    border-radius:14px;
    box-shadow:0 10px 25px rgba(0,0,0,0.2);
    padding:10px 0;
    list-style:none;
    display:none;
    min-width:220px;
    z-index:9999;
}

.submenu:hover .dropdown{
    display:block;
}

/* ============================= */
/* 🌴 TÍTULOS SECCIÓN */
/* ============================= */

section h2{
    text-align:center;
    font-size:36px;
    color:white;
    margin:60px 0 25px;
    font-weight:900;
    text-shadow:0 4px 14px rgba(0,0,0,0.6);
}

section h2::after{
    content:"";
    display:block;
    width:140px;
    height:4px;
    margin:12px auto 0;
    border-radius:10px;
    background:linear-gradient(90deg,#52b788,#95d5b2);
}

/* ============================= */
/* 🌴 ARTÍCULOS */
/* ============================= */

article{
    background:rgba(226,245,232,0.6);
    border:1px solid rgba(82,183,136,0.3);
    border-radius:18px;
    padding:24px;
    margin:30px auto;
    width:85%;
    box-shadow:0 12px 35px rgba(0,0,0,0.18);
    transition:0.3s ease;
}

article:hover{
    transform:translateY(-6px);
}

article h3{
    font-size:26px;
    color:#1b4332;
    border-left:6px solid #52b788;
    padding-left:12px;
    margin-bottom:12px;
}

/* ============================= */
/* 🌿 LISTAS ECO */
/* ============================= */

article ul{
    list-style:none;
    padding-left:0;
}

article ul li{
    position:relative;
    padding-left:28px;
    margin-bottom:8px;
}

article ul li::before{
    content:"🌿";
    position:absolute;
    left:0;
}

/* ============================= */
/* 🌴 LINKS */
/* ============================= */

.enlaces a,
.mapa a,
.reserva-vuelo a{
    display:inline-block;
    margin-top:12px;
    padding:10px 18px;
    border-radius:30px;
    background:linear-gradient(135deg,#40916c,#2d6a4f);
    color:white;
    text-decoration:none;
    font-weight:600;
    box-shadow:0 8px 18px rgba(0,0,0,0.25);
    transition:0.25s ease;
}

.enlaces a:hover,
.mapa a:hover,
.reserva-vuelo a:hover{
    background:linear-gradient(135deg,#2d6a4f,#1b4332);
    transform:translateY(-2px) scale(1.03);
}

/* ============================= */
/* 🌴 GALERÍA */
/* ============================= */

.fotos-lugares{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    justify-content:center;
    margin-top:15px;
}

figure{
    margin:0;
    width:300px;
    border-radius:20px;
    overflow:hidden;
    background:white;
    box-shadow:0 12px 30px rgba(0,0,0,0.18);
    transition:0.3s ease;
}

figure:hover{
    transform:translateY(-8px);
}

figure img{
    width:100%;
    height:220px;
    object-fit:cover;
}

figcaption{
    padding:10px;
    font-size:14px;
    text-align:center;
    background:#edf7f1;
    font-style:italic;
    color:#14532d;
}

/* ============================= */
/* 🌿 HERO BALI */
/* ============================= */

.hero-bali{
    text-align:center;
    margin:20px auto 30px;
    padding:25px;
    border-radius:20px;
    background:linear-gradient(rgba(27,67,50,0.65),rgba(64,145,108,0.65));
    backdrop-filter:blur(8px);
    color:white;
    width:80%;
    box-shadow:0 15px 35px rgba(0,0,0,0.25);
}

/* ============================= */
/* 🌿 FOOTER */
/* ============================= */

footer{
    text-align:center;
    padding:35px;
    margin-top:50px;
    color:white;
    background:rgba(0,0,0,0.35);
    backdrop-filter:blur(6px);
    border-radius:20px 20px 0 0;
}

/* ============================= */
/* 📱 RESPONSIVE MOBILE */
/* ============================= */

@media (max-width:768px){
nav{
    display:none !important;
}    
header h1{
    font-size:30px;
    padding:10px;
}

nav ul{
    flex-direction:column;
    gap:10px;
    align-items:center;
}

.dropdown{
    position:static;
    box-shadow:none;
    background:rgba(255,255,255,0.15);
    margin-top:8px;
}

article{
    margin:15px 10px;
    padding:15px;
}

.fotos-lugares{
    flex-direction:column;
    align-items:center;
}

figure{
    width:90%;
}

.enlaces a,
.reserva-vuelo a{
    display:block;
    text-align:center;
    margin:10px auto;
    width:90%;
}

/* 🔥 FONDO PROPORCIONAL MOVIL */
body::before{
    background-size:cover;
}

}
/* ===================================================== */
/* 🌴 ALTURA REAL MOVIL (QUITAR BORDE BLANCO) */
/* ===================================================== */

body{
    min-height:100dvh;
}

html{
    background:#1e3d2b;
}

/* ===================================================== */
/* 🌿 FONDO PROPORCIONAL SIN ZOOM */
/* ===================================================== */

body::before{
    content:"";
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;

    background-image:url("imagenes-fondo/fondo-bali.avif");
    background-size:cover;  /* 👈 proporcional */
    background-position:center;
    background-repeat:no-repeat;

    z-index:-1;
}

@media (max-width:768px){
    body::before{
        background-size:cover;
    }
}

/* ===================================================== */
/* 🌿 EMBELLECEDORES LINKS FOTOS (RECUPERADOS) */
/* ===================================================== */

figcaption a{
    display:inline-block;
    text-decoration:none;
    color:#2d6a4f;
    font-weight:600;
    padding:6px 12px;
    border-radius:20px;
    background:rgba(82,183,136,0.15);
    transition:0.25s ease;
}

figcaption a:hover{
    background:#2d6a4f;
    color:white;
    transform:translateY(-1px);
}

/* ===================================================== */
/* 🐾 ICONOS ANIMALISTAS POR DIA (RECUPERADOS) */
/* ===================================================== */

.dia h3{
    position:relative;
    padding-left:40px;
}

.dia h3::before{
    position:absolute;
    left:0;
    top:0;
    font-size:24px;
}

/* 🌴 SEMINYAK */
.dia:nth-of-type(1) h3::before{ content:"🐢"; }
.dia:nth-of-type(2) h3::before{ content:"🦜"; }
.dia:nth-of-type(3) h3::before{ content:"🌺"; }

/* 🌿 UBUD */
.dia:nth-of-type(4) h3::before{ content:"🐒"; }
.dia:nth-of-type(5) h3::before{ content:"🦧"; }
.dia:nth-of-type(6) h3::before{ content:"💧"; }
.dia:nth-of-type(7) h3::before{ content:"🌋"; }
.dia:nth-of-type(8) h3::before{ content:"🌿"; }

/* 🏝️ NUSA PENIDA */
.dia:nth-of-type(9) h3::before{ content:"🐠"; }
.dia:nth-of-type(10) h3::before{ content:"🐬"; }

/* 🌅 JIMBARAN */
.dia:nth-of-type(11) h3::before{ content:"🌊"; }

/* ✈️ REGRESO */
.dia:nth-of-type(12) h3::before{ content:"🛫"; }

/* ============================= */
/* ✈️ CONTADOR VUELO */
/* ============================= */

.contador-vuelo{
    text-align:center;
    margin:20px auto 30px;
    padding:20px;
    width:70%;
    border-radius:20px;

    background:linear-gradient(
        rgba(27,67,50,0.7),
        rgba(82,183,136,0.7)
    );

    color:white;
    backdrop-filter:blur(8px);
    box-shadow:0 12px 30px rgba(0,0,0,0.25);
}

#contador{
    font-size:26px;
    font-weight:900;
    letter-spacing:1px;
}
/* ============================= */
/* 🎨 COLORES DINÁMICOS CONTADOR */
/* ============================= */

.contador-verde{
    background:linear-gradient(rgba(27,67,50,0.7),rgba(82,183,136,0.7));
}

.contador-naranja{
    background:linear-gradient(rgba(120,53,15,0.7),rgba(249,115,22,0.7));
}

.contador-rojo{
    background:linear-gradient(rgba(127,29,29,0.7),rgba(239,68,68,0.7));
}
/* ============================= */
/* ✈️ AVIÓN VOLANDO */
/* ============================= */

.zona-contador{
    position:relative;
    overflow:hidden;
}
#avion{
    position:absolute;
    left:-60px;
    top:50%;
    transform:translateY(-50%);
    font-size:28px;
    opacity:0;
}

/* animación vuelo */
@keyframes volarAvion{
    0%{ left:-60px; }
    100%{ left:110%; }
}

.avion-activo{
    opacity:1 !important;
    animation:volarAvion 6s linear infinite;
}
/* ============================= */
/* 🎲 RULETA SORPRESA */
/* ============================= */

.ruleta-sorpresa{
    text-align:center;
    margin-top:20px;
}

#botonRuleta{
    background:linear-gradient(135deg,#40916c,#2d6a4f);
    border:none;
    color:white;
    padding:10px 18px;
    border-radius:25px;
    font-weight:700;
    cursor:pointer;
    box-shadow:0 8px 18px rgba(0,0,0,0.25);
    transition:0.25s ease;
}

#botonRuleta:hover{
    transform:scale(1.05);
    background:linear-gradient(135deg,#2d6a4f,#1b4332);
}

#resultadoRuleta{
    margin-top:12px;
    font-size:18px;
    font-weight:800;
    color:#1b4332;
}
/* ============================= */
/* 🌀 ROLES EQUIPO BALI */
/* ============================= */

#revelarRoles{
    margin-top:10px;
    background:linear-gradient(135deg,#40916c,#2d6a4f);
    border:none;
    color:white;
    padding:10px 20px;
    border-radius:25px;
    font-weight:800;
    cursor:pointer;
    transition:0.25s ease;
}

#revelarRoles:hover{
    transform:scale(1.07);
    background:linear-gradient(135deg,#2d6a4f,#1b4332);
}

.tarjeta-rol{
    opacity:0;
    transform:translateY(20px);
    transition:0.5s ease;
}

.tarjeta-rol.visible{
    opacity:1;
    transform:translateY(0);
}
/* ============================= */
/* 🌀 ROLES EQUIPO BALI */
/* ============================= */

.roles-bali{
    text-align:center;
    margin:25px auto;
    padding:20px;
    width:85%;
    border-radius:20px;
    background:linear-gradient(rgba(27,67,50,0.7),rgba(82,183,136,0.7));
    color:white;
    overflow-x:hidden;
}

.grid-roles{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:20px;
    margin-top:20px;
}

.persona{
    background:rgba(255,255,255,0.9);
    color:#1b4332;
    padding:15px;
    border-radius:15px;
    width:220px;
    box-shadow:0 8px 18px rgba(0,0,0,0.2);
}

.btnRol{
    margin-top:10px;
    background:linear-gradient(135deg,#40916c,#2d6a4f);
    border:none;
    color:white;
    padding:8px 15px;
    border-radius:20px;
    font-weight:800;
    cursor:pointer;
}

.zonaRoles{
    margin-top:12px;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.rolItem{
    background:#eaf7ec;
    padding:8px;
    border-radius:10px;
    font-weight:700;
    transform:translateY(15px);
    opacity:0;
    transition:0.4s ease;
}

.rolItem.visible{
    transform:translateY(0);
    opacity:1;
}
/* =====================================
🌀 TARJETAS 3D ROLES PRO — FIX FINAL
===================================== */

.carta3D{
    perspective:1000px;
}

.carta-inner{
    position:relative;
    width:100%;
    min-height:190px;   /* 👈 CLAVE REAL */
    transition:transform 0.8s;
    transform-style:preserve-3d;
}


.carta3D.girada .carta-inner{
    transform:rotateY(180deg);
}

.carta-front,
.carta-back{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    backface-visibility:hidden;
    border-radius:15px;
    padding:15px;
    box-shadow:0 6px 15px rgba(0,0,0,0.2);
}

/* frente */
.carta-front{
    background:white;
    color:#1b4332;
}

/* detrás */
.carta-back{
    background:#eaf7ec;
    transform:rotateY(180deg);

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;

    overflow-y:auto; /* 🔥 ESTO ARREGLA TODO */
}

/* zona roles */
.zonaRoles{
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
}

/* rol */
.rolItem{
    background:#ffffff;
    padding:6px 10px;
    border-radius:8px;
    font-weight:700;
    text-align:center;

    white-space:normal;
    word-break:break-word;
}


/* =====================================
✨ EFECTO CARTA RARA
===================================== */

.carta3D{
    position:relative;
    
}

.carta3D::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        120deg,
        transparent 30%,
        rgba(255,255,255,0.5),
        transparent 70%
    );
    opacity:0;
    transform:translateX(-100%);
    pointer-events:none;
}

.carta3D.girada::after{
    animation:brilloCarta 1.2s ease forwards;
}

@keyframes brilloCarta{
    0%{opacity:0;transform:translateX(-120%);}
    40%{opacity:1;}
    100%{transform:translateX(120%);opacity:0;}
}

/* escritura roles */

.rolItem{
    background:#ffffff;
    padding:6px 10px;
    border-radius:8px;
    font-weight:700;
    text-align:center;

    white-space:normal;      /* 🔥 PERMITE SALTO DE LINEA */
    word-break:break-word;   /* 🔥 corta palabras largas */
    overflow-wrap:break-word;
    line-height:1.3;
}


@keyframes cursorBlink{
    50%{border-color:transparent;}
}

/* particulas */

.particula{
    position:absolute;
    width:6px;
    height:6px;
    background:#52b788;
    border-radius:50%;
    pointer-events:none;
    animation:particulaUp 1s ease forwards;
}

@keyframes particulaUp{
    0%{transform:translateY(0) scale(1);opacity:1;}
    100%{transform:translateY(-80px) scale(0.3);opacity:0;}
}
/* ============================= */
/* 🗺️ MAPA BALI */
/* ============================= */

.contenedor-mapa{
    width:85%;
    margin:25px auto;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 15px 35px rgba(0,0,0,0.3);
}

.contenedor-mapa iframe{
    width:100%;
    height:420px;
    border:0;
    display:block;
}
#mapa-bali{
    display:flex;
    flex-direction:column;
    align-items:center;   /* 🔥 centra todo */
}

.contenedor-mapa{
    width:85%;
    max-width:900px;      /* 👈 evita que se estire demasiado */
    margin:30px auto;
}

/* =====================================
📱 MODO MOVIL PRO — VERSION CERCANA
===================================== */

@media (max-width:768px){

/* ancho total tipo app */
section,
.roles-bali,
.hero-bali,
.contador-vuelo{
    width:95% !important;
    margin:15px auto !important;
    padding:18px !important;
}

/* títulos más compactos */
section h2{
    font-size:26px;
    margin:35px 0 15px;
}

/* artículos más cercanos */
article{
    width:100% !important;
    margin:12px auto !important;
    padding:14px !important;
    border-radius:14px;
}

/* tarjetas roles más grandes */
.persona{
    width:100% !important;
    max-width:320px;
}

/* grid roles vertical */
.grid-roles{
    flex-direction:column;
    align-items:center;
    gap:14px;
}

/* fotos tipo stories */
figure{
    width:100% !important;
    border-radius:14px;
}

/* contador más protagonista */
#contador{
    font-size:22px;
}

/* header más cercano */
header{
    padding:25px 10px 15px;
}

header h1{
    font-size:28px;
}

/* menú estilo app */
nav ul{
    gap:6px;
    padding:10px;
}

nav a{
    font-size:16px;
    padding:8px 14px;
}

}

/* =====================================
📱 BARRA APP MOVIL FIJA
===================================== */

/* =====================================
📱 BARRA APP MOVIL — FIX DEFINITIVO
===================================== */

.barra-app{
    display:none;
}

/* SOLO MOVIL */
@media (max-width:768px){

.barra-app{
    position:fixed;
    bottom:0;
    left:0;
    width:100vw;
    height:70px;

    background:rgba(27,67,50,0.95);
    backdrop-filter:blur(12px);

    display:flex;
    justify-content:space-around;
    align-items:center;

    z-index:999999;

    box-shadow:0 -8px 20px rgba(0,0,0,0.4);
}

/* botones */
.barra-app a{
    color:white;
    text-decoration:none;
    font-size:20px;
    font-weight:700;

    display:flex;
    flex-direction:column;
    align-items:center;
    gap:3px;

    transition:0.25s ease;
}

.barra-app a span{
    font-size:11px;
}

/* efecto app */
.barra-app a:active{
    transform:scale(0.9);
}

/* espacio abajo para que no tape contenido */
body{
    padding-bottom:90px !important;
}

}

/* =====================================
🎒 CHECKLIST PRO
===================================== */

.checklist-bali{
    text-align:center;
    margin:25px auto;
    padding:20px;
    width:85%;
    border-radius:20px;
    background:linear-gradient(rgba(27,67,50,0.7),rgba(82,183,136,0.7));
    color:white;
}

.lista-check{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:15px;
}

.lista-check label{
    background:rgba(255,255,255,0.9);
    color:#1b4332;
    padding:10px;
    border-radius:12px;
    font-weight:700;
    display:flex;
    align-items:center;
    gap:10px;
    justify-content:flex-start;
    cursor:pointer;
    transition:0.25s ease;
}

.lista-check input{
    transform:scale(1.2);
}

.lista-check input:checked + span{
    text-decoration:line-through;
}
/* =====================================
📊 BARRA PROGRESO CHECKLIST
===================================== */

.barra-progreso{
    width:100%;
    height:14px;
    background:rgba(255,255,255,0.3);
    border-radius:20px;
    overflow:hidden;
    margin:10px 0 20px;
}

#progresoCheck{
    height:100%;
    width:0%;
    background:#52b788;
    transition:0.4s ease;
}
/* ============================= */
/* 🎁 PANTALLA REGALO ESTABLE */
/* ============================= */

html, body{
    margin:0;
    padding:0;
    height:100%;
}

/* Bloqueo total cuando está activa */
body.bloqueado{
    position:fixed;
    overflow:hidden;
    width:100%;
}

/* Oculta absolutamente todo excepto la pantalla regalo */
body.bloqueado > *:not(#pantallaRegalo){
    display:none !important;
}

/* Overlay principal */
#pantallaRegalo{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:var(--vh); /* 👈 usamos variable dinámica */
    background:#0e2f24;
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:9999999;
}

/* Contenido centrado */
.contenido-regalo{
    width:90%;
    max-width:420px;
    text-align:center;
    position:relative;
    z-index:2;
    color:white;
}

/* Portal oscuro SIN foco */
.portalMagico{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.65);
    pointer-events:none;
    z-index:1;
}

/* Título */
.contenido-regalo h1{
    font-size:32px;
    margin-bottom:20px;
}

/* Texto */
.mensaje{
    font-size:16px;
    margin-bottom:25px;
    opacity:0.9;
}

/* Input */
#inputClave{
    width:100%;
    padding:14px;
    border-radius:12px;
    border:none;
    margin-bottom:15px;
    font-size:16px; /* 🔥 evita zoom Safari */
    text-align:center;
    outline:none;
}

/* Botón */
#btnEntrar{
    width:100%;
    padding:14px;
    border-radius:12px;
    border:none;
    background:#52b788;
    color:white;
    font-weight:800;
    cursor:pointer;
}

/* Error */
#errorClave{
    margin-top:12px;
    color:#ffb3b3;
    font-weight:600;
}

/* Animación salida */
.ocultarRegalo{
    animation:fadeOut 0.6s forwards;
}

@keyframes fadeOut{
    to{
        opacity:0;
        visibility:hidden;
    }
}

/* Confeti */
.confeti{
    position:fixed;
    width:10px;
    height:10px;
    top:-10px;
    animation:caer 3s linear forwards;
    z-index:999999;
}

@keyframes caer{
    to{
        transform:translateY(100vh) rotate(720deg);
        opacity:0;
    }
}
/* 🔥 FIX GLOBAL RESPONSIVE */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* 🎴 TARJETAS */

section{
    width: 96%;
    max-width: 1200px;
    margin: 20px auto;
}

.hero-bali,
.contador-vuelo {
    width: 92%;
    max-width: 900px;
    margin: 20px auto;
}
/* 👇 ENSANCHAR SOLO LOS DIAS */
#lugares{
    width:100% !important;
    max-width:none !important;
}

#lugares .dia{
    width:95% !important;
    max-width:none !important;
}
/* 📱 BARRA APP */
.barra-app {
    width: 100%;
    left: 0;
}
/* 🔥 FORZAR DIAS ANCHO COMPLETO DEFINITIVO */

#lugares article{
    width:96% !important;
    max-width:1200px !important;
    margin:25px auto !important;
}
/* =====================================
🎂 PANTALLA REGALO MÁS VIVA
===================================== */

/* Fondo con degradado animado */
#pantallaRegalo{
    background: linear-gradient(-45deg, #0e2f24, #1b4332, #2d6a4f, #40916c);
    background-size: 400% 400%;
    animation: fondoFiesta 12s ease infinite;
}

/* Animación del fondo */
@keyframes fondoFiesta{
    0%{background-position:0% 50%;}
    50%{background-position:100% 50%;}
    100%{background-position:0% 50%;}
}

/* Título más grande y brillante */
.contenido-regalo h1{
    font-size:38px;
    background: linear-gradient(90deg, #ffffff, #95d5b2, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: brilloTitulo 3s ease-in-out infinite;
}

/* Efecto brillo suave */
@keyframes brilloTitulo{
    0%{letter-spacing:1px;}
    50%{letter-spacing:3px;}
    100%{letter-spacing:1px;}
}

/* Botón más llamativo */
#btnEntrar{
    background: linear-gradient(135deg,#52b788,#74c69d);
    box-shadow: 0 10px 25px rgba(82,183,136,0.5);
    transition: 0.3s ease;
}

#btnEntrar:hover{
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(82,183,136,0.7);
}

/* Input más limpio */
#inputClave{
    background:white;
    box-shadow:0 6px 18px rgba(0,0,0,0.25);
}
/* =====================================
🎉 MODO CUMPLEAÑOS PRO MAX
===================================== */

/* Fondo animado más vivo */
#pantallaRegalo{
    background: linear-gradient(-45deg, #0e2f24, #1b4332, #2d6a4f, #40916c, #52b788);
    background-size: 400% 400%;
    animation: fondoFiesta 10s ease infinite;
}

@keyframes fondoFiesta{
    0%{background-position:0% 50%;}
    50%{background-position:100% 50%;}
    100%{background-position:0% 50%;}
}

/* ✨ TÍTULO MÁGICO */
.contenido-regalo h1{
    font-size:40px;
    background: linear-gradient(90deg, #ffffff, #95d5b2, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: brilloTitulo 3s ease-in-out infinite, latidoTitulo 2.5s ease-in-out infinite;
    position: relative;
}

/* Brillo deslizante */
@keyframes brilloTitulo{
    0%{filter:brightness(1);}
    50%{filter:brightness(1.3);}
    100%{filter:brightness(1);}
}

/* Latido suave */
@keyframes latidoTitulo{
    0%{transform:scale(1);}
    50%{transform:scale(1.04);}
    100%{transform:scale(1);}
}

/* 🎆 PARTÍCULAS FLOTANTES */
.particula-fiesta{
    position: fixed;
    width:6px;
    height:6px;
    border-radius:50%;
    background:#95d5b2;
    pointer-events:none;
    animation: flotar 6s linear infinite;
    opacity:0.8;
}

@keyframes flotar{
    0%{
        transform: translateY(100vh) scale(0.5);
        opacity:0;
    }
    10%{opacity:1;}
    100%{
        transform: translateY(-10vh) scale(1);
        opacity:0;
    }
}

/* 🎁 BOTÓN MÁS FESTIVO */
#btnEntrar{
    background: linear-gradient(135deg,#52b788,#74c69d);
    box-shadow: 0 10px 25px rgba(82,183,136,0.5);
    transition: 0.3s ease;
}

#btnEntrar:hover{
    transform: scale(1.08);
    box-shadow: 0 15px 40px rgba(82,183,136,0.8);
}

/* INPUT MÁS LIMPIO */
#inputClave{
    background:white;
    box-shadow:0 6px 18px rgba(0,0,0,0.25);
}
/* =====================================
🎂 TARTA INTERACTIVA
===================================== */

.tarta{
    display:flex;
    justify-content:center;
    gap:15px;
    margin:25px 0;
}

.vela{
    width:14px;
    height:40px;
    background:#ffffff;
    border-radius:4px;
    position:relative;
}

.vela::after{
    content:"";
    position:absolute;
    top:-12px;
    left:50%;
    transform:translateX(-50%);
    width:12px;
    height:12px;
    background:radial-gradient(circle, #ffd166 40%, orange 70%);
    border-radius:50%;
    animation:flama 0.2s infinite alternate;
}

/* llama animada */
@keyframes flama{
    from{transform:translateX(-50%) scale(1);}
    to{transform:translateX(-50%) scale(1.2);}
}

/* vela apagada */
.apagada::after{
    display:none;
}

#mensajeSopla{
    font-weight:700;
    margin-top:10px;
    opacity:0.9;
}
/* =====================================
🎂 FIX VELAS MOVIL DEFINITIVO
===================================== */

/* Asegura que nada las corte */
#pantallaRegalo{
    overflow: visible !important;
}

/* Tarta visible siempre */
.tarta{
    position: relative;
    display: block;
    margin: 30px auto 0;
    z-index: 5;
}

/* Velas visibles siempre */
.vela{
    position: relative;
    width: 8px;
    height: 35px;
    background: #ff4d6d;
    margin: 0 6px;
    display: inline-block;
    border-radius: 4px;
    z-index: 6;
}

/* Llama visible */
.llama{
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 18px;
    background: radial-gradient(circle, yellow 40%, orange 70%, red 100%);
    border-radius: 50%;
    animation: fuego 0.2s infinite alternate;
    z-index: 7;
}

/* En móvil las hacemos más grandes */
@media (max-width:768px){

    .tarta{
        transform: scale(1.2);
    }

    .vela{
        height: 40px;
    }

    .llama{
        width: 14px;
        height: 20px;
    }
}

.documentos-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
gap:15px;
margin-top:20px;
}

.doc-card{
background:white;
border-radius:12px;
padding:15px;
box-shadow:0 4px 10px rgba(0,0,0,0.1);
display:flex;
flex-direction:column;
gap:10px;
}

.doc-icon{
font-size:30px;
}

.doc-nombre{
font-weight:bold;
word-break:break-word;
}

.doc-botones{
display:flex;
justify-content:space-between;
gap:10px;
}

.doc-botones button{
border:none;
padding:6px 10px;
border-radius:6px;
cursor:pointer;
}

.btn-abrir{
background:#52b788;
color:white;
}

.btn-eliminar{
background:#ef4444;
color:white;
}
.doc-nombre{
font-size:14px;
font-weight:600;
color:#333;
word-break:break-word;
}
.doc-categoria{
margin-top:30px;
}

.doc-categoria h3{
margin-bottom:15px;
font-size:18px;
color:#333;
}

.documentos-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
gap:15px;
}

.info-bali{
margin-top:40px;
text-align:center;
}

.info-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:20px;
margin-top:20px;
}

.info-card{
background:white;
padding:20px;
border-radius:12px;
box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

.info-card input{
padding:8px;
margin-top:10px;
}

.info-card button{
margin-top:10px;
padding:8px 12px;
cursor:pointer;
}
.info-card{
background: rgba(255,255,255,0.25);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);

border-radius:20px;
padding:20px;

border:1px solid rgba(255,255,255,0.3);

box-shadow:0 8px 25px rgba(0,0,0,0.15);

color:#1b4332;
}
.info-grid{
display:grid;
grid-template-columns:1fr;
gap:20px;
margin-top:20px;
}
.info-card h3{
font-size:20px;
margin-bottom:10px;
color:#1b4332;
}

.info-card p{
font-size:18px;
font-weight:600;
}
@media (min-width:768px){

.info-grid{
grid-template-columns:repeat(3,1fr);
}
.galeria-bali{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
gap:15px;
margin-top:20px;
}

.galeria-bali img{
width:100%;
height:200px;
object-fit:cover;
border-radius:10px;
cursor:pointer;
transition:transform .3s;
}

.galeria-bali img:hover{
transform:scale(1.05);
}
}
/* =====================================
📸 ALBUM BALI
===================================== */

#album-bali{

background:rgba(255,255,255,0.18);
backdrop-filter:blur(10px);

padding:25px;

border-radius:20px;

margin:40px auto;

max-width:1100px;

box-shadow:0 10px 30px rgba(0,0,0,0.25);

border:1px solid rgba(255,255,255,0.25);

}


/* =====================================
GALERIA
===================================== */

#galeriaFotos{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

gap:20px;

margin-top:25px;

justify-items:center;

}


/* =====================================
FOTOS
===================================== */

#galeriaFotos img{

width:100%;
max-width:260px;

height:200px;

object-fit:cover;

border-radius:18px;

box-shadow:0 12px 30px rgba(0,0,0,0.35);

transition:0.3s;

cursor:pointer;

}

#galeriaFotos img:hover{

transform:scale(1.05);

box-shadow:0 15px 35px rgba(0,0,0,0.45);

}


/* =====================================
BOTONES ALBUM
===================================== */

#album-bali select,
#album-bali input[type="file"],
#album-bali button{

background:white;

border:none;

padding:10px 16px;

border-radius:20px;

font-size:14px;

box-shadow:0 3px 10px rgba(0,0,0,0.15);

}


/* botón principal */

#album-bali button{

background:linear-gradient(135deg,#52b788,#2d6a4f);

color:white;

font-weight:600;

cursor:pointer;

transition:0.25s;

}

#album-bali button:hover{

transform:translateY(-2px) scale(1.05);

box-shadow:0 8px 20px rgba(0,0,0,0.35);

}


/* =====================================
📱 RESPONSIVE MOVIL
===================================== */

@media (max-width:768px){

#galeriaFotos{

grid-template-columns:repeat(2,1fr);

gap:12px;

}

#galeriaFotos img{

height:160px;

max-width:100%;

}

#album-bali{

margin:20px 10px;

padding:18px;

}

}
/* =====================================
📱 FONDO ALBUM EN MOVIL
===================================== */

@media (max-width:768px){

#album-bali{

background:rgba(255,255,255,0.25);

backdrop-filter:blur(10px);

border:1px solid rgba(255,255,255,0.3);

}

}
/* =====================================
📱 BOTONES ALBUM MOVIL
===================================== */

@media (max-width:768px){

#album-bali button{

background:linear-gradient(135deg,#52b788,#2d6a4f);

color:white;

border:none;

padding:12px 18px;

border-radius:25px;

font-weight:700;

font-size:14px;

box-shadow:0 6px 18px rgba(0,0,0,0.25);

}

#album-bali select,
#album-bali input[type="file"]{

background:white;

border:none;

padding:10px 14px;

border-radius:20px;

font-size:14px;

box-shadow:0 4px 12px rgba(0,0,0,0.15);

}

}
@media (max-width:768px){

#album-bali{
width:95%;
margin:20px auto;
background:rgba(255,255,255,0.25);
backdrop-filter:blur(10px);
padding:20px;
border-radius:20px;
}

#galeriaFotos{
grid-template-columns:1fr 1fr;
gap:12px;
}

#galeriaFotos img{
width:100%;
height:170px;
}

}
/* =====================================
📸 ALBUM BALI FIX TOTAL
===================================== */

#album-bali{

width:95%;
max-width:1000px;

margin:30px auto;
padding:25px;

background:rgba(255,255,255,0.25);
backdrop-filter:blur(12px);

border-radius:20px;

box-shadow:0 10px 30px rgba(0,0,0,0.35);

text-align:center;

}

/* CONTROLES SUPERIORES */

#album-bali select,
#album-bali input,
#album-bali button{

margin:8px;
padding:10px 14px;

border:none;
border-radius:20px;

font-size:14px;

box-shadow:0 5px 12px rgba(0,0,0,0.2);

}

/* BOTON */

#album-bali button{

background:linear-gradient(135deg,#52b788,#2d6a4f);
color:white;

font-weight:700;
cursor:pointer;

transition:0.25s;

}

#album-bali button:hover{

transform:scale(1.05);

}

/* GALERIA */

#galeriaFotos{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

gap:18px;

margin-top:25px;

}

/* FOTOS */

#galeriaFotos img{

width:100%;

height:200px;

object-fit:cover;

border-radius:16px;

box-shadow:0 12px 30px rgba(0,0,0,0.35);

transition:0.3s;

}

#galeriaFotos img:hover{

transform:scale(1.05);

}

/* =====================================
📱 MOVIL
===================================== */

@media (max-width:768px){

#album-bali{

width:92%;
padding:20px;

}

#galeriaFotos{

grid-template-columns:1fr 1fr;

gap:12px;

}

#galeriaFotos img{

height:170px;

}

#album-bali select,
#album-bali input,
#album-bali button{

width:90%;

}

}
/* =====================================
📸 FIX FINAL ALBUM MOVIL
===================================== */

@media (max-width:768px){

#album-bali{
background:rgba(255,255,255,0.25) !important;
backdrop-filter:blur(12px) !important;
padding:20px !important;
margin:20px auto !important;
border-radius:20px !important;
width:92% !important;
}

#album-bali select,
#album-bali input,
#album-bali button{
width:90% !important;
margin:6px auto !important;
display:block !important;
}

#album-bali button{
background:linear-gradient(135deg,#52b788,#2d6a4f) !important;
color:white !important;
font-weight:700 !important;
padding:12px 18px !important;
border-radius:25px !important;
}

#galeriaFotos{
display:grid !important;
grid-template-columns:1fr 1fr !important;
gap:12px !important;
margin-top:20px !important;
}

#galeriaFotos img{
width:100% !important;
height:auto !important;
object-fit:contain !important;
border-radius:16px !important;
box-shadow:0 10px 25px rgba(0,0,0,0.3);
}

}
/* FIX FUERTE ALBUM */

section#album-bali{
background:rgba(255,255,255,0.25);
backdrop-filter:blur(10px);
padding:20px;
border-radius:20px;
}

section#album-bali button{
background:linear-gradient(135deg,#52b788,#2d6a4f);
color:white;
border:none;
padding:12px 18px;
border-radius:25px;
}

section#album-bali img{
border-radius:16px;
box-shadow:0 10px 25px rgba(0,0,0,0.3);
}
/* =========================
ALBUM FOTOS
========================= */

#galeriaFotos{
display:flex;
flex-wrap:wrap;
gap:15px;
margin-top:20px;
}

/* tarjeta foto */

.foto-card{
position:relative;
width:200px;
}

/* imagen */

.foto-card img{
width:100%;
border-radius:10px;
cursor:pointer;
transition:transform 0.3s;
}

.foto-card img:hover{
transform:scale(1.03);
}

/* =========================
REACCIONES
========================= */

.zona-reacciones{
display:flex;
justify-content:center;
gap:12px;
margin-top:8px;
flex-wrap:wrap;
}

.btn-reaccion{
border:none;
background:none;
font-size:18px;
cursor:pointer;
padding:0;
}

.contador-reaccion{
font-size:14px;
font-weight:600;
color:#1f3d2b;
margin-left:6px;
}

/* =========================
FOTO
========================= */

.foto-card{
display:flex;
flex-direction:column;
align-items:center;
width:100%;
max-width:200px;
margin-bottom:25px;
}

/* =========================
COMENTARIOS
========================= */

.zona-comentarios{
display:flex;
flex-direction:column;   /* poner botón debajo */
gap:6px;
margin-top:8px;
width:100%;
background:none;
}

.zona-comentarios input{
width:100%;
padding:12px 14px;
border-radius:20px;
border:none;
outline:none;
background:white;
font-size:14px;
}

.zona-comentarios button{
width:100%;              /* mismo ancho que el input */
padding:10px;
border:none;
border-radius:20px;
background:#4fb58a;
color:white;
font-size:14px;
cursor:pointer;
}

/* =========================
LISTA DE COMENTARIOS
========================= */

.lista-comentarios{
font-size:12px;
margin-top:6px;
text-align:left;
width:100%;
color:#1f3d2b;
}

/* =========================
RESPONSIVE
========================= */

@media (max-width:600px){

.zona-comentarios input{
font-size:16px;
}

}

@media (min-width:900px){

.reaccion{
padding:6px 12px;
font-size:18px;
}

