/* Las fuentes (Poppins y Rancho) se cargan con <link> en el HTML: un @import bloquea el render en celulares con conexión lenta */


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* En iOS/Android el overflow-x solo en body no alcanza: hay que ponerlo en html */
html{
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body{
    background: #fff;
    min-height: 100vh;
    min-height: 100svh;
}

#header{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
}

#header .logo{
    position: relative;
    top: -20px;
    left: -60px;
    color: #094b65;
    font-weight: 700;
    font-size: 2em;
    text-decoration: none;
    display: flex;
    align-items: center;
}

#header .logo img{
    display: block;
    height: 80px;
    width: auto;
}

#header ul{
    display: flex;
    justify-content: center;
    align-items: center;
}

#header ul li{
    list-style: none;
    margin-left: 20px;
}

#header ul li a{
    text-decoration: none;
    padding: 6px 15px;
    color: #094b65;
    border-radius: 20px;
}

#header ul li a:hover,
#header ul li a.active{
    background: #094b65;
    color: #fff;
}

section{
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh; /* 100vh en celular incluye la barra del navegador y hace saltar el hero */
    overflow: hidden; /* los pájaros se mueven con left y, sin esto, ensanchan la página en el celular */
    display: flex;
    justify-content: center;
    align-items: center;
}

section::before{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #094b65,transparent);
    z-index: 10;
}

section img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Capas de la escena 15% más abajo (más cielo blanco arriba) */
section #bird1,
section #bird2,
section #forest,
section #rocks,
section #water{
    transform: translateY(15vh);
}

section #text{
    position: absolute;
    color: #094b65;
    font-size: 10vw;
    text-align: center;
    line-height: 0.55em;
    font-family: 'Rancho', cursive;
    /* -50% original + 20% de alto de pantalla más abajo */
    transform: translateY(calc(-50% + 20vh));
}

section #text span{
    font-size: 0.20em;
    letter-spacing: 2px;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
}

#btn{
    text-decoration: none;
    display: inline-block;
    padding: 8px 30px;
    background: #fff;
    color: #094b65;
    font-size: 1.2em;
    font-weight: 500;
    letter-spacing: 2px;
    border-radius: 40px;
    transform: translateY(100px);
    touch-action: manipulation;
}

/* ===== Sección inferior ===== */
/* Superficies planas con los colores de la marca: celeste, turquesa y blanco; tinta solo para texto */
.sec{
    position: relative;
    padding: 90px 40px 70px;
    background: #094b65;
}

.sec-wrap{
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
}

