/* ============================================================
   Autoescuela Ylorci — Sistema visual
   Base: azul + blanco + gris claro | Acentos: amarillo + verde
   ============================================================ */

:root {
  /* Neutrales (azul muy desaturado, cálido-frío equilibrado) */
  --ink:        oklch(0.24 0.02 255);
  --ink-soft:   oklch(0.42 0.02 255);
  --ink-mute:   oklch(0.58 0.015 255);
  --line:       oklch(0.90 0.01 255);
  --line-soft:  oklch(0.94 0.008 255);
  --paper:      oklch(0.995 0.003 255);
  --bg:         oklch(0.975 0.006 250);
  --bg-2:       oklch(0.955 0.01 250);

  /* Azul de marca */
  --blue:       oklch(0.48 0.13 252);
  --blue-deep:  oklch(0.34 0.10 254);
  --blue-ink:   oklch(0.26 0.07 255);
  --blue-tint:  oklch(0.93 0.03 252);
  --blue-glow:  oklch(0.62 0.15 250);

  /* Acentos (misma familia L/C, distinta tonalidad) */
  --yellow:     oklch(0.86 0.16 92);
  --yellow-deep:oklch(0.78 0.16 84);
  --green:      oklch(0.74 0.16 152);
  --green-deep: oklch(0.62 0.15 154);
  --red:        oklch(0.585 0.135 27);
  --red-deep:   oklch(0.50 0.145 27);

  /* Acento activo (lo cambia el Tweak de acento) */
  --accent:        var(--red);
  --accent-deep:   var(--red-deep);
  --accent-ink:    oklch(0.985 0.012 27);
  --accent-2:      var(--green);
  --accent-2-deep: var(--green-deep);

  /* Radios (los cambia el Tweak de esquinas) */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 999px;

  /* Sombras */
  --sh-sm: 0 1px 2px oklch(0.40 0.04 255 / .08), 0 2px 6px oklch(0.40 0.04 255 / .06);
  --sh-md: 0 4px 12px oklch(0.40 0.05 255 / .10), 0 14px 34px oklch(0.40 0.05 255 / .10);
  --sh-lg: 0 10px 30px oklch(0.35 0.06 255 / .14), 0 30px 70px oklch(0.35 0.06 255 / .16);
  --sh-blue: 0 10px 30px oklch(0.48 0.13 252 / .28);

  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);

  --ff-head: "Bricolage Grotesque", system-ui, sans-serif;
  --ff-body: "Hanken Grotesk", system-ui, sans-serif;
}

/* Acento: rojo tenue */
[data-acento="rojo"] {
  --accent: var(--red); --accent-deep: var(--red-deep);
  --accent-ink: oklch(0.985 0.012 27); --accent-2: var(--green); --accent-2-deep: var(--green-deep);
}
/* Acento: amarillo */
[data-acento="amarillo"] {
  --accent: var(--yellow); --accent-deep: var(--yellow-deep);
  --accent-ink: oklch(0.30 0.06 90); --accent-2: var(--yellow); --accent-2-deep: var(--yellow-deep);
}
/* Acento: verde */
[data-acento="verde"] {
  --accent: var(--green); --accent-deep: var(--green-deep);
  --accent-ink: oklch(0.99 0.01 152); --accent-2: var(--green); --accent-2-deep: var(--green-deep);
}
/* Acento: ambos */
[data-acento="ambos"] {
  --accent: var(--yellow); --accent-deep: var(--yellow-deep);
  --accent-ink: oklch(0.30 0.06 90); --accent-2: var(--green); --accent-2-deep: var(--green-deep);
}

/* Esquinas rectas */
[data-esquinas="rectas"] {
  --r-xs: 2px; --r-sm: 2px; --r-md: 3px; --r-lg: 4px; --r-pill: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: clamp(16px, 1.05vw, 18px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ff-head);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: var(--accent-deep);
}

