/* ==========================================================================
   Magava Travel
   Lectura del diseno: landing de agencia de viajes para viajeros colombianos,
   lenguaje de consumo premium y limpio, con el turquesa de la marca como unico
   acento. Dials: VARIANCE 7 / MOTION 6 / DENSITY 3.

   Sistema:
   - Un solo acento (turquesa) en toda la pagina. Claro y oscuro automaticos.
   - Radios: botones pildora, tarjetas 24px, campos y miniaturas 14px.
   - Solo se animan transform y opacity. Todo se apaga con reduced-motion.
   ========================================================================== */

/* ---------- Fuentes autohospedadas ---------- */
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f3f8f8;
  --bg-alt: #e9f2f2;
  --surface: #fbfdfd;
  --ink: #0d1f23;
  --ink-soft: #3d5257;
  --line: rgba(13, 31, 35, 0.14);

  --accent: #0e7c86;
  --accent-hover: #0a666f;
  --accent-ink: #f3fbfb;
  --accent-soft: #d9eeed;

  --block: #0d2a2f;
  --block-ink: #e9f6f6;
  --deep: #08454d;
  --deep-ink: #e9f6f6;
  --deep-soft: #b7d6d8;

  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --r-card: 24px;
  --r-field: 14px;
  --r-pill: 999px;

  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --header-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #081315;
    --bg-alt: #0c1b1e;
    --surface: #112428;
    --ink: #e6f1f1;
    --ink-soft: #a6bcbf;
    --line: rgba(230, 241, 241, 0.16);

    --accent: #3fc1c9;
    --accent-hover: #6ad3d9;
    --accent-ink: #04292d;
    --accent-soft: #0f2f33;

    --block: #0f3038;
    --block-ink: #e9f6f6;
    --deep: #062a30;
    --deep-ink: #e9f6f6;
    --deep-soft: #9fc4c8;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip; /* nunca "hidden": rompe position: sticky del hero */
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
address { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--r-pill);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Tipografia ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 18ch;
}
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 56ch;
}
.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow--light { color: rgba(255, 255, 255, 0.88); }

