/* ============================================================
   BioDentist — Centro Odontológico Preventivo
   Sistema visual: turquesa de marca + papel frío + tinta verde.
   ============================================================ */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  font-named-instance: "Regular";
}

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f1f7f6;
  --surface: #ffffff;
  --ink: #072a2b;
  --ink-2: #0c3b3a;
  --muted: #476765;
  --brand: #00aeb2;
  --brand-light: #5abfb9;
  --brand-mid: #0a807d;
  --brand-deep: #05605f;
  --brand-soft: #ddf2f0;
  --line: #cde3df;
  --star: #c77a12;
  --ok: #0b7a5e;
  --font-display: "Bricolage Grotesque", "Century Gothic", "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 30px 70px -40px rgba(7, 42, 43, 0.45);
  --shadow-soft: 0 18px 40px -28px rgba(7, 42, 43, 0.35);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 72px);
  color-scheme: light;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  display: block;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--brand-light);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--brand-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.dark :focus-visible,
.cta :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--brand-light);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.section {
  padding-block: clamp(72px, 9vw, 128px);
}

.small-note {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(241, 247, 246, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(7, 42, 43, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: 190px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav a {
  position: relative;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--brand-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s var(--ease);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-extra {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-phone {
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--brand-deep);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}

.menu-toggle span:first-child {
  top: 18px;
}

.menu-toggle span:last-child {
  top: 24px;
}

.nav-open .menu-toggle span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.nav-open .menu-toggle span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn-primary {
  background: var(--brand-deep);
  color: #fff;
}

.btn-primary:hover {
  background: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -18px rgba(7, 42, 43, 0.8);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(7, 42, 43, 0.2);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
}

.btn-sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.84rem;
}

.btn-block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(36px, 5vw, 70px) clamp(52px, 7vw, 96px);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 55%;
  right: 0;
  background-color: var(--brand-deep);
  background-image:
    linear-gradient(180deg, rgba(6, 18, 17, 0.18) 0%, rgba(6, 18, 17, 0) 38%, rgba(6, 18, 17, 0.58) 100%),
    url("assets/img/sede-lima.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 34px 0 0 34px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: center;
}

.hero-copy {
  max-width: 700px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-mid);
  flex-shrink: 0;
}

h1 {
  font-size: clamp(3.15rem, 7.2vw, 6.3rem);
  letter-spacing: -0.05em;
  line-height: 0.93;
}

.period {
  color: var(--brand-mid);
}

.lead {
  max-width: 46ch;
  margin-top: 26px;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.55;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.hero-cities {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 32px;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-cities::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-mid);
  flex-shrink: 0;
}

.rating-score {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.stars {
  display: inline-flex;
  gap: 1px;
  color: var(--star);
}

.stars svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: none;
}

.rating-text {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Hero visual */

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  min-height: 610px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 34px;
  background: transparent;
}

.hero-badge {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  width: min(100%, 330px);
  margin-top: auto;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 30px 60px -30px rgba(0, 20, 20, 0.55);
}

.hero-badge .open-status {
  font-size: 0.66rem;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  text-decoration: none;
}

.hero-rating .rating-score {
  font-size: 1.55rem;
}

.hero-rating .rating-text {
  font-size: 0.72rem;
  color: var(--muted);
}

.hero-badge-address {
  margin-top: 7px;
  font-size: 0.68rem;
  color: var(--muted);
}

.open-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  color: var(--muted);
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9db8b5;
}

.open-status.is-open .status-dot {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(11, 122, 94, 0.14);
}

/* ---------- Section heads ---------- */

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head h2 {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 0.98;
}

.section-lead {
  max-width: 43ch;
  font-size: 1rem;
  color: var(--muted);
}

.section-head > .section-lead {
  justify-self: end;
}

.split-copy {
  max-width: 46ch;
  color: var(--muted);
}

.split-copy p + p {
  margin-top: 14px;
}

/* ---------- Prevención ---------- */

.prevention {
  background: var(--paper);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.step {
  position: relative;
  padding: 34px 28px 0 0;
  border-top: 1px solid var(--line);
}

.step-num {
  position: absolute;
  top: -17px;
  left: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.step p {
  max-width: 30ch;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.signals {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(26px, 3.4vw, 44px);
  border-radius: var(--radius);
  background: var(--brand-soft);
}

.signals-head h3 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  letter-spacing: -0.025em;
}

.signals-head p {
  max-width: 34ch;
  margin-top: 8px;
  font-size: 0.86rem;
  color: #3d5f5c;
}

.signals-list {
  display: grid;
  gap: 0;
}

.signals-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(5, 96, 95, 0.14);
  font-size: 0.86rem;
  line-height: 1.4;
}

.signals-list li:first-child {
  border-top: 1px solid rgba(5, 96, 95, 0.14);
}

.signals-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-deep);
  flex-shrink: 0;
}

