:root {
  /* Paleta Custodia */
  --negro: #000000;
  --bosque: #06331D;      /* paneles y bloques */
  --pino: #1E5E3F;        /* bordes, pistas, sección de proceso */
  --jade: #4C9170;        /* líneas activas, hover secundario */
  --salvia: #8DC4AA;      /* etiquetas de pack y enlaces secundarios */
  --menta: #DAF7E9;       /* títulos y texto principal */
  --grafito: #A6B5AD;     /* Grafito Suave: entradillas, etiquetas, pie */
  --oro: #C6A15B;         /* botones y destacados */
  --oro-claro: #DDBF83;
  --blanco: #FFFFFF;
  --tinta: #0A2418;       /* texto dentro de los campos blancos */

  --display: "Fraunces", "Playfair Display", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 90rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --space: clamp(4.5rem, 10vw, 8.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}

body {
  margin: 0;
  background: var(--negro);
  color: var(--menta);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  font-optical-sizing: auto;
  margin: 0;
  color: var(--menta);
  text-wrap: balance;
}
p { margin: 0; }
strong { font-weight: 600; color: var(--menta); }
a { color: var(--oro); }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--oro); color: var(--negro); padding: .5rem 1rem;
}
.skip:focus { top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Botones ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--oro); color: var(--negro);
  font: 500 16px/1 var(--sans); letter-spacing: .01em;
  padding: 1.1rem 1.75rem;
  border: 0; border-radius: 2px;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 0 0 0 rgba(198, 161, 91, 0);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease);
}
/* Brillo que cruza el botón al pasar el ratón */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--oro-claro);
  box-shadow: 0 10px 28px -10px rgba(198, 161, 91, .65);
}
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: 0 4px 12px -6px rgba(198, 161, 91, .6); transition-duration: .1s; }
.btn:disabled {
  cursor: not-allowed; background: var(--pino); color: var(--grafito);
  transform: none; box-shadow: none;
}
.btn:disabled::before { display: none; }
.btn.is-loading span::after {
  content: ""; display: inline-block; width: .9em; height: .9em; margin-left: .6em; vertical-align: -.1em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: giro .7s linear infinite;
}
@keyframes giro { to { transform: rotate(360deg); } }
.btn-small { padding: .8rem 1.2rem; font-size: 15px; white-space: nowrap; }
@media (max-width: 26rem) { .btn-small { padding: .75rem .9rem; font-size: 14px; } }

/* Botón de la cabecera: discreto, para no competir con el botón principal de la portada */
.site-header .btn {
  background: transparent; color: var(--menta);
  box-shadow: inset 0 0 0 1px rgba(198, 161, 91, .55);
}
.site-header .btn::before { display: none; }
.site-header .btn:hover {
  background: rgba(198, 161, 91, .1); color: var(--oro);
  box-shadow: inset 0 0 0 1px var(--oro);
  transform: none;
}
.site-header .btn:active { transform: scale(.98); box-shadow: inset 0 0 0 1px var(--oro); }
.btn-block { width: 100%; }

/* Enlace de acción con subrayado animado */
.link {
  color: var(--menta); text-decoration: none; font-weight: 500; letter-spacing: .01em;
  background: linear-gradient(var(--oro), var(--oro)) left bottom / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: color .3s var(--ease), background-size .4s var(--ease);
}
.link:hover { color: var(--oro); background-size: 0 1px; background-position: right bottom; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--pino);
}
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: 5rem; }
.brand {
  display: inline-flex; align-items: center; gap: .75rem;
  color: var(--menta); text-decoration: none;
}
.brand span {
  font: 400 24px/1 var(--display);
  text-transform: uppercase; letter-spacing: .18em;
}
.brand-mark { width: 2.75rem; height: auto; display: block; }
.nav { display: flex; gap: 2rem; margin-left: auto; }
.nav a {
  color: var(--grafito); text-decoration: none;
  font: 500 15px/1 var(--sans); letter-spacing: .02em;
  transition: color .25s;
}
.nav a:hover { color: var(--menta); }
@media (max-width: 56rem) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
}
@media (max-width: 26rem) {
  .brand span { font-size: 20px; letter-spacing: .14em; }
  .brand-mark { width: 2.25rem; }
}

