/* ==========================================================
   S&D Legal Estratégico — estilos
   Paleta tomada del logo: negro carbón, azul noche y dorado.
   ========================================================== */
:root {
  --bg: #0b0f1a;
  --bg-2: #0f1524;
  --navy: #14203a;
  --ink: #f3ede1;
  --ink-2: #c9c1b1;
  --muted: #8d8778;
  --gold: #c9a45c;
  --gold-2: #e8cf94;
  --gold-3: #8f6e33;
  --line: rgba(201, 164, 92, .22);
  --card: rgba(255, 255, 255, .025);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.77, 0, .175, 1);
  --gutter: clamp(16px, 5vw, 72px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: var(--bg); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; }
p { margin: 0 0 1.1em; }
em, i { font-style: italic; color: var(--gold-2); }
strong { color: var(--ink); font-weight: 600; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(90px, 14vw, 180px) 0; position: relative; }
.display { font-size: clamp(38px, 5.6vw, 88px); letter-spacing: -.01em; margin-bottom: .5em; }
.lead { font-size: clamp(18px, 1.5vw, 22px); color: var(--ink); }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 28px; font-weight: 600;
}
.eyebrow .line { width: 42px; height: 1px; background: var(--gold); display: inline-block; }
.eyebrow--center { display: flex; justify-content: center; }

