/* =========================================================
   ECOMAREA · Estilos del sitio
   Paleta y tipografías tomadas del manual de marca.
   ========================================================= */

@font-face {
    font-family: "Bing Boss";
    src: url("../assets/fuentes/BingBoss.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Poppins autoalojada (subconjunto latino: cubre tildes y ñ), sin depender de Google Fonts */
@font-face {
    font-family: "Poppins";
    src: url("../assets/fuentes/Poppins-300.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Poppins";
    src: url("../assets/fuentes/Poppins-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Poppins";
    src: url("../assets/fuentes/Poppins-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Poppins";
    src: url("../assets/fuentes/Poppins-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Mientras llega Poppins se usa Arial o Roboto ajustada a sus medidas: el texto ocupa casi lo mismo
   y la página no salta al cambiar de fuente (en el celular ese salto se sentía al hacer scroll) */
@font-face {
    font-family: "Poppins Fallback";
    src: local("Arial"), local("Roboto"), local("Helvetica Neue");
    font-weight: 100 900;
    size-adjust: 112.16%;
    ascent-override: 93.62%;
    descent-override: 31.21%;
    line-gap-override: 8.92%;
}

:root {
    /* Marca */
    --navy: #174d77;
    --azul: #3071a3;
    --menta: #b1d4d0;
    --crema: #f5eede;
    --carbon: #2e2d2c;
    --blanco: #ffffff;

    /* Tipografía */
    --fuente-display: "Bing Boss", "Poppins", system-ui, sans-serif;
    --fuente-texto: "Poppins", "Poppins Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Medidas */
    --header-alto: 78px;
    --header-alto-scroll: 62px;
    --radio: 18px;
    --radio-grande: 28px;
    --espacio-seccion: clamp(72px, 10vw, 140px);
    --gutter: clamp(16px, 5vw, 48px);

    /* Movimiento */
    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-alto-scroll);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--fuente-texto);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--carbon);
    background: var(--blanco);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.menu-abierto {
    overflow: hidden;
}

/* Evita que las animaciones laterales ensanchen la página en móvil */
main,
footer {
    overflow-x: clip;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button,
input,
textarea {
    font: inherit;
    color: inherit;
}

h1,
h2,
h3 {
    font-family: var(--fuente-display);
    font-weight: 400;
    line-height: 1;
    letter-spacing: .01em;
}

h2 {
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
}

h3 {
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
}

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Anillo doble (navy + menta): se distingue tanto sobre fondos claros como sobre el azul */
:focus-visible {
    outline: 3px solid var(--menta);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px var(--navy);
}

/* Enlace para saltar al contenido: oculto hasta que recibe el foco del teclado */
.saltar {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 200;
    padding: 12px 20px;
    border-radius: 99px;
    background: var(--menta);
    color: var(--navy);
    font-weight: 600;
    transform: translateY(-250%);
    transition: transform .25s var(--ease);
}

.saltar:focus-visible {
    transform: none;
    outline-color: var(--navy);
}

/* El destino del salto recibe el foco sin dibujar un contorno alrededor de toda la página */
main:focus {
    outline: none;
}

/* ---------- Íconos de marca ---------- */
.icono {
    width: 1em;
    height: 1em;
    fill: currentColor;
    flex: none;
}

.icono--azul {
    color: var(--azul);
}

.icono--menta {
    color: var(--menta);
}

.flecha path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Patrón de marca ---------- */
.con-patron {
    position: relative;
    isolation: isolate;
}

.con-patron::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url("../assets/iconos/patron-azul.svg");
    background-size: var(--patron-ancho, 420px) auto;
    background-repeat: repeat;
    opacity: var(--patron-opacidad, .14);
    pointer-events: none;
}

/* ---------- Fondo azul con patrón de la foto ancha ---------- */
.ph-img {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: var(--menta);
    --patron-ancho: 300px;
    --patron-opacidad: .22;
}

.ph-img--oscuro {
    background: var(--navy);
    --patron-opacidad: .5;
}

/* ---------- Botones y enlaces ---------- */
.boton {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 34px;
    border: 0;
    border-radius: 99px;
    background: var(--azul);
    color: var(--crema);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .06em;
    cursor: pointer;
    transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}

.boton:hover {
    background: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -14px rgba(23, 77, 119, .7);
}

.boton .flecha {
    width: 18px;
    height: 18px;
    transition: transform .35s var(--ease);
}

.boton:hover .flecha {
    transform: translateX(5px);
}

.boton--menta {
    background: var(--menta);
    color: var(--navy);
}

.boton--menta:hover {
    background: var(--crema);
    color: var(--navy);
}

.boton--crema {
    background: var(--crema);
    color: var(--navy);
}

.boton--crema:hover {
    background: var(--menta);
    color: var(--navy);
}

.boton:disabled {
    cursor: progress;
    opacity: .85;
}

.enlace {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 4px;
    border-bottom: 2px solid currentColor;
    color: var(--azul);
    font-weight: 600;
    letter-spacing: .04em;
    transition: color .3s var(--ease);
}

.enlace .flecha {
    width: 18px;
    height: 18px;
    transition: transform .35s var(--ease);
}

.enlace:hover {
    color: var(--navy);
}

.enlace:hover .flecha {
    transform: translateX(5px);
}

/* =========================================================
   00 · MENÚ
   ========================================================= */
.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-alto);
    background: var(--navy);
    transition: height .45s var(--ease), box-shadow .45s var(--ease);
}

.header.is-scrolled {
    height: var(--header-alto-scroll);
    box-shadow: 0 12px 30px -14px rgba(10, 30, 50, .55);
}

.header__inner {
    max-width: 1320px;
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* El logo empuja el resto a la derecha: menú e idioma en escritorio, idioma y botón de menú en el celular */
.header__logo {
    position: relative;
    z-index: 2;
    margin-right: auto;
}

.header__logo img {
    width: auto;
    height: 36px;
    transition: height .45s var(--ease);
}

.is-scrolled .header__logo img {
    height: 30px;
}

.nav__lista {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.6vw, 40px);
}

.nav__link {
    position: relative;
    display: inline-block;
    padding: 6px 0;
    color: var(--crema);
    font-size: .92rem;
    font-weight: 400;
    letter-spacing: .02em;
    transition: color .3s var(--ease);
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--menta);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .45s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
    color: var(--menta);
}

.nav__link:hover::after,
.nav__link.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Selector de idioma: ES | EN, con el actual resaltado. Queda visible sobre el menú móvil abierto */
.idioma {
    position: relative;
    z-index: 2;
    flex: none;
    display: flex;
    gap: 2px;
    padding: 3px;
    border: 1.5px solid rgba(177, 212, 208, .45);
    border-radius: 99px;
}

.idioma__opcion {
    padding: 5px 11px;
    border-radius: 99px;
    color: var(--crema);
    font-size: .74rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .12em;
    transition: background-color .3s var(--ease), color .3s var(--ease);
}

.idioma__opcion:hover {
    color: var(--menta);
}

.idioma__opcion[aria-current] {
    background: var(--menta);
    color: var(--navy);
}

.burger {
    display: none;
}

/* =========================================================
   01 · PORTADA
   ========================================================= */
.hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(580px, 92vh, 920px);
    min-height: clamp(580px, 92svh, 920px);
    display: grid;
    place-items: center;
    padding: calc(var(--header-alto) + 56px) var(--gutter) 110px;
    overflow: hidden;
    color: var(--crema);
    text-align: center;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--navy);
}

