/* =========================================================
   Gestión Caribe Skynet
   Sistema visual inspirado en la claridad de las páginas de producto de Apple:
   fondos limpios, fotografía protagonista, tipografía grande y compacta.
   ========================================================= */

:root {
  /* Color */
  --blanco: #ffffff;
  --niebla: #f3f5f6;          /* gris claro frío para secciones alternas */
  --grafito: #1d2226;         /* texto principal */
  --pizarra: #5d666d;         /* texto secundario */
  --linea: #d9dee1;
  --negro: #000000;           /* escenarios de fotografía */
  --azul: #1064bf;            /* acento (azul de las barras del membrete): enlaces y botones */
  --azul-hover: #0b4e99;
  --azul-logo: #1e86dc;       /* azul del logotipo */
  --azul-claro: #6db6f5;      /* acento sobre negro */

  /* Tipografía */
  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --texto: "Onest", "Segoe UI", sans-serif;

  --fs-hero: clamp(3rem, 8.4vw, 6.75rem);
  --fs-h2: clamp(2.4rem, 5.6vw, 4.5rem);
  --fs-h3: clamp(1.6rem, 3vw, 2.5rem);
  --fs-sub: clamp(1.2rem, 2vw, 1.65rem);
  --fs-body: 1.1875rem;

  /* Medidas */
  --wrap: 1260px;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 52px;
  --r-lg: 28px;
  --r-md: 18px;
  --ease: cubic-bezier(.25, .1, .25, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--blanco);
  color: var(--grafito);
  font: 400 var(--fs-body)/1.5 var(--texto);
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1em; text-wrap: pretty; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  font-optical-sizing: auto;
  letter-spacing: -.035em;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.05; letter-spacing: -.03em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 980px; }
.center { text-align: center; }
.sub { font-size: var(--fs-sub); line-height: 1.3; letter-spacing: -.015em; color: var(--pizarra); font-weight: 500; }
.center .sub { margin-inline: auto; max-width: 36ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 200; background: var(--grafito); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 10px; }