/* Split text */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; will-change: transform; }

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 30px; border-radius: 100px; overflow: hidden;
  background: linear-gradient(120deg, var(--gold-3), var(--gold) 45%, var(--gold-2));
  color: #14100a; font-weight: 600; font-size: 14px; letter-spacing: .04em;
  transition: box-shadow .4s, transform .2s;
  isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1;
  background: var(--ink); transform: translateY(101%); border-radius: inherit;
  transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { box-shadow: 0 10px 40px -10px rgba(201, 164, 92, .6); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost::before { background: var(--gold); }
.btn--ghost:hover { color: #14100a; }
.btn--small { padding: 12px 22px; font-size: 13px; }

/* ---------- Preloader ---------- */
.loader {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000; display: grid; place-items: center;
  pointer-events: none;
}
.loader__curtain { position: absolute; left: 0; right: 0; height: 50.5%; background: #07090f; z-index: -1; }
.loader__curtain--top { top: 0; }
.loader__curtain--bottom { bottom: 0; }
.loader__ring { position: relative; width: 170px; height: 170px; }
.loader__ring svg { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); transform: rotate(-90deg); }
.loader__ring circle { fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-dasharray: 578; stroke-dashoffset: 578; }
.loader__ring img { width: 100%; height: 100%; object-fit: cover; clip-path: circle(47% at 50% 48.5%); opacity: 0; transform: scale(.85); }
.loader__count { position: absolute; bottom: 9vh; font-family: var(--serif); font-size: 22px; color: var(--gold); letter-spacing: .2em; }

/* ---------- Cursor / grano / progreso ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none; mix-blend-mode: difference; }
.cursor span {
  display: block; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--gold-2); transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease);
}
.cursor.is-hover span { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
.grain {
  position: fixed; inset: -50%; z-index: 998; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%,100%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} }
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 101; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 32px;
  padding: 20px var(--gutter);
  transition: padding .5s var(--ease), background .5s, transform .6s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { padding-top: 12px; padding-bottom: 12px; background: rgba(11, 15, 26, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__brand { display: flex; align-items: center; gap: 12px; margin-right: auto; font-family: var(--serif); font-size: 20px; white-space: nowrap; }
.nav__brand img { width: 42px; height: 42px; object-fit: cover; clip-path: circle(47% at 50% 48.5%); }
.nav__brand em { font-style: normal; color: var(--ink-2); }
.nav__links { display: flex; gap: 30px; font-size: 14px; }
.nav__links a { position: relative; color: var(--ink-2); transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__links a.is-active { color: var(--ink); }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; z-index: 2; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease), top .5s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 26px; }
.menu-open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 99; background: #07090f;
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path .9s var(--ease);
  display: flex; align-items: center; padding: 0 var(--gutter);
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 40px) 40px); }
.menu nav { display: flex; flex-direction: column; gap: 8px; }
.menu a { font-family: var(--serif); font-size: clamp(36px, 10vw, 64px); line-height: 1.15; display: flex; align-items: baseline; gap: 14px; opacity: 0; transform: translateY(40px); transition: opacity .5s, transform .7s var(--ease); }
.menu a small { font-family: var(--sans); font-size: 12px; color: var(--gold); letter-spacing: .1em; }
.menu-open .menu a { opacity: 1; transform: none; }
.menu-open .menu a:nth-child(1) { transition-delay: .25s; }
.menu-open .menu a:nth-child(2) { transition-delay: .3s; }
.menu-open .menu a:nth-child(3) { transition-delay: .35s; }
.menu-open .menu a:nth-child(4) { transition-delay: .4s; }
.menu-open .menu a:nth-child(5) { transition-delay: .45s; }
.menu-open .menu a:nth-child(6) { transition-delay: .5s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  padding: 120px var(--gutter) 100px;
  background: radial-gradient(ellipse 80% 60% at 75% 50%, #15213d 0%, transparent 70%), var(--bg);
}
.hero__canvas { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; opacity: .55; }
.hero__glow { position: absolute; width: 60vw; height: 60vw; right: -10vw; top: 50%; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(201,164,92,.18), transparent 60%); filter: blur(30px); }
.hero__inner { position: relative; z-index: 2; max-width: 820px; }
.hero__title { font-size: clamp(52px, 9vw, 150px); line-height: .95; letter-spacing: -.02em; margin-bottom: 36px; }
.hero__title .row { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .word { display: inline-block; }
.hero__lead { max-width: 520px; font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-2); margin-bottom: 44px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__portrait { position: absolute; z-index: 1; right: clamp(16px, 6vw, 120px); top: 112px; bottom: 7vh; width: min(34vw, 500px); }
.hero__arch { position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 999px 999px 6px 6px; overflow: hidden; border: 1px solid var(--line); background: var(--navy); box-shadow: 0 40px 90px -30px rgba(0,0,0,.8); }
.hero__arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; will-change: transform; }
.hero__arch::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(11,15,26,.75)), radial-gradient(ellipse at 50% 0%, rgba(232,207,148,.14), transparent 60%); }
.hero__arch::after { content: ""; position: absolute; inset: 10px; z-index: 2; border-radius: inherit; border: 1px solid rgba(232,207,148,.35); pointer-events: none; }
.hero__seal { position: absolute; left: -76px; bottom: 9%; width: 168px; aspect-ratio: 1; z-index: 3; border-radius: 50%; background: radial-gradient(circle, rgba(11,15,26,.95) 55%, rgba(11,15,26,.6) 70%, transparent 71%); }
.hero__seal img { position: absolute; inset: 24%; width: 52%; height: 52%; object-fit: cover; clip-path: circle(47% at 50% 48.5%); }
.hero__orbit { position: absolute; top: 0; right: 0; bottom: 0; left: 0; animation: spin 30s linear infinite; }
.hero__orbit svg { width: 100%; height: 100%; overflow: visible; }
.hero__orbit text { fill: var(--gold); font-family: var(--sans); font-size: 19px; letter-spacing: 4.2px; font-weight: 600; }
@media (min-width: 1025px) { .hero__inner { max-width: min(820px, 54vw); } }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__scroll { position: absolute; bottom: 34px; left: var(--gutter); z-index: 2; display: flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.hero__scroll span { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.hero__scroll span::after { content: ""; position: absolute; left: 0; width: 1px; height: 14px; background: var(--ink); animation: drop 1.8s var(--ease) infinite; }
@keyframes drop { from { top: -14px; } to { top: 46px; } }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 26px 0; background: var(--bg-2); }
.marquee__track { display: flex; width: max-content; gap: 48px; align-items: center; font-family: var(--serif); font-size: clamp(34px, 5vw, 72px); font-style: italic; white-space: nowrap; }
.marquee__track span { color: transparent; -webkit-text-stroke: 1px var(--gold); transition: color .4s; }
.marquee__track span:hover { color: var(--gold); }
.marquee__track b { color: var(--gold); font-size: .4em; font-weight: 400; }

/* ---------- Por qué ---------- */
.why .display { max-width: 20ch; }
.why__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 8vw, 120px); margin-top: 40px; }
.why__intro { font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-2); position: sticky; top: 140px; align-self: start; }
.paths { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.path { display: flex; gap: 28px; padding: 30px 0; border-top: 1px solid var(--line); align-items: baseline; position: relative; }
.path:last-child { border-bottom: 1px solid var(--line); }
.path::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--gold); transform: scaleX(var(--p, 0)); transform-origin: left; }
.path__n { font-size: 12px; color: var(--gold); letter-spacing: .15em; flex: none; }
.path__t { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 40px); line-height: 1.2; color: var(--ink-2); }
.path__t strong { color: var(--gold-2); font-weight: 500; font-style: italic; }
.why__close { margin-top: 70px; max-width: 760px; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.35; }