.section { padding-block: clamp(64px, 9vw, 132px); position: relative; }
.section-head { max-width: 660px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-block: 0.5rem 0.7rem; }
.section-head p { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-soft); }
.section--tint { background: var(--bg); }
.section--blue { background: var(--blue-ink); color: oklch(0.97 0.01 255); }
.section--blue h2 { color: white; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--ff-head); font-weight: 600; font-size: 1rem;
  padding: 0.95em 1.5em; border: 0; border-radius: var(--r-pill);
  background: var(--btn-bg); color: white; cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s;
  box-shadow: var(--sh-sm); white-space: nowrap; text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-blue); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; }

.btn--accent { --btn-bg: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { box-shadow: 0 10px 26px oklch(0.86 0.16 92 / .45); background: var(--accent-deep); }
[data-acento="verde"] .btn--accent:hover { box-shadow: 0 10px 26px oklch(0.74 0.16 152 / .42); }
[data-acento="rojo"] .btn--accent:hover { box-shadow: 0 10px 26px oklch(0.585 0.14 27 / .42); }

.btn--ghost {
  --btn-bg: transparent; color: var(--blue);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--blue); background: var(--blue-tint); transform: translateY(-2px); }

.btn--light { --btn-bg: white; color: var(--blue-deep); }
.btn--lg { font-size: 1.08rem; padding: 1.05em 1.7em; }
.btn--block { width: 100%; }

/* ---------- Placeholder de imagen (rayado + nota mono) ---------- */
.ph {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  background:
    repeating-linear-gradient(135deg,
      oklch(0.90 0.02 250) 0 11px, oklch(0.94 0.015 250) 11px 22px);
  display: grid; place-items: center; isolation: isolate;
  color: var(--blue-deep);
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px oklch(0.78 0.03 250 / .6);
  border-radius: inherit; pointer-events: none;
}
.ph__tag {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem; letter-spacing: 0.02em; line-height: 1.4;
  color: var(--blue-deep);
  background: oklch(0.99 0.005 250 / .82);
  padding: 0.5em 0.85em; border-radius: var(--r-pill);
  box-shadow: var(--sh-sm); text-align: center; max-width: 80%;
  display: inline-flex; align-items: center; gap: 0.5em;
}
.ph__tag::before { content: "▦"; opacity: .55; }

/* ---------- Estrellas ---------- */
.stars { display: inline-flex; gap: 2px; color: var(--yellow-deep); }
.stars svg { width: 1.05em; height: 1.05em; fill: currentColor; }