.signals .btn {
  background: var(--surface);
  border-color: transparent;
  white-space: nowrap;
}

.signals .btn:hover {
  background: var(--brand-deep);
  color: #fff;
}

/* ---------- Historia ---------- */

.story {
  background: var(--surface);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.story-copy {
  max-width: 46ch;
}

.story-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 4.8vw, 4rem);
}

.story-copy p {
  font-size: 0.98rem;
  color: var(--muted);
}

.story-note {
  margin-top: 14px;
  font-size: 0.72rem !important;
  color: #4f6f6c !important;
}

.story-copy .text-link {
  margin-top: 20px;
}

.story-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 28px);
}

.story-photos figure {
  margin: 0;
}

.story-photos figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
  background: var(--brand-soft);
}

.story-photos figcaption {
  margin-top: 12px;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- Servicios ---------- */

.services {
  background: var(--paper);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--brand-deep);
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-item h3 {
  margin-bottom: 6px;
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  letter-spacing: -0.025em;
  transition: color 0.2s var(--ease);
}

.service-item p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.service-item .service-when {
  margin-top: 5px;
  font-size: 0.78rem;
  color: #4f6f6c;
}

.service-item:hover .service-icon {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #fff;
}

.service-item:hover h3 {
  color: var(--brand-deep);
}

/* Toggle del acordeón de preguntas frecuentes */

.service-toggle {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 0.25s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.service-toggle::before,
.service-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.service-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.services-foot {
  max-width: 68ch;
  margin-top: 26px;
  font-size: 0.88rem;
  color: var(--muted);
}

.services-foot a {
  color: var(--brand-deep);
  font-weight: 600;
  text-underline-offset: 3px;
}

/* ---------- Equipo ---------- */

.dark {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.team-kicker {
  margin-bottom: 14px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-light);
}

.team-head h2 {
  margin-bottom: 22px;
  font-size: clamp(2.3rem, 4.4vw, 4rem);
}

.team-lead {
  max-width: 40ch;
  font-size: 1rem;
  line-height: 1.55;
  color: #a9c6c3;
}

.team-note {
  margin-top: 24px;
  font-size: 0.78rem;
  color: #9ab8b5;
}

.promises {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.promises li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.promise-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: var(--brand-light);
}

.promise-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.promises h3 {
  margin-bottom: 5px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.promises p {
  max-width: 42ch;
  font-size: 0.94rem;
  color: #a9c6c3;
}

.team-quote {
  margin: 32px 0 0;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.team-quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.team-quote figcaption {
  margin-top: 14px;
  font-size: 0.78rem;
  color: #9ab8b5;
}

/* ---------- Sedes ---------- */

.sedes {
  background: var(--paper);
}

.sedes-head {
  align-items: end;
}

.sedes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.sede {
  position: relative;
  padding: 34px 26px 8px 0;
  border-right: 1px solid var(--line);
}

.sede:last-child {
  border-right: 0;
  padding-right: 0;
}

.sede:not(:last-child) {
  margin-right: 26px;
}

.sede-dot {
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-mid);
  box-shadow: 0 0 0 4px var(--paper);
}

.sede h3 {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.sede-address {
  min-height: 3.4em;
  margin-top: 14px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
}

.sede-hours {
  margin-top: 14px;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--muted);
}

.sede-phone {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.sede-phone:hover {
  color: var(--brand-deep);
}

.sede-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}

.sedes-note {
  margin-top: 38px;
  font-size: 0.74rem;
  color: var(--muted);
}

/* ---------- Opiniones ---------- */

.opinions {
  background: var(--surface);
}

.opinions-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.4fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}

.opinions-score {
  position: sticky;
  top: 120px;
}

.opinions-score h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  margin-bottom: 26px;
}

.score {
  font-family: var(--font-display);
  font-size: clamp(4rem, 7vw, 6.5rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.06em;
}

.stars-lg {
  margin-top: 14px;
  gap: 3px;
}

.stars-lg svg {
  width: 20px;
  height: 20px;
}

.score-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

.score-note strong {
  color: var(--ink);
}

.opinions-score .text-link {
  margin-top: 16px;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}

.quote {
  margin: 0;
  padding: 24px 0 28px;
  border-top: 1px solid var(--line);
}

.quote-featured {
  grid-column: 1 / -1;
  padding-top: 0;
  border-top: 0;
}

.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -0.015em;
}

.quote-featured blockquote {
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.quote figcaption {
  margin-top: 16px;
  font-size: 0.8rem;
  font-weight: 600;
}

.quote figcaption span {
  font-weight: 400;
  color: var(--muted);
}

.quote-more {
  padding: 24px 0 28px;
  border-top: 1px solid var(--line);
}

.quote-more-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.quote-more p:not(.quote-more-title) {
  max-width: 30ch;
  margin-top: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}

.quote-more .text-link {
  margin-top: 14px;
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--paper);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}

.faq-head {
  position: sticky;
  top: 120px;
}

.faq-head h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  margin-bottom: 22px;
}