/* ---------- Botones (pildora) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background-color 0.25s, border-color 0.25s;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--lg { min-height: 54px; padding: 0 32px; font-size: 1.0625rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--primary:hover { background: var(--accent-hover); }

/* Boton sobre medios (foto o video): borde y fondo propios para tener contraste */
.btn--glass {
  background: rgba(8, 19, 21, 0.4);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn--glass:hover { background: rgba(8, 19, 21, 0.62); border-color: #fff; }
@media (prefers-reduced-transparency: reduce) {
  .btn--glass { background: #0d2a2f; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand-logo { width: 140px; height: auto; }
.brand-logo--color { display: none; }
.brand img.custom-logo { max-height: 48px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 28px; flex-wrap: nowrap; }
.nav-list a {
  display: inline-block;
  padding: 8px 2px;
  font-weight: 500;
  font-size: 0.975rem;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.92;
  transition: opacity 0.2s;
}
.nav-list a:hover { opacity: 1; text-decoration: underline; }
.nav-cta { min-height: 44px; padding: 0 22px; font-size: 0.975rem; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex; }
.nav-toggle__open { display: inline-flex; }

/* Cabecera solida (despues del hero y en paginas internas) */
.site-header.is-solid {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.site-header.is-solid .brand-logo--white { display: none; }
.site-header.is-solid .brand-logo--color { display: block; }
@media (prefers-color-scheme: dark) {
  .site-header.is-solid .brand-logo--white { display: block; }
  .site-header.is-solid .brand-logo--color { display: none; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 20px var(--gutter) 28px;
    background: var(--bg);
    color: var(--ink);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease), opacity 0.25s, visibility 0s 0.35s;
  }
  .primary-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: transform 0.35s var(--ease), opacity 0.25s;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { display: block; padding: 14px 4px; font-size: 1.125rem; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 12px; width: 100%; min-height: 52px; }
}

/* ---------- Hero (video con scroll) ---------- */
.hero { position: relative; background: #0a1a1d; color: #fff; }
.hero-track { position: relative; }
.hero-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

/* Con medios configurados y JS: pista alta y escenario fijo */
.js .hero[data-media="1"] .hero-track { height: 340svh; }
.js .hero[data-media="1"] .hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  min-height: 0;
}
/* Sin movimiento (preferencia, sin frames o fallo): una sola pantalla */
.scrub-static .hero-track { height: auto !important; }
.scrub-static .hero-stage { position: relative !important; height: auto !important; min-height: 100svh !important; }
@media (prefers-reduced-motion: reduce) {
  .js .hero[data-media="1"] .hero-track { height: auto; }
  .js .hero[data-media="1"] .hero-stage { position: relative; height: auto; min-height: 100svh; }
}

.hero-frame,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-video { opacity: 0; transition: opacity 0.4s; }
.hero-stage.surface-video.is-media-ready .hero-video { opacity: 1; }
.hero-stage.surface-frames .hero-video { display: none; }

/* El velo se aclara con el avance para dejar ver el video (--progress la escribe el motor) */
.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(6, 18, 20, 0.86) 0%, rgba(6, 18, 20, 0.5) 38%, rgba(6, 18, 20, 0.12) 70%),
    linear-gradient(to bottom, rgba(6, 18, 20, 0.5) 0%, transparent 22%);
  opacity: calc(1 - var(--progress, 0) * 0.3);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: calc(clamp(3rem, 11vh, 7rem) + (100lvh - 100svh));
}
.hero-content > * { max-width: 100%; }
.hero-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.4vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 15em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.hero-sub {
  margin-top: 20px;
  max-width: 36em;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  text-wrap: balance;
  color: rgba(255, 255, 255, 0.92);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-content > * {
    opacity: 0;
    transform: translateY(18px);
    animation: rise 0.9s var(--ease) forwards;
  }
  .hero-content > :nth-child(2) { animation-delay: 0.08s; }
  .hero-content > :nth-child(3) { animation-delay: 0.16s; }
  .hero-content > :nth-child(4) { animation-delay: 0.24s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* Indicador de carga (no bloquea) y barra de avance atada al fotograma visible */
.hero-loader {
  position: absolute;
  right: var(--gutter);
  bottom: calc(24px + (100lvh - 100svh));
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: rgba(6, 18, 20, 0.62);
  color: #fff;
  font-size: 0.8125rem;
  transition: opacity 0.4s, visibility 0s 0.4s;
}
.hero-loader__bar { width: 72px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.hero-loader__fill { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(var(--load, 0)); }
.hero-stage.is-ready .hero-loader { opacity: 0; visibility: hidden; }
.scrub-static .hero-loader { display: none; }

.hero-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
}
.hero-progress__fill {
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
}
.scrub-static .hero-progress { display: none; }

/* ---------- Secciones ---------- */
.section { padding-block: var(--section-y); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(2.25rem, 5vw, 3.75rem); }

/* Cifras y alianzas */
.respaldo { padding-block: clamp(3.5rem, 7vw, 6rem); }
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.stat { display: flex; flex-direction: column-reverse; gap: 6px; }
.stat dt { color: var(--ink-soft); max-width: 22ch; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.25rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.stat--lead .stat-num { font-size: clamp(4.5rem, 11vw, 9rem); }
@media (min-width: 900px) {
  .stats { grid-template-columns: 6fr 3fr 3fr; align-items: end; gap: 48px; }
}
.allies { margin-top: clamp(3rem, 6vw, 5rem); padding-top: 28px; border-top: 1px solid var(--line); }
.allies-title { font-family: var(--font-body); font-weight: 500; font-size: 1rem; color: var(--ink-soft); margin-bottom: 18px; }
.allies-list { display: flex; flex-wrap: wrap; gap: 10px 36px; }
.allies-list li {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  letter-spacing: -0.01em;
}

/* Nosotros */
.nosotros { background: var(--bg-alt); }
.nosotros-grid { display: grid; gap: 48px; align-items: center; }
.nosotros-copy { display: grid; gap: 22px; justify-items: start; }
.nosotros-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-card);
}
.values { display: grid; gap: 0; margin-top: 12px; width: 100%; }
.value { display: flex; gap: 18px; padding: 20px 0; }
.value + .value { border-top: 1px solid var(--line); }
.value-icon {
  flex: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
}
.value-icon .icon { width: 24px; height: 24px; }
.value h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
.value p { color: var(--ink-soft); margin-top: 2px; max-width: 44ch; }
@media (min-width: 900px) {
  .nosotros-grid { grid-template-columns: 6fr 5fr; gap: clamp(48px, 7vw, 112px); }
  .nosotros-media { margin-top: 56px; }
}

/* Servicios: bento (8 contenidos, 8 celdas) */
.bento { display: grid; grid-template-columns: 1fr; gap: 16px; }
.cell {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 260px;
  padding: 28px;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid transparent;
}
.cell-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, currentColor 14%, transparent);
}
.cell-icon .icon { width: 26px; height: 26px; }
.cell-thumb {
  position: absolute;
  top: 28px;
  right: 28px;
  width: min(44%, 176px);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-field);
}
.cell-body h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.1; }
.cell-body p { margin-top: 8px; font-size: 0.975rem; line-height: 1.5; max-width: 40ch; opacity: 0.92; }