/* ---------- Header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding-block: 18px;
}
.site-head::before {
  content: ""; position: absolute; inset: 0;
  background: oklch(0.995 0.003 255 / .82);
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  opacity: 0; transition: opacity .3s; border-bottom: 1px solid var(--line-soft);
}
.site-head[data-scrolled="1"] { padding-block: 11px; }
.site-head[data-scrolled="1"]::before { opacity: 1; }

/* Cabecera legible sobre el hero integrado (foto a sangre) cuando está arriba */
[data-hero="inmersivo"] .site-head:not([data-scrolled="1"]) .brand__name,
[data-hero="inmersivo"] .site-head:not([data-scrolled="1"]) .head-phone { color: #fff; text-shadow: 0 1px 10px oklch(0.2 0.04 255 / .5); }
[data-hero="inmersivo"] .site-head:not([data-scrolled="1"]) .brand__sub { color: oklch(1 0 0 / .82); text-shadow: 0 1px 8px oklch(0.2 0.04 255 / .45); }
[data-hero="inmersivo"] .site-head:not([data-scrolled="1"]) .nav a { color: oklch(1 0 0 / .9); text-shadow: 0 1px 10px oklch(0.2 0.04 255 / .5); }
[data-hero="inmersivo"] .site-head:not([data-scrolled="1"]) .nav a:hover { color: #fff; }
.site-head .wrap { display: flex; align-items: center; gap: 18px; position: relative; }

.brand { display: flex; align-items: center; gap: 11px; font-family: var(--ff-head); flex-shrink: 0; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(150deg, var(--blue-glow), var(--blue-deep));
  display: grid; place-items: center; color: white; font-weight: 700; font-size: 1.15rem;
  box-shadow: var(--sh-blue); position: relative; letter-spacing: -0.04em;
}
.brand__mark::after {
  content: "L"; position: absolute; right: -5px; bottom: -5px;
  width: 19px; height: 19px; border-radius: 6px; background: var(--accent);
  color: var(--accent-ink); font-size: 0.7rem; display: grid; place-items: center;
  box-shadow: var(--sh-sm); font-weight: 800;
}
[data-esquinas="rectas"] .brand__mark { border-radius: 4px; }
[data-esquinas="rectas"] .brand__mark::after { border-radius: 2px; }
.brand__name { font-weight: 700; font-size: 1.18rem; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.brand__sub { display: block; font-family: var(--ff-body); font-weight: 500;
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); margin-top: 3px; white-space: nowrap; }

/* Logo (wordmark de imagen) */
.brand--logo { gap: 0; }
.brand__img { height: 38px; width: auto; display: block; transition: height .3s; }
.site-head[data-scrolled="1"] .brand__img { height: 32px; }
/* Por defecto: logo a color (cabecera clara / scrolled) */
.brand__img--white { display: none; }
/* Sobre el hero integrado y sin scroll: usa la versión blanca */
[data-hero="inmersivo"] .site-head:not([data-scrolled="1"]) .brand__img--color { display: none; }
[data-hero="inmersivo"] .site-head:not([data-scrolled="1"]) .brand__img--white { display: block; }
.brand--foot .brand__img { height: 40px; }
.mmenu__panel .brand__img { height: 32px; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-shrink: 0; }
.nav a {
  font-family: var(--ff-head); font-weight: 500; font-size: 0.95rem; color: var(--ink-soft);
  padding: 0.5em 0.72em; border-radius: var(--r-sm); position: relative; white-space: nowrap;
}
.nav a:hover { color: var(--blue); }
.nav a::after {
  content: ""; position: absolute; left: 0.72em; right: 0.72em; bottom: 0.3em; height: 2px;
  background: var(--accent-deep); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.nav a:hover::after { transform: scaleX(1); }
.head-cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.head-phone {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--ff-head);
  font-weight: 600; color: var(--blue-deep); font-size: 0.98rem; padding: 0.5em 0.4em;
}
.head-phone svg { width: 1.05em; height: 1.05em; }
.nav-toggle { display: none; }

@media (max-width: 1024px) {
  .nav, .head-phone { display: none; }
  .nav-toggle {
    display: inline-flex; margin-left: auto; align-items: center; gap: 8px;
    background: var(--blue); color: white; border: 0; padding: 0.6em 1em;
    border-radius: var(--r-pill); font-family: var(--ff-head); font-weight: 600; font-size: 0.95rem;
  }
  .nav-toggle svg { width: 1.05em; }
}

/* ---------- Hero (común) ---------- */
.hero { position: relative; padding-top: clamp(120px, 16vh, 180px); padding-bottom: clamp(50px, 7vw, 96px); overflow: hidden; }
.hero__variant { display: none; }
[data-hero="clasico"]  .hero__variant--clasico  { display: block; }
[data-hero="inmersivo"] .hero__variant--inmersivo { display: block; }
[data-hero="editorial"] .hero__variant--editorial { display: block; }
[data-hero="inmersivo"] .hero { padding: 0; }

.trust-pill {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--paper); border: 1px solid var(--line);
  padding: 7px 7px 7px 14px; border-radius: var(--r-pill); box-shadow: var(--sh-sm);
  font-size: 0.9rem; font-weight: 500;
}
.trust-pill b { font-family: var(--ff-head); }
.trust-pill .gchip {
  display: inline-flex; align-items: center; gap: 6px; background: var(--bg);
  padding: 4px 11px; border-radius: var(--r-pill); font-size: 0.82rem; color: var(--ink-soft);
}

.hero-title { font-size: clamp(2.6rem, 6.4vw, 4.9rem); }
.hero-title .hl { position: relative; white-space: nowrap; }
.hero-title .hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.08em; height: 0.34em; z-index: -1;
  background: var(--accent); border-radius: var(--r-xs); transform: scaleX(0); transform-origin: left;
  animation: underline-grow .9s .5s cubic-bezier(.2,.8,.2,1) forwards;
}
@media (prefers-reduced-motion: reduce) { .hero-title .hl::after { animation: none; transform: scaleX(1); } }
@keyframes underline-grow { to { transform: scaleX(1); } }