.faq-head p {
  max-width: 36ch;
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: var(--muted);
}

.faq-list {
  border-bottom: 1px solid var(--line);
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-size: 1.02rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::marker {
  content: "";
}

.faq summary:hover {
  color: var(--brand-deep);
}

.faq details[open] summary {
  color: var(--brand-deep);
}

.faq details[open] .service-toggle {
  transform: rotate(45deg);
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}

.faq details[open] .service-toggle::before,
.faq details[open] .service-toggle::after {
  background: #fff;
}

.faq-body {
  max-width: 62ch;
  padding: 0 40px 22px 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- CTA ---------- */

.cta {
  background: var(--brand-deep);
  color: var(--paper);
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.cta-copy h2 {
  font-size: clamp(2.4rem, 4.8vw, 4.3rem);
  margin-bottom: 24px;
}

.cta-copy > p {
  max-width: 42ch;
  font-size: 1rem;
  color: #c9e8e4;
}

.cta-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 30px;
}

.cta-phone {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: #fff;
}

.cta-phone:hover {
  color: var(--brand-light);
}

.cta-contact span {
  font-size: 0.8rem;
  color: #c9e8e4;
}

.cta-list {
  display: grid;
  gap: 10px;
  margin-top: 34px;
  max-width: 38ch;
}

.cta-list li {
  display: flex;
  gap: 10px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #c9e8e4;
}

.cta-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: 0.6em;
  border-radius: 50%;
  background: var(--brand-light);
  flex-shrink: 0;
}

.booking {
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.field + .field,
.field-row + .field {
  margin-top: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink-2);
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdfc;
  font-size: 0.9rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input::placeholder {
  color: #5e7a77;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand-deep);
  box-shadow: 0 0 0 3px rgba(5, 96, 95, 0.12);
}

.field input:user-invalid {
  border-color: #c4553f;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.field select {
  appearance: none;
  padding-right: 36px;
  cursor: pointer;
}

.booking .btn {
  margin-top: 22px;
  min-height: 50px;
}

.form-note {
  margin-top: 10px;
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

.form-status {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--ok);
  text-align: center;
}

.form-status a {
  font-weight: 600;
  color: var(--brand-deep);
  text-underline-offset: 3px;
}

.form-status.is-error {
  color: #b34735;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #04201f;
  color: var(--paper);
  padding-top: clamp(56px, 7vw, 84px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: 52px;
}

.footer-brand .brand-logo {
  width: 210px;
}

.footer-brand p {
  max-width: 30ch;
  margin-top: 20px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #9ab8b5;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #c9e8e4;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.socials a:hover {
  background: var(--brand-light);
  border-color: var(--brand-light);
  color: #04201f;
}

.socials svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-col h3 {
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.footer-col a {
  display: block;
  margin-bottom: 9px;
  font-size: 0.82rem;
  color: #9ab8b5;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--brand-light);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 20px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.7rem;
  color: #7fa39f;
}

.footer-disclaimer {
  max-width: 52ch;
}

/* ---------- Floating WhatsApp ---------- */

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1faa59;
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(6, 18, 17, 0.55);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.wa-float:hover {
  transform: translateY(-2px) scale(1.03);
  background: #17914a;
}

.wa-float svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-bar {
  display: none;
}

/* ---------- Reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 0.7s var(--ease) both;
  }

  .hero-copy > *:nth-child(2) {
    animation-delay: 0.06s;
  }

  .hero-copy > *:nth-child(3) {
    animation-delay: 0.12s;
  }

  .hero-copy > *:nth-child(4) {
    animation-delay: 0.18s;
  }

  .hero-copy > *:nth-child(5) {
    animation-delay: 0.24s;
  }

  .hero-visual {
    animation: rise 0.8s 0.14s var(--ease) both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .nav {
    gap: 20px;
  }

  .header-phone {
    display: none;
  }

  .site-header .brand-logo {
    width: 175px;
  }
}

@media (max-width: 1020px) {
  .header-actions .btn-sm {
    display: none;
  }

  .signals {
    grid-template-columns: 1fr 1fr;
  }

  .signals .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 92px;
  }

  .site-header {
    background: rgba(241, 247, 246, 0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 82px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 10px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(7, 42, 43, 0.4);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease),
      visibility 0s linear 0.2s;
  }

  .nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease),
      visibility 0s;
  }

  .nav-open {
    overflow: hidden;
  }

  .nav-extra {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 28px;
  }

  .nav .nav-phone {
    padding: 0;
    border: 0;
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
  }

  .nav .nav-extra .btn {
    width: 100%;
    padding: 0 24px;
    border-bottom: 0;
    font-size: 0.95rem;
    color: #fff;
  }

  .nav .nav-extra .btn:hover {
    color: #fff;
  }

  .nav a {
    padding: 15px 0;
    font-size: 1.15rem;
    border-bottom: 1px solid var(--line);
  }

  .nav a::after {
    display: none;
  }

  .hero {
    position: relative;
    min-height: calc(100svh - 72px - 64px);
    padding: 28px 0 96px;
    color: var(--paper);
    background-color: var(--brand-deep);
    background-image:
      linear-gradient(180deg, rgba(6, 18, 17, 0.9) 0%, rgba(6, 18, 17, 0.6) 42%, rgba(6, 18, 17, 0.92) 100%),
      url("assets/img/sede-lima.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .hero::before {
    display: none;
  }

  .hero-grid {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: calc(100svh - 72px - 64px - 124px);
  }

  .hero-copy {
    max-width: none;
    padding-top: 70px;
    padding-bottom: 30px;
  }

  .kicker {
    color: rgba(255, 255, 255, 0.82);
  }

  .lead {
    color: rgba(255, 255, 255, 0.9);
  }

  .period {
    color: var(--brand-light);
  }

  .hero-cities {
    color: rgba(255, 255, 255, 0.8);
  }

  .hero-cities::before {
    background: var(--brand-light);
  }

  .hero-actions .btn-primary {
    background: #fff;
    color: var(--brand-deep);
  }

  .hero-actions .btn-primary:hover {
    background: var(--brand-light);
    color: var(--ink);
  }

  .hero-actions .btn-ghost {
    border-color: rgba(255, 255, 255, 0.42);
    color: #fff;
    background: rgba(6, 18, 17, 0.24);
  }

  .hero-actions .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
  }

  .hero-visual {
    position: static;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    min-height: 0;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: none;
    animation: none;
  }

  .hero-badge {
    width: 100%;
    max-width: 340px;
    margin-top: 0;
    align-self: flex-start;
  }

  .section-head,
  .story-grid,
  .team-grid,
  .opinions-grid,
  .faq-grid,
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-head > .section-lead {
    justify-self: start;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .step {
    padding-top: 30px;
  }

  .signals {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .story-photos {
    grid-template-columns: repeat(3, 1fr);
  }

  .sedes-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sede {
    padding-top: 30px;
  }

  .sede:nth-child(2) {
    border-right: 0;
    margin-right: 0;
  }

  .sede:nth-child(2n) {
    padding-left: 24px;
  }

  .sede:nth-child(-n + 2) {
    padding-bottom: 30px;
  }

  .sede:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .sede:last-child {
    padding-left: 24px;
  }

  .opinions-score,
  .faq-head {
    position: static;
  }

  .opinions-score {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: end;
    gap: 0 28px;
  }

  .opinions-score h2 {
    grid-column: 1 / -1;
  }

  .opinions-score .score {
    grid-row: 2 / 4;
  }

  .opinions-score .score-note {
    margin-top: 0;
  }

  .opinions-score .text-link {
    margin-top: 8px;
  }

  .cta-grid {
    grid-template-columns: 1fr;
  }

  .booking {
    max-width: 560px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 85;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
    transition: transform 0.2s var(--ease);
  }

  body.typing .mobile-bar {
    transform: translateY(calc(100% + 12px));
  }

  .mobile-bar .btn {
    min-height: 48px;
    font-size: 0.85rem;
  }

  .wa-float {
    display: none;
  }

  body {
    padding-bottom: 76px;
  }
}

@media (max-width: 680px) {
  .header-inner {
    min-height: 72px;
    gap: 16px;
  }

  .nav {
    top: 72px;
  }

  .site-header .brand-logo {
    width: 165px;
  }

  .footer-brand .brand-logo {
    width: 185px;
  }

  h1 {
    font-size: clamp(2.9rem, 13vw, 4.4rem);
  }

  .lead {
    margin-top: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-cities {
    margin-top: 26px;
    font-size: 0.74rem;
  }

  .hero {
    padding: 24px 0 90px;
    min-height: calc(100svh - 72px - 64px);
  }

  .hero-grid {
    min-height: calc(100svh - 72px - 64px - 114px);
  }

  .hero-copy {
    padding-top: 66px;
    padding-bottom: 24px;
  }

  .hero-visual {
    min-height: 0;
    padding: 0;
  }

  .hero-badge {
    width: 100%;
    padding: 14px 16px;
  }

  .hero-rating .rating-score {
    font-size: 1.4rem;
  }

  .hero-rating .rating-text {
    font-size: 0.68rem;
  }


  .steps {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .step {
    padding-right: 0;
    padding-top: 26px;
  }

  .step-num {
    top: -14px;
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .step p {
    max-width: 42ch;
  }

  .signals {
    padding: 24px 20px;
  }

  .story-photos {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .service-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 22px 0;
  }

  .service-icon {
    width: 44px;
    height: 44px;
  }

  .service-icon svg {
    width: 21px;
    height: 21px;
  }

  .service-item h3 {
    font-size: 1.15rem;
  }

  .service-item p {
    font-size: 0.86rem;
  }

  .service-toggle {
    width: 28px;
    height: 28px;
  }

  .sedes-grid {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .sede {
    border-top: 1px solid var(--line);
    border-right: 0;
    margin-right: 0;
    padding: 28px 0 24px 22px;
    border-left: 0;
  }

  .sede:nth-child(2n) {
    padding-left: 22px;
  }

  .sede:nth-child(-n + 2) {
    padding-bottom: 24px;
  }

  .sede:last-child {
    padding-left: 22px;
  }

  .sede-dot {
    top: 34px;
    left: 0;
  }

  .sede-address {
    min-height: 0;
  }

  .opinions-score {
    display: block;
  }

  .opinions-score .score {
    margin-bottom: 4px;
  }

  .quotes {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .quote-featured {
    grid-column: auto;
  }

  .cta-grid {
    gap: 32px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-bar {
    padding-inline: 12px;
  }

  body {
    padding-bottom: 78px;
  }
}

@media (max-width: 360px) {
  .mobile-bar .btn {
    padding: 0 10px;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .wa-float,
  .mobile-bar,
  .hero-visual,
  .cta,
  .site-footer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section {
    padding-block: 24px;
  }
}