/* ---------- Portada: frase + botón a pantalla completa ---------- */
.hero {
  min-height: calc(100svh - 5rem);
  display: flex; align-items: center;
  padding-block: clamp(3rem, 8vh, 6rem);
}
.hero-inner { width: 100%; }
.kicker { color: var(--oro); font: 600 13px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.75rem; }
/* El titular grande es un párrafo: el h1 de la portada es el texto pequeño superior */
.hero .hero-title {
  font-family: var(--display); font-optical-sizing: auto; color: var(--menta);
  font-size: clamp(38px, 6vw, 84px);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -.01em;
  max-width: 17ch;
  text-wrap: balance;
}
.hero .hero-title .h1-a, .hero .hero-title .h1-b { display: block; }
.hero .hero-title .h1-b { color: var(--oro); margin-top: .12em; }
.lead { margin-top: 2rem; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.6; color: var(--grafito); max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; margin-top: 2.75rem; }
.btn-large { padding: 1.3rem 2.2rem; font-size: 17px; font-weight: 600; }

/* ---------- Sección de la calculadora ---------- */
.calc-section { padding-block: var(--space) 0; }
.calc-grid {
  display: grid; gap: clamp(2.5rem, 5vw, 5rem);
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
}
.calc-copy .btn { margin-top: 2.25rem; }
@media (max-width: 64rem) { .calc-grid { grid-template-columns: 1fr; } }

/* ---------- Panel de reserva ---------- */
.book-panel {
  background: linear-gradient(160deg, #0B4428 0%, var(--bosque) 55%);
  border-top: 3px solid var(--oro);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: grid; gap: 1.5rem;
}
.book-panel h3 { font-size: clamp(24px, 2vw, 30px); }
.book-steps { list-style: none; counter-reset: paso-r; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.book-steps li { counter-increment: paso-r; position: relative; padding-left: 3rem; color: var(--grafito); font-size: 16px; line-height: 1.55; }
.book-steps li::before {
  content: counter(paso-r); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  border: 1px solid var(--oro); color: var(--oro); font: 600 15px/1 var(--sans);
}
.book-steps strong { display: block; color: var(--menta); font-weight: 600; margin-bottom: .15rem; }
.book-panel .form-legal { margin: 0; }

/* ---------- Calculadora ---------- */
.calc {
  background: var(--bosque);
  padding: clamp(1.75rem, 4vw, 3.25rem);
  border-top: 3px solid var(--oro);
}
.calc h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.2; }
.calc-note { color: var(--grafito); margin: .5rem 0 2rem; }
.calc-fields { display: grid; gap: 1.75rem; }
.field-range label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .6rem; }
.field-range label span {
  font: 500 13px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--grafito);
}
.field-range output {
  font: 600 clamp(24px, 2.2vw, 30px)/1 var(--sans);
  color: var(--oro); white-space: nowrap; font-variant-numeric: tabular-nums;
}

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 1.75rem; background: transparent; cursor: pointer; margin: 0;
  --pct: 50%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(to right, var(--oro) var(--pct), var(--pino) var(--pct));
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--pino); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--oro); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 1.35rem; height: 1.35rem; margin-top: -.55rem;
  border-radius: 50%; background: var(--oro); border: 4px solid var(--bosque);
  box-shadow: 0 0 0 1px var(--oro);
  transition: transform .2s var(--ease);
}
input[type="range"]::-moz-range-thumb {
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--oro); border: 4px solid var(--bosque); box-shadow: 0 0 0 1px var(--oro);
}
input[type="range"]:hover::-webkit-slider-thumb,
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.18); }

.calc-result {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem;
  margin-top: 2.25rem; padding-top: 1.75rem;
  border-top: 1px solid var(--pino);
}
.calc-result-label { width: 100%; font: 500 13px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--grafito); }
.calc-result strong {
  font: 500 clamp(64px, 7.5vw, 124px)/1 var(--display);
  color: var(--oro);
  font-variant-numeric: lining-nums;
}
.calc-result-unit { font-size: 19px; color: var(--menta); }
.calc-fine { margin-top: 1.25rem; font-size: 13px; color: var(--grafito); line-height: 1.5; max-width: 70ch; }

@media (max-width: 64rem) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Títulos de sección ---------- */
.section-title {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -.005em;
  max-width: 24ch;
}
.section-intro { margin-top: 1.25rem; color: var(--grafito); max-width: 70ch; font-size: 19px; line-height: 1.6; }

/* ---------- Fugas ---------- */
.leaks { padding-block: var(--space) 0; }
.leak-list {
  list-style: none; margin: 3.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem);
}
.leak-list li { border-left: 2px solid var(--oro); padding-left: 1.75rem; display: flex; flex-direction: column; align-items: flex-start; }
.leak-list h3 { font-size: clamp(24px, 2vw, 28px); line-height: 1.2; }
.leak-list p { margin: .9rem 0 1.25rem; color: var(--grafito); font-size: 17px; }
.leak-list .link { margin-top: auto; font-size: 15px; }
@media (max-width: 56rem) { .leak-list { grid-template-columns: 1fr; } }

