/* Velari: oscuro y sobrio, cuero como material y un dorado mate como único acento (sin brillos).
   Todo el movimiento se apaga con "reducir movimiento". */

@font-face { font-family: 'Jost'; src: url('/assets/fonts/jost-latin-wght-normal.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/assets/fonts/newsreader-latin-wght-normal.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/assets/fonts/newsreader-latin-wght-italic.woff2') format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; }

:root {
  --bg: #0E0B0A;
  --bg-2: #141010;
  --surface: #1B1614;
  --ink: #F2EBE3;
  --ink-soft: #B8AA9D;
  --line: rgba(242, 235, 227, 0.1);
  --gold: #C9A97C;
  --gold-soft: rgba(201, 169, 124, 0.3);
  --warm-light: rgba(201, 169, 124, 0.07);

  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Jost', 'Avenir Next', 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 5vw, 48px);
  --max: 1160px;
  --nav: 76px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.1875rem/1.55 var(--sans);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* Grano fino sobre todo el sitio: quita el aspecto "plano" del negro. */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.3em; height: 1.3em; flex: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--gold); color: var(--bg); padding: 10px 14px; z-index: 200; }
.skip:focus { top: 12px; }

/* Título de sección con una línea dorada fina debajo. */
.section-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); }
.section-title::after {
  content: ''; display: block; width: 56px; height: 2px; margin-top: 18px;
  background: var(--gold);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 28px;
  border-radius: 2px; border: 1px solid transparent;
  font: 500 1rem/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  transition: background-color 300ms var(--ease), color 300ms var(--ease), box-shadow 400ms var(--ease), transform 200ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--gold); color: #140F0C; }
.btn--primary:hover { background: #D6BA92; }
.btn--outline { border-color: rgba(201, 169, 124, 0.6); color: var(--gold); }
.btn--outline:hover { border-color: var(--gold); }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 11, 10, 0.62);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.nav__inner { max-width: var(--max); margin-inline: auto; padding: 0 var(--gutter); height: var(--nav); display: flex; align-items: center; gap: 32px; }
.nav__brand { text-decoration: none; margin-right: auto; }
.nav__links { display: none; gap: 32px; font-size: 0.92rem; letter-spacing: 0.1em; text-transform: uppercase; }
.nav__links a { text-decoration: none; color: var(--ink-soft); padding: 12px 0; transition: color 250ms var(--ease); }
.nav__links a:hover { color: var(--gold); }
.nav__cta { display: none; min-height: 46px; padding: 10px 20px; font-size: 0.88rem; }
@media (min-width: 900px) { .nav__links, .nav__cta { display: flex; } }

.wordmark { display: inline-flex; align-items: center; gap: 12px; }
.wordmark__mark { width: 40px; height: 40px; border-radius: 50%; }
.wordmark__text { display: inline-flex; flex-direction: column; line-height: 1; }
.wordmark__name { font: 500 1.45rem/1 var(--serif); letter-spacing: 0.28em; text-transform: uppercase; }
.wordmark__tag { font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }

/* ---------- WhatsApp flotante ---------- */
.float-wa {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #15110F; color: var(--gold);
  border: 1px solid rgba(201, 169, 124, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 250ms var(--ease), box-shadow 300ms var(--ease);
}
.float-wa .icon { width: 28px; height: 28px; }
.float-wa:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6); }

/* ---------- Entrada ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: calc(var(--nav) * -1);
  min-height: 100svh;
  display: grid; align-items: center;
  padding: calc(var(--nav) + 40px) 0 72px;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; background: var(--bg); }
.hero__bg picture, .hero__bg img { display: block; width: 100%; height: 100%; }
.hero__bg img { object-fit: cover; opacity: 0.22; filter: grayscale(0.3) contrast(1.15); transform: scale(1.08); }
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 50% 42%, rgba(14, 11, 10, 0) 0%, rgba(14, 11, 10, 0.65) 70%, var(--bg) 100%),
    linear-gradient(180deg, rgba(14, 11, 10, 0.4) 0%, rgba(14, 11, 10, 0) 30%, rgba(14, 11, 10, 0) 70%, var(--bg) 100%);
}
/* Dos luces cálidas muy tenues que se desplazan lento. */
.hero__light {
  position: absolute; z-index: 1; width: 60vmax; height: 60vmax; left: -20vmax; top: -20vmax; border-radius: 50%;
  background: radial-gradient(circle, var(--warm-light), rgba(201, 169, 124, 0) 65%);
}
.hero__light::after {
  content: ''; position: absolute; width: 70%; height: 70%; left: 110%; top: 70%; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 124, 0.16), rgba(201, 169, 124, 0) 65%);
}
.hero__inner { text-align: center; display: grid; justify-items: center; gap: 24px; }
.hero__kicker { font: 500 0.9rem/1 var(--sans); letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-soft); }
.hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 1.6rem + 5vw, 5.8rem); line-height: 1.04; letter-spacing: -0.025em; display: grid; justify-items: center; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin-top: 16px; }
.hero__more { color: var(--ink-soft); font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 14px 4px; }
.hero__more:hover { color: var(--gold); }
@media (max-width: 599px) { .hero__ctas { width: 100%; flex-direction: column; } .hero__ctas .btn { width: 100%; } }