.hero-lead { font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: var(--ink-soft); max-width: 30ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-mini {
  display: flex; flex-wrap: wrap; gap: 22px; margin-top: 6px;
  font-size: 0.92rem; color: var(--ink-soft);
}
.hero-mini span { display: inline-flex; align-items: center; gap: 8px; }
.hero-mini svg { width: 1.1em; height: 1.1em; color: var(--green-deep); flex-shrink: 0; }

/* Hero CLÁSICO — texto izq / imagen der */
.hero-clasico-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-clasico-grid .col-text { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.hero-photo { position: relative; }
.hero-photo .frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg);
  aspect-ratio: 4 / 4.4;
}
.hero-photo .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .float-card {
  position: absolute; left: -26px; bottom: 34px; background: var(--paper);
  padding: 16px 20px; border-radius: var(--r-md); box-shadow: var(--sh-md);
  display: flex; align-items: center; gap: 14px; border: 1px solid var(--line-soft);
}
.hero-photo .float-card .ic {
  width: 44px; height: 44px; border-radius: 12px; background: var(--green); color: white;
  display: grid; place-items: center; flex-shrink: 0;
}
[data-esquinas="rectas"] .hero-photo .float-card .ic { border-radius: 3px; }
.hero-photo .float-card .ic svg { width: 22px; height: 22px; }
.hero-photo .float-card b { font-family: var(--ff-head); font-size: 1.5rem; display: block; line-height: 1; }
.hero-photo .float-card small { color: var(--ink-mute); font-size: 0.82rem; }
.hero-photo .badge-year {
  position: absolute; right: -18px; top: 28px; background: var(--blue-deep); color: white;
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-content: center;
  text-align: center; box-shadow: var(--sh-md); transform: rotate(7deg);
  font-family: var(--ff-head);
}
[data-esquinas="rectas"] .hero-photo .badge-year { border-radius: 8px; }
.hero-photo .badge-year b { font-size: 1.5rem; line-height: 1; }
.hero-photo .badge-year small { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: .85; }

/* Hero INMERSIVO — foto a sangre */
.hero-immersive { position: relative; min-height: 100svh; display: grid; align-items: end; background: var(--blue-ink); }
.hero-immersive .bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--blue-ink); }
.hero-immersive .bg img { width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.hero-immersive .bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, oklch(0.20 0.06 255 / .68) 0%, oklch(0.24 0.06 255 / .18) 36%, oklch(0.18 0.05 255 / .84) 100%),
    linear-gradient(90deg, oklch(0.20 0.06 255 / .62), transparent 62%);
}
.hero-immersive .inner { position: relative; z-index: 1; color: white; padding-block: clamp(60px, 12vh, 130px); padding-top: 160px; }
.hero-immersive h1 { color: white; max-width: 16ch; }
.hero-immersive .hero-lead { color: oklch(0.92 0.02 255); max-width: 44ch; }
.hero-immersive .hero-mini { color: oklch(0.9 0.02 255); }
.hero-immersive .trust-pill { background: oklch(0.99 0.01 255 / .14); border-color: oklch(1 0 0 / .2); color: white; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-immersive .trust-pill .gchip { background: oklch(1 0 0 / .16); color: white; }
.hero-immersive .scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  color: oklch(1 0 0 / .8); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--ff-head);
}
.hero-immersive .scroll-hint i {
  width: 22px; height: 34px; border: 2px solid oklch(1 0 0 / .55); border-radius: 12px; position: relative;
}
.hero-immersive .scroll-hint i::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 6px; border-radius: 2px;
  background: white; transform: translateX(-50%); animation: scroll-dot 1.6s infinite;
}
@keyframes scroll-dot { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 80%,100%{opacity:0;transform:translate(-50%,10px)} }