/* ---------- Packs ---------- */
.packs { padding-block: var(--space); }
.pack {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(4rem, 7vw, 6rem);
}
.pack-head { align-self: start; position: sticky; top: 7rem; }
.pack-num { font: 500 13px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--salvia); }
.pack-head h3 { font-size: clamp(32px, 3.2vw, 44px); line-height: 1.1; margin-top: .6rem; }
.pack-for { margin-top: 1.25rem; color: var(--grafito); font-size: 17px; }
.pack-proof { margin-top: 1.75rem; font-weight: 600; }
.pack-proof span { color: var(--oro); margin-right: .4rem; }
.pack-more { margin-top: 1.5rem; font-size: 15px; }

.pack-body { background: var(--bosque); border-top: 3px solid var(--oro); }
.feature { padding: clamp(1.75rem, 4vw, 3rem); }
.feature + .feature { border-top: 1px solid var(--pino); }
.feature h4 { font-size: clamp(24px, 2vw, 28px); line-height: 1.2; color: var(--oro); margin-bottom: 1rem; }
.feature p { font-size: 17px; line-height: 1.65; max-width: 70ch; }

.timeline {
  list-style: none; padding: 0; margin: 1.75rem 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--jade);
}
.timeline li { padding-top: .9rem; font-size: 15px; color: var(--grafito); position: relative; }
.timeline li::before {
  content: ""; position: absolute; top: -6px; left: 0;
  width: 11px; height: 11px; border-radius: 50%; background: var(--oro);
}
.timeline strong { display: block; font: 600 24px/1.2 var(--sans); font-variant-numeric: tabular-nums; margin-bottom: .2rem; }

@media (max-width: 56rem) {
  .pack { grid-template-columns: 1fr; }
  .pack-head { position: static; }
}

.extra {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(4rem, 7vw, 6rem);
  padding-top: 3rem; border-top: 1px solid var(--pino);
}
.extra h3 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.15; margin-top: .6rem; }
.extra dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.extra dt { font: 400 22px/1.3 var(--display); margin-bottom: .5rem; }
.extra dd { margin: 0; color: var(--grafito); }
@media (max-width: 56rem) { .extra, .extra dl { grid-template-columns: 1fr; } }

/* ---------- Proceso ---------- */
.process { padding-block: var(--space); background: var(--bosque); }
.process .section-intro { color: var(--menta); }
.steps {
  position: relative;
  list-style: none; counter-reset: paso; margin: 4.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem);
}
/* Línea que une los cuatro pasos a la altura de los números */
.steps::before {
  content: ""; position: absolute; left: 3rem; right: 0; top: 3rem; height: 1px;
  background: linear-gradient(90deg, var(--oro), rgba(198, 161, 91, .15));
}
.steps li { counter-increment: paso; position: relative; }
.steps li::before {
  content: counter(paso);
  display: grid; place-items: center;
  width: 6rem; height: 6rem; border-radius: 50%;
  background: var(--negro); border: 1px solid var(--oro);
  box-shadow: 0 0 0 8px var(--bosque), 0 18px 40px -18px rgba(198, 161, 91, .5);
  font: 500 52px/1 var(--display); color: var(--oro); font-variant-numeric: lining-nums;
  margin-bottom: 2rem;
}
.steps h3 { font-size: clamp(24px, 2vw, 28px); line-height: 1.2; color: var(--menta); }
.steps p { margin-top: .75rem; font-size: 16px; line-height: 1.6; color: var(--grafito); max-width: 32ch; }
@media (max-width: 64rem) { .steps::before { display: none; } }
@media (max-width: 64rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .steps { grid-template-columns: 1fr; } }

/* ---------- Reserva ---------- */
.booking { padding-block: var(--space); }
.booking-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
.booking-copy { position: sticky; top: 7rem; }
.booking-copy > p { margin-top: 1.5rem; color: var(--grafito); font-size: 19px; max-width: 70ch; }
.booking-copy .booking-mail { font-size: 16px; margin-top: 2.5rem; }
.checks { list-style: none; padding: 0; margin: 2.25rem 0 0; display: grid; gap: .9rem; }
.checks li { padding-left: 2rem; position: relative; font-size: 17px; }
.checks li::before { content: "✔"; position: absolute; left: 0; color: var(--oro); }
@media (max-width: 64rem) {
  .booking-grid { grid-template-columns: 1fr; }
  .booking-copy { position: static; }
}