/* Palabra que rota, en dorado. */
.rotator { display: grid; font-style: italic; color: var(--gold); }
.rotator__item { grid-area: 1 / 1; opacity: 0; transform: translateY(45%); filter: blur(6px); transition: opacity 700ms var(--ease), transform 900ms var(--ease), filter 700ms var(--ease); }
.rotator__item.is-on { opacity: 1; transform: none; filter: none; }
.rotator__item.is-off { opacity: 0; transform: translateY(-45%); filter: blur(6px); }

/* ---------- Video ---------- */
.video { padding: clamp(72px, 10vw, 136px) 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.video__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .video__grid { grid-template-columns: 0.9fr 1.3fr; gap: 64px; } }
.video__copy { display: grid; gap: 28px; justify-items: start; }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; width: 100%; border-top: 1px solid var(--line); }
.chapters li > * { display: flex; gap: 18px; align-items: baseline; width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: 400 1.25rem/1.3 var(--serif); text-align: left; }
.chapters button { cursor: pointer; transition: color 250ms var(--ease); }
.chapters button:hover { color: var(--gold); }
.chapters__t { font: 500 0.9rem var(--sans); color: var(--gold); letter-spacing: 0.06em; min-width: 3.2ch; }
@media (max-width: 599px) { .video__copy .btn { width: 100%; } }

