/* =========================================================================
   Einreise Thailand · estilos propios (sin Tailwind, sin compilar)
   Concepto: viaje tropical en azul. Mar profundo, cielo, turquesa; ondas, billete de embarque y ruta de vuelo.
   Reglas: sin amarillos/naranjas/rojos (ni en avisos), sin emojis, tipografía de lectura profesional.
   ========================================================================= */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

  /* mar y cielo */
  --abyss: #062538;
  --deep: #0a3a56;
  --ocean: #0b5b80;
  --lagoon: #0f8794;
  --aqua: #62c7d0;
  --mist: #d7edf3;
  --foam: #eef7fa;

  /* tema claro (principal) */
  --bg: #f3f9fb;
  --card: #ffffff;
  --card-2: #e9f3f7;
  --text: #0b2536;
  --text-2: #36566a;
  --mute: #587486;
  --placeholder: #8aa2b1;
  --line: #d3e3eb;
  --line-soft: #e4eff4;
  --line-strong: #a9c4d2;
  --accent: #0a6c8f;
  --accent-hover: #085a77;
  --accent-ink: #ffffff;
  --accent-text: #0a6c8f;
  --accent-soft: #d9eef5;
  --on-dark: #62c7d0;
  --danger: #7a3b69;
  --danger-bg: #f5ecf3;
  --danger-line: #dfc6d8;
  --ok: #0f7d86;
  --ok-bg: #e2f3f4;
  --shadow: 0 18px 40px -22px rgba(6, 37, 56, .35), 0 2px 6px rgba(6, 37, 56, .06);
  --shadow-lg: 0 34px 70px -30px rgba(6, 37, 56, .5), 0 4px 12px rgba(6, 37, 56, .08);
  --radius: 18px;
  --radius-lg: 28px;
  --wrap: 1180px;
}

