:root {
  --navy: #002A52;
  --navy-deep: #001B36;
  --teal: #005A7A;
  --orange: #F2A22A;
  --pink: #E8798A;
  --red: #A3392F;
  --tint: #F4F6F9;
  --text: #1E2A38;
  --muted: #5B6878;
  --line: #E1E6EC;
  --wa: #1FA855;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 42, 82, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
h1, h2, h3 { font-family: Jost, Futura, "Century Gothic", sans-serif; color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 500; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 40px); margin-inline: auto; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: .6em;
}
.eyebrow--light { color: var(--orange); }

/* Botones */
.btn {
  display: inline-block; background: var(--orange); color: var(--navy-deep);
  font-weight: 600; text-decoration: none; border: 0; cursor: pointer;
  padding: 14px 26px; border-radius: 999px; font-size: 1rem; font-family: inherit;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(242, 162, 42, .35); }
.btn--small { padding: 9px 18px; font-size: .92rem; }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Encabezado */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 500; font-size: .96rem; }
.nav a:not(.btn):hover { color: var(--teal); }
.nav a.btn { background: var(--wa); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

/* Portada */
.hero {
  position: relative; color: #fff; min-height: min(92vh, 760px); display: flex; align-items: center;
  background: var(--navy-deep); overflow: hidden; isolation: isolate;
}
.hero__bg { position: absolute; inset: -14% -5%; z-index: -2; will-change: transform; }
.hero__img { position: absolute; inset: 0; background: url("../img/hero-yama.jpg") center / cover no-repeat; will-change: transform; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(0,27,54,.92) 0%, rgba(0,42,82,.72) 45%, rgba(0,42,82,.2) 100%);
}
.hero__inner { padding: 100px 0; max-width: 1140px; position: relative; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero__lead { font-size: 1.15rem; max-width: 52ch; color: rgba(255,255,255,.9); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* Secciones */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section__lead { color: var(--muted); max-width: 60ch; font-size: 1.08rem; }

/* Tarjetas de servicios */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card__body { padding: 24px; }
.card__body p { color: var(--muted); }
.card ul { margin: 0; padding: 0; list-style: none; }
.card li { padding: 6px 0 6px 26px; position: relative; border-top: 1px solid var(--line); font-size: .95rem; }
.card li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.card:nth-child(2) li::before { background: var(--pink); }
.card:nth-child(3) li::before { background: var(--teal); }

/* Bloque dividido */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split__img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.feature { border-left: 4px solid var(--orange); padding: 4px 0 4px 18px; margin: 22px 0; }
.feature + .feature { border-color: var(--pink); }
.feature p { margin: 0; color: var(--muted); }
.note { font-family: Jost, sans-serif; font-size: 1.15rem; color: var(--navy); }

/* Qué incluye */
.includes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 40px; }
.include { background: var(--tint); border-radius: var(--radius); padding: 26px 20px; }
.include svg { width: 38px; height: 38px; fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.include h3 { font-size: 1.05rem; }
.include p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Promoción */
.promo { background: var(--navy); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.promo::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px;
  border-radius: 50%; border: 46px solid var(--pink); opacity: .25;
}
.promo__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; position: relative; z-index: 1; }
.promo h2 { color: #fff; margin-bottom: .2em; }
.promo p { margin: 0; color: rgba(255,255,255,.85); }

/* Sedes */
.sedes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.sede { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.sede img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sede__body { padding: 22px 24px 26px; }
.sede__body p { color: var(--muted); font-size: .95rem; margin-bottom: .7em; }
.sede__body a { color: var(--navy); font-weight: 500; }
.link { text-decoration: none; font-weight: 600 !important; color: var(--teal) !important; }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }

/* Recorrido por los espacios */
.recorrido { background: var(--navy-deep); color: #fff; padding: 96px 0; overflow: hidden; }
.recorrido h2 { color: #fff; }
.recorrido__head { margin-bottom: 40px; }
.recorrido__track {
  display: flex; gap: 28px; padding: 0 max(20px, (100vw - 1140px) / 2);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.recorrido__track::-webkit-scrollbar { display: none; }
.foto { margin: 0; flex: 0 0 min(78vw, 560px); scroll-snap-align: center; position: relative; border-radius: 18px; overflow: hidden; }
.foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.foto figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 20px; font-size: .92rem;
  color: rgba(255,255,255,.85); background: linear-gradient(transparent, rgba(0,17,34,.85));
}
.foto figcaption strong { display: block; font-family: Jost, sans-serif; font-size: 1.25rem; font-weight: 500; color: #fff; }

/* En computadora el recorrido se queda fijo y las fotos se deslizan de lado */
.recorrido.is-pinned { height: 100vh; padding: 0; display: flex; flex-direction: column; justify-content: center; }
.recorrido.is-pinned .recorrido__pin { width: 100%; }
.recorrido.is-pinned .recorrido__track { overflow: visible; scroll-snap-type: none; width: max-content; padding-right: 8vw; }
.recorrido.is-pinned .foto { flex-basis: min(46vw, 640px); }
@media (max-height: 760px) { .recorrido.is-pinned .foto { flex-basis: min(40vw, 520px); } .recorrido.is-pinned .recorrido__head { margin-bottom: 24px; } }

/* Movimiento 3D de las tarjetas de sedes (solo con ratón) */
.sedes { perspective: 1200px; }
.sede { transform-style: preserve-3d; will-change: transform; }

/* Contacto */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact__list li { display: grid; grid-template-columns: 140px 1fr; padding: 10px 0; border-top: 1px solid var(--line); }
.contact__list span { color: var(--muted); font-size: .92rem; }
.contact__list a { color: var(--navy); font-weight: 500; text-decoration: none; }

.form { background: var(--tint); border-radius: var(--radius); padding: 30px; }
.form__row { display: flex; flex-direction: column; margin-bottom: 16px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { font-size: .88rem; font-weight: 500; margin-bottom: 6px; color: var(--navy); }
.form input, .form select, .form textarea {
  font: inherit; padding: 12px 14px; border: 1px solid #CDD5DF; border-radius: 10px; background: #fff; color: var(--text);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent; }
.form__check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; margin: 4px 0 18px; }
.form__check input { margin-top: 4px; }
.form__trap { position: absolute; left: -9999px; }
.form__error { color: #B42318; font-weight: 500; }
.form__ok { color: #0B7A3B; font-weight: 500; }

/* Pie */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.8); padding: 36px 0; font-size: .9rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer img { height: 58px; width: auto; }
.footer p { margin: 0; }
.footer a { color: #fff; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.22); z-index: 60;
}
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* Páginas legales */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal__date { color: var(--muted); }
.legal li { margin-bottom: .4em; }

/* Responsivo */
@media (max-width: 1000px) {
  .includes { grid-template-columns: repeat(3, 1fr); }
  .cards, .sedes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 12px; text-align: center; border: 0; }
  .split, .contact { grid-template-columns: 1fr; gap: 36px; }
  .split__img { aspect-ratio: 4 / 3; }
  .section { padding: 72px 0; }
  .hero { min-height: 540px; }
}
@media (max-width: 640px) {
  .cards, .sedes, .gallery { grid-template-columns: 1fr; }
  .includes { grid-template-columns: 1fr 1fr; }
  .form__grid { grid-template-columns: 1fr; gap: 0; }
  .form { padding: 22px; }
  .contact__list li { grid-template-columns: 1fr; }
  .hero__inner { padding: 72px 0; }
  .brand img { height: 46px; }
}