/* Capas: video → transparencia azul → patrón de íconos en movimiento */
.hero__media.con-patron::before {
    z-index: 0;
    background-size: 420px 437.56px;
    --patron-opacidad: .3;
    animation: deriva 90s linear infinite;
}

/* js/main.js marca la portada cuando sale de la pantalla: no gasta batería moviendo lo que no se ve */
.hero.is-fuera .hero__media::before {
    animation-play-state: paused;
}

.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(23, 77, 119, .82) 0%, rgba(23, 77, 119, .6) 60%, rgba(23, 77, 119, .78) 100%);
}

/* Video de YouTube a pantalla completa, recortado como una foto de fondo.
   Se agranda un poco para esconder el título y los controles de YouTube. */
.hero__video {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    container-type: size;
    opacity: 0;
    transition: opacity 1.2s var(--ease);
    pointer-events: none;
}

/* Espera un momento antes de aparecer: YouTube muestra un ícono al arrancar */
.hero__video.is-reproduciendo {
    opacity: 1;
    transition-delay: 1s;
}

.hero__video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100cqw, 100cqh * 16 / 9);
    height: max(100cqh, 100cqw * 9 / 16);
    border: 0;
    transform: translate(-50%, -50%) scale(1.2);
}

.hero__contenido {
    width: 100%;
    max-width: 960px;
}

.hero__titulo {
    margin-bottom: 30px;
    color: var(--menta);
    font-size: clamp(3.2rem, 13vw, 8.5rem);
    line-height: .85;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero__texto {
    max-width: 620px;
    margin: 0 auto;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.6;
}

.hero__acciones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 30px;
    width: 26px;
    height: 42px;
    margin-left: -13px;
    border: 2px solid rgba(245, 238, 222, .6);
    border-radius: 99px;
}

.hero__scroll span {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--menta);
    animation: rueda 1.8s var(--ease) infinite;
}

/* Entrada de la portada al cargar */
.hero__titulo .letra {
    display: inline-block;
    animation: ola 1s var(--ease-out) both;
    animation-delay: calc(.15s + var(--i) * .07s);
}

.js .hero__texto {
    animation: entrar 1s var(--ease-out) .75s both;
}

.js .hero__acciones {
    animation: entrar 1s var(--ease-out) .9s both;
}

.js .hero__scroll {
    animation: aparecer 1s var(--ease) 1.4s both;
}

/* Franjas de color del manual */
.franjas {
    height: clamp(26px, 3.6vw, 48px);
    background: linear-gradient(110deg,
            var(--menta) 0 18%,
            var(--azul) 18% 38%,
            var(--navy) 38% 58%,
            var(--crema) 58% 79%,
            var(--carbon) 79% 100%);
}

/* En móvil y tablet no se muestran */
@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
    .franjas {
        display: none;
    }
}

/* =========================================================
   SECCIONES GENERALES
   ========================================================= */
.seccion {
    position: relative;
    padding: var(--espacio-seccion) var(--gutter);
}

.seccion--sin-arriba {
    padding-top: 0;
}

.seccion--blanco {
    background: var(--blanco);
}

.seccion--navy {
    background: var(--navy);
    color: var(--crema);
}

.seccion--crema {
    --patron-opacidad: .1;
    background: var(--crema);
}

.seccion--menta {
    background: var(--menta);
    color: var(--navy);
}

.titulo-seccion {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.titulo-seccion h2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .3em;
    margin-bottom: 28px;
    color: var(--navy);
}

.seccion--navy .titulo-seccion h2 {
    color: var(--crema);
}

.titulo-seccion h2 .icono {
    width: .95em;
    height: .95em;
}

.titulo-seccion .boton,
.titulo-seccion .enlace {
    margin-top: 40px;
}

/* =========================================================
   02 · TRANSPORTE
   ========================================================= */
/* Secciones que solo llevan el título: menos aire antes de su contenido */
.seccion--abajo-corto {
    padding-bottom: clamp(48px, 6vw, 80px);
}

/* Las tarjetas y ventanas de rutas comparten estilos con Paquetes (03c) */
.seccion--sin-arriba>.cartas {
    margin-top: 0;
}

/* Ruta en Poppins: Bing Boss no tiene tildes (San Cristóbal) */
.carta__titulo.carta__titulo--ruta,
.ventana__titulo.ventana__titulo--ruta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .15em .4em;
    font-family: var(--fuente-texto);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
}

.carta__titulo.carta__titulo--ruta {
    font-size: clamp(1.25rem, 1.9vw, 1.5rem);
}

