:root {
  --cream: #FCFAF5;
  --paper: #F2EEE1;
  --sheet: #FFFEFB;
  --olive: #6B7350;
  --olive-deep: #3F4630;
  --ink: #1D1E19;
  --muted: #5E6150;
  --line: #DAD5C3;
  --ok: #55703A;
  --warn: #A9741C;
  --bad: #A3402B;
  --max: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

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

h2 { font-weight: 300; font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.06; letter-spacing: -.015em; }
.lead { margin-top: 20px; max-width: 46ch; font-size: 1.15rem; color: var(--muted); }

/* Cabecera flotante */
.site-header {
  position: fixed; z-index: 50; top: 14px; left: var(--gutter); right: var(--gutter);
  max-width: calc(var(--max) - 2 * var(--gutter) + 40px); margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 8px 10px 8px 16px;
  background: rgba(252, 250, 245, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.brand-name { font-weight: 500; letter-spacing: .18em; text-transform: uppercase; font-size: .9rem; }
.brand-name span { font-weight: 300; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-size: .98rem; color: var(--muted); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover { color: var(--ink); border-color: var(--olive); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { font: inherit; font-size: .82rem; font-weight: 500; letter-spacing: .06em; border: 0; background: transparent; color: var(--muted); padding: 4px 11px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--olive); color: var(--cream); }
.header-cta { text-decoration: none; font-weight: 500; font-size: .95rem; background: var(--olive-deep); color: var(--cream); padding: 10px 20px; border-radius: 999px; transition: background .2s; }
.header-cta:hover { background: var(--olive); }

/* Botones */
.btn { display: inline-block; font: inherit; font-weight: 500; font-size: 1rem; padding: 15px 28px; border-radius: 999px; text-decoration: none; cursor: pointer; border: 1px solid var(--olive); transition: background .2s, color .2s; }
.btn-solid { background: var(--olive); color: var(--cream); }
.btn-solid:hover { background: var(--olive-deep); border-color: var(--olive-deep); }
.btn-line { background: transparent; color: var(--olive-deep); }
.btn-line:hover { background: var(--paper); }

/* Portada */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(128px, 15vw, 190px) var(--gutter) clamp(56px, 9vw, 112px);
  display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 5vw, 64px); align-items: center;
}
.hero h1 { font-weight: 300; font-size: clamp(2.6rem, 6.6vw, 5.4rem); line-height: 1.02; letter-spacing: -.025em; max-width: 13ch; }
.tagline { margin-top: 28px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 500; color: var(--olive); letter-spacing: -.005em; }
.hero .lead { margin-top: 14px; }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-mark { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 430px; margin-left: auto; width: 100%; }
.hero-mark .disc { position: absolute; inset: 0; border-radius: 50%; background: var(--paper); }
.hero-mark img { position: relative; width: 78%; }

/* Frase */
.statement { background: var(--olive); color: var(--cream); padding: clamp(64px, 11vw, 140px) 0; }
.statement p { font-weight: 300; font-size: clamp(2.2rem, 6.4vw, 5.2rem); line-height: 1.04; letter-spacing: -.025em; max-width: 15ch; }

/* Servicios: bento */
.services { padding: clamp(64px, 9vw, 120px) 0; }
.bento { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tile { border-radius: var(--radius); overflow: hidden; }
.tile a { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; height: 100%; min-height: 250px; padding: clamp(24px, 3vw, 36px); text-decoration: none; transition: transform .25s; }
.tile a:hover { transform: translateY(-4px); }
.tile h3 { font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.12; letter-spacing: -.01em; }
.tile p { margin-top: 12px; max-width: 42ch; opacity: .9; }
.ask { align-self: flex-start; font-size: .95rem; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.t-revision { grid-column: span 6; background: var(--olive-deep); color: var(--cream); }
.t-traslado { grid-column: span 3; background: var(--paper); }
.t-diagnosis { grid-column: span 3; background: var(--olive); color: var(--cream); }

/* Precios */
.prices { background: var(--paper); padding: clamp(64px, 9vw, 120px) 0; }
.prices-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.prices-intro { position: sticky; top: 110px; }
.price-list { background: var(--cream); border-radius: var(--radius); padding: 10px 28px; }
.price-list li + li { border-top: 1px solid var(--line); }
.price-list a { display: grid; grid-template-columns: 1fr auto; gap: 8px 28px; align-items: center; padding: 22px 0; text-decoration: none; }
.price-list h3 { font-weight: 500; font-size: 1.25rem; line-height: 1.2; }
.price-list p { margin-top: 4px; color: var(--muted); font-size: .98rem; max-width: 48ch; }
.price { font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; color: var(--olive-deep); white-space: nowrap; }
.price-list a:hover h3 { color: var(--olive); }
.price-phone .price { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }

/* Informe */
.report { background: var(--olive-deep); color: var(--cream); padding: clamp(64px, 9vw, 120px) 0; }
.report-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.report .lead { color: #D9DBCB; }
.report-text p + p { margin-top: 18px; color: #D9DBCB; max-width: 46ch; }
.report-text .lead + p { margin-top: 18px; }

.sheet-wrap { min-width: 0; }
.sheet {
  position: relative; background: var(--sheet); color: var(--ink); border-radius: 20px;
  padding: clamp(18px, 3vw, 30px); max-height: 560px; overflow: hidden; font-size: .9rem; line-height: 1.4;
  -webkit-user-select: none; user-select: none; pointer-events: none; cursor: default;
  -webkit-mask-image: linear-gradient(#000 62%, transparent 100%); mask-image: linear-gradient(#000 62%, transparent 100%);
}
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 2px solid var(--olive-deep); }
.sheet-brand { font-weight: 500; letter-spacing: .22em; font-size: .85rem; }
.sheet-brand i { font-style: normal; font-weight: 300; color: var(--olive); }
.sheet-head strong { font-weight: 500; letter-spacing: .05em; font-size: .8rem; color: var(--olive-deep); }
.sheet-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; margin-top: 16px; }
.sheet-fields small { display: block; color: var(--muted); font-size: .75rem; }
.sheet-fields b { display: block; height: 22px; border-bottom: 1px solid var(--line); }
.sheet-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.chip { display: inline-block; font-size: .74rem; font-weight: 500; padding: 2px 10px; border-radius: 999px; white-space: nowrap; text-align: center; }
.chip.ok { background: #E3EBD6; color: var(--ok); }
.chip.warn { background: #F4E7C9; color: var(--warn); }
.chip.bad { background: #F2D8D1; color: var(--bad); }
.chip.na { background: #E7E5DC; color: var(--muted); }
.chip.pend { background: #F2EEE1; color: var(--muted); border: 1px dashed var(--line); }
.sheet-block { background: var(--olive); color: var(--cream); font-weight: 500; letter-spacing: .06em; font-size: .78rem; padding: 7px 12px; border-radius: 8px; }
.row { display: grid; grid-template-columns: 38px 1.7fr 88px 1fr; gap: 12px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.row > span:first-child { color: var(--muted); font-size: .8rem; }
.row .obs { color: var(--muted); font-size: .8rem; }
.sheet-note { margin-top: 14px; font-size: .88rem; color: #C3C7B3; }

/* Enfoque */
.approach { padding: clamp(64px, 9vw, 120px) 0; }
.principles { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(3, 1fr); }
.principles > div { padding: 0 32px; border-left: 1px solid var(--line); }
.principles > div:first-child { padding-left: 0; border-left: 0; }
.principles h3 { font-weight: 500; font-size: 1.2rem; color: var(--olive-deep); margin-bottom: 8px; }
.principles p { color: var(--muted); max-width: 34ch; }

/* Contacto */
.contact { background: var(--paper); padding: clamp(64px, 9vw, 120px) 0; }
.contact h2 { max-width: 14ch; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.channels { margin-top: 36px; border-top: 1px solid var(--line); }
.channels li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.channels span { color: var(--muted); }
.channels a { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--olive); }
.channels a:hover { color: var(--olive-deep); }
.form { display: grid; gap: 20px; background: var(--cream); padding: clamp(22px, 3vw, 34px); border-radius: var(--radius); }
.form label { display: grid; gap: 6px; }
.form label span { font-size: .95rem; font-weight: 500; color: var(--olive-deep); }
.form input, .form select, .form textarea { font: inherit; color: var(--ink); width: 100%; background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--olive); outline-offset: 1px; border-color: var(--olive); }
.form .btn { justify-self: start; }
.form-error { color: #8A2F1D; font-size: .95rem; }

/* Pie */
.site-footer { padding: 40px 0; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot img { width: 150px; }
.foot p { color: var(--muted); font-size: .95rem; }

/* Movimiento: entrada de portada y frase */
@media (prefers-reduced-motion: no-preference) {
  .hero-text, .hero-mark { animation: rise .8s ease-out both; }
  .hero-mark { animation-delay: .15s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print { .report { display: none; } }

/* Tablet y móvil */
@media (max-width: 900px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 112px; }
  .hero-mark { order: -1; max-width: 168px; margin: 0 auto; }
  .hero-text { text-align: center; }
  .hero h1, .hero .lead { margin-left: auto; margin-right: auto; }
  .actions { justify-content: center; }
  .bento { grid-template-columns: 1fr; }
  .t-revision, .t-traslado, .t-diagnosis { grid-column: auto; }
  .tile a { min-height: 0; }
  .prices-grid, .report-grid, .contact-grid { grid-template-columns: 1fr; }
  .prices-intro { position: static; }
  .principles { grid-template-columns: 1fr; gap: 28px; }
  .principles > div { padding: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .brand-name { display: none; }
  .site-header { gap: 10px; }
  .brand { margin-right: auto; }
  .price-list { padding: 6px 20px; }
  .row { grid-template-columns: 34px 1fr 84px; }
  .row .obs { display: none; }
  .sheet-fields { grid-template-columns: 1fr 1fr; }
}