.cell--accent { background: var(--accent); color: var(--accent-ink); }
.cell--tint { background: var(--accent-soft); color: var(--ink); }
.cell--dark { background: var(--block); color: var(--block-ink); }
.cell--surface { background: var(--surface); color: var(--ink); border-color: var(--line); }
.cell--tint .cell-icon,
.cell--surface .cell-icon { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }

@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(250px, auto); }
  .c-hoteles { grid-column: span 7; grid-row: span 2; }
  .c-tiquetes { grid-column: span 5; }
  .c-cruceros { grid-column: span 5; }
  .c-asistencia { grid-column: span 3; }
  .c-tours { grid-column: span 5; }
  .c-actividades { grid-column: span 4; }
  .c-circuitos { grid-column: span 5; }
  .c-parques { grid-column: span 7; }
  .c-hoteles .cell-body h3 { font-size: clamp(2rem, 3.4vw, 3rem); }
  .c-hoteles .cell-thumb { width: min(40%, 220px); }
  /* En celdas angostas la miniatura va abajo del icono para no apretar el texto */
  .c-asistencia .cell-thumb,
  .c-actividades .cell-thumb { position: static; width: 100%; max-width: 176px; }
  .c-asistencia, .c-actividades { justify-content: flex-start; }
}
@media (min-width: 760px) and (max-width: 1099px) {
  .c-asistencia { grid-column: span 4; }
  .c-tours { grid-column: span 8; }
  .c-actividades { grid-column: span 6; }
  .c-circuitos { grid-column: span 6; }
  .c-parques { grid-column: span 12; }
}

/* Experiencias: pestanas */
.experiencias { background: var(--bg); }
.niches { display: grid; gap: 28px; }
.niche-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding-bottom: 4px; }
.niche-tabs::-webkit-scrollbar { display: none; }
.niche-tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.0625rem;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.35s var(--ease);
}
.niche-tab:hover { border-color: var(--accent); }
.niche-tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.niche-tab:active { transform: scale(0.98); }
.niche-panel {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
}
.niche-panel[hidden] { display: none; }
.niche-text h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.niche-text p { margin-top: 14px; color: var(--ink-soft); font-size: 1.125rem; max-width: 40ch; }
.niche-img { width: 100%; max-width: 340px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-field); justify-self: start; }
@media (min-width: 820px) {
  .niche-panel { grid-template-columns: 1fr auto; gap: clamp(32px, 5vw, 72px); min-height: 320px; }
  .niche-img { justify-self: end; max-width: 380px; }
}
@media (prefers-reduced-motion: no-preference) {
  .niche-panel:not([hidden]) { animation: rise 0.6s var(--ease); }
}