/* ---------- Sobre mí ---------- */
.about { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.about__media { position: sticky; top: 110px; }
.about__visual { position: relative; }
.about__frame { position: relative; aspect-ratio: 4/5; border-radius: 300px 300px 8px 8px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(circle at 50% 40%, var(--navy), #070a12 75%); }
.about__photo { position: absolute; inset: -10% 0; display: grid; place-items: center; }
.about__photo img { width: 78%; aspect-ratio: 1; object-fit: cover; clip-path: circle(47% at 50% 48.5%); }
.about__photo img.is-photo { width: 100%; height: 100%; aspect-ratio: auto; clip-path: none; object-fit: cover; object-position: 38% 0; filter: saturate(.92) contrast(1.04); }
.about__photo:has(.is-photo) { inset: -6% 0; }
.about__shade { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; background: linear-gradient(180deg, rgba(11,15,26,0) 55%, rgba(11,15,26,.55) 85%, rgba(11,15,26,.9)), radial-gradient(ellipse at 70% 20%, rgba(232,207,148,.12), transparent 55%); }
.about__frame::after { content: ""; position: absolute; inset: 10px; border-radius: inherit; border: 1px solid rgba(232,207,148,.35); pointer-events: none; }
.about__badge { position: absolute; right: -18px; top: auto; bottom: 12%; background: var(--gold); color: #14100a; padding: 18px 22px; border-radius: 6px; line-height: 1.2; box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }
.about__badge strong { display: block; color: inherit; font-family: var(--serif); font-size: 26px; }
.about__badge span { font-size: 12px; letter-spacing: .06em; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.stat { border-top: 1px solid var(--line); padding-top: 18px; }
.stat b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(56px, 6vw, 88px); line-height: 1; color: var(--gold-2); }
.stat b::after { content: "+"; font-size: .5em; vertical-align: top; margin-left: 4px; color: var(--gold); }
.stat span { font-size: 13px; color: var(--muted); }
.about__text { color: var(--ink-2); }
.behind { list-style: none; padding: 0; margin: 30px 0 34px; }
.behind li { font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); line-height: 1.3; padding: 14px 0 14px 34px; position: relative; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
.behind li::before { content: "✦"; position: absolute; left: 0; top: 18px; font-size: 14px; color: var(--gold); }
.behind strong { font-weight: 500; color: var(--gold-2); }
.quote { margin: 40px 0 0; padding: 30px 0 0 30px; border-left: 1px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.35; color: var(--ink); }

/* ---------- Origen ---------- */
.origin__lead { font-size: clamp(18px, 1.5vw, 22px); color: var(--ink-2); max-width: 680px; }
.origin__lead q { color: var(--gold-2); font-family: var(--serif); font-style: italic; font-size: 1.2em; quotes: none; }
.questions { margin: 60px 0; overflow: hidden; }
.q { margin: 0; white-space: nowrap; font-family: var(--serif); font-size: clamp(44px, 8.5vw, 140px); line-height: 1.15; padding: 0 var(--gutter); }
.q span { display: inline-block; will-change: transform; }
.q--alt { color: transparent; -webkit-text-stroke: 1px var(--gold); font-style: italic; }
.origin__close { max-width: 760px; font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-2); margin-left: auto; }

/* ---------- Filosofía horizontal ---------- */
.philo { position: relative; background: #07090f; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.philo__pin { height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; gap: 4vw; }
.philo__head { flex: none; width: calc(min(36vw, 520px) + var(--gutter) + 4vw); align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 0 4vw 0 var(--gutter); position: relative; z-index: 2; background: linear-gradient(90deg, #07090f 82%, rgba(7,9,15,0)); }
.philo__head .display { font-size: clamp(38px, 4.4vw, 70px); }
.philo__bar { height: 2px; background: var(--line); margin-top: 30px; width: 220px; }
.philo__bar span { display: block; height: 100%; background: var(--gold); width: 100%; transform: scaleX(0); transform-origin: left; }
.philo__track { display: flex; gap: 28px; padding-right: var(--gutter); will-change: transform; }
.step {
  flex: none; width: min(380px, 78vw); min-height: 460px; padding: 42px 36px; border-radius: 4px;
  border: 1px solid var(--line); background: linear-gradient(160deg, rgba(20,32,58,.6), rgba(7,9,15,.4));
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: border-color .5s, transform .5s var(--ease);
}
.step::after { content: ""; position: absolute; inset: auto -40% -60% -40%; height: 80%; background: radial-gradient(ellipse, rgba(201,164,92,.25), transparent 60%); opacity: 0; transition: opacity .6s; }
.step:hover { border-color: var(--gold); transform: translateY(-8px); }
.step:hover::after { opacity: 1; }
.step__n { font-family: var(--serif); font-size: 120px; line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--gold); opacity: .6; }
.step__icon { width: 56px; height: 56px; margin: 40px 0 26px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-size: 40px; margin-bottom: 16px; }
.step p { color: var(--ink-2); margin: 0; }

/* ---------- Forma de trabajar ---------- */
.how__list { border-top: 1px solid var(--line); margin-top: 30px; }
.how__item { border-bottom: 1px solid var(--line); }
.how__item summary { list-style: none; display: flex; align-items: center; gap: clamp(18px, 4vw, 60px); padding: 34px 0; cursor: pointer; }
.how__item summary::-webkit-details-marker { display: none; }
.how__n { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 22px; width: 40px; flex: none; }
.how__item h3 { font-size: clamp(24px, 3vw, 46px); flex: 1; transition: color .4s, transform .6s var(--ease); }
.how__item summary:hover h3 { color: var(--gold-2); transform: translateX(10px); }
.how__plus { width: 26px; height: 26px; position: relative; flex: none; }
.how__plus::before, .how__plus::after { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--gold); transition: transform .5s var(--ease); }
.how__plus::after { transform: rotate(90deg); }
.how__item[open] .how__plus::after { transform: rotate(0); }
.how__body { padding: 0 0 36px calc(40px + clamp(18px, 4vw, 60px)); max-width: 880px; color: var(--ink-2); font-size: clamp(16px, 1.25vw, 19px); }

/* ---------- Servicios ---------- */
.services { background: var(--bg-2); }
.services__head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 40px; }
.services__head > p { color: var(--muted); max-width: 320px; }
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc {
  position: relative; text-align: left; padding: 38px 32px 70px; background: var(--bg-2); min-height: 260px;
  overflow: hidden; isolation: isolate; transition: color .5s;
  --mx: 50%; --my: 50%;
}
.svc::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; background: radial-gradient(400px circle at var(--mx) var(--my), rgba(201,164,92,.18), transparent 50%); opacity: 0; transition: opacity .4s; }
.svc::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -2; background: linear-gradient(160deg, var(--navy), #0a0f1c); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease); }
.svc:hover::before { opacity: 1; }
.svc:hover::after { transform: scaleY(1); }
.svc__n { font-size: 12px; color: var(--gold); letter-spacing: .15em; }
.svc h3 { font-size: clamp(26px, 2.1vw, 32px); margin: 24px 0 12px; line-height: 1.1; }
.svc p { color: var(--muted); font-size: 14px; margin: 0; transition: color .4s; }
.svc:hover p { color: var(--ink-2); }
.svc__arrow { position: absolute; bottom: 28px; right: 30px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold); transition: transform .6s var(--ease), background .4s, color .4s; }
.svc:hover .svc__arrow { background: var(--gold); color: #14100a; transform: rotate(-45deg); }

@media (min-width: 1200px) { .services__grid { grid-template-columns: repeat(4, 1fr); } .svc { padding: 34px 26px 74px; } .svc h3 { font-size: 26px; } }
@media (max-width: 560px) { .services__grid { grid-template-columns: 1fr; } .svc { min-height: 0; } }

/* Servicios complementarios */
.services__extra { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.extra { border: 1px solid var(--line); border-radius: 4px; padding: clamp(24px, 3vw, 40px); background: var(--card); }
.extra h3 { font-size: clamp(24px, 2vw, 30px); margin-bottom: 20px; color: var(--gold-2); }
.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { font-size: 13.5px; line-height: 1.4; padding: 10px 16px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink-2); transition: border-color .3s, color .3s, background .3s; }
.pills li:hover { border-color: var(--gold); color: var(--ink); background: rgba(201,164,92,.08); }

/* ---------- Valor profesional ---------- */
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 20px; }
.value { background: var(--bg); padding: clamp(28px, 3vw, 44px) clamp(22px, 2.4vw, 34px); position: relative; overflow: hidden; }
.value::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.value:hover::before { transform: scaleX(1); }
.value__n { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 20px; }
.value h3 { font-size: clamp(28px, 2.4vw, 36px); margin: 18px 0 14px; }
.value p { color: var(--ink-2); margin: 0; font-size: 15px; }
.ethics { margin-top: 40px; display: grid; grid-template-columns: .5fr 1.5fr; gap: clamp(20px, 5vw, 80px); align-items: baseline; padding: clamp(28px, 4vw, 50px) 0; border-bottom: 1px solid var(--line); }
.ethics h3 { font-size: clamp(30px, 3vw, 44px); color: var(--gold-2); }
.ethics p { margin: 0; font-family: var(--serif); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.45; color: var(--ink); }
@media (max-width: 1024px) { .values__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .values__grid, .services__extra, .ethics { grid-template-columns: 1fr; } }

/* ---------- Galería ---------- */
.gallery { overflow: hidden; }
.gallery__head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.gallery__head > p { color: var(--ink-2); max-width: 380px; }
.gallery__head .display { max-width: 12ch; }
.gallery__track { display: grid; grid-template-columns: repeat(5, 1fr); align-items: start; gap: clamp(14px, 1.6vw, 26px); padding: 40px var(--gutter) 60px; max-width: 1600px; margin: 0 auto; }
.shot { margin: 0; position: relative; }
.shot:nth-child(2) { margin-top: 90px; }
.shot:nth-child(3) { margin-top: 30px; }
.shot:nth-child(4) { margin-top: 120px; }
.shot:nth-child(5) { margin-top: 50px; }
.shot__img { position: relative; aspect-ratio: 3/4; overflow: hidden; border-radius: 4px; border: 1px solid var(--line); background: var(--navy); }
.shot:nth-child(odd) .shot__img { border-radius: 200px 200px 4px 4px; }
.shot__img::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, transparent 50%, rgba(7,9,15,.85)); opacity: .7; transition: opacity .6s; }
.shot__img img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 10%; transition: transform 1.2s var(--ease), filter .8s; filter: saturate(.85); will-change: transform; }
.shot:hover .shot__img img { transform: scale(1.07); filter: saturate(1); }
.shot:hover .shot__img::after { opacity: 1; }
.shot figcaption { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1; line-height: 1.3; }
.shot figcaption b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 1.8vw, 30px); color: var(--ink); }
.shot figcaption span { display: block; font-size: 12.5px; color: var(--ink-2); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s; }
.shot:hover figcaption span { max-height: 60px; opacity: 1; }
@media (hover: none) { .shot figcaption span { max-height: 60px; opacity: 1; } }
@media (max-width: 1024px) {
  .gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 30px; }
  .gallery__track::-webkit-scrollbar { display: none; }
  .shot { flex: none; width: min(62vw, 320px); scroll-snap-align: center; margin-top: 0 !important; }
}