:root[data-theme='dark'] {
  --bg: #061d2c;
  --card: #0b2c40;
  --card-2: #103a52;
  --text: #e7f3f8;
  --text-2: #b4cfdc;
  --mute: #8aaabb;
  --placeholder: #6d8e9f;
  --line: #1b4a63;
  --line-soft: #14394e;
  --line-strong: #2b6684;
  --accent: #46bfcb;
  --accent-hover: #6ad0da;
  --accent-ink: #04202e;
  --accent-text: #7bd6df;
  --accent-soft: #123f55;
  --danger: #e0b6d3;
  --danger-bg: #2c1f2b;
  --danger-line: #5a3b52;
  --ok: #6fd0d6;
  --ok-bg: #0f3b44;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .25);
  --shadow-lg: 0 34px 70px -30px rgba(0, 0, 0, .8);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; word-spacing: .07em;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-text); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 750; color: var(--text); }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-only:focus { position: fixed; left: 1rem; top: 1rem; width: auto; height: auto; clip: auto; background: var(--card); color: var(--text); padding: .6rem 1rem; z-index: 200; border-radius: 10px; box-shadow: var(--shadow); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.muted { color: var(--mute); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- etiquetas y titulares ---------- */
.label { display: inline-flex; align-items: center; gap: .55rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.label::before { content: ''; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.display { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; }
.h1 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; }
.h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 780; }
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 62ch; }
em.accent { font-style: normal; color: var(--accent-text); background: linear-gradient(transparent 68%, var(--accent-soft) 68%); }
.hero em.accent, .cta-band em.accent { color: var(--aqua); background: none; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .78rem 1.35rem; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--card); color: var(--text); font: inherit; font-weight: 650; font-size: .98rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 22px -12px rgba(10, 108, 143, .8); }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-light { background: #fff; border-color: #fff; color: var(--abyss); }
.btn-light:hover { background: var(--mist); border-color: var(--mist); }
.btn-aqua { background: var(--aqua); border-color: var(--aqua); color: var(--abyss); box-shadow: none; }
.btn-aqua:hover { background: #82d6dd; border-color: #82d6dd; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-text); text-decoration: underline; cursor: pointer; }
.back { display: inline-flex; align-items: center; gap: .45rem; background: none; border: 0; padding: .6rem .2rem; font: inherit; font-weight: 600; color: var(--text-2); cursor: pointer; }
.back svg { width: 18px; height: 18px; }
.back:hover { color: var(--accent-text); }

/* ---------- aviso fijo "servicio privado" ---------- */
.notice-bar { background: var(--abyss); color: #cfe6ee; font-size: .85rem; line-height: 1.4; }
.notice-bar .wrap { display: flex; align-items: center; gap: .6rem; padding-block: .5rem; }
.notice-bar svg { width: 17px; height: 17px; flex: none; color: var(--aqua); }
.notice-bar strong { color: #fff; font-weight: 700; }
.notice-bar a { color: var(--aqua); }

/* ---------- cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--card) 90%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.site-header .wrap { display: flex; align-items: center; gap: 1.2rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; flex: none; max-width: 100%; border-radius: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { display: block; width: auto; height: 58px; max-width: 100%; object-fit: contain; }
/* logo sin fondo: en tema oscuro y en el pie se usa la versión clara */
.brand .logo-dark { display: none; }
:root[data-theme='dark'] .brand .logo-light, .footer-about .brand .logo-light { display: none; }
:root[data-theme='dark'] .brand .logo-dark, .footer-about .brand .logo-dark { display: block; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: .3rem; }
.main-nav a.nav-link { padding: .5rem .85rem; border-radius: 999px; text-decoration: none; color: var(--text-2); font-weight: 600; font-size: .96rem; }
.main-nav a.nav-link:hover, .main-nav a.nav-link[aria-current] { background: var(--accent-soft); color: var(--accent-text); }
.main-nav .btn { margin-left: .5rem; padding: .62rem 1.15rem; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--text-2); cursor: pointer; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent-text); }
.icon-btn svg { width: 20px; height: 20px; }
.nav-toggle { display: none; margin-left: auto; }
.theme-toggle .i-sun { display: none; }
@media (max-width: 560px) { .site-header:not(.app-header) .brand img { height: 46px; } .footer-about .brand img { height: auto; width: min(100%, 300px); } }
:root[data-theme='dark'] .theme-toggle .i-sun { display: block; }
:root[data-theme='dark'] .theme-toggle .i-moon { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: .2rem; padding: .8rem 1.1rem 1.2rem; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; margin: 0; }
  .main-nav.is-open { display: flex; }
  .main-nav a.nav-link { padding: .8rem 1rem; }
  .main-nav .btn { margin: .4rem 0 0; }
  .main-nav .theme-toggle { align-self: flex-start; margin-top: .4rem; }
}

/* ---------- imágenes: marcador con medidas ---------- */
.slot { position: relative; overflow: hidden; background: var(--mist); }
.slot img { width: 100%; height: 100%; object-fit: cover; }
.slot.ph {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40' fill='none' stroke='%23ffffff' stroke-opacity='.14' stroke-width='1.5'%3E%3Cpath d='M0 20c15 0 15-10 30-10s15 10 30 10 15-10 30-10 15 10 30 10'/%3E%3C/svg%3E") 0 0 / 120px 40px,
    linear-gradient(140deg, #0b4a6b 0%, #0f7f92 60%, #3fb3bf 100%);
  display: grid;
}
.ph-inner { align-self: end; display: grid; gap: .1rem; padding: 1rem 1.1rem; color: #e9f7fa; font-size: .8rem; line-height: 1.35; }
.ph-inner .size { font-weight: 800; font-size: .95rem; letter-spacing: .02em; }
.ph-inner .name { opacity: .9; }
.ph-inner .file { opacity: .7; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .72rem; }

/* ---------- onda decorativa ---------- */
.wave { display: block; width: 100%; height: clamp(34px, 5vw, 70px); color: var(--bg); }
.wave-top { transform: scaleY(-1); }
.wave.to-card { color: var(--card); }
.wave.to-deep { color: var(--abyss); }

/* ---------- portada: hero ---------- */
/* sin overflow: hidden, para que el calendario del billete pueda salir del hero; z-index lo deja sobre la sección siguiente */
.hero { position: relative; z-index: 2; isolation: isolate; color: #fff; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media .slot { width: 100%; height: 100%; }
.hero-media .slot.ph { align-content: start; justify-items: end; }
.hero-media .slot.ph .ph-inner { align-self: start; justify-self: end; text-align: right; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(6, 37, 56, .93) 0%, rgba(6, 37, 56, .78) 46%, rgba(6, 37, 56, .28) 100%); }
.hero .wrap { padding-block: clamp(3.2rem, 8vw, 6.2rem) clamp(3.5rem, 7vw, 5.5rem); }
.hero .label { color: var(--aqua); }
.hero h1 { color: #fff; font-size: clamp(2.35rem, 5.4vw, 4.2rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; max-width: 17ch; margin: 1.1rem 0 1.2rem; }
.hero .lead { color: #d3e9f0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 54ch; margin-bottom: 2rem; }
.hero .wave { margin-top: -1px; position: absolute; left: 0; bottom: -1px; }

.ticket { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: stretch; max-width: 640px; background: var(--card); color: var(--text); border-radius: 22px; box-shadow: var(--shadow-lg); }
.ticket-main { padding: 1.15rem 1.4rem; border-right: 2px dashed var(--line); min-width: 0; }
.ticket-main .field { margin: 0; }
.ticket-main label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); font-weight: 700; margin-bottom: .3rem; }
.ticket-main .input { border: 0; padding-left: 0; background-color: transparent; font-size: 1.15rem; font-weight: 650; box-shadow: none; min-height: 0; padding-block: .2rem; }
.ticket-go { display: grid; place-items: center; padding: 1rem 1.2rem; }
.ticket-go .btn { padding-inline: 1.5rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem .7rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.hero-chips li { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; padding: .4rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #e6f4f8; backdrop-filter: blur(6px); }
.hero-chips svg { width: 16px; height: 16px; color: var(--aqua); }
@media (max-width: 560px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket-main { border-right: 0; border-bottom: 2px dashed var(--line); }
}

/* ---------- secciones ---------- */
.section { padding-block: clamp(3.2rem, 7vw, 5.5rem); }
.section.alt { background: var(--card); }
.section-head { max-width: 760px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head .h1, .section-head .h2 { margin-top: .8rem; }
.section-head p { color: var(--text-2); margin-top: 1rem; margin-bottom: 0; }

/* ruta en tres pasos */
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; position: relative; counter-reset: r; }
.route::before { content: ''; position: absolute; left: 6%; right: 6%; top: 34px; border-top: 2px dashed var(--line-strong); z-index: 0; }
.route li { position: relative; z-index: 1; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.6rem; box-shadow: var(--shadow); }
.route .num { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 7px var(--bg); margin-bottom: 1.1rem; }
.section.alt .route .num { box-shadow: 0 0 0 7px var(--card); }
.route .num svg { width: 26px; height: 26px; }
.route h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.route p { color: var(--text-2); margin: 0; font-size: .98rem; }
@media (max-width: 860px) { .route { grid-template-columns: 1fr; } .route::before { display: none; } }

/* comparativa honesta */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .98rem; }
.compare th, .compare td { padding: 1rem 1.2rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.compare thead th { background: var(--abyss); color: #fff; font-weight: 700; border-bottom: 0; }
.compare thead th:last-child { background: var(--ocean); }
.compare tbody th { font-weight: 650; color: var(--text); width: 26%; background: var(--card-2); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare td { color: var(--text-2); }
.compare-note { margin-top: 1.1rem; font-size: .95rem; color: var(--text-2); }
@media (max-width: 720px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare thead { display: none; }
  .compare tbody th { width: auto; }
  .compare td::before { content: attr(data-col); display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--accent-text); margin-bottom: .15rem; }
}

/* destinos */
.dest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.dest { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); isolation: isolate; background: var(--abyss); }
.dest .slot { aspect-ratio: 4 / 5; width: 100%; }
.dest .slot.ph .ph-inner { align-self: start; }
.dest::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 37, 56, 0) 38%, rgba(6, 37, 56, .9) 100%); pointer-events: none; }
.dest figcaption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 1.2rem 1.3rem 1.3rem; color: #fff; }
.dest figcaption strong { display: block; font-size: 1.2rem; font-weight: 750; letter-spacing: -.01em; }
.dest figcaption span { display: block; margin-top: .25rem; font-size: .9rem; line-height: 1.45; color: #d2e8ef; }
.dest figcaption .where { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--aqua); font-weight: 700; margin-bottom: .3rem; }
.dest figcaption .where svg { width: 14px; height: 14px; }
.dest-note { margin-top: 1.3rem; font-size: .92rem; color: var(--mute); }
@media (max-width: 900px) { .dest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dest-grid { grid-template-columns: 1fr; } .dest .slot { aspect-ratio: 4 / 3; } }

/* paquetes */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.plan { display: flex; flex-direction: column; gap: .9rem; padding: 1.7rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); position: relative; }
.plan h2, .plan h3 { font-size: 1.25rem; }
.plan .when { display: inline-flex; align-items: center; gap: .4rem; margin-top: .35rem; font-size: .88rem; color: var(--lagoon); font-weight: 650; }
:root[data-theme='dark'] .plan .when { color: var(--aqua); }
.plan p { color: var(--text-2); font-size: .97rem; margin: 0; flex: 1; }
.plan .price { display: flex; align-items: baseline; gap: .5rem; padding-top: 1rem; border-top: 1px dashed var(--line-strong); }
.plan .amount { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; }
.plan .per { color: var(--mute); font-size: .9rem; }
.includes { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem 2rem; }
.includes li { display: flex; gap: .7rem; align-items: flex-start; color: var(--text-2); }
.includes svg { width: 20px; height: 20px; flex: none; color: var(--ok); margin-top: .22rem; }
.early { display: flex; gap: .8rem; align-items: flex-start; margin-top: 1.6rem; padding: 1rem 1.2rem; background: var(--ok-bg); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.early svg { width: 22px; height: 22px; flex: none; color: var(--ok); margin-top: .1rem; }
.price-notes { margin-top: 1.6rem; display: grid; gap: .5rem; font-size: .93rem; color: var(--text-2); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } .includes { grid-template-columns: 1fr; } }

/* preguntas */
.faq { display: grid; gap: .8rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h2, .faq summary h3 { font-size: 1.04rem; font-weight: 680; letter-spacing: -.01em; }
.faq summary svg { width: 22px; height: 22px; flex: none; color: var(--accent-text); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.faq .answer { padding: 0 1.4rem 1.2rem; color: var(--text-2); }
.faq .answer p:last-child { margin-bottom: 0; }

/* guías */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.article-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .2s; }
.article-card:hover { transform: translateY(-3px); text-decoration: none; }
.article-card .slot { aspect-ratio: 16 / 10; }
.article-card .body { padding: 1.2rem 1.4rem 1.5rem; display: grid; gap: .5rem; }
.article-card h3 { font-size: 1.12rem; }
.article-card p { margin: 0; font-size: .95rem; color: var(--text-2); }
.article-card .meta { font-size: .8rem; color: var(--mute); font-weight: 600; }
@media (max-width: 900px) { .articles { grid-template-columns: 1fr; } }

/* banda final */
.cta-band { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.cta-band .slot { position: absolute; inset: 0; z-index: -2; }
.cta-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 37, 56, .92), rgba(11, 91, 128, .72)); }
.cta-band .wrap { padding-block: clamp(3.2rem, 7vw, 5rem); display: grid; gap: 1.2rem; justify-items: start; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; max-width: 22ch; }
.cta-band p { color: #d3e9f0; max-width: 56ch; margin: 0; }
.cta-band .slot.ph .ph-inner { justify-self: end; }

/* ---------- páginas interiores ---------- */
.page { padding-block: clamp(2.2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); }
.page-head { max-width: 760px; margin-bottom: 2rem; }
.page-head .display, .page-head .h1 { margin-top: .9rem; }
.page-head p { color: var(--text-2); margin-top: 1rem; font-size: 1.1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.box { padding: clamp(1.3rem, 3vw, 2rem); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.side-list { display: grid; gap: 1.3rem; }
.side-list h2 { font-size: 1rem; margin-bottom: .3rem; }
.side-list p { margin: 0; color: var(--text-2); font-size: .96rem; }
.official-box { display: flex; gap: .9rem; align-items: flex-start; margin-top: 1.6rem; padding: 1.1rem 1.3rem; background: var(--accent-soft); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); font-size: .96rem; }
.official-box svg { width: 22px; height: 22px; flex: none; color: var(--accent-text); margin-top: .15rem; }

.prose { color: var(--text-2); }
.prose h2 { font-size: 1.45rem; margin: 2.2rem 0 .8rem; color: var(--text); }
.prose h3 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.prose li { margin-bottom: .45rem; }
.prose .callout { border-left: 4px solid var(--aqua); padding: .5rem 0 .5rem 1.2rem; margin: 1.6rem 0; color: var(--text); font-size: 1.12rem; font-weight: 550; }
.updated { display: inline-block; margin-bottom: 1.4rem; font-size: .85rem; font-weight: 600; color: var(--mute); }
.article-cover { border-radius: var(--radius-lg); margin: 0 0 2rem; box-shadow: var(--shadow); }
.related { margin-top: 3.2rem; }
.related .h2 { margin-bottom: 1.2rem; }
.related .articles { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .related .articles { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.6rem; margin: 0 0 1.4rem; }
.kv dt { color: var(--mute); font-size: .92rem; }
.kv dd { margin: 0; font-weight: 600; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: 0; } .kv dd { margin-bottom: .6rem; } }

/* estado y gracias */
.status-hero { display: flex; gap: 1.2rem; align-items: flex-start; margin-bottom: 1.8rem; }
.status-icon { display: grid; place-items: center; flex: none; width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 8px var(--accent-soft); }
.status-icon svg { width: 28px; height: 28px; }
.timeline { list-style: none; margin: 1.4rem 0; padding: 0; display: grid; gap: 1rem; position: relative; }
.timeline li { display: flex; gap: .9rem; align-items: center; color: var(--mute); }
.timeline .tick { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--card); flex: none; }
.timeline .tick svg { width: 18px; height: 18px; }
.timeline li.done { color: var(--text); }
.timeline li.done .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.timeline li.now { color: var(--text); font-weight: 650; }
.timeline li.now .tick { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }

/* ---------- formularios ---------- */
.field { margin-bottom: 1.15rem; position: relative; }
.field > label, .field > .lbl { display: block; font-size: .9rem; font-weight: 650; color: var(--text); margin-bottom: .4rem; }
.field .opt { color: var(--mute); font-weight: 450; }
.input, .select, .textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--card); border: 1.5px solid var(--line-strong); border-radius: 14px; padding: .8rem 1rem; min-height: 50px; transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none; }
.input::placeholder, .textarea::placeholder { color: var(--placeholder); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--accent); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.select { padding-right: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23587486' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; background-size: 18px; }
.textarea { resize: vertical; min-height: 120px; }
.hint { margin: .4rem 0 0; font-size: .86rem; color: var(--mute); }
.error-msg { display: flex; gap: .45rem; align-items: flex-start; margin-top: .45rem; font-size: .88rem; font-weight: 600; color: var(--danger); }
.error-msg::before { content: ''; flex: none; width: 17px; height: 17px; margin-top: .1rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v5'/%3E%3Cpath d='M12 16.5h.01'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v5'/%3E%3Cpath d='M12 16.5h.01'/%3E%3C/svg%3E") center / contain no-repeat; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); background-color: var(--danger-bg); }
.alert { display: flex; gap: .8rem; align-items: flex-start; padding: .95rem 1.1rem; border-radius: 14px; margin-bottom: 1.2rem; font-size: .96rem; border: 1px solid var(--line); }
.alert svg { width: 22px; height: 22px; flex: none; margin-top: .05rem; }
.alert-error { background: var(--danger-bg); border-color: var(--danger-line); color: var(--danger); font-weight: 550; }
.alert-error a { color: inherit; }
.noscript { background: var(--danger-bg); border: 1px solid var(--danger-line); color: var(--danger); padding: 1rem 1.2rem; border-radius: 14px; margin-bottom: 1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.grid-phone { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0 1.2rem; }
@media (max-width: 640px) { .grid-2, .grid-phone { grid-template-columns: 1fr; } }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.seg label { margin: 0; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 50px; border: 1.5px solid var(--line-strong); border-radius: 14px; font-weight: 600; background: var(--card); transition: .15s; }
.seg input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.seg input:focus-visible + span { outline: 3px solid var(--aqua); outline-offset: 2px; }
.field.has-error .seg span { border-color: var(--danger); }
.price-hint, .timing-hint { display: flex; gap: .7rem; align-items: flex-start; margin: -.3rem 0 1.2rem; padding: .85rem 1rem; border-radius: 14px; background: var(--ok-bg); color: var(--text); font-size: .93rem; border: 1px solid var(--line); }
.price-hint svg, .timing-hint svg { width: 20px; height: 20px; flex: none; color: var(--ok); margin-top: .1rem; }
.check { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .9rem; font-size: .93rem; line-height: 1.5; color: var(--text-2); cursor: pointer; }
.check input { flex: none; width: 21px; height: 21px; margin-top: .12rem; accent-color: var(--accent); }

/* listas con buscador y calendario (public/js/widgets.js) */
.cb, .dp { position: relative; }
.cb-input { padding-right: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23587486' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; background-size: 18px; text-overflow: ellipsis; }
.cb-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; max-height: min(320px, 50vh); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: .35rem; list-style: none; background: var(--card); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow-lg); }
.cb-up .cb-list { top: auto; bottom: calc(100% + 6px); }
.cb-opt { padding: .6rem .8rem; border-radius: 10px; cursor: pointer; font-size: .97rem; line-height: 1.35; }
.cb-opt.is-active { background: var(--accent-soft); }
.cb-opt[aria-selected='true'] { color: var(--accent-text); font-weight: 700; }
.cb-opt mark { background: var(--accent-soft); color: inherit; border-radius: 3px; font-weight: 700; padding: 0 1px; }
.cb-sep { height: 1px; background: var(--line-soft); margin: .3rem .5rem; list-style: none; }
.cb-empty { padding: .8rem; color: var(--mute); font-size: .92rem; list-style: none; }
.dp-input { padding-right: 3.2rem; }
.dp-btn { position: absolute; right: .35rem; top: .35rem; width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; border-radius: 10px; color: var(--text-2); cursor: pointer; }
.dp-btn:hover, .dp-btn[aria-expanded='true'] { background: var(--accent-soft); color: var(--accent-text); }
.dp-btn svg { width: 20px; height: 20px; }
.dp-pop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 50; width: min(340px, 100%); min-width: 290px; padding: .9rem; background: var(--card); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow-lg); color: var(--text); }
.dp-up .dp-pop { top: auto; bottom: calc(100% + 6px); }
.dp-head { display: grid; grid-template-columns: 36px minmax(0, 1fr) 90px 36px; gap: .3rem; align-items: center; margin-bottom: .7rem; }
.dp-nav { width: 36px; height: 38px; display: grid; place-items: center; background: none; border: 1px solid var(--line); border-radius: 10px; color: var(--text-2); cursor: pointer; }
.dp-nav:hover { border-color: var(--accent); color: var(--accent-text); }
.dp-nav svg { width: 17px; height: 17px; }
.dp-sel { padding: .45rem 1.35rem .45rem .55rem; font-size: .86rem; min-height: 38px; border-radius: 10px; background-position: right .35rem center; background-size: 14px; min-width: 0; text-overflow: clip; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dp-wd { font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); padding: .35rem 0 .45rem; }
.dp-day { height: 38px; background: none; border: 1px solid transparent; border-radius: 10px; color: var(--text); font: inherit; font-size: .92rem; cursor: pointer; }
.dp-day:hover:not(:disabled) { background: var(--accent-soft); }
.dp-day.is-today { border-color: var(--line-strong); }
.dp-day.is-selected { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.dp-day:disabled { opacity: .28; cursor: not-allowed; }
.dp-foot { display: flex; justify-content: space-between; margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--line-soft); font-size: .88rem; }
.dp-foot .btn-link:disabled { color: var(--mute); text-decoration: none; cursor: not-allowed; }
.field.has-error .cb-input, .field.has-error .dp-input { border-color: var(--danger); background-color: var(--danger-bg); }
@media (max-width: 760px) { .dp-pop { width: 100%; min-width: 0; } .cb-list { max-height: min(300px, 45vh); } }