.form { background: var(--bosque); padding: clamp(1.5rem, 4vw, 3rem); border-top: 3px solid var(--oro); }
.form fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; min-width: 0; }
.form legend { font: 400 22px/1.3 var(--display); padding: 0; margin-bottom: 1.25rem; }
.form-row { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.15rem; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.15rem; }
@media (max-width: 34rem) { .form-2col { grid-template-columns: 1fr; } }
.form-row label { font: 500 13px/1.4 var(--sans); color: var(--menta); }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form input[type="date"], .form select {
  width: 100%; min-height: 3.25rem;
  font: 400 16px/1.3 var(--sans); color: var(--tinta);
  background: var(--blanco);
  border: 1px solid var(--blanco);
  border-radius: 2px;
  padding: .8rem .95rem;
  color-scheme: light;
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--tinta) 50%), linear-gradient(135deg, var(--tinta) 50%, transparent 50%); background-position: calc(100% - 1.3rem) 55%, calc(100% - .95rem) 55%; background-size: .35rem .35rem; background-repeat: no-repeat; padding-right: 2.5rem; }
.form input:focus, .form select:focus { outline: none; border-color: var(--oro); box-shadow: 0 0 0 3px rgba(198, 161, 91, .55); }
.form [aria-invalid="true"] { border-color: #E4907E; box-shadow: 0 0 0 3px rgba(228, 144, 126, .45); }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-hint { font-size: 13px; color: var(--grafito); line-height: 1.5; }

.form-check { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; font-size: 15px; line-height: 1.5; }
.form-check input { flex: none; width: 1.25rem; height: 1.25rem; margin: .1rem 0 0; accent-color: var(--oro); cursor: pointer; }
.form-check label { cursor: pointer; }
.form-legal { font-size: 12px; line-height: 1.5; color: var(--grafito); margin-bottom: 1.5rem; }
.form-legal strong { color: var(--grafito); }
.consent-hint { margin-top: .75rem; text-align: center; }

.form-msg { font: 500 15px/1.5 var(--sans); }
.form-error { color: #F2A999; margin-bottom: 1rem; }
.form-ok { padding: 1.25rem 1.5rem; border-left: 3px solid var(--oro); background: rgba(0, 0, 0, .35); }
.form-ok strong { display: block; color: var(--oro); font: 400 22px/1.3 var(--display); margin-bottom: .35rem; }

.ph { background: rgba(198, 161, 91, .18); color: var(--oro-claro); padding: 0 .25em; border-radius: 2px; }

/* ---------- Preguntas ---------- */
.faq { padding-block: 0 var(--space); }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 5rem); }
.faq details { border-bottom: 1px solid var(--pino); }
.faq details:first-child { border-top: 1px solid var(--pino); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.4rem 3rem 1.4rem 0; position: relative;
  font: 400 22px/1.3 var(--display);
  transition: color .25s;
}
.faq summary:hover { color: var(--oro); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  color: var(--oro); font: 400 1.75rem/1 var(--sans);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 1.5rem; color: var(--grafito); max-width: 70ch; }
@media (max-width: 56rem) { .faq-wrap { grid-template-columns: 1fr; } }

/* ---------- Cierre ---------- */
.closing { border-top: 1px solid var(--pino); padding-block: clamp(4rem, 8vw, 6.5rem); }
.closing-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.closing h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; max-width: 22ch; }