/* ---------- Clientes / testimonios ---------- */
.clients { overflow: hidden; background: linear-gradient(180deg, var(--bg), var(--bg-2) 50%, var(--bg)); }
.clients__head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 50px; }
.clients__head > p { color: var(--ink-2); max-width: 380px; margin: 0; }
.clients__rail { position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.clients__rail { touch-action: pan-y; overscroll-behavior-x: contain; outline: none; }
.clients__track { display: flex; gap: 22px; width: max-content; padding: 10px 0 20px; will-change: transform; cursor: grab; user-select: none; -webkit-user-select: none; }
.clients__rail.is-dragging .clients__track { cursor: grabbing; }
.clients__rail.is-dragging .client { transform: none; }
.clients__hint { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.clients__hint span { color: var(--gold); letter-spacing: 0; font-size: 14px; }
@keyframes clients-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 11px)); } }
.client { flex: none; width: min(380px, 80vw); padding: 30px 30px 26px; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(160deg, rgba(20,32,58,.6), rgba(7,9,15,.35)); display: flex; flex-direction: column; gap: 18px; transition: border-color .4s, transform .5s var(--ease); }
.client:hover { border-color: var(--gold); transform: translateY(-6px); }
.client__top { display: flex; align-items: center; gap: 14px; }
.client__logo { width: 54px; height: 54px; flex: none; }
.client__logo--wide { width: 96px; }
.client__logo svg { width: 100%; height: 100%; display: block; }
.client__logo img { width: 100%; height: 100%; display: block; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.client__name { font-family: var(--serif); font-size: 21px; line-height: 1.15; color: var(--ink); }
.client__sector { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-top: 4px; font-family: var(--sans); }
.client__stars { color: var(--gold-2); letter-spacing: 3px; font-size: 14px; }
.client blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.45; color: var(--ink-2); flex: 1; }
.client blockquote::before { content: "“"; display: block; font-size: 54px; line-height: .6; color: var(--gold); font-style: normal; margin-bottom: 6px; }
.client__case-tag { margin: 0; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }
.client__case { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); flex: 1; }
.client__who { font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 14px; }
.client__who b { color: var(--ink-2); font-weight: 600; }
.clients__logos { display: flex; gap: 46px; width: max-content; margin-top: 34px; opacity: .55; animation: clients-logos calc(var(--dur, 60s) * .6) linear infinite; }
@keyframes clients-logos { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 23px)); } }
.clients__logos span { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 20px; color: var(--ink-2); white-space: nowrap; filter: grayscale(1); }
.clients__logos svg { width: 30px; height: 30px; }
.clients__logos img { height: 30px; width: auto; max-width: 90px; object-fit: contain; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .clients__logos { animation: none; } }

