/* =========================================================
   Planiodont · landing v3 — compacta y minimalista
   Plus Jakarta Sans · blanco, tinta casi negra, azul del logo solo en acciones
   Líneas finas en lugar de cajas · espaciado en múltiplos de 8 px
   ========================================================= */

@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/jakarta-latin-ext.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/jakarta-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --brand: #0047BA;
  --brand-dark: #00358C;
  --ink: #0E1522;
  --muted: #5A6476;
  --line: #E8EBF0;
  --soft: #F6F7F9;
  --bg: #FFFFFF;
  --ok: #0E8A5F;

  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-sm: 0.875rem;
  --fs-body: 1rem;
  --fs-lead: 1.125rem;
  --fs-h2: clamp(1.625rem, 1.3rem + 1vw, 2.125rem);
  --fs-h1: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem);

  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 32px);
  --section: clamp(56px, 7vw, 96px);
  --r: 14px;
  --pill: 999px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--fs-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand); color: #fff; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.ic { width: 18px; height: 18px; flex-shrink: 0; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--pill); text-decoration: none; }
.skip:focus { top: 12px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--pill); border: 1px solid transparent; font-weight: 600; font-size: .9375rem; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease); }
.btn:active { transform: scale(.98); }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--dark { background: var(--ink); color: #fff; min-height: 44px; padding: 0 18px; }
.btn--dark:hover { background: #253042; }
.btn--line { border-color: var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--brand); min-height: 44px; }
.link:hover .ic { transform: translate(2px, -2px); }
.link .ic { transition: transform .2s var(--ease); }

/* Cabecera */
.head { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.head.is-scrolled { border-color: var(--line); }
.head__in { display: flex; align-items: center; gap: 32px; min-height: 68px; }
.head__brand { margin-right: auto; display: inline-flex; }
.head__brand img { height: 30px; width: auto; }
.head__nav { display: flex; gap: 28px; }
.head__nav a { text-decoration: none; font-size: .9375rem; font-weight: 500; color: var(--muted); padding: 10px 0; }
.head__nav a:hover { color: var(--ink); }
.head__menu { display: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); background: #fff; border-radius: var(--pill); font-weight: 600; cursor: pointer; }
.menu-movil { border-top: 1px solid var(--line); background: #fff; }
.menu-movil[hidden] { display: none; }
.menu-movil nav { display: flex; flex-direction: column; padding-block: 8px 16px; }
.menu-movil a { text-decoration: none; font-weight: 600; font-size: 1.0625rem; padding: 14px 0; border-bottom: 1px solid var(--line); }

/* Inicio */
.hero { padding-block: clamp(32px, 5vw, 72px) var(--section); }
.hero__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__status { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 500; color: var(--muted); margin-bottom: 20px; }
.hero__status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.hero__status.is-open .dot { background: var(--ok); }
.hero__status.is-closed .dot { background: #B45309; }
.hero h1 { font-size: var(--fs-h1); }
.hero__lead { margin-top: 20px; font-size: var(--fs-lead); color: var(--muted); max-width: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero__facts dt { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.hero__facts dd { font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; margin-top: 4px; }
.hero__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.hero__img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 28% center; }
.hero__video { opacity: 0; transition: opacity .8s ease; }
.hero__video.is-playing { opacity: 1; }

/* Secciones */
.section { padding-block: var(--section); }
.section--soft { background: var(--soft); }
.section--top0 { padding-top: 0; }
.head2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: 40px; }
.head2 h2 { font-size: var(--fs-h2); }
.head2 p { color: var(--muted); max-width: 46ch; justify-self: end; }
.head2 a { color: var(--brand); }

/* Servicios */
.svc { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; border-top: 1px solid var(--line); }
.svc li { border-bottom: 1px solid var(--line); }
.svc a { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name ic" "desc ic"; align-items: center; column-gap: 16px; padding: 20px 0; text-decoration: none; min-height: 88px; }
.svc__name { grid-area: name; font-weight: 600; font-size: 1.0625rem; transition: color .2s ease; }
.svc__desc { grid-area: desc; color: var(--muted); font-size: .9375rem; }
.svc .ic { grid-area: ic; color: var(--muted); transition: transform .25s var(--ease), color .2s ease; }
.svc a:hover .svc__name { color: var(--brand); }
.svc a:hover .ic { color: var(--brand); transform: translate(3px, -3px); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.steps li { display: flex; flex-direction: column; gap: 6px; }
.steps__n { font-size: var(--fs-sm); font-weight: 600; color: var(--brand); }
.steps strong { font-weight: 600; }
.steps span:last-child { color: var(--muted); font-size: .9375rem; }

/* Banda de imágenes */
.band__in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; height: clamp(220px, 28vw, 360px); }
.band img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.band img:last-child { object-position: center 25%; }

/* Seguros */
.ars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ars li { display: grid; place-items: center; height: 88px; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ars img { max-height: 38px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .25s ease, opacity .25s ease; }
.ars li:hover img { filter: none; opacity: 1; }

/* Reservar */
.book { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.book__intro h2 { font-size: var(--fs-h2); }
.book__intro p { margin-top: 16px; color: var(--muted); max-width: 40ch; }
.book__intro .book__alt { margin-top: 24px; color: var(--ink); font-weight: 500; }
.book__alt a { color: var(--brand); }
.book__form { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 20px; }
.opt { border: 0; padding: 0; margin: 0; }
.opt legend { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); margin-bottom: 10px; padding: 0; }
.opt__set { display: flex; flex-wrap: wrap; gap: 8px; }
.opt label { position: relative; cursor: pointer; }
.opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--pill); border: 1px solid var(--line); font-size: .9375rem; font-weight: 500; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.opt label:hover span { border-color: #C9D0DB; }
.opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.field label span { font-weight: 400; }
.field input { min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.field input:focus { outline: none; border-color: var(--brand); }
.book__msg { font-size: .9375rem; color: var(--muted); background: var(--soft); border-radius: 10px; padding: 14px 16px; line-height: 1.5; }
.book__note { font-size: var(--fs-sm); color: var(--muted); }

/* Preguntas */
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 600; min-height: 64px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--muted); transition: transform .25s var(--ease); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; max-width: 72ch; }
.faq details p + p { margin-top: -8px; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 80px); align-items: stretch; padding-top: var(--section); border-top: 1px solid var(--line); }
.contact__info h2 { font-size: var(--fs-h2); }
.contact__list { margin: 28px 0 16px; display: grid; gap: 16px; }
.contact__list div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; }
.contact__list dt { color: var(--muted); font-size: var(--fs-sm); padding-top: 2px; }
.contact__list a { color: var(--brand); text-decoration: none; font-weight: 600; }
.contact__map { border-radius: var(--r); overflow: hidden; min-height: 380px; background: var(--soft); }
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.35); }

/* Pie */
.foot { border-top: 1px solid var(--line); padding-block: 28px; }
.foot__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot img { height: 24px; width: auto; }
.foot p { font-size: var(--fs-sm); color: var(--muted); }

.mbar { display: none; }

/* Acceso del personal al panel */
.staff { position: fixed; right: 16px; bottom: 16px; z-index: 55; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--muted); border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(14, 21, 34, .08); transition: color .2s ease, border-color .2s ease, transform .2s var(--ease); }
.staff:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.staff:focus-visible { border-radius: 50%; }