/* Hero EDITORIAL — tipografía grande + collage */
.hero-editorial { position: relative; }
.hero-editorial .kicker-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-editorial .mega {
  font-size: clamp(2.8rem, 9vw, 7rem); line-height: 0.95; letter-spacing: -0.035em; margin-bottom: 30px;
}
.hero-editorial .mega .gr { color: var(--blue); }
.hero-editorial-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: end; }
.hero-editorial .photo-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-editorial .photo-strip .ph, .hero-editorial .photo-strip .frame { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-md); }
.hero-editorial .photo-strip .frame { aspect-ratio: 3/4; }
.hero-editorial .photo-strip .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-editorial .photo-strip .ph { aspect-ratio: 3/4; }
.hero-editorial .photo-strip .tall { grid-row: span 1; margin-top: 30px; }
.hero-editorial .ed-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; padding-bottom: 10px; }

/* ---------- Marquee de confianza ---------- */
.ticker { background: var(--blue-ink); color: oklch(0.9 0.02 255); padding-block: 16px; overflow: hidden; }
.ticker__track { display: flex; gap: 56px; width: max-content; animation: ticker 32s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span { display: inline-flex; align-items: center; gap: 12px; font-family: var(--ff-head); font-weight: 500; font-size: 1.02rem; white-space: nowrap; }
.ticker__track span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5vw, 30px); }
.stat { text-align: left; padding: 28px 26px; border-radius: var(--r-md); background: var(--paper);
  border: 1px solid var(--line-soft); box-shadow: var(--sh-sm); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.stat:nth-child(2)::before { background: var(--accent-2); }
.stat:nth-child(3)::before { background: var(--blue); }
.stat:nth-child(4)::before { background: var(--accent-2-deep); }
.stat b { font-family: var(--ff-head); font-size: clamp(2.2rem, 4vw, 3.1rem); line-height: 1; display: block; color: var(--blue-deep); letter-spacing: -0.03em; }
.stat span { display: block; margin-top: 8px; color: var(--ink-soft); font-size: 0.96rem; font-weight: 500; }
.stat .stars { margin-top: 6px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.about-photo { position: relative; }
.about-photo .frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); aspect-ratio: 5/4.4; }
.about-photo .frame img { width: 100%; height: 100%; object-fit: cover; }
.about-photo .tag-strip {
  position: absolute; left: 20px; bottom: 20px; right: 20px; display: flex; gap: 10px; flex-wrap: wrap;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px; background: var(--paper);
  padding: 8px 14px; border-radius: var(--r-pill); font-size: 0.85rem; font-weight: 600;
  box-shadow: var(--sh-sm); font-family: var(--ff-head);
}
.chip svg { width: 1.05em; height: 1.05em; color: var(--blue); }
.about-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 18px; }
.about-copy p { color: var(--ink-soft); margin-bottom: 16px; font-size: 1.06rem; }
.about-copy .sign { margin-top: 22px; display: flex; align-items: center; gap: 14px; }
.about-copy .sign b { font-family: var(--ff-head); }