.ventana__titulo.ventana__titulo--ruta {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

.carta__titulo--ruta svg,
.ventana__titulo--ruta svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: var(--azul);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ventana__titulo--ruta svg {
    stroke: var(--menta);
}

/* Ventana de ruta: fotos de la lancha y datos del viaje lado a lado */
.ruta {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
    gap: clamp(28px, 4vw, 56px);
    margin-top: clamp(32px, 4vw, 48px);
}

.ruta .datos {
    margin-top: 0;
}

.ruta .ventana__subtitulo {
    margin-top: 0;
}

/* ---------- Textos comunes de las secciones ---------- */
.antetitulo {
    margin-bottom: 16px;
    color: var(--azul);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.titulo-seccion__texto {
    font-size: 1.05rem;
}

/* Cifras grandes de las ventanas: días y noches, u horarios de salida */
.cifras {
    display: flex;
}

.hora {
    display: grid;
    gap: 8px;
    padding-right: clamp(22px, 3vw, 40px);
}

.hora+.hora {
    padding-left: clamp(22px, 3vw, 40px);
    border-left: 1px solid rgba(177, 212, 208, .3);
}

.hora__num {
    color: var(--menta);
    font-family: var(--fuente-display);
    font-size: clamp(2.4rem, 3.6vw, 3rem);
    line-height: .9;
}

/* Mismo ancho para 6:00 y 7:00, así los divisores quedan alineados entre tramos */
.hora:first-child .hora__num {
    min-width: 2.1em;
}

.hora__txt {
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .8;
}

/* Datos del viaje con ícono */
.datos {
    display: grid;
    gap: 14px;
    margin-top: 30px;
}

.datos li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    line-height: 1.55;
}

.datos svg {
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    fill: none;
    stroke: var(--azul);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Lo que no incluye el pasaje, en recuadro para que se vea junto a los datos del viaje */
.ruta__no {
    margin-top: 28px;
    padding: 22px 24px;
    border-radius: var(--radio);
    background: var(--crema);
}

.ruta__no .incluye__titulo {
    margin-bottom: 14px;
    font-size: 1.05rem;
}

.ruta__no .lista {
    gap: 8px;
}

/* =========================================================
   03c · PAQUETES
   ========================================================= */
/* Tarjetas: una por paquete, centradas aunque haya pocas */
.cartas {
    max-width: 1000px;
    margin: clamp(48px, 6vw, 80px) auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(24px, 3vw, 40px);
}

.cartas>li {
    display: flex;
    flex: 1 1 340px;
    max-width: 470px;
}

/* Paquetes: hasta tres tarjetas por fila, todas del mismo ancho */
.cartas--paquetes {
    max-width: 1240px;
}

/* 384 px: el título más largo («Paquete Explorador») cabe en una línea */
.cartas--paquetes>li {
    flex: 0 1 384px;
}

/* Precio arriba y botón abajo en todas, aunque algún precio sea corto */
.cartas--paquetes .carta__pie {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.carta {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radio);
    background: var(--crema);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

.carta:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 50px -30px rgba(23, 77, 119, .55);
}

.carta__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--menta);
}

.carta__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .9s var(--ease-out);
}

/* Fotos con el letrero a la izquierda: el recorte no lo corta */
.carta__media .carta__foto--izquierda {
    object-position: 20% 50%;
}

.carta:hover .carta__media img {
    transform: scale(1.06);
}

/* Sobre la foto: estilo de viaje arriba y duración abajo */
.carta__estilo,
.carta__duracion {
    position: absolute;
    left: 16px;
    padding: 6px 13px;
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    line-height: 1.3;
    text-transform: uppercase;
}

.carta__estilo {
    top: 16px;
    background: var(--navy);
    color: var(--crema);
}

.carta__duracion {
    bottom: 16px;
    background: var(--menta);
    color: var(--navy);
}

.carta__cuerpo {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(24px, 2.8vw, 32px);
}

.carta__titulo {
    color: var(--navy);
    font-size: clamp(1.7rem, 2.6vw, 2.1rem);
}

/* Lugar con ícono de ubicación (tarjeta y cabecera de la ventana) */
.lugar {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    color: var(--azul);
    font-size: .92rem;
    font-weight: 500;
    line-height: 1.4;
}