.player { margin: 0; position: relative; border-radius: 4px; overflow: hidden; background: #000; border: 1px solid rgba(201, 169, 124, 0.35); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.player__video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--surface); }
.player__label { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.player__speeds { display: inline-flex; border: 1px solid var(--line); }
.player__speeds button { font: 500 1rem var(--sans); min-width: 60px; min-height: 46px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.player__speeds button + button { border-left: 1px solid var(--line); }
.player__speeds button[aria-pressed='true'] { background: var(--gold); color: #140F0C; }
.player--soon { aspect-ratio: 16 / 9; background: #0A0807 url('/assets/img/monograma-apaisado-1080.webp') center / cover no-repeat; }
.player__soon { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 18px; background: radial-gradient(60% 60% at 50% 50%, rgba(10, 8, 7, 0.45), rgba(10, 8, 7, 0.88)); }
.player__play { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); }
.player__play .icon { width: 30px; height: 30px; margin-left: 4px; }
.player__soon-text { font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); }

/* ---------- Cinta de servicios ---------- */
.marquee { overflow: hidden; padding: 26px 0; border-bottom: 1px solid var(--line); }
/* Margen por elemento (no gap) para que las dos mitades midan igual y el bucle no salte. */
.marquee__track { display: flex; align-items: center; width: max-content; font: 400 clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem)/1 var(--serif); letter-spacing: 0.02em; white-space: nowrap; color: rgba(242, 235, 227, 0.42); }
.marquee__track > * { margin-right: 40px; }
.marquee__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }

/* ---------- Quiénes somos: misión, visión, propósito ---------- */
.creed { padding: clamp(80px, 12vw, 160px) 0; text-align: center; }
.creed__list { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: clamp(48px, 7vw, 72px); max-width: 900px; }
.creed__item { display: grid; justify-items: center; gap: 10px; }
.creed__n { font: 400 1.1rem var(--serif); color: var(--gold); letter-spacing: 0.2em; }
.creed__label { font: 500 0.78rem var(--sans); letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-soft); }
.creed__text { font: 400 clamp(1.6rem, 1.1rem + 2.2vw, 2.7rem)/1.2 var(--serif); letter-spacing: -0.015em; max-width: 24ch; text-wrap: balance; }
.ways { list-style: none; margin: clamp(64px, 9vw, 104px) auto 0; padding: 28px 0; max-width: 900px; display: grid; gap: 22px; border-block: 1px solid var(--line); }
.ways li { display: grid; gap: 4px; }
.ways strong { font: 500 0.82rem var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
.ways span { color: var(--ink-soft); font-family: var(--serif); font-size: 1.2rem; }
@media (min-width: 760px) { .ways { grid-template-columns: repeat(3, 1fr); } }
/* La firma usa el logo oficial (café sobre transparente), aclarado para el fondo oscuro. */
.creed__sign { width: 120px; height: auto; margin: clamp(48px, 7vw, 72px) auto 0; filter: invert(1) sepia(0.35) brightness(0.9); opacity: 0.8; }

/* ---------- Servicios ---------- */
.services { padding: 0 0 clamp(72px, 10vw, 136px); }
.services .section-title { text-align: center; }
.services .section-title::after { margin-inline: auto; }
.tiles { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 2.4vw, 24px); }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(3, 1fr); max-width: 900px; margin-inline: auto; } }
.tile a { display: grid; gap: 14px; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.tile__img { display: block; overflow: hidden; border-radius: 4px; background: #2A2320; border: 1px solid rgba(201, 169, 124, 0.12); transition: transform 500ms var(--ease), box-shadow 500ms var(--ease), border-color 500ms var(--ease); }
.tile__img img { width: 100%; height: auto; filter: brightness(0.82) contrast(1.05); transition: transform 1200ms var(--ease), filter 600ms var(--ease); }
.tile__name { font: 500 0.95rem/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; text-align: center; color: var(--ink); }
.tile a:hover .tile__img { transform: translateY(-4px); border-color: rgba(201, 169, 124, 0.7); }
.tile a:hover .tile__img img { transform: scale(1.05); filter: brightness(0.95) contrast(1.05); }
.tile a:active .tile__img { transform: scale(0.98); }

/* ---------- Cómo trabajamos ---------- */
.steps { padding: clamp(64px, 9vw, 112px) 0; border-top: 1px solid var(--line); }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.steps__item { display: flex; align-items: center; gap: 18px; font: 400 clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem)/1.2 var(--serif); }
.steps__n { display: grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font: 500 1.2rem var(--sans); }
@media (min-width: 900px) {
  .steps__list { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .steps__item { flex-direction: column; text-align: center; }
}

/* ---------- Contacto ---------- */
.contact { position: relative; isolation: isolate; overflow: hidden; padding: clamp(88px, 12vw, 160px) 0; background: var(--bg-2); border-top: 1px solid var(--line); text-align: center; }
.contact__bg { position: absolute; z-index: -1; width: 70vmax; height: 70vmax; left: 50%; top: 50%; margin: -35vmax 0 0 -35vmax; border-radius: 50%; background: radial-gradient(circle, var(--warm-light), rgba(201, 169, 124, 0) 60%); }
.contact__inner { display: grid; justify-items: center; gap: 22px; }
.contact h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); color: var(--ink-soft); font-weight: 400; }
.contact__phone { font-family: var(--serif); font-size: clamp(2.8rem, 1.6rem + 5vw, 6rem); line-height: 1; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); transition: color 300ms var(--ease), text-shadow 300ms var(--ease); }
.contact__phone:hover { color: var(--gold); }
@media (max-width: 599px) { .contact .btn { width: 100%; } }

/* ---------- Páginas de servicio ---------- */
.area-hero { padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 8vw, 104px); }
.area-hero > .wrap:not(.area-hero__grid) { display: grid; gap: 20px; justify-items: start; }
.area-hero__grid { display: grid; gap: 32px; align-items: center; }
.area-hero__copy { display: grid; gap: 20px; justify-items: start; }
.area-hero h1 { font-size: clamp(2.3rem, 1.5rem + 3vw, 3.8rem); max-width: 18ch; }
.hero__sub { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.45rem); color: var(--ink-soft); }
.area-hero .hero__ctas { justify-content: flex-start; margin-top: 8px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border: 1px solid var(--line); font-size: 0.98rem; color: var(--ink); background: var(--surface); }
.area-art img { width: 100%; height: auto; border-radius: 4px; border: 1px solid rgba(201, 169, 124, 0.3); filter: brightness(0.85); }
@media (max-width: 899px) { .area-art { display: none; } }
@media (min-width: 900px) { .area-hero__grid { grid-template-columns: 1fr 360px; gap: 72px; } }
.crumbs { display: flex; gap: 10px; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }

.others { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.others__list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 10px; }
.others__list a { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 20px; border: 1px solid var(--line); text-decoration: none; background: var(--surface); transition: border-color 250ms var(--ease), box-shadow 300ms var(--ease); }
.others__list a:hover { border-color: rgba(201, 169, 124, 0.6); }
.others__list .icon { color: var(--gold); }
@media (min-width: 600px) { .others__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .others__list { grid-template-columns: repeat(3, 1fr); } }

.prose { display: grid; gap: 18px; max-width: 70ch; }
.prose h1 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.4rem); }
.prose h2 { font-size: 1.6rem; margin-top: 14px; }
.prose p { color: var(--ink-soft); }

/* ---------- Pie ---------- */
.footer { padding: 64px 0 36px; border-top: 1px solid var(--line); background: var(--bg); }
.footer__grid { display: grid; gap: 32px; }
.footer__note { color: var(--ink-soft); margin-top: 16px; }
.footer__head { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; }
.footer__list a { display: inline-block; padding: 9px 0; text-decoration: none; color: var(--ink-soft); }
.footer__list a:hover { color: var(--ink); }
.footer__legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 0.9rem; color: var(--ink-soft); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (max-width: 899px) { .footer { padding-bottom: 96px; } }

/* ---------- Movimiento (solo si la persona no pidió reducirlo) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__bg img { animation: drift 34s ease-in-out infinite alternate; }
  .hero__light { animation: glow 20s ease-in-out infinite alternate; }
  .contact__bg { animation: glow-center 16s ease-in-out infinite alternate; }
  .marquee__track { animation: slide 42s linear infinite; }

  .rise { animation: rise 1100ms var(--ease) both; }
  .rise--2 { animation-delay: 140ms; }
  .rise--3 { animation-delay: 300ms; }
  .rise--4 { animation-delay: 480ms; }

  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease), transform 1000ms var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .tile:nth-child(3n+2) { transition-delay: 90ms; }
  .js .tile:nth-child(3n) { transition-delay: 180ms; }
  .js .steps__item:nth-child(2) { transition-delay: 120ms; }
  .js .steps__item:nth-child(3) { transition-delay: 240ms; }

  .js .creed__item:nth-child(2) { transition-delay: 120ms; }
  .js .creed__item:nth-child(3) { transition-delay: 240ms; }
}

@keyframes drift {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to { transform: scale(1.22) translate3d(-3%, 2%, 0); }
}
@keyframes glow {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(45vw, 30vh, 0) scale(1.2); }
}
@keyframes glow-center {
  from { transform: translate3d(-14%, -8%, 0) scale(0.9); }
  to { transform: translate3d(14%, 8%, 0) scale(1.1); }
}
@keyframes slide { to { transform: translate3d(-50%, 0, 0); } }
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* ---------- Documentos legales: hoja formal, igual al documento oficial ---------- */
.docpage { padding: clamp(24px, 4vw, 48px) 0 clamp(64px, 9vw, 112px); }
.docpage__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; max-width: calc(900px + 2 * var(--gutter)); margin-bottom: 20px; }
@media (max-width: 599px) {
  .docpage__bar .docpage__nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .docpage__nav a { white-space: nowrap; }
}
.docpage__nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.docpage__nav a { padding: 8px 0; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid transparent; }
.docpage__nav a:hover { color: var(--ink); }
.docpage__nav a[aria-current] { color: var(--gold); border-color: var(--gold); }
.docpage__print { min-height: 44px; padding: 8px 16px; background: none; border: 1px solid rgba(201, 169, 124, 0.5); color: var(--gold); font: 500 0.8rem var(--sans); letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.docpage__print:hover { border-color: var(--gold); }

.sheet {
  --paper-ink: #2B2420;
  --paper-soft: #6B5F57;
  --paper-line: #D8CEC3;
  width: calc(100% - 2 * var(--gutter)); max-width: 900px; margin-inline: auto;
  background: #FFFFFF; color: var(--paper-ink);
  padding: clamp(28px, 7vw, 88px) clamp(20px, 8vw, 96px) clamp(28px, 5vw, 56px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
  font: 400 1rem/1.62 var(--serif);
}
.sheet__head { text-align: center; display: grid; justify-items: center; gap: 8px; padding-bottom: 22px; border-bottom: 1px solid var(--paper-line); }
.sheet__logo { width: 132px; height: auto; margin-bottom: 18px; }
.sheet__cat { font: 500 0.72rem var(--sans); letter-spacing: 0.42em; text-transform: uppercase; color: var(--paper-soft); }
.sheet__title { font: 600 clamp(1.15rem, 0.95rem + 1vw, 1.5rem)/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-ink); }
.sheet__sub { font-style: italic; color: var(--paper-soft); }
.sheet__code { font: 400 0.75rem var(--sans); letter-spacing: 0.14em; color: var(--paper-soft); }
/* break-word (no 'anywhere'): parte solo palabras que no caben, sin encoger columnas de tablas. */
.sheet__body { padding-top: 6px; overflow-wrap: break-word; }
.sheet__body h2 { font: 600 0.8rem/1.4 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--paper-ink); margin: 34px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--paper-line); }
.sheet__body p { margin: 0 0 12px; text-align: justify; hyphens: auto; }
.sheet__body strong { font-weight: 600; }
.sheet__body a { color: inherit; }
.sheet__body ul { list-style: none; margin: 0 0 12px; padding: 0 0 0 1.8em; }
.sheet__body ul li { position: relative; margin-bottom: 4px; text-align: justify; }
.sheet__body ul li::before { content: '—'; position: absolute; left: -1.6em; color: var(--paper-soft); }
.sheet__body ol { counter-reset: lit; list-style: none; margin: 0 0 12px; padding: 0 0 0 1.8em; }
.sheet__body ol li { counter-increment: lit; position: relative; margin-bottom: 4px; text-align: justify; }
.sheet__body ol li::before { content: counter(lit, lower-alpha) ')'; position: absolute; left: -1.6em; font-weight: 600; }
.sheet .table-wrap { overflow-x: auto; margin: 6px 0 18px; border: 1px solid var(--paper-line); }
.sheet table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.sheet th, .sheet td { text-align: left; vertical-align: top; padding: 7px 10px; border: 1px solid var(--paper-line); }
.sheet thead th { background: #EFE9E2; font: 600 0.72rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase; }
.sheet tbody th { background: #F4F0EB; font: 600 0.82rem var(--sans); width: 30%; }
/* En celular las tablas se apilan: cada fila es una ficha y cada dato lleva su encabezado. */
@media (max-width: 599px) {
  .sheet .table-wrap { border: 0; overflow: visible; }
  .sheet table, .sheet tbody, .sheet tr, .sheet th, .sheet td { display: block; width: 100%; }
  .sheet thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sheet tr { border: 1px solid var(--paper-line); margin-bottom: 10px; }
  .sheet th, .sheet td { border: 0; border-bottom: 1px solid var(--paper-line); }
  .sheet tr > :last-child { border-bottom: 0; }
  .sheet tbody th { width: 100%; }
  .sheet td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; font: 600 0.7rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-soft); }
}
.sheet__foot { margin-top: 44px; padding-top: 14px; border-top: 1px solid var(--paper-line); text-align: center; font: 400 0.72rem/1.6 var(--sans); color: var(--paper-soft); }
@media (max-width: 599px) {
  .sheet { width: 100%; }
  .sheet__body p, .sheet__body li { text-align: left; }
}