/* Proceso */
.proceso { background: var(--bg-alt); }
.proceso-grid { display: grid; gap: 40px; align-items: start; }
.proceso-head { display: grid; gap: 18px; }
.steps { display: grid; gap: 14px; }
.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
}
.step-icon {
  flex: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
}
.step-icon .icon { width: 26px; height: 26px; }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; line-height: 1.1; }
.step p { margin-top: 6px; color: var(--ink-soft); max-width: 46ch; }
@media (min-width: 900px) {
  .proceso-grid { grid-template-columns: 5fr 6fr; gap: clamp(48px, 7vw, 112px); }
  .proceso-head { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* Contacto */
.contacto {
  position: relative;
  isolation: isolate;
  background: var(--deep);
  color: var(--deep-ink);
}
.contacto::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--deep) 0%, color-mix(in srgb, var(--deep) 82%, transparent) 55%, var(--deep) 100%),
    var(--bg-img) center / cover no-repeat;
}
.contacto-grid { display: grid; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contacto-copy { display: grid; gap: 20px; justify-items: start; }
.contacto .h2 { color: #fff; }
.contacto .lead { color: var(--deep-soft); }
.contact-list { display: grid; gap: 18px; margin-top: 12px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon { width: 26px; height: 26px; margin-top: 2px; color: var(--accent-ink); background: none; }
.contacto .contact-list .icon { color: #7fe0e6; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.sep-gap { display: inline-block; width: 18px; }
.social { display: flex; gap: 12px; margin-top: 8px; }
.social a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--r-pill);
  transition: background-color 0.25s, transform 0.35s var(--ease);
}
.social a:hover { background: rgba(255, 255, 255, 0.14); }
.social a:active { transform: scale(0.96); }
.social .icon { width: 24px; height: 24px; }

.form-card {
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--r-card);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 70px rgba(2, 20, 24, 0.35);
}
.quote-form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field-row { display: grid; gap: 20px; }
.field label { font-weight: 600; font-size: 0.975rem; }
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid color-mix(in srgb, var(--ink) 38%, transparent);
  border-radius: var(--r-field);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover,
.field textarea:hover { border-color: var(--ink-soft); }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent); }
.field input:user-invalid { border-color: #b3261e; }
.hint { font-size: 0.875rem; color: var(--ink-soft); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: 0.7; cursor: progress; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .contacto-grid { grid-template-columns: 5fr 6fr; } }

.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: var(--r-field);
  font-weight: 500;
}
.notice .icon { width: 26px; height: 26px; margin-top: 1px; }
.notice--ok { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--ink); }
.notice--ok .icon { color: var(--accent); }
.notice--error { background: #fde8e6; color: #5c0f0a; }
.notice--error .icon { color: #b3261e; }
@media (prefers-color-scheme: dark) {
  .notice--error { background: #3a1613; color: #ffd9d5; }
  .notice--error .icon { color: #ff8a80; }
  .field input:user-invalid { border-color: #ff8a80; }
}

/* Pie de pagina */
.site-footer { background: var(--deep); color: var(--deep-ink); padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer-grid { display: grid; gap: 36px; padding-bottom: 40px; }
.footer-logo { width: 150px; height: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 36ch; color: var(--deep-soft); }
.footer-title { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { text-decoration: none; color: var(--deep-soft); }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 22px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
  color: var(--deep-soft);
}
.footer-base a { text-decoration: none; }
.footer-base a:hover { color: #fff; text-decoration: underline; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 5fr 3fr 4fr; } }

/* Paginas internas */
.page-wrap { padding-top: calc(var(--header-h) + clamp(3rem, 6vw, 5rem)); padding-bottom: var(--section-y); min-height: 70vh; }
.entry + .entry { margin-top: 3rem; }
.entry-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1.25rem; }
.entry-title a { text-decoration: none; }
.entry-content { max-width: 68ch; }
.entry-content > * + * { margin-top: 1.1em; }

/* ---------- Revelado al entrar en pantalla ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s var(--ease) var(--d, 0ms), transform 0.8s var(--ease) var(--d, 0ms);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Reducir movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