/* ---------- ¿Sabías que? ---------- */
.tips__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 30px; }
.tip { display: grid; grid-template-columns: .8fr 1.2fr; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: linear-gradient(160deg, rgba(20,32,58,.55), rgba(7,9,15,.3)); transition: border-color .5s, transform .6s var(--ease); }
.tip:hover { border-color: var(--gold); transform: translateY(-6px); }
.tip__media { position: relative; overflow: hidden; min-height: 280px; }
.tip__media img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; transition: transform 1.2s var(--ease); }
.tip:hover .tip__media img { transform: scale(1.06); }
.tip__media::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(90deg, transparent 60%, rgba(11,15,26,.6)); }
.tip__body { padding: clamp(24px, 2.6vw, 38px); }
.tip__tag { display: inline-block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line); border-radius: 100px; padding: 6px 12px; margin-bottom: 18px; }
.tip h3 { font-size: clamp(24px, 2vw, 30px); line-height: 1.15; margin-bottom: 14px; }
.tip p { color: var(--ink-2); font-size: 14.5px; }
.tip__list { list-style: none; padding: 0; margin: 0 0 18px; counter-reset: s; }
.tip__list li { position: relative; padding: 10px 0 10px 28px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.tip__list li::before { content: "✦"; position: absolute; left: 0; top: 11px; color: var(--gold); font-size: 12px; }
.tip__list--steps li { counter-increment: s; }
.tip__list--steps li::before { content: counter(s) "."; font-family: var(--serif); font-size: 18px; top: 7px; }
.tip__list b { color: var(--ink); font-weight: 600; }
.tip__note { font-family: var(--serif); font-style: italic; font-size: 18px !important; color: var(--gold-2) !important; line-height: 1.4; }
.tip__cta { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14px; color: var(--gold-2); border-bottom: 1px solid var(--gold); padding-bottom: 4px; }
.tip__cta span { transition: transform .4s var(--ease); }
.tip__cta:hover span { transform: translateX(6px); }
@media (max-width: 1200px) { .tips__grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .tip { grid-template-columns: 1fr; } .tip__media { min-height: 320px; } .tip__media::after { background: linear-gradient(180deg, transparent 60%, rgba(11,15,26,.7)); } }

/* ---------- Formación ---------- */
.edu__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 7vw, 110px); }
.edu__grid > div:first-child { position: sticky; top: 140px; align-self: start; }
.timeline { list-style: none; padding: 0 0 0 36px; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline::after { content: ""; position: absolute; left: 6px; top: 8px; width: 1px; height: calc(100% - 16px); background: var(--gold); transform: scaleY(var(--tl, 0)); transform-origin: top; }
.tl { position: relative; padding: 0 0 46px; }
.tl__dot { position: absolute; left: -36px; top: 8px; width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--gold); background: var(--bg); transition: background .4s, box-shadow .4s; z-index: 1; }
.tl.is-on .tl__dot { background: var(--gold); box-shadow: 0 0 0 6px rgba(201,164,92,.15); }
.tl h3 { font-size: clamp(24px, 2.2vw, 32px); margin-bottom: 6px; }
.tl p { color: var(--muted); margin: 0; font-size: 14px; letter-spacing: .04em; }