@media print {
  @page { margin: 18mm 16mm; }
  body { background: #FFFFFF; }
  body::after, .nav, .footer, .float-wa, .docpage__bar, .skip { display: none !important; }
  .docpage { padding: 0; }
  .sheet { box-shadow: none; max-width: none; width: 100%; padding: 0; }
  .sheet__body h2 { break-after: avoid; }
  .sheet tr, .sheet__body li { break-inside: avoid; }
}

.contact__hours { color: var(--ink-soft); font-size: 1rem; letter-spacing: 0.04em; margin-top: -6px; }
.steps__note { margin-top: 40px; text-align: center; color: var(--ink-soft); font-size: 1rem; letter-spacing: 0.04em; }

/* ---------- Pagos ---------- */
.pay { padding: clamp(40px, 6vw, 88px) 0 clamp(72px, 10vw, 128px); }
.pay__inner { max-width: 760px; }
.pay__head { display: grid; gap: 14px; margin-bottom: 40px; }
.pay__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.pay__step { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: clamp(22px, 4vw, 36px); background: var(--surface); border: 1px solid var(--line); }
.pay__n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font: 500 1.1rem var(--sans); }
.pay__body { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.pay__body h2 { font-size: 1.6rem; }
.pay__body > p { color: var(--ink-soft); }
.pay__form { display: grid; gap: 16px; width: 100%; }
.field { display: grid; gap: 6px; }
.field span { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.field input { width: 100%; min-height: 52px; padding: 12px 14px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); font: 400 1.05rem var(--sans); border-radius: 0; }
.field input:focus { border-color: var(--gold); outline: none; }
.field input[type='file'] { padding: 12px; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 0.95rem; color: var(--ink-soft); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--gold); }
.check a { color: var(--gold); }
.pay__form .btn { justify-self: start; }
.pay__msg { min-height: 1.5em; font-size: 1rem; }
.pay__msg[data-state='ok'] { color: #9FD3A8; }
.pay__msg[data-state='error'] { color: #F0A7A0; }
.pay__note { margin-top: 28px; color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 599px) { .pay__step { grid-template-columns: 1fr; } .pay__form .btn, .pay__body > .btn { width: 100%; } }

/* ---------- Guías ---------- */
.guides { padding: clamp(40px, 6vw, 88px) 0 clamp(72px, 10vw, 128px); }
.guides__sub { margin-top: 18px; }
.guides__list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 860px) { .guides__list { grid-template-columns: 1fr 1fr; } }
.guides__list a { display: grid; gap: 8px; height: 100%; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color 250ms var(--ease); }
.guides__list a:hover { border-color: rgba(201, 169, 124, 0.6); }
.guides__area { font: 500 0.75rem var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.guides__name { font: 400 1.35rem/1.25 var(--serif); }

.guide { padding: clamp(32px, 5vw, 72px) 0 clamp(72px, 10vw, 128px); }
.guide__inner { max-width: 760px; display: grid; gap: 22px; }
.guide h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); }
.guide__meta { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.guide__summary { padding: 22px 24px; border-left: 2px solid var(--gold); background: var(--surface); font: 400 1.2rem/1.55 var(--serif); }
.guide__summary-label { font: 500 0.75rem var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.guide__body { color: #DCD2C7; line-height: 1.7; overflow-wrap: break-word; }
.guide__body h2, .guide__faq h2 { font-size: 1.5rem; color: var(--ink); margin: 34px 0 12px; }
.guide__body p { margin: 0 0 14px; }
.guide__body ul { margin: 0 0 14px; padding-left: 1.3em; display: grid; gap: 8px; }
.guide__body li::marker { color: var(--gold); }
.guide__body strong { color: var(--ink); font-weight: 500; }
.guide__faq details { border-bottom: 1px solid var(--line); }
.guide__faq summary { cursor: pointer; padding: 16px 0; min-height: 52px; font: 400 1.15rem/1.35 var(--serif); }
.guide__faq details p { padding: 0 0 16px; color: var(--ink-soft); }
.guide__cta { display: grid; gap: 14px; justify-items: start; margin-top: 18px; padding: 26px; border: 1px solid rgba(201, 169, 124, 0.35); }
.guide__cta > p { font: 400 1.3rem var(--serif); }
.guide__service { color: var(--ink-soft); font-size: 0.95rem; }
.guide__legal { font-size: 0.9rem; color: var(--ink-soft); }
.guide__more { display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.guide__more a { color: var(--ink-soft); text-decoration: none; padding: 6px 0; }
.guide__more a:hover { color: var(--gold); }
@media (max-width: 599px) { .guide__cta .btn { width: 100%; } }

/* Guías relacionadas en las páginas de servicio */
.related { padding: 0 0 clamp(56px, 8vw, 96px); }
.related__title { font: 500 0.8rem var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.related__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 760px; }
.related__list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font: 400 1.15rem/1.3 var(--serif); }
.related__list a:hover { border-color: rgba(201, 169, 124, 0.6); }
.related__list .icon { color: var(--gold); width: 1.1em; height: 1.1em; }