.lugar svg {
    flex: none;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.carta .lista {
    gap: 8px;
    margin: 20px 0 26px;
    font-size: .95rem;
}

/* Aire entre el contenido y el pie, aunque la tarjeta sea la más alta de su fila */
.carta__cuerpo>:nth-last-child(2) {
    margin-bottom: 24px;
}

.carta__pie {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid rgba(23, 77, 119, .15);
}

.carta__precio {
    display: grid;
    line-height: 1.2;
}

.carta__precio span {
    color: var(--azul);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.carta__precio strong {
    margin-top: 6px;
    color: var(--navy);
    font-family: var(--fuente-display);
    font-size: clamp(1.6rem, 2.4vw, 1.9rem);
    font-weight: 400;
    line-height: 1;
}

.carta__precio small {
    margin-top: 4px;
    font-size: .8rem;
    opacity: .75;
}

.carta__boton {
    padding: 14px 24px;
}

/* El botón se extiende a toda la tarjeta: un clic en cualquier parte abre el paquete */
.carta__boton::after {
    content: "";
    position: absolute;
    inset: 0;
}

/* La que se eleva es la tarjeta; el botón solo cambia de color */
.carta__boton:hover {
    transform: none;
    box-shadow: none;
}

.carta:hover .carta__boton {
    background: var(--navy);
}

.carta:hover .carta__boton .flecha {
    transform: translateX(5px);
}

.carta__boton:focus-visible {
    outline-color: var(--navy);
}

/* Sin JavaScript, el enlace de la tarjeta lleva a su ventana, que se muestra dentro de la página */
html:not(.js) .ventana:target {
    display: flex;
    flex-direction: column;
    position: static;
    width: auto;
    height: auto;
    margin: 32px 0 0;
    overflow: visible;
}

html:not(.js) .ventana:target .ventana__cerrar {
    display: none;
}

/* ---------- Ventana del paquete ----------
   Panel centrado que se desplaza por dentro, con la barra
   de consulta siempre a la vista. js/main.js la abre y cierra. */
.ventana {
    --margen: clamp(20px, 4.5vw, 56px);
    width: min(1120px, calc(100% - 48px));
    max-width: none;
    height: calc(100vh - 48px);
    height: calc(100dvh - 48px);
    max-height: none;
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--radio-grande);
    background: var(--blanco);
    color: var(--carbon);
    box-shadow: 0 40px 90px -30px rgba(8, 30, 48, .7);
}

.ventana[open] {
    display: flex;
    flex-direction: column;
    animation: modal-entra .6s var(--ease-out);
}

.ventana::backdrop {
    background: rgba(16, 52, 80, .72);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.ventana[open]::backdrop {
    animation: fondo-entra .4s var(--ease);
}

.ventana__cerrar {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1.5px solid rgba(245, 238, 222, .5);
    border-radius: 50%;
    background: var(--navy);
    color: var(--crema);
    cursor: pointer;
    transition: background-color .35s var(--ease), color .35s var(--ease);
}

.ventana__cerrar:hover {
    background: var(--menta);
    color: var(--navy);
}

.ventana__cerrar svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.ventana__contenido {
    flex: 1;
    min-height: 0;
    padding: 0 var(--margen) clamp(48px, 6vw, 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Cabecera azul con el patrón: nombre, lugar y duración */
.ventana__cabecera {
    --patron-opacidad: .12;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px 48px;
    margin-inline: calc(var(--margen) * -1);
    padding: clamp(40px, 5vw, 60px) var(--margen) clamp(32px, 4vw, 48px);
    padding-right: max(var(--margen), 84px);
    background: var(--navy);
    color: var(--crema);
}

.ventana__cabecera .antetitulo {
    margin-bottom: 14px;
    color: var(--menta);
}

.ventana__titulo {
    font-size: clamp(2.3rem, 4.6vw, 3.5rem);
}

.ventana__cabecera .lugar {
    margin-top: 16px;
    color: var(--menta);
    font-size: 1rem;
}

.ventana__intro {
    max-width: 780px;
    margin-top: clamp(28px, 3.4vw, 40px);
    font-size: 1.05rem;
}

/* Rótulo con una línea que llega hasta el borde */
.ventana__subtitulo {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: clamp(40px, 5vw, 60px) 0 clamp(28px, 3.4vw, 40px);
    color: var(--azul);
    font-family: var(--fuente-texto);
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.ventana__subtitulo::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(23, 77, 119, .15);
}

/* Barra inferior: resumen y consulta por WhatsApp */
.ventana__barra {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px var(--margen);
    border-top: 1px solid rgba(23, 77, 119, .12);
    background: var(--crema);
}

.ventana__resumen {
    display: grid;
    line-height: 1.35;
}

.ventana__resumen strong {
    color: var(--navy);
    font-weight: 600;
}

.ventana__resumen span {
    font-size: .88rem;
    opacity: .8;
}

.ventana__barra .boton {
    flex: none;
    padding: 14px 26px;
}

.boton__wa {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Itinerario día a día: fotos y texto lado a lado, alternando el lado de las fotos */
.itinerario {
    display: grid;
    gap: clamp(44px, 5.5vw, 72px);
}

.dia {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(24px, 3.4vw, 48px);
}

.dia:nth-child(even) .mosaico {
    order: 2;
}

.mosaico {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mosaico img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 14px;
    background: var(--menta);
}

/* Una o tres fotos: la primera ocupa todo el ancho */
.mosaico img:first-child:nth-last-child(odd) {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
}

/* Fotos verticales o cuadradas debajo de la principal */
.mosaico--altas img:not(:first-child) {
    aspect-ratio: 4 / 5;
}

/* Dos fotos a la misma altura, la segunda vertical y más angosta */
.mosaico--vertical {
    grid-template-columns: 2.2fr 1fr;
    grid-template-rows: minmax(0, 1fr);
    aspect-ratio: 2 / 1;
}

.mosaico--vertical img {
    aspect-ratio: auto;
}

.dia__num {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 12px;
    border-radius: 99px;
    background: var(--azul);
    color: var(--crema);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.dia__titulo {
    margin-bottom: 12px;
    color: var(--navy);
    font-size: clamp(1.15rem, 1.7vw, 1.35rem);
    font-weight: 600;
    line-height: 1.3;
}

.dia__texto>p:not(.dia__num) {
    line-height: 1.65;
}

.dia__texto>p:not(.dia__num)+p {
    margin-top: 12px;
}

/* Dónde se duerme esa noche (paquetes de dos islas) */
.dia__texto>p.dia__noche {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--azul);
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.4;
}

.dia__noche svg {
    flex: none;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.etiquetas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.etiquetas li {
    padding: 5px 12px;
    border-radius: 99px;
    background: rgba(177, 212, 208, .45);
    color: var(--navy);
    font-size: .8rem;
    font-weight: 500;
}

/* Tarifas por persona */
.tarifas {
    max-width: 760px;
    margin: clamp(56px, 7vw, 96px) auto 0;
}

.tarifas .incluye__titulo,
.tarifas__nota {
    text-align: center;
}

.tarifas__tabla {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: center;
}

.tarifas__tabla th,
.tarifas__tabla td {
    padding: 16px 12px;
    border-bottom: 1px solid rgba(23, 77, 119, .15);
}

.tarifas__tabla thead th {
    border-bottom: 0;
    background: var(--crema);
    color: var(--azul);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.tarifas__tabla thead th:first-child {
    border-radius: 12px 0 0 12px;
}

.tarifas__tabla thead th:last-child {
    border-radius: 0 12px 12px 0;
}

.tarifas__tabla th:first-child {
    text-align: left;
}

.tarifas__tabla tbody th {
    color: var(--navy);
    font-weight: 600;
}

.tarifas__tabla td {
    color: var(--navy);
    font-family: var(--fuente-display);
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    line-height: 1;
}

.tarifas__nota {
    margin-top: 16px;
    font-size: .85rem;
    opacity: .75;
}

/* Incluye / No incluye */
.incluye {
    max-width: 1180px;
    margin: clamp(56px, 7vw, 96px) auto 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(20px, 2.4vw, 32px);
}

.incluye__col {
    padding: clamp(28px, 3.4vw, 40px);
    border-radius: var(--radio);
    background: var(--crema);
}

.incluye__titulo {
    margin-bottom: 22px;
    color: var(--navy);
    font-family: var(--fuente-texto);
    font-size: clamp(1.1rem, 1.6vw, 1.25rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
}

/* Listas con marca: ✓ incluye, ✕ no incluye, punto para condiciones */
.lista {
    display: grid;
    gap: 12px;
}

.lista li {
    position: relative;
    padding-left: 30px;
    line-height: 1.55;
}

.lista li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: .62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--azul);
}

.lista--si li::before,
.lista--no li::before {
    left: 0;
    top: .2em;
    width: 18px;
    height: 18px;
    border-radius: 0;
    -webkit-mask: var(--marca) center / contain no-repeat;
    mask: var(--marca) center / contain no-repeat;
}

.lista--si li::before {
    --marca: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 12.5l5 5L19.5 7' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background: var(--azul);
}

.lista--no li::before {
    --marca: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
    background: var(--carbon);
    opacity: .55;
}

/* Información importante: avisos sobre itinerario, precios y fechas */
.importante {
    max-width: 880px;
    margin: clamp(48px, 6vw, 80px) auto 0;
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid rgba(23, 77, 119, .15);
    border-radius: var(--radio);
}

.importante strong {
    color: var(--navy);
    font-weight: 600;
}

/* Condiciones de reserva en desplegables */
.condiciones {
    max-width: 880px;
    margin: clamp(48px, 6vw, 80px) auto 0;
}

.condiciones .incluye__titulo {
    text-align: center;
}

.desplegable {
    border-top: 1px solid rgba(23, 77, 119, .15);
}

.desplegable:last-child {
    border-bottom: 1px solid rgba(23, 77, 119, .15);
}

.desplegable summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 4px;
    color: var(--navy);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.desplegable summary::-webkit-details-marker {
    display: none;
}

/* Signo + que gira a × al abrir */
.desplegable summary::after {
    content: "";
    flex: none;
    width: 34px;
    height: 34px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    background:
        linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
        linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
    transition: transform .35s var(--ease), background-color .35s var(--ease);
}

.desplegable summary:hover::after {
    background-color: rgba(177, 212, 208, .45);
}

.desplegable[open] summary::after {
    transform: rotate(45deg);
}

.desplegable summary:focus-visible {
    outline: 2px solid var(--azul);
    outline-offset: 2px;
    border-radius: 8px;
}

.desplegable .lista {
    padding: 0 4px 24px;
}

/* =========================================================
   03d · VIVE LA EXPERIENCIA
   ========================================================= */
/* Título: ícono, "Vive la experiencia" y el logo principal, uno debajo del otro */
.titulo-experiencia h2 {
    flex-direction: column;
    gap: 12px;
}

.titulo-experiencia h2 .icono {
    width: 1.2em;
    height: 1.2em;
}

/* El SVG va recortado al contorno de las letras, sin aire arriba ni abajo */
.titulo-experiencia__logo {
    width: min(100%, clamp(360px, 62vw, 720px));
    height: auto;
    margin-top: 2px;
}

/* Sin JS o con menos movimiento: las filas se deslizan con el dedo */
.carrusel {
    --alto: clamp(190px, 24vw, 330px);
    --hueco: clamp(12px, 1.4vw, 18px);
    display: grid;
    gap: var(--hueco);
    margin: clamp(48px, 6vw, 80px) calc(var(--gutter) * -1) 0;
    padding: 6px var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
}

.carrusel__fila {
    display: flex;
    width: max-content;
}

.carrusel__pista {
    display: flex;
    gap: var(--hueco);
    padding-right: var(--hueco);
}

.carrusel__pista li {
    scroll-snap-align: start;
}

.carrusel__foto {
    display: block;
    height: var(--alto);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--radio);
    background: var(--menta);
    cursor: zoom-in;
}

/* Con mouse la foto se agranda al pasar por encima: la capa propia evita que Safari pinte fuera de las esquinas redondeadas */
@media (hover: hover) {
    .carrusel__foto {
        transform: translateZ(0);
    }
}

.carrusel__foto img {
    width: auto;
    height: 100%;
    transition: transform .9s var(--ease-out);
}

.carrusel__foto:hover img {
    transform: scale(1.06);
}

.carrusel__foto:focus-visible {
    outline: 3px solid var(--azul);
    outline-offset: 3px;
}

/* Animado: cada fila lleva su copia y se desplaza media longitud en bucle */
.carrusel--animado {
    padding-inline: 0;
    overflow: hidden;
    overflow: clip;
    scroll-snap-type: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.carrusel--animado .carrusel__fila {
    animation: desfile var(--duracion, 90s) linear infinite;
}

.carrusel--animado .carrusel__fila--inversa {
    animation-direction: reverse;
}

/* Se detiene bajo el mouse, con el teclado y fuera de la vista */
.carrusel--animado .carrusel__fila:hover,
.carrusel--animado .carrusel__fila:focus-within,
.carrusel.is-pausado .carrusel__fila {
    animation-play-state: paused;
}

@keyframes desfile {
    to {
        transform: translateX(-50%);
    }
}

/* Visor de fotos a pantalla completa */
.visor {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(16, 52, 80, .96);
    color: var(--crema);
}

.visor[open] {
    display: grid;
    place-items: center;
}

.visor::backdrop {
    background: rgba(16, 52, 80, .6);
}

/* js/main.js marca el <html> mientras el visor o un paquete están abiertos */
html.visor-abierto,
html.ventana-abierta {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.visor__figura {
    display: grid;
    justify-items: center;
    gap: 16px;
    padding: 72px clamp(16px, 9vw, 110px);
}

.visor__img {
    max-width: 100%;
    max-height: calc(100vh - 190px);
    max-height: calc(100dvh - 190px);
    border-radius: var(--radio);
    opacity: 0;
    transform: scale(.98);
    transition: opacity .4s var(--ease), transform .5s var(--ease-out);
}

.visor__img.is-lista {
    opacity: 1;
    transform: none;
}

.visor__contador {
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .16em;
    opacity: .8;
}

.visor__boton {
    position: absolute;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1.5px solid rgba(245, 238, 222, .45);
    border-radius: 50%;
    background: rgba(23, 77, 119, .55);
    color: var(--crema);
    cursor: pointer;
    transition: background-color .35s var(--ease), color .35s var(--ease);
}

.visor__boton:hover {
    background: var(--menta);
    color: var(--navy);
}

.visor__boton:focus-visible {
    outline: 2px solid var(--menta);
    outline-offset: 3px;
}

.visor__boton svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.visor__cerrar {
    top: 18px;
    right: 18px;
}

.visor__nav {
    top: 50%;
    transform: translateY(-50%);
}

.visor__nav--prev {
    left: 18px;
}

.visor__nav--sig {
    right: 18px;
}

/* =========================================================
   04–05 · OPINIONES
   ========================================================= */
.opiniones {
    padding-bottom: clamp(56px, 7vw, 96px);
}

.testimonios {
    position: relative;
    background: var(--navy);
}

.testimonios__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(177, 212, 208, .22);
}

.testimonio {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: clamp(40px, 4.5vw, 64px) clamp(28px, 3.5vw, 52px);
    color: var(--crema);
    transition: background-color .45s var(--ease);
}

.testimonio+.testimonio {
    border-left: 1px solid rgba(177, 212, 208, .22);
}

/* Solo con mouse: en el celular, tras deslizar, el resaltado quedaría pegado */
@media (hover: hover) {
    .testimonio:hover {
        background: #1b5786;
    }
}

.testimonio__comilla {
    height: .42em;
    color: var(--menta);
    font-family: var(--fuente-display);
    font-size: 4.5rem;
    line-height: .8;
}

.testimonio__autor {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 10px;
}

.testimonio__estrellas {
    width: 104px;
    height: 19px;
    fill: var(--menta);
}

.testimonio__texto {
    font-size: 1rem;
    line-height: 1.75;
}

.testimonio__fuente {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(177, 212, 208, .2);
    color: var(--menta);
    font-size: 1rem;
    font-weight: 600;
}

.testimonio__nombre {
    font-weight: 600;
    line-height: 1.3;
}

.testimonio__meta {
    font-size: .8rem;
    line-height: 1.4;
    opacity: .7;
}

/* ---------- Rotación de reseñas (js/main.js) ----------
   Todas las tarjetas miden lo que la reseña más larga,
   así la sección no salta al cambiar de reseñas.        */
.testimonio {
    min-height: var(--alto-testimonio, 0);
}

.testimonio.is-oculto {
    display: none;
}

/* Copia invisible y sin alto donde js/main.js mide las tarjetas: no mueve nada de la página */
.testimonios__medidor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}

.testimonios__grid.midiendo .testimonio {
    display: flex;
    align-self: start;
    min-height: 0;
}

.testimonio.es-primera {
    border-left: 0;
}

/* Sale: se desvanece subiendo un poco */
.js .testimonios .testimonio.rota-fuera {
    opacity: 0;
    transform: translate3d(0, -18px, 0);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
    transition-delay: var(--retraso, 0s);
}

/* Entra: parte de abajo y aparece como el resto de la página */
.js .testimonios .testimonio.rota-antes {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
    transition: none;
}

/* Deslizar con el dedo cambia de reseña; el scroll vertical sigue siendo de la página */
.js .testimonios__grid {
    touch-action: pan-y;
}

/* ---------- Cambio manual: flechas y un punto por reseña (los crea js/main.js) ---------- */
.testimonios__controles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 3vw, 28px);
    padding: clamp(22px, 3vw, 32px) 16px clamp(40px, 5vw, 60px);
    border-top: 1px solid rgba(177, 212, 208, .22);
}

.testimonios__controles[hidden] {
    display: none;
}

.testimonios__flecha {
    display: grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1.5px solid rgba(177, 212, 208, .45);
    border-radius: 50%;
    background: transparent;
    color: var(--menta);
    cursor: pointer;
    transition: background-color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}

.testimonios__flecha svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (hover: hover) {
    .testimonios__flecha:hover {
        border-color: var(--menta);
        background: rgba(177, 212, 208, .16);
    }
}

.testimonios__flecha:active {
    transform: scale(.92);
}

.testimonios__puntos {
    display: flex;
    align-items: center;
}

/* Botón de 24 × 36 px para el dedo; el punto visible es más pequeño */
.testimonios__punto {
    display: grid;
    place-items: center;
    width: 24px;
    height: 36px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.testimonios__punto::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: rgba(177, 212, 208, .35);
    transition: width .45s var(--ease), background-color .45s var(--ease);
}

@media (hover: hover) {
    .testimonios__punto:hover::before {
        background: rgba(177, 212, 208, .7);
    }
}

.testimonios__punto.is-activo::before {
    width: 18px;
    background: var(--menta);
}

.testimonios__flecha:focus-visible,
.testimonios__punto:focus-visible {
    outline: 2px solid var(--menta);
    outline-offset: 2px;
    border-radius: 99px;
}

/* =========================================================
   06–07 · UBICACIÓN
   ========================================================= */
.direccion {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    padding: 12px 22px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .7);
    color: var(--navy);
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
}

.direccion svg {
    flex: none;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--azul);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.direccion__texto span+span::before {
    content: "· ";
}

/* La dirección ya separa el enlace del texto */
/* Dirección y horario, uno junto al otro (o apilados si no caben) */
.visita {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

.visita .direccion {
    margin-top: 0;
}

/* La dirección y el horario ya separan el enlace del texto */
.titulo-seccion .visita + .enlace {
    display: flex;
    width: fit-content;
    margin: 28px auto 0;
}

.foto-ancha {
    --p: 1;
    position: relative;
    aspect-ratio: 1920 / 820;
    overflow: hidden;
    background: var(--blanco);
    clip-path: inset(calc((1 - var(--p)) * 7%) calc((1 - var(--p)) * 9%) round calc((1 - var(--p)) * 40px));
}

.js .foto-ancha {
    --p: 0;
}

.foto-ancha .ph-img {
    position: absolute;
    inset: 0;
    transform: scale(calc(1.18 - var(--p) * .18));
}

/* Pantalla dividida: dos fotos sobre el fondo azul con íconos */
.foto-ancha__dividida {
    display: grid;
    grid-template-columns: 1fr 1fr;
    place-items: stretch;
    gap: clamp(6px, .8vw, 12px);
}

.foto-ancha__dividida figure {
    min-height: 0;
    overflow: hidden;
}

.foto-ancha__dividida img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Encuadre: que no se corten el letrero de la oficina ni los sombreros */
.foto-ancha__dividida figure:first-child img {
    object-position: 50% 8%;
}

.foto-ancha__dividida figure+figure img {
    object-position: 50% 40%;
}

/* =========================================================
   08 · EQUIPO
   ========================================================= */
.equipo {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: clamp(40px, 7vw, 110px);
}

.equipo__logo {
    display: grid;
    place-items: center;
}

.equipo__logo img {
    width: 100%;
    max-width: 380px;
}

.equipo__texto h2 {
    margin-bottom: 28px;
    color: var(--navy);
}

.equipo__texto>p:not(.antetitulo)+p {
    margin-top: 14px;
}

.hechos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
    padding-top: 26px;
    border-top: 1px solid rgba(23, 77, 119, .15);
}

.hechos li {
    display: grid;
    gap: 4px;
    line-height: 1.4;
}

.hechos strong {
    color: var(--navy);
    font-weight: 600;
}

.hechos span {
    font-size: .88rem;
}

.equipo__texto .boton {
    margin-top: 40px;
}

/* =========================================================
   09 · DIFERENCIALES
   ========================================================= */
.diferenciales {
    max-width: 1200px;
    margin: clamp(48px, 6vw, 80px) auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 2.4vw, 32px);
}

.diferencial {
    padding: 36px 28px 40px;
    border-radius: var(--radio);
    background: rgba(245, 238, 222, .5);
    color: var(--navy);
    transition: background-color .45s var(--ease), box-shadow .45s var(--ease);
}

.diferencial:hover {
    background: var(--crema);
    box-shadow: 0 22px 40px -26px rgba(23, 77, 119, .55);
}

.diferencial .icono {
    width: 54px;
    height: 54px;
    margin-bottom: 24px;
    color: var(--azul);
    transition: transform .6s var(--ease-out);
}

.diferencial:hover .icono {
    transform: translateY(-4px) rotate(-6deg);
}

/* En Poppins: Bing Boss no tiene tildes (Embarcación) */
.diferencial h3 {
    margin-bottom: 12px;
    font-family: var(--fuente-texto);
    font-size: clamp(1.15rem, 1.6vw, 1.3rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
}

.diferencial p {
    line-height: 1.6;
}

/* =========================================================
   10 · CONTACTO
   ========================================================= */
.contacto {
    position: relative;
    isolation: isolate;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(48px, 7vw, 100px) clamp(22px, 6vw, 80px);
    overflow: hidden;
    border-radius: var(--radio-grande);
    background: var(--navy);
    color: var(--crema);
}

.contacto__deco {
    position: absolute;
    left: -70px;
    bottom: -80px;
    z-index: -1;
    width: clamp(260px, 34vw, 460px);
    height: clamp(260px, 34vw, 460px);
    color: var(--menta);
    opacity: .1;
    animation: flotar 9s ease-in-out infinite alternate;
}

.contacto__inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.contacto h2 {
    margin-bottom: 24px;
    color: var(--crema);
}

.contacto__texto {
    max-width: 540px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.formulario {
    display: grid;
    gap: 18px;
    margin-top: 44px;
    text-align: left;
}

.formulario__fila {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.formulario__fila--tres {
    grid-template-columns: repeat(3, 1fr);
}

.campo input,
.campo textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1.5px solid rgba(177, 212, 208, .22);
    border-radius: 14px;
    background: rgba(245, 238, 222, .08);
    color: var(--crema);
    font-size: .95rem;
    font-weight: 300;
    resize: vertical;
    transition: border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}

.campo input::placeholder,
.campo textarea::placeholder {
    color: rgba(245, 238, 222, .8);
}

/* Sin flechas en el campo de personas */
.campo input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.campo input[type="number"]::-webkit-inner-spin-button,
.campo input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.campo input:focus,
.campo textarea:focus {
    outline: none;
    border-color: var(--menta);
    background: rgba(245, 238, 222, .12);
    box-shadow: 0 0 0 4px rgba(177, 212, 208, .15);
}

.formulario__acciones {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.formulario__nota {
    color: var(--menta);
    font-size: .85rem;
}

.formulario__nota.es-error {
    color: #f3b6a6;
}

.formulario__trampa {
    display: none;
}

.campo [aria-invalid="true"] {
    border-color: #f3b6a6;
}

.cargando {
    display: none;
    width: 16px;
    height: 16px;
    border: 2.5px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: girar .8s linear infinite;
}

.enviando .cargando {
    display: inline-block;
}

.enviando .flecha {
    display: none;
}

/* =========================================================
   11 · PIE DE PÁGINA
   ========================================================= */
.footer {
    --patron-opacidad: .05;
    padding: clamp(64px, 8vw, 110px) var(--gutter);
    background: var(--crema);
    color: var(--navy);
}

.footer__grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 48px;
}

.footer__logo img {
    width: 190px;
}

.footer__col h3 {
    display: flex;
    align-items: center;
    gap: .35em;
    margin-bottom: 22px;
    font-size: 1.6rem;
}

.footer__datos {
    display: grid;
    gap: 4px;
    font-size: .95rem;
    font-style: normal;
    line-height: 1.7;
}

.footer__enlace {
    margin-top: 18px;
    font-size: .9rem;
}

.redes {
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.footer__col h3+.redes {
    margin-top: 0;
}

.redes a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--crema);
    transition: background-color .3s var(--ease), transform .3s var(--ease);
}

.redes a:hover {
    background: var(--azul);
    transform: translateY(-3px);
}

.redes svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.redes svg .lleno {
    fill: currentColor;
    stroke: none;
}

/* 12 · Créditos */
.creditos {
    position: relative;
    padding: 22px var(--gutter);
    background: var(--carbon);
    color: rgba(245, 238, 222, .75);
    font-size: .82rem;
    text-align: center;
}

/* Botón flotante de WhatsApp */
.whatsapp {
    position: fixed;
    right: clamp(16px, 3vw, 32px);
    bottom: clamp(16px, 3vw, 32px);
    z-index: 90;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 14px 28px -10px rgba(0, 0, 0, .45);
    transition: transform .35s var(--ease);
    animation: aparecer-escala .6s var(--ease-out) 1.6s both;
}

.whatsapp::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid #25d366;
    border-radius: 50%;
    animation: pulso 2.4s var(--ease-out) 2.2s infinite;
}

.whatsapp:hover {
    transform: scale(1.08);
}

.whatsapp svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

/* =========================================================
   ANIMACIONES AL HACER SCROLL
   ========================================================= */
.js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 56px, 0);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
    transition-delay: var(--retraso, 0s);
}