/* ---------- Valores (por qué) ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.value {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-md);
  padding: 30px; box-shadow: var(--sh-sm); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
}
.value:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: var(--blue-tint); }
.value .ic {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--blue-tint); color: var(--blue-deep); transition: background .3s, color .3s;
}
[data-esquinas="rectas"] .value .ic { border-radius: 3px; }
.value:hover .ic { background: var(--blue); color: white; }
.value .ic svg { width: 26px; height: 26px; }
.value h3 { font-size: 1.28rem; margin-bottom: 8px; }
.value p { color: var(--ink-soft); font-size: 0.99rem; }

/* ---------- Proceso (camino) ---------- */
.process { position: relative; }
.road { position: relative; margin-top: 30px; }
.road__line { position: absolute; left: 0; right: 0; top: 46px; height: 4px; z-index: 0; }
.road__line::before { content: ""; position: absolute; inset: 0; background: var(--line); border-radius: 4px; }
.road__line .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 16px, transparent 16px 30px), var(--blue);
  transition: width 1.4s cubic-bezier(.4,0,.2,1); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; z-index: 1; }
.step { text-align: center; }
.step .num {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
  background: var(--paper); border: 2px solid var(--line); font-family: var(--ff-head); font-weight: 700;
  font-size: 1.4rem; color: var(--ink-mute); box-shadow: var(--sh-sm);
  transition: all .4s cubic-bezier(.2,.8,.2,1);
}
[data-esquinas="rectas"] .step .num { border-radius: 6px; }
.step.on .num { background: var(--blue); color: white; border-color: var(--blue); transform: scale(1.06); box-shadow: var(--sh-blue); }
.step h3 { font-size: 1.12rem; margin-bottom: 7px; }
.step p { color: var(--ink-soft); font-size: 0.92rem; }
.process .closing { margin-top: 50px; text-align: center; }
.process .closing p { color: var(--ink-soft); max-width: 44ch; margin: 0 auto 18px; font-size: 1.05rem; }

/* ---------- Servicios ---------- */
.serv-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.serv-list { display: flex; flex-direction: column; gap: 14px; }
.serv {
  display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; border-radius: var(--r-md);
  background: var(--paper); border: 1px solid var(--line-soft); transition: transform .25s, box-shadow .25s;
  box-shadow: var(--sh-sm);
}
.serv:hover { transform: translateX(5px); box-shadow: var(--sh-md); }
.serv .ic { width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center;
  background: var(--green); color: white; }
[data-esquinas="rectas"] .serv .ic { border-radius: 3px; }
.serv:nth-child(even) .ic { background: var(--blue); }
.serv .ic svg { width: 23px; height: 23px; }
.serv h3 { font-size: 1.12rem; margin-bottom: 3px; }
.serv p { color: var(--ink-soft); font-size: 0.95rem; }
.serv-photo { position: relative; }
.serv-photo .frame, .serv-photo .ph { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); aspect-ratio: 4/5; }
.serv-photo .frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Reseñas ---------- */
.reviews-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.google-score { display: flex; align-items: center; gap: 18px; background: var(--paper); border: 1px solid var(--line);
  padding: 16px 24px; border-radius: var(--r-md); box-shadow: var(--sh-sm); }