/* ---------- Propósito ---------- */
.purpose { position: relative; padding: clamp(120px, 18vw, 240px) 0; text-align: center; overflow: hidden; background: #07090f; }
.purpose__bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; place-items: center; opacity: .08; pointer-events: none; }
.purpose__bg img { width: min(110vw, 1100px); clip-path: circle(47% at 50% 48.5%); filter: grayscale(.3); }
.purpose__title { font-size: clamp(40px, 6.4vw, 104px); max-width: 16ch; margin: 0 auto 50px; line-height: 1.05; }
.purpose__title .ch { color: rgba(243,237,225,.14); transition: none; }
.purpose__text { max-width: 680px; margin: 0 auto 30px; color: var(--ink-2); font-size: clamp(16px, 1.3vw, 19px); }
.purpose__sign { max-width: 760px; margin: 0 auto; font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); line-height: 1.4; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 110px); }
.faq__grid > div:first-child { position: sticky; top: 140px; align-self: start; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; padding: 26px 50px 26px 0; position: relative; font-family: var(--serif); font-size: clamp(21px, 1.8vw, 26px); line-height: 1.3; transition: color .3s; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-weight: 300; font-size: 28px; color: var(--gold); transition: transform .5s var(--ease); }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(135deg); }
.faq__item summary:hover { color: var(--gold-2); }
.faq__item p { color: var(--ink-2); padding: 0 40px 26px 0; margin: 0; }