/* ---------- Pie ---------- */
.site-footer {
  background: var(--bosque);
  padding-block: 3.5rem calc(3.5rem + env(safe-area-inset-bottom, 0px));
  font-size: 13px; color: var(--grafito);
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 2rem 3rem; justify-content: space-between; align-items: flex-end; }
.footer-brand { display: grid; gap: .6rem; }
.footer-brand .brand { margin-bottom: .4rem; }
.footer-brand a:not(.brand) { color: var(--grafito); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-legal a { color: var(--grafito); text-underline-offset: .25em; transition: color .25s; }
.footer-legal a:hover { color: var(--oro); }
.footer-copy { width: 100%; border-top: 1px solid var(--pino); padding-top: 1.5rem; }
.footer-services { flex-direction: column; gap: .55rem; }
.footer-services a { text-decoration: none; }

/* ---------- Páginas de textos legales ---------- */
.prose.legal-text h2 { font-size: clamp(22px, 2vw, 26px); line-height: 1.3; margin: 2.5rem 0 .7rem; color: var(--oro); }
.prose.legal-text h3 { font: 600 17px/1.4 var(--sans); color: var(--menta); margin: 1.5rem 0 .4rem; }
.prose.legal-text p, .prose.legal-text li { font-size: 16px; line-height: 1.65; }
.prose.legal-text p + p { margin-top: .75rem; }
.prose.legal-text > :first-child { margin-top: 0; }

/* ---------- Botón flotante de email ---------- */
.mail-float {
  position: fixed; right: 1.25rem; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 60;
  height: 3.5rem; min-width: 3.5rem; padding: 0 1.05rem;
  display: inline-flex; align-items: center; gap: 0;
  border-radius: 1.75rem;
  background: var(--oro); color: var(--negro); text-decoration: none;
  box-shadow: 0 8px 24px -8px rgba(198, 161, 91, .6);
  transition: gap .4s var(--ease), background-color .3s, transform .3s var(--ease);
}
.mail-float svg { width: 1.45rem; height: 1.45rem; flex: none; }
.mail-float-text {
  max-width: 0; overflow: hidden; white-space: nowrap;
  font: 500 15px/1 var(--sans);
  transition: max-width .45s var(--ease);
}
.mail-float:hover, .mail-float:focus-visible { gap: .6rem; background: var(--oro-claro); transform: translateY(-2px); }
.mail-float:hover .mail-float-text, .mail-float:focus-visible .mail-float-text { max-width: 16rem; }

/* =========================================================
   Capa visual: transiciones, efectos e ilustraciones
   ========================================================= */
:root { interpolate-size: allow-keywords; }
::selection { background: var(--oro); color: var(--negro); }

/* Cabecera que se compacta y barra de progreso de lectura */
.site-header { transition: background-color .4s var(--ease); }
.header-inner { transition: min-height .4s var(--ease); }
.site-header.is-scrolled { background: rgba(0, 0, 0, .97); }
.site-header.is-scrolled .header-inner { min-height: 4rem; }
.brand-mark { transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: translateY(-2px) rotate(-4deg); }
.progress {
  position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--jade), var(--oro));
  transform: scaleX(0); transform-origin: 0 50%;
}
.nav a { position: relative; padding-block: .4rem; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--oro);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Portada: estrías de columna y luz ambiental */
.hero, .page-hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(90deg, rgba(198, 161, 91, .08) 0 1px, transparent 1px 88px);
  -webkit-mask-image: radial-gradient(ellipse 65% 75% at 72% 42%, #000 15%, transparent 72%);
          mask-image: radial-gradient(ellipse 65% 75% at 72% 42%, #000 15%, transparent 72%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1;
  width: 70vw; height: 70vw; right: -20vw; top: -28vw;
  background: radial-gradient(circle, rgba(30, 94, 63, .55), rgba(6, 51, 29, .2) 40%, transparent 68%);
  animation: ambiente 20s ease-in-out infinite alternate;
}
@keyframes ambiente { to { transform: translate(-8vw, 10vw) scale(1.12); } }

.hero .hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .14em .06em; margin-block: -.14em -.06em; }
.hero .hero-title .w > span { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  .hero .hero-title .w > span { animation: palabra 1.05s var(--ease) both; animation-delay: calc(var(--i) * 65ms + 200ms); }
  .kicker { animation: entrar .9s var(--ease) .05s both; }
  .lead { animation: entrar .9s var(--ease) .75s both; }
  .hero-actions { animation: entrar .9s var(--ease) .9s both; }
  .float-card { animation: flotar 6s ease-in-out infinite alternate; }
}
@keyframes palabra { from { transform: translateY(110%); } }
@keyframes entrar { from { opacity: 0; transform: translateY(18px); } }
@keyframes entrar-lado { from { opacity: 0; transform: translateX(36px); } }
@keyframes flotar { to { transform: translateY(-8px); } }

/* Calculadora y tarjeta flotante */
.calc-wrap { position: relative; }
.calc {
  position: relative;
  background: linear-gradient(160deg, #0B4428 0%, var(--bosque) 55%);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(218, 247, 233, .06);
}
.float-card {
  position: absolute; top: -1.75rem; left: -2.25rem; z-index: 2;
  display: flex; gap: .8rem; align-items: flex-start; max-width: 19rem;
  padding: .9rem 1.15rem;
  background: rgba(0, 0, 0, .82); backdrop-filter: blur(10px);
  border: 1px solid var(--pino); border-radius: 10px;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .9);
}
.float-card strong { display: block; font: 500 14px/1.35 var(--sans); }
.float-card small { display: block; margin-top: .15rem; font-size: 12.5px; line-height: 1.4; color: var(--grafito); }
.float-dot { position: relative; flex: none; width: .6rem; height: .6rem; margin-top: .35rem; border-radius: 50%; background: var(--oro); }
.float-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--oro); animation: latido 2.2s var(--ease) infinite; }
@keyframes latido { from { transform: scale(1); opacity: .9; } to { transform: scale(3); opacity: 0; } }
@media (max-width: 64rem) { .calc-wrap { margin-top: 1.5rem; } .float-card { left: auto; right: 1rem; } }
@media (max-width: 40rem) { .float-card { display: none; } }