.google-score .g { font-family: var(--ff-head); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; }
.google-score .g span:nth-child(1){color:#4285F4}.google-score .g span:nth-child(2){color:#EA4335}.google-score .g span:nth-child(3){color:#FBBC05}.google-score .g span:nth-child(4){color:#4285F4}.google-score .g span:nth-child(5){color:#34A853}.google-score .g span:nth-child(6){color:#EA4335}
.google-score .score-n { font-family: var(--ff-head); font-size: 2.4rem; font-weight: 700; line-height: 1; color: var(--ink); }
.google-score small { color: var(--ink-mute); font-size: 0.85rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
.review {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 26px;
  box-shadow: var(--sh-sm); display: flex; flex-direction: column; gap: 14px; position: relative;
  transition: transform .3s, box-shadow .3s;
}
.review:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.review .quote-mark { font-family: var(--ff-head); font-size: 3rem; line-height: 0.5; color: var(--blue-tint); height: 24px; }
.review p { font-size: 0.97rem; color: var(--ink-soft); flex: 1; }
.review .who { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.review .avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  color: white; font-family: var(--ff-head); font-weight: 700; font-size: 1.05rem; flex-shrink: 0; }
.review .who b { font-family: var(--ff-head); font-size: 0.98rem; display: block; line-height: 1.2; }
.review .who small { color: var(--ink-mute); font-size: 0.8rem; display: inline-flex; align-items: center; gap: 5px; }
.review .gicon { width: 15px; height: 15px; }

/* ---------- CTA banda ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band .inner {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%); color: white;
  border-radius: var(--r-lg); padding: clamp(40px, 6vw, 76px); position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta-band h2 { color: white; font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: 14px; }
.cta-band p { color: oklch(0.92 0.03 255); font-size: 1.1rem; max-width: 42ch; }
.cta-band .cta-actions { display: flex; flex-direction: column; gap: 14px; }
.cta-band .deco {
  position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, oklch(1 0 0 / .12), transparent 70%); pointer-events: none;
}
.cta-band .deco-2 { position: absolute; left: 30%; bottom: -80px; width: 200px; height: 200px;
  border-radius: 50%; border: 30px solid var(--accent); opacity: .14; pointer-events: none; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: stretch; }
.contact-info { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.info-card {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--r-md);
  background: var(--paper); border: 1px solid var(--line-soft); box-shadow: var(--sh-sm);
}
.info-card .ic { width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center;
  background: var(--blue-tint); color: var(--blue-deep); }
[data-esquinas="rectas"] .info-card .ic { border-radius: 3px; }
.info-card .ic svg { width: 23px; height: 23px; }
.info-card h4 { font-family: var(--ff-head); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 5px; }
.info-card .big { font-family: var(--ff-head); font-size: 1.22rem; color: var(--ink); font-weight: 600; line-height: 1.25; }
.info-card p { color: var(--ink-soft); font-size: 0.98rem; }
.info-card a.big:hover { color: var(--blue); }
.map-row { display: flex; gap: 12px; margin-top: 4px; flex-wrap: wrap; }

/* Mapa de Google (integrado en la columna de contacto, rellena el hueco) */
.map-card {
  flex: 1; display: flex; flex-direction: column; min-height: 320px;
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-sm);
  border: 1px solid var(--line-soft); background: var(--paper);
}
.map-embed { flex: 1; line-height: 0; min-height: 220px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px 16px;
  flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--line-soft);
}
.map-addr { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ff-head);
  font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.map-addr svg { width: 1.15em; height: 1.15em; color: var(--blue); flex-shrink: 0; }
.map-foot .btn { flex-shrink: 0; }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 3vw, 40px); box-shadow: var(--sh-md); }
.form-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.form-card .sub { color: var(--ink-soft); margin-bottom: 24px; font-size: 0.98rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--ff-head); font-weight: 600; font-size: 0.88rem; margin-bottom: 7px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.85em 1em; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--bg);
  transition: border-color .2s, box-shadow .2s, background .2s; outline: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue); background: var(--paper); box-shadow: 0 0 0 4px var(--blue-tint);
}
.field textarea { resize: vertical; min-height: 96px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; gap: 11px; align-items: flex-start; margin: 4px 0 22px; font-size: 0.9rem; color: var(--ink-soft); }
.check input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--blue); margin-top: 2px; }
.check a { color: var(--blue); text-decoration: underline; }
.form-note { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 0.85rem; color: var(--ink-mute); justify-content: center; }
.form-note svg { width: 1.05em; color: var(--green-deep); }
.form-success {
  display: none; text-align: center; padding: 30px 10px;
}
.form-success.show { display: block; animation: pop .5s cubic-bezier(.2,.8,.2,1); }
.form-success .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: white; display: grid; place-items: center; margin: 0 auto 18px; }
.form-success .ok svg { width: 34px; height: 34px; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--ink-soft); }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }

/* ---------- Footer ---------- */
.site-foot { background: var(--blue-ink); color: oklch(0.86 0.02 255); padding-block: clamp(50px, 6vw, 76px) 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
.foot-brand .brand__name, .foot-brand .brand__mark { color: white; }
.site-foot .brand__name { color: white; }
.site-foot .brand__sub { color: oklch(0.7 0.03 255); }
.foot-brand p { margin-top: 16px; color: oklch(0.78 0.02 255); font-size: 0.95rem; max-width: 30ch; }
.foot-col h4 { font-family: var(--ff-head); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: oklch(0.72 0.04 255); margin-bottom: 16px; }
.foot-col a, .foot-col p { display: block; color: oklch(0.84 0.02 255); font-size: 0.95rem; margin-bottom: 10px; transition: color .2s; }
.foot-col a:hover { color: var(--accent); }
.foot-social { display: flex; gap: 10px; margin-top: 14px; }
.foot-social a { width: 38px; height: 38px; border-radius: 11px; background: oklch(1 0 0 / .08); display: grid; place-items: center; color: white; transition: background .25s, transform .25s; }
.foot-social a:hover { background: var(--blue); transform: translateY(-2px); }
.foot-social svg { width: 18px; height: 18px; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid oklch(1 0 0 / .1); font-size: 0.85rem; color: oklch(0.66 0.02 255); }
.foot-bottom .links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-bottom a:hover { color: white; }

/* ---------- Reveal on scroll (visible por defecto; solo anima bajo el pliegue) ---------- */
.reveal { opacity: 1; transform: none; }
.reveal.pending {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
}
.reveal.pending.in { opacity: 1; transform: none; }
.reveal.pending[data-d="1"] { transition-delay: .08s; }
.reveal.pending[data-d="2"] { transition-delay: .16s; }
.reveal.pending[data-d="3"] { transition-delay: .24s; }
.reveal.pending[data-d="4"] { transition-delay: .32s; }
[data-anim="off"] .reveal, [data-anim="off"] .reveal.pending { opacity: 1; transform: none; transition: none; }
[data-anim="off"] .ticker__track { animation: none; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal.pending { opacity: 1; transform: none; transition: none; } }

/* ---------- Mobile menu ---------- */
.mmenu { position: fixed; inset: 0; z-index: 200; background: oklch(0.20 0.05 255 / .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.mmenu.open { opacity: 1; pointer-events: auto; }
.mmenu__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(82vw, 340px); background: var(--paper);
  padding: 26px; display: flex; flex-direction: column; gap: 6px; transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); box-shadow: var(--sh-lg); }
.mmenu.open .mmenu__panel { transform: none; }
.mmenu__panel .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mmenu__panel .close { background: var(--bg); border: 0; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.mmenu__panel a { font-family: var(--ff-head); font-weight: 600; font-size: 1.2rem; padding: 14px 12px; border-radius: var(--r-sm); color: var(--ink); }
.mmenu__panel a:hover { background: var(--bg); }
.mmenu__panel .btn { margin-top: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 18px; }
  .road__line { display: none; }
}
@media (max-width: 860px) {
  .hero-clasico-grid, .about-grid, .serv-grid, .contact-grid, .hero-editorial-grid, .cta-band .inner {
    grid-template-columns: 1fr;
  }
  .hero-photo { max-width: 460px; }
  .about-photo { order: -1; }
  .hero-editorial .photo-strip { max-width: 420px; }
  .cta-band .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .values-grid, .reviews-grid, .steps, .field-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-photo .badge-year { right: 6px; }
  .hero-photo .float-card { left: 50%; transform: translateX(-50%); bottom: -28px; }
}