.sec-intro{
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.sec .eyebrow{
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #46ecd5;
    margin-bottom: 14px;
}

.sec h2{
    font-size: 3.6em;
    line-height: 1.05;
    font-weight: 800;
    color: #fff;
    margin-bottom: 18px;
}

.sec h2 span{
    color: #46ecd5;
}

.sec .lede{
    font-size: 1.15em;
    font-weight: 300;
    line-height: 1.7;
    color: #bfe3f5;
}

.sec-title{
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #bfe3f5;
    margin: 56px 0 22px;
    text-align: center;
}

/* Tarjetas: color liso, esquinas grandes y una más suave, como una hoja o una ola */
.card{
    position: relative;
    background: #fff;
    color: #10261f;
    border-radius: 36px 36px 36px 12px;
    padding: 32px;
}

/* Reproductor de audio */
.player-card{
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 28px 12px 12px;
    border-radius: 999px;
    max-width: 760px;
    margin: 0 auto;
    background: #bfe3f5;
}

.player-card .play{
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #10261f;
    color: #46ecd5;
    transition: transform 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* El hover solo en dispositivos con mouse: en el celular quedaba "pegado" después de tocar */
@media (hover: hover){
    .player-card .play:hover{ transform: scale(1.06); }
}

.player-card .play svg{ width: 24px; height: 24px; fill: currentColor; }
.player-card .i-pause{ display: none; }
.player-card[data-state="playing"] .i-play,
.player-card[data-state="loading"] .i-play{ display: none; }
.player-card[data-state="playing"] .i-pause,
.player-card[data-state="loading"] .i-pause{ display: block; }

.player-info{
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.player-info strong{
    font-size: 1.05em;
    font-weight: 700;
    letter-spacing: 1px;
    color: #10261f;
}

.player-info span{
    font-size: 0.85em;
    font-weight: 400;
    color: rgba(16, 38, 31, 0.72);
    overflow-wrap: anywhere;
}

.player-card[data-state="error"] .player-info span{ color: #9a4a00; }

.eq{
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 26px;
}

.eq i{
    display: block;
    width: 4px;
    height: 20%;
    border-radius: 2px;
    background: #10261f;
    opacity: 0.3;
}

.player-card[data-state="playing"] .eq i{
    opacity: 1;
    animation: eq 0.9s ease-in-out infinite;
}
.player-card[data-state="playing"] .eq i:nth-child(2){ animation-delay: -0.2s; }
.player-card[data-state="playing"] .eq i:nth-child(3){ animation-delay: -0.45s; }
.player-card[data-state="playing"] .eq i:nth-child(4){ animation-delay: -0.1s; }
.player-card[data-state="playing"] .eq i:nth-child(5){ animation-delay: -0.6s; }

@keyframes eq{
    0%, 100%{ height: 20%; }
    50%{ height: 100%; }
}

.player-card input[type="range"]{
    flex: 0 0 110px;
    width: 110px;
    accent-color: #10261f;
    cursor: pointer;
}

/* iPhone/iPad no permiten cambiar el volumen desde la página: el JS agrega esta clase y se oculta el slider */
.player-card.no-volume input[type="range"]{ display: none; }

/* Reproductor de video (mismo ancho que el de audio) */
.video-card{
    max-width: 760px;
    margin: 20px auto 0;
    padding: 12px;
    background: #bfe3f5;
}

.video-frame{
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 26px 26px 26px 6px;
    overflow: hidden;
    background: #10261f;
}

.video-frame iframe{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Celulares/WebViews viejos sin aspect-ratio: sin esto el marco queda con alto 0 y el video no se ve */
@supports not (aspect-ratio: 16 / 9){
    .video-frame{ height: 0; padding-top: 56.25%; }
}

.video-empty{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 20px;
    color: #bfe3f5;
}

.video-empty svg{
    width: 52px;
    height: 52px;
    fill: none;
    stroke: #46ecd5;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-bottom: 6px;
}

.video-empty strong{ color: #fff; font-size: 1.1em; font-weight: 600; }
.video-empty span{ font-size: 0.85em; font-weight: 300; }
.video-empty code{ color: #46ecd5; font-family: monospace; }

/* Servicios */
.grid{
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.grid .service{ grid-column: span 2; }
.grid .service:nth-child(4),
.grid .service:nth-child(5){ grid-column: span 3; }

.service{
    transition: transform 0.25s ease;
}

@media (hover: hover){
    .service:hover{
        transform: translateY(-4px);
    }
}

.service:nth-child(1){ background: #d2f6ef; }
.service:nth-child(2){ background: #46ecd5; }
.service:nth-child(3){ background: #bfe3f5; }
.service:nth-child(4){ background: #bfe3f5; }
.service:nth-child(5){ background: #d2f6ef; }

.service .icon{
    display: block;
    color: #10261f;
    margin-bottom: 22px;
}

.service .icon svg{
    display: block;
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service h4{
    font-size: 1.25em;
    font-weight: 600;
    color: #10261f;
    margin-bottom: 8px;
}

.service p{
    font-size: 0.95em;
    font-weight: 400;
    line-height: 1.65;
    color: #2b433c;
}

.badge{
    position: absolute;
    top: 30px;
    right: 30px;
    padding: 3px 12px;
    border-radius: 999px;
    border: 1.5px solid #10261f;
    font-size: 0.7em;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #10261f;
}

/* Retransmisión de video */
.relay{
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 36px;
    background: #bfe3f5;
}

.relay-text{
    flex: 1 1 320px;
}

.relay h3,
.cta h3{
    font-size: 1.6em;
    font-weight: 700;
    color: #10261f;
    margin-bottom: 8px;
}

.relay p,
.cta p{
    font-weight: 400;
    line-height: 1.65;
    color: #2b433c;
}

.relay-flow{
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.relay .arrow{
    font-size: 1.8em;
    color: #10261f;
}

.relay .targets{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.relay .node{
    display: inline-block;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 0.9em;
    font-weight: 500;
    color: #10261f;
    border: 1.5px solid #10261f;
    text-align: center;
}

.relay .node.source{
    background: #10261f;
    color: #fff;
    font-weight: 600;
    padding: 14px 26px;
}

/* Llamado a la acción */
.cta{
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 38px 40px;
    background: #fff;
}

.btn-cta{
    display: inline-block;
    padding: 14px 34px;
    border-radius: 999px;
    background: #ffb93b;
    color: #10261f;
    font-weight: 700;
    font-size: 1.05em;
    text-decoration: none;
    transition: background 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover){
    .btn-cta:hover{
        background: #ffa90f;
    }
}

.footer-note{
    margin-top: 48px;
    text-align: center;
    font-size: 0.85em;
    color: #bfe3f5;
}

.footer-note a{
    color: #46ecd5;
    text-decoration: none;
}

.footer-note a:hover{
    text-decoration: underline;
}

@media (max-width: 900px){
    .grid{ grid-template-columns: repeat(2, 1fr); }
    .grid .service,
    .grid .service:nth-child(4){ grid-column: span 1; }
    .grid .service:nth-child(5){ grid-column: span 2; }
}

@media (max-width: 700px){
    /* Header: con 100px de padding y left:-60px el logo se salía de la pantalla */
    #header{ padding: 16px 18px; }
    #header .logo{ top: 0; left: 0; }
    #header .logo img{ height: 56px; }
    #btn{ font-size: 0.95em; letter-spacing: 1px; padding: 10px 22px; max-width: 86%; text-align: center; }
    .btn-cta{ display: block; width: 100%; text-align: center; }
    .sec{ padding: 70px 18px 44px; }
    .sec h2{ font-size: 2.5em; }
    .card{ padding: 24px; border-radius: 28px 28px 28px 10px; }
    .player-card{ border-radius: 36px; gap: 12px; padding: 10px 18px 10px 10px; }
    .player-card input[type="range"], .eq{ display: none; }
    .video-card{ padding: 10px; }
    .video-frame{ border-radius: 20px 20px 20px 5px; }
    .relay, .cta{ padding: 26px 22px; }
    .grid{ grid-template-columns: 1fr; }
    .grid .service,
    .grid .service:nth-child(4),
    .grid .service:nth-child(5){ grid-column: span 1; }
}