/* Luz que sigue al cursor en los paneles */
.spot { position: relative; }
.spot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, -30%), rgba(198, 161, 91, .1), transparent 45%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.spot:hover::after { opacity: 1; }

/* Bloques de servicio */
.feature { transition: background-color .4s var(--ease); }
.feature:hover { background: rgba(218, 247, 233, .025); }
.feature h4 { transition: transform .45s var(--ease); }
.feature:hover h4 { transform: translateX(6px); }
.leak-list li { transition: border-color .35s var(--ease); }
.leak-list li:hover { border-color: var(--oro-claro); }
.steps li::before { transition: transform .5s var(--ease), background-color .4s var(--ease), color .4s var(--ease); }
.steps li:hover::before { transform: scale(1.06); background: var(--oro); color: var(--negro); }

/* Ilustraciones de los packs */
.mock {
  margin: 2.5rem 0 0; max-width: 24rem; padding: 1.25rem;
  background: linear-gradient(180deg, var(--bosque), #03170D);
  border: 1px solid var(--pino); border-radius: 16px;
  box-shadow: 0 40px 70px -35px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(218, 247, 233, .06);
}
.mock figcaption { margin-top: 1rem; font: 500 11px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--grafito); }
.mock-heading { font: 500 12px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--salvia); margin-bottom: .9rem; }