/* ---------- Contacto ---------- */
.contact { background: linear-gradient(180deg, var(--bg), #0d1426); }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); }
.contact__info > p { color: var(--ink-2); }
.contact__person { display: flex; align-items: center; gap: 16px; margin-top: 30px; }
.contact__person img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold); padding: 3px; }
.contact__person p { margin: 0; line-height: 1.35; }
.contact__person strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 500; }
.contact__person span { font-size: 13px; color: var(--muted); }
.contact__list { list-style: none; padding: 0; margin: 40px 0 0; }
.contact__list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.contact__list span { font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); padding-top: 4px; }
.contact__list a, .contact__list p { margin: 0; font-family: var(--serif); font-size: 21px; overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--gold-2); }

.form { padding: clamp(28px, 4vw, 54px); border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.02); backdrop-filter: blur(6px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { position: relative; margin-bottom: 22px; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--ink); font: inherit; padding: 26px 0 10px; outline: none; resize: vertical; border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
/* 16px mínimo en táctiles: con menos, Safari de iPhone hace zoom al tocar el campo */
@media (pointer: coarse) { .field input, .field textarea, .field select { font-size: 16px; } }
.field select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 12px) 60%, calc(100% - 7px) 60%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--bg-2); color: var(--ink); }
.field label { position: absolute; left: 0; top: 26px; color: var(--muted); pointer-events: none; transition: transform .4s var(--ease), color .3s, font-size .4s; transform-origin: left; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label { transform: translateY(-22px) scale(.78); color: var(--gold); }
.field::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field textarea { padding-top: 30px; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: #d9776a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 10px 0 28px; cursor: pointer; }
.check input { accent-color: var(--gold); margin-top: 4px; width: 16px; height: 16px; flex: none; }
.check a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.check.is-invalid { color: #e59a8f; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form__status { margin: 18px 0 0; font-size: 14px; color: var(--gold-2); min-height: 1.4em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 60px 0 40px; background: #07090f; font-size: 13px; color: var(--muted); }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.footer__brand { display: flex; gap: 16px; align-items: center; }
.footer__brand img { width: 56px; height: 56px; object-fit: cover; clip-path: circle(47% at 50% 48.5%); }
.footer__slogan { display: block; margin-top: 4px; font-family: var(--serif); font-size: 17px; color: var(--gold-2); }
.footer__brand strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a:hover { color: var(--gold-2); }
.footer__disclaimer { margin: 30px 0 14px; max-width: 900px; line-height: 1.6; }
.footer__copy { margin: 0; }

/* ---------- Modal ---------- */
.modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 200; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__backdrop { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(4,6,10,.75); backdrop-filter: blur(8px); opacity: 0; transition: opacity .5s; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative; width: min(640px, 100%); max-height: 90vh; overflow: auto;
  padding: clamp(30px, 5vw, 56px); border-radius: 6px; border: 1px solid var(--line);
  background: linear-gradient(160deg, #15213d, #0b0f1a);
  clip-path: inset(50% 0 50% 0); transition: clip-path .8s var(--ease);
}
.modal.is-open .modal__panel { clip-path: inset(0 0 0 0); }
.modal__close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--gold); transition: transform .5s var(--ease); }
.modal__close:hover { transform: rotate(90deg); }
.modal__n { font-size: 12px; letter-spacing: .2em; color: var(--gold); }
.modal h3 { font-size: clamp(32px, 4vw, 48px); margin: 12px 0 18px; }
.modal__lead { color: var(--ink-2); }
.modal__list { padding: 0; list-style: none; margin: 0 0 30px; }
.modal__list li { padding: 10px 0 10px 26px; position: relative; border-bottom: 1px dashed var(--line); color: var(--ink-2); font-size: 15px; }
.modal__list li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: 11px; top: 14px; }

/* ---------- WhatsApp ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); box-shadow: 0 12px 30px -8px rgba(0,0,0,.7); transition: transform .3s; }
.wa-float::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 50%; border: 1px solid var(--gold); animation: pulse 2.4s ease-out infinite; }
.wa-float svg { width: 28px; height: 28px; fill: #14100a; }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

/* ---------- Páginas legales ---------- */
.legal { padding: 150px 0 100px; }
.legal .container { max-width: 860px; }
.legal h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 14px; }
.legal h2 { font-size: clamp(26px, 3vw, 36px); margin: 50px 0 16px; color: var(--gold-2); }
.legal p, .legal li { color: var(--ink-2); }
.legal .note { padding: 16px 20px; border-left: 2px solid var(--gold); background: var(--card); font-size: 14px; }