/* ---------- formulario por pasos ---------- */
.apply-head { text-align: center; margin: 0 auto 1.6rem; max-width: 720px; }
.apply-head .h1 { margin-top: .8rem; }
.apply-head .label::before { display: none; }
.stepper { list-style: none; display: flex; justify-content: space-between; gap: .4rem; margin: 0 0 1.8rem; padding: 0; position: relative; counter-reset: s; }
.stepper::before { content: ''; position: absolute; left: 4%; right: 4%; top: 21px; border-top: 2px dashed var(--line-strong); z-index: 0; }
.stepper li { position: relative; z-index: 1; flex: 1; display: grid; justify-items: center; gap: .45rem; text-align: center; }
.stepper .dot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 2px solid var(--line-strong); color: var(--mute); font-weight: 750; font-size: .95rem; }
.stepper .dot svg { width: 20px; height: 20px; }
.stepper .name { font-size: .83rem; font-weight: 650; color: var(--mute); background: none; border: 0; padding: 0; font-family: inherit; text-decoration: none; }
.stepper button.name { cursor: pointer; }
.stepper button.name:hover, .stepper a.name:hover { color: var(--accent-text); }
.stepper .desc { display: none; }
.stepper li.is-current .dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 6px var(--accent-soft); }
.stepper li.is-current .name { color: var(--text); }
.stepper li.is-done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.stepper li.is-done .name { color: var(--text-2); }
@media (max-width: 640px) { .stepper .name { display: none; } .stepper li.is-current .name { display: block; position: absolute; top: 52px; white-space: nowrap; } .stepper { margin-bottom: 3rem; } }
.apply-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.6rem; align-items: start; }
@media (max-width: 1000px) { .apply-layout { grid-template-columns: 1fr; } .apply-side { order: 2; } }
.form-card { padding: clamp(1.4rem, 3.4vw, 2.4rem); }
.step-title { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-bottom: .5rem; }
.step-intro { color: var(--text-2); margin-bottom: 1.6rem; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px dashed var(--line-strong); }
.apply-side { display: grid; gap: 1.2rem; position: sticky; top: 96px; }
.apply-side .slot { aspect-ratio: 4 / 3; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.side-card { overflow: hidden; }
.side-card .body { padding: 1.3rem 1.4rem 1.5rem; display: grid; gap: .9rem; }
.side-card h2 { font-size: 1.05rem; }
.side-list-icons { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.side-list-icons li { display: flex; gap: .7rem; font-size: .92rem; color: var(--text-2); line-height: 1.45; }
.side-list-icons svg { width: 20px; height: 20px; flex: none; color: var(--lagoon); margin-top: .1rem; }
:root[data-theme='dark'] .side-list-icons svg { color: var(--aqua); }
.companion { border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 1.2rem 1.2rem .3rem; margin-bottom: 1rem; background: var(--foam); }
:root[data-theme='dark'] .companion { background: var(--card-2); }
.companion-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.companion-head h3 { font-size: 1.05rem; }
.companion-head button { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 0; color: var(--danger); font: inherit; font-weight: 650; font-size: .9rem; cursor: pointer; }
.companion-head button svg { width: 17px; height: 17px; }
.review { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden; }
.review header { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1.1rem; background: var(--card-2); }
.review h3 { font-size: 1rem; }
.review header button { background: none; border: 0; color: var(--accent-text); font: inherit; font-weight: 650; cursor: pointer; text-decoration: underline; }
.review dl { display: grid; grid-template-columns: 38% 1fr; margin: 0; padding: .4rem 1.1rem .8rem; gap: .35rem 1rem; }
.review dt { color: var(--mute); font-size: .9rem; }
.review dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 560px) { .review dl { grid-template-columns: 1fr; gap: 0; } .review dd { margin-bottom: .5rem; } }

/* ---------- pago ---------- */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 1.6rem; align-items: start; }
.co-aside { order: 2; position: sticky; top: 96px; }
.co-main { order: 1; padding: clamp(1.3rem, 3vw, 2.2rem); }
@media (max-width: 1000px) { .checkout-layout { grid-template-columns: minmax(0, 1fr); } .co-aside { order: -1; position: static; } .pay-desktop { display: none; } }
@media (min-width: 1001px) { .pay-mobile { display: none; } }
.summary { padding: 1.5rem; background: linear-gradient(180deg, var(--card), var(--foam)); }
:root[data-theme='dark'] .summary { background: var(--card); }
.summary h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.summary .line { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line-strong); font-size: .96rem; }
.summary .line small { display: block; color: var(--mute); font-size: .82rem; margin-top: .1rem; }
.summary .save { color: var(--ok); font-weight: 700; }
.summary .total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem 1rem; padding: 1rem 0 .3rem; }
.summary .total > span:last-child { margin-left: auto; white-space: nowrap; }
.summary .total .t { font-weight: 700; }
.summary .total small { display: block; font-weight: 450; color: var(--mute); font-size: .82rem; }
.summary .total b { font-size: 2rem; letter-spacing: -.03em; }
.summary .total s { color: var(--mute); margin-right: .5rem; }
@media (max-width: 420px) { .summary .total { column-gap: .6rem; } .summary .total b { font-size: 1.65rem; } .summary .total s { margin-right: .35rem; font-size: .9rem; } }
.summary .once { font-size: .86rem; color: var(--text-2); margin: .3rem 0 1rem; }
.summary .own { display: flex; gap: .7rem; padding: .85rem 1rem; background: var(--accent-soft); border-radius: 14px; font-size: .88rem; color: var(--text); margin-bottom: 1.2rem; }
.summary .own svg { width: 20px; height: 20px; flex: none; color: var(--accent-text); margin-top: .1rem; }
.co-section { margin-bottom: 2rem; }
.co-section h2 { display: flex; align-items: center; gap: .7rem; font-size: 1.18rem; margin-bottom: 1.1rem; }
.co-section .n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .85rem; font-weight: 750; }
.plan-opts { display: grid; gap: .7rem; }
.plan-opt { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; padding: 1rem 1.1rem; border: 1.5px solid var(--line-strong); border-radius: 16px; cursor: pointer; background: var(--card); transition: .15s; }
.plan-opt:hover { border-color: var(--accent); }
.plan-opt input { position: absolute; opacity: 0; }
.plan-opt .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; }
.plan-opt input:checked ~ .radio { border-color: var(--accent); }
.plan-opt input:checked ~ .radio::after { content: ''; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }
.plan-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
.plan-opt input:focus-visible ~ .radio { outline: 3px solid var(--aqua); outline-offset: 3px; }
.plan-opt strong { display: block; }
.plan-opt small { display: block; color: var(--mute); font-size: .84rem; }
.plan-opt .p { text-align: right; }
.plan-opt .p b { font-size: 1.2rem; display: block; }
.plan-opt .p s { color: var(--mute); font-size: .85rem; }
.contact-line { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card-2); font-weight: 600; overflow-wrap: anywhere; }
#card-element { padding: .95rem 1rem; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--card); min-height: 50px; }
#card-element.is-focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
#card-element.is-error { border-color: var(--danger); }
.secure-line { display: flex; gap: .55rem; align-items: center; margin: .9rem 0 0; font-size: .86rem; color: var(--mute); }
.secure-line svg { width: 17px; height: 17px; flex: none; color: var(--lagoon); }
.consents { margin-bottom: 1rem; }
.pay-overlay { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(6, 37, 56, .72); backdrop-filter: blur(4px); }
.pay-overlay .box { background: var(--card); padding: 2rem 2.4rem; border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow-lg); display: grid; gap: 1rem; justify-items: center; max-width: 340px; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--accent-soft); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- pie ---------- */
.site-footer { background: var(--abyss); color: #b8d2dc; margin-top: 0; }
.site-footer .wrap { padding-block: 3.2rem 2rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.footer-about p { font-size: .94rem; max-width: 40ch; }
.footer-about .brand { margin-bottom: 1.1rem; }
.footer-about .brand img { height: 70px; }
.site-footer .muted { color: #8fb0be; font-size: .86rem; }
.footer-title { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--aqua); margin-bottom: .9rem; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .94rem; }
.site-footer a, .site-footer .btn-link { color: #d4e8ef; text-decoration: none; }
.site-footer a:hover, .site-footer .btn-link:hover { color: #fff; text-decoration: underline; }
.disclaimer { margin-top: 2.2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .86rem; color: #9fbfcc; }
.disclaimer strong { color: #fff; }
.disclaimer a { color: var(--aqua); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- cookies ---------- */
.cookie { position: fixed; z-index: 250; left: 1rem; right: 1rem; bottom: 1rem; max-width: 760px; margin-inline: auto; display: grid; grid-template-columns: 1fr auto; gap: 1.2rem; align-items: center; padding: 1.1rem 1.3rem; background: var(--card); border: 1px solid var(--line-strong); border-radius: 22px; box-shadow: var(--shadow-lg); font-size: .9rem; }
.cookie p { margin: 0 0 .2rem; color: var(--text-2); }
.cookie .cookie-title { font-weight: 750; color: var(--text); font-size: .98rem; }
.cookie .row { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie .btn { padding: .6rem 1.1rem; font-size: .9rem; }
@media (max-width: 640px) { .cookie { grid-template-columns: 1fr; } }

/* ---------- errores ---------- */
.error-page { padding-block: clamp(3rem, 9vw, 7rem); }
.error-page .code { display: inline-block; font-size: .9rem; font-weight: 800; letter-spacing: .14em; color: var(--accent-text); margin-bottom: .8rem; }
.summary .line > span:last-child { white-space: nowrap; }
@media (max-width: 700px) { .hero-media .ph-inner { display: none; } }

/* ---------- portal informativo (SITE_MODE=guide) ---------- */
.quick { max-width: 720px; margin-top: .4rem; }
.quick p { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--aqua); margin-bottom: .8rem; }
.quick-links { display: flex; flex-wrap: wrap; gap: .7rem; }
.dest-link { display: block; text-decoration: none; transition: transform .2s; }
.dest-link:hover { transform: translateY(-3px); text-decoration: none; }
.dest-caption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 1.2rem 1.3rem 1.3rem; color: #fff; display: block; }
.dest-caption > span, .dest-caption > strong { display: block; }
.dest-caption strong { font-size: 1.35rem; font-weight: 750; }
.dest-caption span { font-size: .92rem; line-height: 1.45; color: #d2e8ef; margin-top: .25rem; }
.dest-caption .where { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--aqua); font-weight: 700; }
.dest-caption .where svg { width: 14px; height: 14px; }
.dest-caption .go { display: inline-flex; align-items: center; gap: .4rem; margin-top: .7rem; font-weight: 700; color: #fff; }
.dest-caption .go svg { width: 17px; height: 17px; }
.factbar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.factbar li { display: grid; gap: .35rem; align-content: start; padding: 1.3rem 1.4rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.factbar svg { width: 26px; height: 26px; color: var(--accent-text); margin-bottom: .3rem; }
.factbar .k { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--mute); }
.factbar .v { font-weight: 650; line-height: 1.4; }
@media (max-width: 900px) { .factbar { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .factbar { grid-template-columns: 1fr; } }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.4rem; align-items: start; }
.guide-side { display: grid; gap: 1.2rem; position: sticky; top: 96px; }
@media (max-width: 960px) { .guide-layout { grid-template-columns: 1fr; } .guide-side { position: static; } }
.facts { margin: 0; display: grid; gap: .15rem; }
.facts dt { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--mute); margin-top: .6rem; }
.facts dd { margin: 0; font-size: .95rem; line-height: 1.45; }

/* ---------- portada del trámite: sección "desde Alemania" ---------- */
.germany { padding-block: clamp(3.2rem, 7vw, 5.5rem); background: radial-gradient(1000px 500px at 85% 0%, rgba(15, 135, 148, .45), transparent 70%), var(--abyss); color: #fff; }
.germany h2, .germany h3 { color: #fff; }
.germany .label { color: var(--aqua); }
.germany .section-head p { color: #cfe5ee; }
.germany em.accent { color: var(--aqua); background: none; }
.flightline { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.2rem; margin-bottom: 2.2rem; }
.airports { list-style: none; margin: 0; padding: 0; display: flex; gap: .6rem; }
.airports li { display: grid; justify-items: center; width: 104px; padding: .7rem .4rem; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); }
.airports strong { font-size: 1.25rem; letter-spacing: .06em; }
.airports span { font-size: .76rem; color: #b8d6e2; white-space: nowrap; }
.airports-to li { background: rgba(98, 199, 208, .16); border-color: rgba(98, 199, 208, .45); }
/* línea de vuelo: la línea discontinua y el avión comparten el mismo centro (los dos grupos miden lo mismo) */
.flightline-path { position: relative; display: flex; align-items: center; justify-content: center; height: 52px; }
.flightline-path::before { content: ''; position: absolute; left: 0; right: 0; top: calc(50% - 1px); border-top: 2px dashed rgba(98, 199, 208, .55); }
.plane-badge { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--aqua); color: var(--abyss); box-shadow: 0 0 0 8px var(--abyss); }
.plane-badge svg { width: 28px; height: 28px; display: block; }
:root[data-theme='dark'] .plane-badge { box-shadow: 0 0 0 8px #04141f; color: #04202e; }
.germany-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.germany-cards li { display: flex; flex-direction: column; gap: .7rem; padding: 1.4rem; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.germany-cards .ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(98, 199, 208, .18); color: var(--aqua); }
.germany-cards .ico svg { width: 23px; height: 23px; }
.germany-cards h3 { font-size: 1.08rem; }
.germany-cards p { margin: 0; font-size: .93rem; color: #cde2ec; line-height: 1.55; }
.germany-cards .sample { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-top: .8rem; border-top: 1px dashed rgba(255, 255, 255, .25); font-variant-numeric: tabular-nums; }
.germany-cards .sample svg { width: 16px; height: 16px; color: var(--aqua); flex: none; }
.germany-cards .sample strong { color: #fff; letter-spacing: .02em; }
.window-tool { margin-top: 2.4rem; }
.window-tool h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.window-tool .ticket label { color: var(--mute); }
.window-result { max-width: 640px; margin: .9rem 0 0; padding: .85rem 1.1rem; border-radius: 14px; background: rgba(98, 199, 208, .16); border: 1px solid rgba(98, 199, 208, .45); color: #fff; font-weight: 600; font-size: .97rem; }
.germany-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin: 1.2rem 0 0; }
.germany-actions a:not(.btn) { color: #fff; }
:root[data-theme='dark'] .germany { background: radial-gradient(1000px 500px at 85% 0%, rgba(15, 135, 148, .35), transparent 70%), #04141f; }
@media (max-width: 1000px) { .germany-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .flightline { grid-template-columns: 1fr; justify-items: center; gap: .9rem; }
  .airports li { width: 96px; }
  .flightline-path { width: 52px; height: 104px; }
  .flightline-path::before { left: calc(50% - 1px); right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px dashed rgba(98, 199, 208, .55); }
  .plane-badge svg { transform: rotate(90deg); }
}
@media (max-width: 560px) { .germany-cards { grid-template-columns: 1fr; } }

/* ---------- formulario: acompañantes dentro de la persona y autocompletado ---------- */
.stepper::before { left: 12.5%; right: 12.5%; }
.companions-block { margin-top: .4rem; padding-top: 1.2rem; border-top: 1px dashed var(--line-strong); }
.companions-block .btn-add { margin-bottom: .2rem; }
.autofill-hint { margin: .4rem 0 0; font-size: .84rem; color: var(--accent-text); }

/* ---------- solicitud y pago: cabecera y pie de aplicación ---------- */
.app-header .wrap { min-height: 60px; justify-content: space-between; }
.app-header .brand img { height: 48px; }
.app-tools { display: flex; align-items: center; gap: .7rem; }
.secure-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; background: var(--ok-bg); border: 1px solid var(--line); color: var(--text); font-size: .82rem; font-weight: 650; }
.secure-pill svg { width: 15px; height: 15px; color: var(--ok); }
.app-help { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; font-weight: 600; color: var(--text-2); text-decoration: none; }
.app-help svg { width: 18px; height: 18px; }
.app-help:hover { color: var(--accent-text); text-decoration: none; }
.app-header .icon-btn { width: 38px; height: 38px; }
.app-mode .page { padding-block: 1.6rem 2rem; }
.app-mode .apply-side, .app-mode .co-aside { top: 82px; }
.trust { list-style: none; margin: 1.6rem 0 0; padding: 1.1rem 1.3rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem 1.4rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.trust li { display: flex; gap: .65rem; align-items: flex-start; }
.trust .ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--ok-bg); color: var(--ok); }
.trust .ico svg { width: 18px; height: 18px; }
.trust strong { display: block; font-size: .86rem; line-height: 1.35; }
.trust li > span:last-child > span { display: block; font-size: .79rem; line-height: 1.45; color: var(--mute); overflow-wrap: anywhere; }
.app-footer { border-top: 1px solid var(--line); background: var(--card); font-size: .8rem; color: var(--mute); }
.app-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.4rem; padding-block: .85rem; }
.app-footer p { margin: 0; }
.app-footer nav { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.app-footer a, .app-footer .btn-link { color: var(--text-2); text-decoration: none; font-size: .8rem; }
.app-footer a:hover, .app-footer .btn-link:hover { color: var(--accent-text); text-decoration: underline; }
.app-mode { display: flex; flex-direction: column; min-height: 100vh; }
.app-mode main { flex: 1; }
@media (max-width: 560px) {
  .secure-pill { padding: .35rem .55rem; font-size: .74rem; }
  .app-help span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .app-header .wrap { gap: .6rem; }
  .app-header .brand img { height: 34px; }
  .app-header .secure-pill svg { flex: none; }
  .app-header .app-tools { gap: .45rem; }
  .app-header .secure-pill { white-space: nowrap; gap: .3rem; padding-inline: .5rem; font-size: .7rem; }
  .trust { grid-template-columns: 1fr; }
  .app-footer .wrap { justify-content: center; text-align: center; }
  .app-footer nav { justify-content: center; }
}

@media (max-width: 389px) {
  .app-header .secure-pill { padding: .45rem; }
  .app-header .secure-pill span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- pago: el botón a la vista ---------- */
.page-pay .apply-head { margin-bottom: .8rem; }
.page-pay .apply-head .label { display: none; }
.page-pay .apply-head .h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 0; }
.page-pay .stepper { margin-bottom: 1.1rem; }
.page-pay .stepper::before { top: 16px; }
.page-pay .stepper .dot { width: 34px; height: 34px; font-size: .86rem; }
.page-pay .stepper .dot svg { width: 17px; height: 17px; }
.page-pay .stepper li { gap: .25rem; }
.page-pay .summary { padding: 1.25rem; }
.page-pay .summary h2 { margin-bottom: .4rem; }
.page-pay .summary .line { padding: .5rem 0; }
.page-pay .summary .total { padding: .7rem 0 .8rem; }
.page-pay .summary .once { margin: .9rem 0 .8rem; }
.page-pay .summary .own { margin-bottom: 0; }
.page-pay .summary .consents .check { font-size: .8rem; line-height: 1.42; gap: .6rem; margin-bottom: .55rem; }
.page-pay .consents { margin-bottom: .7rem; }
.page-pay .confirm .hint { margin-top: .5rem !important; }
.page-pay .co-section { margin-bottom: 1.5rem; }
.page-pay .co-section h2 { margin-bottom: .8rem; }
.page-pay .plan-opts { gap: .55rem; }
.page-pay .plan-opt { padding: .65rem 1rem; }
.pay-btn { min-height: 60px; font-size: 1.15rem; font-weight: 750; box-shadow: 0 0 0 5px var(--accent-soft), 0 14px 26px -12px rgba(10, 108, 143, .85); }
.check.is-missing { border-radius: 12px; outline: 2px solid var(--danger); outline-offset: 4px; }
.pay-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--card); border-top: 1px solid var(--line-strong); box-shadow: 0 -12px 30px -18px rgba(6, 37, 56, .5); padding: .65rem 0 calc(.65rem + env(safe-area-inset-bottom, 0px)); }
.pay-bar[hidden] { display: none; }
.pay-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pay-bar-total small { display: block; font-size: .76rem; color: var(--mute); line-height: 1.2; }
.pay-bar-total b { font-size: 1.4rem; letter-spacing: -.02em; white-space: nowrap; }
.pay-bar-btn { flex: 0 1 340px; justify-content: center; min-height: 52px; font-size: 1.05rem; font-weight: 750; }
body.has-paybar .app-footer { padding-bottom: 84px; }
@media (max-width: 560px) { .pay-bar-btn { flex: 1 1 auto; } }
@media (max-width: 640px) { .page-pay .stepper { margin-bottom: 2.4rem; } .page-pay .stepper li.is-current .name { top: 40px; } }
/* Pago en móvil: mismo diseño, más ancho útil y menos altura */
@media (max-width: 640px) {
  .app-mode .notice-bar { font-size: .76rem; line-height: 1.4; }
  .page-pay .wrap, .app-header .wrap { padding-inline: .8rem; }
  .app-mode .page-pay { padding-top: 1rem; }
  .page-pay .apply-head .h1 { font-size: 1.35rem; }
  .page-pay .checkout-layout { gap: .9rem; }
  .page-pay .summary { padding: 1rem; }
  .page-pay .summary h2 { font-size: 1.05rem; }
  .page-pay .summary .line { padding: .4rem 0; font-size: .9rem; }
  .page-pay .summary .line small { font-size: .76rem; line-height: 1.35; }
  .page-pay .summary .total { padding: .55rem 0 .2rem; }
  .page-pay .summary .once { font-size: .78rem; margin: .4rem 0 .6rem; }
  .page-pay .summary .own { font-size: .78rem; line-height: 1.45; padding: .6rem .75rem; gap: .55rem; }
  .page-pay .co-main { padding: 1.1rem .95rem; }
  .page-pay .co-section { margin-bottom: 1.2rem; }
  .page-pay .co-section h2 { font-size: 1.05rem; gap: .55rem; margin-bottom: .65rem; }
  .page-pay .co-section .n { width: 26px; height: 26px; font-size: .78rem; }
  .page-pay .plan-opt { padding: .55rem .75rem; gap: .65rem; }
  .page-pay .plan-opt small { font-size: .78rem; line-height: 1.35; }
  .page-pay .timing-hint { font-size: .8rem; line-height: 1.45; padding: .6rem .75rem; margin-bottom: 0; }
  .page-pay .contact-line { padding: .7rem .85rem; font-size: .92rem; }
  .page-pay .co-section .hint { font-size: .78rem; }
  .page-pay #card-element { padding: .95rem .7rem; }
  .page-pay .secure-line { align-items: flex-start; font-size: .76rem; line-height: 1.4; margin-top: .55rem; }
  .page-pay .pay-mobile .check { font-size: .8rem; line-height: 1.42; gap: .6rem; margin-bottom: .65rem; }
  .page-pay .pay-mobile .check input { width: 22px; height: 22px; }
  .page-pay .pay-mobile { margin-bottom: 0; }
  .page-pay .trust { margin-top: 1rem; padding: .9rem; }
}

/* En pantallas bajas la columna del pedido no se queda fija: así sus casillas nunca quedan atrapadas bajo la barra */
@media (min-width: 1001px) and (max-height: 860px) { .page-pay .co-aside { position: static; } }

/* Calculadora sin botón (servicio oculto) */
.ticket:not(:has(.ticket-go)) { grid-template-columns: 1fr; }
.ticket:not(:has(.ticket-go)) .ticket-main { border: 0; }