.js [data-reveal="left"] {
    transform: translate3d(-64px, 0, 0);
}

.js [data-reveal="right"] {
    transform: translate3d(64px, 0, 0);
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* En pantallas táctiles la entrada es más corta y sutil: en una sola columna, cada bloque que
   se desliza al aparecer se siente como si la página se moviera sola */
@media (hover: none) and (pointer: coarse) {
    .js [data-reveal],
    .js [data-reveal="left"],
    .js [data-reveal="right"] {
        transform: translate3d(0, 24px, 0);
        transition-duration: .6s;
    }
}

/* Franjas: se dibujan de izquierda a derecha */
.js .franjas[data-reveal] {
    opacity: 1;
    transform: none;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.4s var(--ease-out);
}

.js .franjas[data-reveal].is-visible {
    clip-path: inset(0 0 0 0);
}

/* ---------- Keyframes ---------- */
/* Ventana de paquete: sube y aparece sobre el fondo oscurecido */
@keyframes modal-entra {
    from {
        opacity: 0;
        transform: translateY(48px) scale(.98);
    }
}

@keyframes fondo-entra {
    from {
        opacity: 0;
    }
}

@keyframes entrar {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes ola {
    from {
        opacity: 0;
        transform: translateY(.45em) rotate(10deg);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes aparecer {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes aparecer-escala {
    from {
        opacity: 0;
        transform: scale(.4);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes deriva {
    to {
        background-position: 420px 437.56px;
    }
}

@keyframes rueda {
    0% {
        opacity: 0;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(14px);
    }
}

@keyframes pulso {
    from {
        opacity: .7;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(1.6);
    }
}

@keyframes flotar {
    from {
        transform: translateY(0) rotate(0);
    }

    to {
        transform: translateY(-24px) rotate(-6deg);
    }
}

@keyframes girar {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
    .burger {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 44px;
        height: 44px;
        border: 0;
        background: none;
        cursor: pointer;
    }

    .burger span {
        display: block;
        width: 28px;
        height: 2.5px;
        margin: 0 auto;
        border-radius: 2px;
        background: var(--crema);
        transition: transform .45s var(--ease), opacity .3s var(--ease);
    }

    .menu-abierto .burger span:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }

    .menu-abierto .burger span:nth-child(2) {
        opacity: 0;
        transform: scaleX(.2);
    }

    .menu-abierto .burger span:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }

    .nav {
        position: fixed;
        inset: 0;
        isolation: isolate;
        display: flex;
        flex-direction: column;
        padding: var(--header-alto) 24px 40px;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: var(--navy);
        transform: translateX(100%);
        /* Al cerrar, deja de ser visible cuando termina de deslizarse */
        transition: transform .7s var(--ease-out), visibility 0s .7s;
        visibility: hidden;
    }

    /* Fijo para que el patrón cubra toda la pantalla aunque la lista tenga scroll */
    .nav::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        background: url("../assets/iconos/patron-azul.svg") 0 0 / 360px auto repeat;
        opacity: .35;
    }

    .menu-abierto .nav {
        transform: none;
        visibility: visible;
        transition-delay: 0s;
    }

    /* Centrada cuando cabe; si no cabe (celular en horizontal), empieza arriba y se desplaza */
    .nav__lista {
        flex-direction: column;
        gap: 22px;
        margin: auto;
    }

    .nav__lista li {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
    }

    .menu-abierto .nav__lista li {
        opacity: 1;
        transform: none;
        transition-delay: calc(.2s + var(--i, 0) * .07s);
    }

    .nav__link {
        font-family: var(--fuente-display);
        font-size: clamp(2.2rem, 8vw, 3rem);
        line-height: 1.1;
        letter-spacing: .02em;
    }
}

/* Pantallas bajas (celular en horizontal): menú más compacto */
@media (max-width: 1100px) and (max-height: 700px) {
    .nav__lista {
        gap: 10px;
    }

    .nav__link {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }
}

@media (max-width: 960px) {
    .testimonios__grid {
        grid-template-columns: 1fr;
    }

    .testimonio+.testimonio {
        border-left: 0;
        border-top: 1px solid rgba(177, 212, 208, .22);
    }

    .testimonio.es-primera {
        border-top: 0;
    }

    .incluye {
        max-width: 640px;
        grid-template-columns: 1fr;
    }

    .equipo {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .equipo__logo img {
        max-width: 280px;
    }

    .diferenciales {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer__logo {
        grid-column: 1 / -1;
    }

    .foto-ancha {
        aspect-ratio: 4 / 3;
    }

    /* En tablet y celular las dos fotos van una sobre otra */
    .foto-ancha--dividida {
        aspect-ratio: 4 / 5;
    }

    .foto-ancha__dividida {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    /* En el visor, las flechas bajan para no tapar la foto */
    .visor__nav {
        top: auto;
        bottom: 18px;
        transform: none;
    }

    .visor__nav--prev {
        left: calc(50% - 64px);
    }

    .visor__nav--sig {
        right: calc(50% - 64px);
    }

    .formulario__fila {
        grid-template-columns: 1fr;
    }

    .dia {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    /* En el celular las fotos van siempre arriba del texto */
    .dia:nth-child(even) .mosaico {
        order: 0;
    }

    /* Ventana de paquete a pantalla completa */
    .ventana {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .ventana__cerrar {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
    }

    .ventana__cabecera {
        padding-right: 68px;
    }

    .ventana__largo {
        display: none;
    }

    /* En las rutas, el botón de reserva ocupa toda la barra */
    .ventana__barra--ruta .ventana__resumen {
        display: none;
    }

    .ventana__barra--ruta .boton {
        flex: 1;
        justify-content: center;
    }

    .ruta {
        grid-template-columns: 1fr;
    }

    .ventana__barra .boton {
        padding: 13px 20px;
    }

    .tarifas__tabla th,
    .tarifas__tabla td {
        padding: 14px 6px;
    }

    .hechos {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .direccion {
        border-radius: var(--radio);
    }

    .direccion__texto span {
        display: block;
    }

    .direccion__texto span+span::before {
        content: none;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__logo img {
        margin: 0 auto;
    }

    .footer__col h3,
    .redes {
        justify-content: center;
    }

    .boton {
        padding: 16px 28px;
    }

    /* Deja sitio para el botón flotante de WhatsApp */
    .creditos {
        padding-bottom: 96px;
    }
}

/* Accesibilidad: sin animaciones si el usuario lo pide */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }

    .js [data-reveal],
    .js .franjas[data-reveal] {
        opacity: 1;
        transform: none;
        clip-path: none;
    }

    .js .foto-ancha {
        --p: 1;
    }
}