/* ---------- Revelados (estado inicial controlado por JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); }
.js .clip-reveal { clip-path: inset(100% 0 0 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav .btn--small { display: none; }
  .hero__portrait { width: 46vw; right: -6vw; }
  .hero__arch img { opacity: .5; }
  .hero__seal { display: none; }
  .why__grid, .about__grid, .edu__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .why__intro, .about__media, .edu__grid > div:first-child, .faq__grid > div:first-child { position: static; }
  .about__media { max-width: 480px; position: relative; top: 0; }
}
@media (max-width: 760px) {
  .hero { align-items: flex-end; padding-bottom: 120px; }
  .hero__portrait { left: 0; right: 0; top: 0; bottom: auto; width: 100%; height: 72vh; height: 72svh; }
  .hero__arch { border: 0; border-radius: 0; box-shadow: none; -webkit-mask-image: linear-gradient(#000 35%, transparent 96%); mask-image: linear-gradient(#000 35%, transparent 96%); }
  .hero__arch::after { display: none; }
  .hero__arch img { opacity: .55; object-position: 60% 10%; }
  .philo__pin { height: auto; flex-direction: column; align-items: stretch; padding: 100px var(--gutter); gap: 40px; }
  .philo__head { width: 100%; padding: 0; background: none; }
  .philo__track { flex-direction: column; padding: 0; }
  .step { width: 100%; min-height: 0; }
  .step__n { font-size: 80px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .about__badge { right: 12px; bottom: 16px; padding: 12px 16px; }
  .about__badge strong { font-size: 20px; }
  .contact__list li { grid-template-columns: 1fr; gap: 4px; }
  .how__body { padding-left: 0; }
  .path { gap: 18px; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal, .js .clip-reveal { opacity: 1; transform: none; clip-path: none; }
}

@media (max-width: 360px) { .nav__brand em { display: none; } }

/* Red de seguridad: si las animaciones fallan, todo queda visible (ver index.html) */
.no-anim .reveal, .no-anim .clip-reveal, .no-anim .nav, .no-anim .hero__title .word,
.no-anim .hero__arch, .no-anim .hero__arch img, .no-anim .hero__seal, .no-anim .hero__eyebrow,
.no-anim .hero__lead, .no-anim .hero__cta, .no-anim .hero__scroll {
  opacity: 1 !important; visibility: visible !important; transform: none !important; clip-path: none !important; transition: none !important;
}

/* Tarjetas de testimonios en celulares: nombres largos y logos anchos caben en la tarjeta */
.client__name { min-width: 0; overflow-wrap: break-word; }
@media (max-width: 480px) {
  .client { padding: 24px 22px 22px; }
  .client__name { font-size: 18px; }
  .client__logo { width: 46px; height: 46px; }
  .client__logo--wide { width: 70px; }
}

/* Celulares, Fold y tablets: el texto del inicio queda sobre la foto; una sombra suave lo hace legible */
@media (max-width: 1024px) {
  .hero__eyebrow, .hero__lead, .hero__title { text-shadow: 0 1px 14px rgba(7, 9, 15, .95), 0 0 2px rgba(7, 9, 15, .9); }
}