/* Movimiento */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .8s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__video { display: none; }
}

/* Tableta */
@media (max-width: 960px) {
  .head__nav { display: none; }
  .head__menu { display: inline-flex; align-items: center; }
  .hero__in, .book, .contact { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 16 / 10; order: -1; }
  .head2 { grid-template-columns: 1fr; gap: 12px; }
  .head2 p { justify-self: start; }
  .ars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Celular */
@media (max-width: 640px) {
  body { padding-bottom: 76px; }
  .head__cta { display: none; }
  .head__in { min-height: 60px; }
  .head__brand img { height: 26px; }
  .hero { padding-top: 16px; }
  .hero__media { aspect-ratio: 4 / 3; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__facts { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
  .hero__facts div { display: flex; align-items: baseline; gap: 12px; }
  .hero__facts dt { font-size: 1.25rem; min-width: 64px; }
  .hero__facts dd { margin: 0; }
  .svc { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
  .band__in { grid-template-columns: 1fr 1fr; height: auto; }
  .band img { aspect-ratio: 1; }
  .band img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .ars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ars li { height: 76px; }
  .contact__map, .contact__map iframe { min-height: 300px; }
  .contact__list div { grid-template-columns: 84px 1fr; }
  .foot__in { flex-direction: column; align-items: flex-start; }
  .mbar { display: grid; grid-template-columns: 56px 1fr; gap: 8px; position: fixed; inset: auto 0 0 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); }
  .mbar a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: var(--pill); font-weight: 600; text-decoration: none; }
  .mbar__call { border: 1px solid var(--line); color: var(--ink); }
  .mbar__wa { background: var(--brand); color: #fff; }
  .staff { bottom: calc(80px + env(safe-area-inset-bottom)); right: 12px; }
}

/* Página 404 */
.e404 { min-height: 100svh; padding: 80px var(--gutter); display: flex; flex-direction: column; justify-content: center; gap: 24px; max-width: 680px; margin-inline: auto; }
.e404__logo { height: 32px; width: auto; }
.e404 .t-head { font-size: var(--fs-h1); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
.e404 .t-lead { color: var(--muted); font-size: var(--fs-lead); }
.e404__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.e404 .link { color: var(--brand); }