/* ---------- Botones y enlaces ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  background: var(--azul); color: #fff; border: 0;
  font: 500 1.0625rem/1 var(--texto); letter-spacing: -.01em;
  cursor: pointer; transition: background-color .2s var(--ease);
}
.pill:hover { background: var(--azul-hover); text-decoration: none; color: #fff; }
.pill-sm { min-height: 32px; padding: 0 14px; font-size: .875rem; }
.pill-ghost { background: transparent; color: var(--azul); box-shadow: inset 0 0 0 1.5px currentColor; }
.pill-ghost:hover { background: var(--azul); color: #fff; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.chev { width: 7px; height: 12px; transition: translate .2s var(--ease); }
.more:hover .chev { translate: 3px 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 32px; }
.center .actions { justify-content: center; }

/* ---------- Navegación global (vidrio) ---------- */
.globalnav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.globalnav-inner { height: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand-word { font: 300 1.45rem/1 "Oswald", "Arial Narrow", sans-serif; letter-spacing: .42em; margin-right: -.42em; color: var(--azul-logo); }
.globalnav-menu { margin-inline: auto; }
.globalnav-menu ul { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.globalnav-menu a { color: var(--grafito); font-size: .875rem; opacity: .82; transition: opacity .2s; }
.globalnav-menu a:hover { opacity: 1; text-decoration: none; }
.globalnav-menu a[aria-current="page"] { opacity: 1; font-weight: 600; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .globalnav-menu ul { gap: 0; }
  .nav-toggle {
    display: block; order: 3; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; position: relative; margin-left: 4px;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    position: absolute; left: 11px; width: 18px; height: 1.6px; background: var(--grafito); content: ""; border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease), background-color .2s;
  }
  .nav-toggle-bar { top: 19px; }
  .nav-toggle-bar::before { left: 0; top: -5px; }
  .nav-toggle-bar::after { left: 0; top: 5px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }
  .globalnav-cta { margin-left: auto; }
  .globalnav-menu {
    position: fixed; inset: var(--nav-h) 0 auto 0; height: calc(100dvh - var(--nav-h));
    background: var(--blanco); padding: 24px var(--gutter);
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  }
  .globalnav-menu.is-open { opacity: 1; visibility: visible; }
  .globalnav-menu ul { flex-direction: column; }
  .globalnav-menu a { display: block; padding: 12px 0; font: 700 1.9rem/1.1 var(--display); letter-spacing: -.03em; opacity: 1; }
}

/* ---------- Secciones ---------- */
.block { padding-block: clamp(80px, 11vw, 150px); }
.block-tight { padding-block: clamp(56px, 7vw, 96px); }
.bg-niebla { background: var(--niebla); }
.bg-negro { background: var(--negro); color: #f5f5f7; }
.bg-negro .sub { color: #a1a7ab; }
.bg-negro a { color: var(--azul-claro); }
.block-head { margin-bottom: clamp(40px, 6vw, 72px); }
.block-head .sub { margin-top: 18px; max-width: 40ch; }
.block-head.center .sub { margin-inline: auto; }

/* ---------- Portada: titular + foto que se expande ---------- */
.hero { padding-top: clamp(64px, 10vw, 128px); text-align: center; }
.hero h1 { max-width: 13ch; margin-inline: auto; }
.hero .sub { margin-top: 24px; }

.hero-stage { margin-top: clamp(48px, 7vw, 88px); }
.hero-media {
  position: relative; margin: 0;
  height: min(88vh, 900px);
  clip-path: inset(0 var(--gutter) round var(--r-lg));
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption {
  position: absolute; left: 50%; bottom: clamp(24px, 4vw, 48px); translate: -50% 0;
  margin: 0; padding: 10px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  font-size: .9rem; font-weight: 500; white-space: nowrap; color: var(--grafito);
}

/* La foto pasa de tarjeta redondeada a pantalla completa con el scroll.
   Mejora progresiva: sin soporte, main.js usa GSAP ScrollTrigger. */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes expandir {
      from { clip-path: inset(0 var(--gutter) round var(--r-lg)); }
      to   { clip-path: inset(0 0 round 0); }
    }
    @keyframes acercar { from { scale: 1.12; } to { scale: 1; } }
    .hero-media {
      animation: expandir linear both;
      animation-timeline: view();
      animation-range: entry 40% cover 50%;
    }
    .hero-media img {
      animation: acercar linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 60%;
    }
  }
}

/* Franja de datos bajo la portada */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.fact strong { display: block; font: 800 clamp(1.6rem, 2.6vw, 2.2rem)/1.05 var(--display); letter-spacing: -.035em; margin-bottom: 8px; }
.fact p { margin: 0; color: var(--pizarra); font-size: 1.0625rem; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; gap: 36px 24px; } }

/* ---------- Galería horizontal ---------- */
.gallery { position: relative; }
.gallery-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 400px); gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 4px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 8px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scrollbar-width: none; list-style: none; margin: 0;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item { scroll-snap-align: start; }
.gallery-card {
  position: relative; display: block; height: min(70vh, 560px); border-radius: var(--r-lg); overflow: hidden;
  color: #fff; background: #222;
}
.gallery-card:hover { text-decoration: none; }
.gallery-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease); }
.gallery-card:hover img { scale: 1.04; }
.gallery-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 30%, rgba(0,0,0,0) 50%); }
.gallery-text { position: absolute; z-index: 1; top: 0; left: 0; right: 0; padding: 28px; }
.gallery-text p { margin: 0 0 6px; font-size: 1rem; font-weight: 500; opacity: .92; }
.gallery-text h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.gallery-controls { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 24px; }
.gallery-dots { display: flex; gap: 8px; margin-right: auto; }
.gallery-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: #c7ccd0; cursor: pointer; transition: width .3s var(--ease), background-color .3s; }
.gallery-dots button[aria-current="true"] { width: 28px; background: var(--grafito); }
.bg-negro .gallery-dots button { background: #4a4f53; }
.bg-negro .gallery-dots button[aria-current="true"] { background: #f5f5f7; }
.round-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: #e8ebed; color: var(--grafito); transition: background-color .2s, opacity .2s;
}
.round-btn:hover { background: #dce0e3; }
.round-btn:disabled { opacity: .35; cursor: default; }
.round-btn svg { width: 9px; height: 15px; }
.bg-negro .round-btn { background: #2a2d30; color: #f5f5f7; }
.bg-negro .round-btn:hover { background: #3a3e42; }

/* Efecto sutil de los elementos al cruzar la galería (decorativo, sin alternativa) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes asomar { from { opacity: .35; scale: .94; } to { opacity: 1; scale: 1; } }
    .gallery-item {
      animation: asomar linear both;
      animation-timeline: view(inline);
      animation-range: entry 0% entry 90%;
    }
  }
}

/* ---------- Mosaicos (portada) ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  min-height: clamp(520px, 62vw, 700px); padding: 56px 24px; overflow: hidden; color: #fff;
}
.tile-wide { grid-column: 1 / -1; }
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tile { isolation: isolate; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 45%); }
.tile h2 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
.tile p { font-size: var(--fs-sub); font-weight: 500; letter-spacing: -.015em; margin: 10px 0 0; }
.tile .actions { margin-top: 20px; }
.tile .pill-ghost { color: #fff; }
.tile .pill-ghost:hover { background: #fff; color: var(--grafito); }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 520px; } }

/* ---------- Pasos (secuencia real) ---------- */
.steps { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 40px 32px; list-style: none; margin: 0; padding: 0; counter-reset: paso; }
.steps li { counter-increment: paso; }
.steps li::before {
  content: counter(paso); display: block; margin-bottom: 20px;
  font: 800 clamp(3.5rem, 6vw, 5rem)/.9 var(--display); letter-spacing: -.05em;
  background: linear-gradient(180deg, var(--azul-claro), var(--azul-logo)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps h3 { font-size: 1.5rem; margin-bottom: 10px; }
.steps p { color: var(--pizarra); font-size: 1.0625rem; margin: 0; }
.bg-negro .steps p { color: #a1a7ab; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Bloque foto + texto ---------- */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature.reverse > :first-child { order: 2; }
.feature-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature h2 { font-size: var(--fs-h3); }
.feature .sub { margin-top: 18px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature.reverse > :first-child { order: 0; } }

.list { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--linea); }
.list li { padding: 16px 0; border-bottom: 1px solid var(--linea); font-size: 1.0625rem; }
.list b { display: block; font-weight: 600; }
.list span { color: var(--pizarra); }
.bg-negro .list, .bg-negro .list li { border-color: #2f3337; }
.bg-negro .list span { color: #a1a7ab; }

/* ---------- Encabezado de páginas internas ---------- */
.page-hero { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(40px, 6vw, 72px); text-align: center; }
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); max-width: 14ch; margin-inline: auto; }
.page-hero .sub { margin-top: 22px; margin-inline: auto; max-width: 40ch; }
.page-photo { margin: 0 var(--gutter); border-radius: var(--r-lg); overflow: hidden; height: min(72vh, 720px); }
.page-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Navegación por capítulos (excursiones) */
.chapters { display: flex; justify-content: center; gap: clamp(16px, 3vw, 40px); list-style: none; margin: 0; padding: 8px var(--gutter) 0; overflow-x: auto; scrollbar-width: none; }
.chapters::-webkit-scrollbar { display: none; }
.chapters a { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 92px; color: var(--grafito); font-size: .82rem; font-weight: 500; text-align: center; line-height: 1.2; }
.chapters a:hover { text-decoration: none; color: var(--azul); }
.chapters img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
@media (max-width: 760px) { .chapters { justify-content: flex-start; } }

/* Capítulo: foto amplia con título encima */
.chapter-media { position: relative; border-radius: var(--r-lg); overflow: hidden; height: min(78vh, 760px); color: #fff; isolation: isolate; }
.chapter-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.chapter-media::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 50%); }
.chapter-media .chapter-title { position: absolute; left: 0; bottom: 0; padding: clamp(24px, 5vw, 56px); max-width: 760px; }
.chapter-media h2 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
.chapter-media p { font-size: var(--fs-sub); font-weight: 500; margin: 14px 0 0; letter-spacing: -.015em; }
.chapter-body { display: grid; grid-template-columns: 1fr 1fr; gap: 32px clamp(32px, 6vw, 96px); padding-top: 40px; }
.chapter-body .list { margin-top: 0; }
@media (max-width: 760px) { .chapter-body { grid-template-columns: 1fr; } }

/* ---------- Tabla comparativa (paquetes) ---------- */
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(16px, 3vw, 40px); }
.compare-col { display: flex; flex-direction: column; text-align: center; }
.compare-col figure { margin: 0 0 28px; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; }
.compare-col figure img { width: 100%; height: 100%; object-fit: cover; }
.compare-col h3 { font-size: 1.75rem; }
.compare-col .tagline { color: var(--pizarra); margin: 10px 0 22px; min-height: 3em; }
.compare-col dl { margin: 28px 0 0; border-top: 1px solid var(--linea); text-align: center; }
.compare-col dt { font-size: .8rem; color: var(--pizarra); margin-top: 22px; }
.compare-col dd { margin: 4px 0 0; font-weight: 500; }
.compare-col .actions { justify-content: center; margin-top: 4px; }
@media (max-width: 860px) {
  .compare { grid-template-columns: 1fr; gap: 64px; }
  .compare-col .tagline { min-height: 0; }
}

/* ---------- Tarjetas sobrias ---------- */
.cards { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 20px; }
.card { background: var(--blanco); border-radius: var(--r-md); padding: clamp(28px, 3vw, 40px); }
.bg-negro .card { background: #161819; }
.card h3 { font-size: 1.6rem; margin-bottom: 12px; }
.card p { color: var(--pizarra); margin: 0; font-size: 1.0625rem; }
.bg-negro .card p { color: #a1a7ab; }
.card .more { margin-top: 18px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Preguntas frecuentes ---------- */
.faq { border-top: 1px solid var(--linea); }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary {
  list-style: none; cursor: pointer; position: relative; padding: 26px 48px 26px 0;
  font: 700 clamp(1.2rem, 2vw, 1.5rem)/1.2 var(--display); letter-spacing: -.025em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--azul); border-bottom: 2px solid var(--azul); rotate: 45deg; transition: rotate .3s var(--ease), margin .3s var(--ease);
}
.faq details[open] summary::after { rotate: 225deg; margin-top: -2px; }
.faq details p { color: var(--pizarra); max-width: 64ch; margin: 0; padding: 0 0 26px; }

/* ---------- Cierre ---------- */
.closing h2 { max-width: 14ch; margin-inline: auto; }
.closing-mails { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 48px; margin-top: 40px; }
.closing-mails a { font: 700 clamp(1.1rem, 2vw, 1.5rem)/1.2 var(--display); letter-spacing: -.02em; }
.closing-mails span { display: block; font: 400 .9rem/1.4 var(--texto); color: var(--pizarra); margin-bottom: 4px; }

/* ---------- Formulario ---------- */
.form-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .form-layout { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.field { position: relative; }
.field label { display: block; font-size: .9rem; font-weight: 500; color: var(--pizarra); margin: 0 0 6px 4px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 56px; padding: 14px 16px; font: inherit; font-size: 1.0625rem; color: var(--grafito);
  background: var(--blanco); border: 1px solid #c4cacf; border-radius: 12px; transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background: var(--blanco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%235d666d' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 18px center / 13px no-repeat; padding-right: 44px; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(16, 100, 191, .2); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #c4352b; }
.hint { font-weight: 400; color: #8a9298; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--pizarra); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--azul); flex: none; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.notice { padding: 18px 22px; border-radius: 14px; margin-bottom: 28px; font-size: 1.0625rem; }
.notice-ok { background: #e8f1fc; color: #0b3f7a; }
.notice-error { background: #fdecea; color: #8e2a22; }

.contact-aside { display: grid; gap: 12px; }
.contact-aside .card { background: var(--niebla); }
.contact-aside .card a { font-weight: 600; word-break: break-word; }

/* ---------- Texto legal ---------- */
.prose { max-width: 70ch; margin-inline: auto; }
.prose h2 { font-size: 1.75rem; margin: 2em 0 .6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }

/* ---------- Pie ---------- */
.globalfooter { background: var(--niebla); color: var(--pizarra); font-size: .8125rem; line-height: 1.5; padding: 32px 0 24px; }
.globalfooter a { color: var(--grafito); }
.footer-note { padding-bottom: 18px; border-bottom: 1px solid var(--linea); max-width: none; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--linea); }
.footer-cols h2 { font: 600 .8125rem/1.4 var(--texto); letter-spacing: 0; color: var(--grafito); margin-bottom: 10px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 8px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 18px; }
.footer-legal p { margin: 0; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr; } }

.whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.whatsapp svg { width: 28px; height: 28px; }
.closing .sub { margin-top: 20px; }
.hero h1 { max-width: 15ch; }
.tile:hover { text-decoration: none; }
.card-soft { background: var(--niebla); }
@media (min-width: 601px) and (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
.page-hero .actions { justify-content: center; }
.contact-aside .card a { font-size: .95rem; word-break: normal; overflow-wrap: anywhere; }
.hero-stage { overflow-x: clip; }
.card { min-width: 0; }
.card .more, .prose a { overflow-wrap: anywhere; }

/* Logotipo completo en el pie */
.footer-logo { display: inline-flex; flex-direction: column; align-items: stretch; margin-bottom: 22px; }
.footer-logo:hover { text-decoration: none; }
.footer-logo .brand-word { font-size: 2.1rem; }
.brand-legal { font: 500 .66rem/1 "Oswald", "Arial Narrow", sans-serif; color: var(--azul-logo); text-transform: uppercase; letter-spacing: .015em; margin-top: 4px; white-space: nowrap; }

/* Texto de las tarjetas de galería siempre blanco (también dentro de .bg-negro, donde los enlaces son azules) */
.bg-negro .gallery-card, .gallery-card { color: #fff; }
.gallery-text { text-shadow: 0 1px 14px rgba(0, 0, 0, .3); }
.bg-negro .pill, .bg-negro .pill:hover { color: #fff; }
.office { margin-top: 20px; color: var(--pizarra); font-size: 1rem; }