.mock-top { display: flex; gap: .75rem; align-items: center; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--pino); }
.mock-avatar { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--oro); color: var(--negro); font: 500 17px/1 var(--display); }
.mock-top strong { display: block; font-size: 14px; line-height: 1.3; }
.mock-top small { font-size: 12px; color: var(--salvia); }
.mock-thread { display: grid; gap: .6rem; }
.bubble { max-width: 86%; padding: .65rem .85rem; font-size: 14px; line-height: 1.45; border-radius: 14px; }
.bubble-in { justify-self: start; background: var(--pino); border-top-left-radius: 4px; }
.bubble-out { justify-self: end; background: var(--oro); color: var(--negro); font-weight: 500; border-top-right-radius: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips span { font-size: 13px; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--jade); color: var(--salvia); transition: all .4s var(--ease) 1.6s; }
.mock.is-playing .chips span:first-child { background: rgba(198, 161, 91, .16); border-color: var(--oro); color: var(--oro); }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 3rem 1fr; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--pino); font-size: 14px; line-height: 1.45; }
.feed li:last-child { border-bottom: 0; }
.feed time { font-weight: 600; font-size: 13px; color: var(--salvia); font-variant-numeric: tabular-nums; }
.feed-alert span { color: var(--oro-claro); }
.feed-alert span::before { content: ""; display: inline-block; width: .45rem; height: .45rem; margin-right: .45rem; border-radius: 50%; background: #E4907E; vertical-align: .1em; }
.feed-ok span { color: var(--oro); font-weight: 600; }

.rating-row { display: flex; align-items: center; gap: 1rem; }
.rating-num { font: 500 56px/1 var(--display); color: var(--oro); }
.stars { display: block; color: var(--oro); font-size: 18px; letter-spacing: .12em; }
.rating-row small { font-size: 13px; color: var(--grafito); }
.bars { display: flex; align-items: flex-end; gap: .6rem; height: 8.5rem; padding-bottom: 1.5rem; margin-top: 1.25rem; }
.bars span { position: relative; flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(to top, var(--pino), var(--jade)); transform-origin: bottom; }
.bars span:last-child { background: linear-gradient(to top, #8C6F36, var(--oro)); }
.bars i { position: absolute; left: 50%; bottom: -1.4rem; transform: translateX(-50%); font-style: normal; font-size: 11px; color: var(--grafito); }

@media (prefers-reduced-motion: no-preference) {
  .mock.is-playing .mock-thread > *,
  .mock.is-playing .feed li { animation: burbuja .6s var(--ease) both; }
  .mock.is-playing .mock-thread > :nth-child(1), .mock.is-playing .feed li:nth-child(1) { animation-delay: .15s; }
  .mock.is-playing .mock-thread > :nth-child(2), .mock.is-playing .feed li:nth-child(2) { animation-delay: .8s; }
  .mock.is-playing .mock-thread > :nth-child(3), .mock.is-playing .feed li:nth-child(3) { animation-delay: 1.6s; }
  .mock.is-playing .mock-thread > :nth-child(4), .mock.is-playing .feed li:nth-child(4) { animation-delay: 2.4s; }
  .mock.is-playing .bars span { animation: crecer 1s var(--ease) both; animation-delay: calc(var(--n, 0) * 90ms + .2s); }
  .mock.is-playing .rating-num { animation: entrar .8s var(--ease) both; }
}
@keyframes burbuja { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes crecer { from { transform: scaleY(0); } }

/* Aparición de los bloques al hacer scroll (navegadores compatibles) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .leaks .section-title, .packs > .wrap > .section-title, .section-intro, .leak-list li, .pack-head > :not(.mock), .feature,
    .steps li, .extra, .faq-list details, .closing-inner, .booking-copy, .book-panel, .process .section-title, .faq .section-title,
    .calc-copy, .calc-wrap {
      animation: revelar linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
  }
}
@keyframes revelar { from { opacity: 0; transform: translateY(44px); } }

/* Preguntas frecuentes: apertura suave */
.faq details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size .45s var(--ease), content-visibility .45s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }

/* Cierre con la marca en grande */
.closing { position: relative; overflow: hidden; isolation: isolate; }
.closing-mark {
  position: absolute; left: 50%; top: 50%; z-index: -1; transform: translate(-50%, -50%);
  font: 500 clamp(6rem, 19vw, 19rem)/1 var(--display); text-transform: uppercase; letter-spacing: .12em;
  color: transparent; -webkit-text-stroke: 1px rgba(198, 161, 91, .14);
  white-space: nowrap; pointer-events: none; user-select: none;
}

/* Campos del formulario: realce al enfocar */
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form input[type="date"], .form select { transition: box-shadow .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.form input:focus, .form select:focus { transform: translateY(-1px); }
.form-ok { animation: entrar .6s var(--ease) both; }

/* =========================================================
   Páginas de servicio y blog
   ========================================================= */
.page-hero { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(1rem, 3vw, 2rem); }
.page-hero h1 {
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 650; line-height: 1.06; letter-spacing: -.01em;
  max-width: 20ch;
}
.page-hero .lead { max-width: 62ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; font-size: 14px; color: var(--grafito); }
.crumbs a { color: var(--grafito); text-underline-offset: .25em; }
.crumbs a:hover { color: var(--oro); }
.post-meta { margin-top: 1.5rem; font-size: 14px; color: var(--grafito); }

.page-pack { padding-block: 0 var(--space); }
.page-pack .pack { margin-top: clamp(2.5rem, 5vw, 4rem); }
.page-pack .pack-head h2 { margin-top: .6rem; }
.page-pack .feature h3 {
  font-size: clamp(24px, 2vw, 28px); line-height: 1.2; color: var(--oro); margin-bottom: 1rem;
  transition: transform .45s var(--ease);
}
.page-pack .feature:hover h3 { transform: translateX(6px); }

.prose-section { padding-block: 0 var(--space); }
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; margin: 3.5rem 0 1.1rem; }
.prose > :first-child { margin-top: 0; }
.prose h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.25; margin: 2.25rem 0 .7rem; color: var(--oro); }
.prose p, .prose li { font-size: 18px; line-height: 1.7; }
.prose p + p { margin-top: 1.1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 1.1rem 0; }
.prose li + li { margin-top: .6rem; }
.prose li::marker { color: var(--oro); }
.prose a:not(.btn) { color: var(--oro); text-underline-offset: .2em; }
.prose a:not(.btn):hover { color: var(--oro-claro); }
.prose .note {
  margin: 2.5rem 0; padding: 1.5rem 1.75rem;
  background: var(--bosque); border-left: 3px solid var(--oro);
}
.prose .note p { font-size: 17px; }
.prose .note .btn { margin-top: 1.25rem; }

.related { padding-block: 0 var(--space); }
.related .leak-list { margin-top: 2.5rem; }
.leak-list .h3-like { font-size: clamp(24px, 2vw, 28px); line-height: 1.2; }
.leak-list h3 a, .leak-list .h3-like a { color: inherit; text-decoration: none; }
.leak-list h3 a:hover, .leak-list .h3-like a:hover { color: var(--oro); }
.leak-list time { font-size: 14px; color: var(--grafito); margin-top: .6rem; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .prose > *, .related .leak-list li {
      animation: revelar linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}

/* ---------- Iconos e ilustraciones de las páginas nuevas ---------- */
.ico { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.card-icon {
  display: grid; place-items: center; flex: none;
  width: 3.25rem; height: 3.25rem; margin-bottom: 1.25rem;
  border: 1px solid var(--pino); border-radius: 50%; color: var(--oro);
  background: radial-gradient(circle at 30% 30%, rgba(198, 161, 91, .14), transparent 70%);
  transition: border-color .35s var(--ease), transform .45s var(--ease);
}
.leak-list li:hover .card-icon { border-color: var(--oro); transform: translateY(-3px); }

.prose .icon-list { list-style: none; padding: 0; margin: 1.75rem 0; display: grid; gap: 1.4rem; }
.prose .icon-list li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1.1rem; align-items: start; margin: 0; }
.prose .icon-list .card-icon { width: 2.75rem; height: 2.75rem; margin: 0; }
.prose .icon-list .ico { width: 1.3rem; height: 1.3rem; }
.prose .icon-list.compact { gap: .9rem; margin: 1rem 0 0; }
.prose .icon-list.compact li { align-items: center; }
.prose .icon-list.compact p, .prose .icon-list.compact li { font-size: 16px; line-height: 1.5; }
.summary-title { font: 500 13px/1.4 var(--sans) !important; text-transform: uppercase; letter-spacing: .08em; color: var(--salvia); }

.prose .mock { margin: 2.5rem 0; }

/* Móvil con la web de una clínica */
.phone {
  max-width: 15.5rem; margin: 0 auto; padding: .9rem .9rem 1.1rem;
  background: var(--negro); border: 1px solid var(--jade); border-radius: 24px;
  display: grid; gap: .7rem;
}
.phone-bar { display: flex; align-items: center; gap: .6rem; padding-bottom: .7rem; border-bottom: 1px solid var(--pino); }
.phone-bar .mock-avatar { width: 1.9rem; height: 1.9rem; font-size: 15px; }
.phone-bar strong { font-size: 13px; line-height: 1.3; }
.phone-photo {
  height: 5.5rem; border-radius: 10px; display: grid; place-items: center; color: var(--oro);
  background: linear-gradient(135deg, var(--pino), var(--bosque));
}
.phone-photo .ico { width: 2.4rem; height: 2.4rem; stroke-width: 1.3; }
.phone-h { font: 600 18px/1.2 var(--display); }
.phone-p { font-size: 12.5px; line-height: 1.45; color: var(--grafito); }
.phone-btn { display: block; text-align: center; padding: .6rem; border-radius: 6px; background: var(--oro); color: var(--negro); font: 600 13px/1.2 var(--sans); }
.phone-btn-alt { background: transparent; color: var(--salvia); border: 1px solid var(--jade); }
.phone-stars { display: flex; align-items: center; gap: .5rem; color: var(--oro); font-size: 13px; letter-spacing: .08em; }
.phone-stars small { color: var(--grafito); letter-spacing: 0; font-size: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .mock.is-playing .phone > * { animation: burbuja .6s var(--ease) both; }
  .mock.is-playing .phone > :nth-child(2) { animation-delay: .2s; }
  .mock.is-playing .phone > :nth-child(3) { animation-delay: .4s; }
  .mock.is-playing .phone > :nth-child(4) { animation-delay: .55s; }
  .mock.is-playing .phone > :nth-child(5) { animation-delay: .7s; }
  .mock.is-playing .phone > :nth-child(6) { animation-delay: .85s; }
  .mock.is-playing .phone > :nth-child(7) { animation-delay: 1s; }
}
.prose > .note:first-child { margin-top: 0; }

/* Texto solo para lectores de pantalla */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Mientras la web esté en el plan gratuito de Netlify, su sello ocupa la esquina inferior derecha:
   el botón del email se coloca encima. Sin el sello, esta regla no hace nada. */
body:has(#nl-badge-frame) .mail-float { bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }

/* Icono de LinkedIn en el pie */
.social-link {
  justify-self: start; margin-top: .35rem;
  display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--pino); border-radius: 50%;
  color: var(--grafito) !important;
  transition: color .25s, border-color .25s, transform .3s var(--ease);
}
.social-link svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }
.social-link:hover, .social-link:focus-visible { color: var(--oro) !important; border-color: var(--oro); transform: translateY(-2px); }
