/* =========================================================
   AMQ — Asesoría Migratoria Querétaro
   Stylesheet principal del tema WordPress
   Consolida el CSS inline de los HTML originales.
   ========================================================= */

/* ─── SCROLL REVEAL (CSS-driven, triggered by JS class toggle) ── */
.sr-hidden {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.sr-hidden.about-badge,
.sr-hidden.why-accent-box {
  transform: scale(0) rotate(-8deg);
  transition: opacity .7s cubic-bezier(.34,1.56,.64,1), transform .7s cubic-bezier(.34,1.56,.64,1);
}
.sr-hidden.pstep-icon,
.sr-hidden.step-icon {
  opacity: 1;
  transform: scale(0) rotate(-30deg);
  transition: transform .6s cubic-bezier(.34,1.56,.64,1);
}
.sr-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* ─── DESIGN TOKENS ─────────────────────────────────────── */
:root {
  --ink:    #0c1524;
  --navy:   #0f2a4a;
  --navy2:  #183566;
  --blue:   #1a4080;
  --gold:   #f0c040;
  --gold2:  #ffd866;
  --cream:  #f0f3f8;
  --paper:  #f7f9fc;
  --muted:  #6b7280;
  --rule:   #d4dbe8;

  /* Aliases por compatibilidad con CSS de sub-páginas originales
     (usaban --forest/--forest2/--green en vez de --navy/--navy2/--blue) */
  --forest:  var(--navy);
  --forest2: var(--navy2);
  --green:   var(--blue);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
  --mono:  'DM Mono', monospace;

  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-in-out: cubic-bezier(.76,0,.24,1);
  --ease: var(--ease-out);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.custom-cursor, body.custom-cursor button, body.custom-cursor a, body.custom-cursor .wa-btn, body.custom-cursor .bcard { cursor: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ─── CUSTOM CURSOR ────────────────────────────────────── */
#cursor {
  position: fixed; width: 38px; height: 38px;
  border: 1.5px solid rgba(201,168,76,.7); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .35s var(--ease-out), height .35s var(--ease-out),
              background .35s, border-color .35s, opacity .35s;
  mix-blend-mode: normal;
}
#cursor-dot {
  position: fixed; width: 5px; height: 5px;
  background: var(--gold); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform .1s;
}
#cursor.is-hover, #cursor.cursor-hover { width: 64px; height: 64px; background: rgba(201,168,76,.12); border-color: var(--gold); }
#cursor.cursor-link { width: 56px; height: 56px; background: rgba(201,168,76,.15); }
#cursor.is-down { transform: translate(-50%,-50%) scale(.85); }

/* ─── PROGRESS BAR ────────────────────────────────────────── */
#scroll-progress { position: fixed; top: 0; left: 0; height: 2.5px; background: var(--gold); z-index: 9997; transform-origin: left; transform: scaleX(0); }

/* ─── TOPBAR ────────────────────────────────────────────── */
.topbar { background: var(--ink); color: rgba(255,255,255,.6); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }
.topbar-inner { max-width: 1380px; margin: auto; padding: 0 clamp(20px,4vw,56px); height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar a { color: rgba(255,255,255,.6); transition: color .2s; }
.topbar a:hover { color: var(--gold); }
.tb-dot { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; display: inline-block; margin-right: 8px; vertical-align: middle; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1}50%{opacity:.4} }
.tb-right { display: flex; gap: 20px; }

/* ─── HEADER ────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 36px; left: 0; right: 0; z-index: 500;
  background: rgba(12,21,36,.45);
  backdrop-filter: blur(8px);
  transition: top .4s var(--ease-out), background .4s, backdrop-filter .4s, box-shadow .4s;
}
.site-header.scrolled {
  top: 0;
  background: rgba(12,21,36,.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
/* En sub-páginas el header sigue siendo sticky pero arranca con fondo translúcido
   por consistencia con el home; la clase .scrolled la añade el JS al scrollear. */
.site-header.is-subpage { background: rgba(12,21,36,.92); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }

.header-inner {
  max-width: 1380px; margin: auto;
  padding: 0 clamp(20px,4vw,56px);
  height: 78px;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; color: #fff; }
.brand-mark {
  width: 52px; height: 52px; background: transparent;
  display: grid; place-items: center; border-radius: 3px;
  transition: transform .4s var(--ease-out);
  padding: 2px;
}
.brand:hover .brand-mark { transform: rotate(-5deg) scale(1.05); }
.brand-mark img { width: 40px; height: auto; object-fit: contain; }
.brand-name { font-family: var(--serif); font-size: 20px; font-weight: 500; color: #fff; letter-spacing: .02em; line-height: 1.1; }
.brand-sub { font-family: var(--mono); font-size: 9px; letter-spacing: .22em; color: rgba(255,255,255,.45); text-transform: uppercase; display: block; margin-top: 3px; }

.nav-main { justify-self: center; }
.nav-main > ul { list-style: none; display: flex; gap: 32px; }
.nav-main > ul > li { position: relative; }
.nav-main a { font-size: 15px; font-weight: 500; color: rgba(255,255,255,.85); padding: 6px 0; position: relative; transition: color .2s; letter-spacing: .01em; }
.nav-main a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px; background: var(--gold); transition: right .3s var(--ease-out); }
.nav-main a:hover, .nav-main a.active, .nav-main .current-menu-item > a, .nav-main .current-menu-ancestor > a { color: #fff; }
.nav-main a:hover::after, .nav-main a.active::after, .nav-main .current-menu-item > a::after, .nav-main .current-menu-ancestor > a::after { right: 0; }

.nav-main li.has-sub { position: relative; }
.nav-main li.has-sub > a::before { content: ''; border: 4px solid transparent; border-top-color: rgba(255,255,255,.4); display: inline-block; vertical-align: middle; margin-left: 5px; margin-top: 2px; transition: transform .2s; }
.nav-main li.has-sub:hover > a::before { transform: rotate(180deg); border-top-color: var(--gold); }
.dropdown {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translate(-50%, -10px) scale(.98);
  background: #fff; border-radius: 6px;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
  min-width: 280px; padding: 10px; list-style: none;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  transform-origin: top center;
}
.nav-main li.has-sub:hover .dropdown, .nav-main li.has-sub:focus-within .dropdown {
  opacity: 1; pointer-events: auto; transform: translate(-50%, 0) scale(1);
}
.nav-main li.has-sub::after {
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 20px;
}
.dropdown li { width: 100%; }
.dropdown li a {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 14px; border-radius: 4px;
  color: var(--ink); font-size: 13.5px; font-weight: 500;
  white-space: nowrap;
  transition: background .15s, transform .2s;
}
.dropdown li a:hover, .dropdown li a:focus { background: var(--cream); color: var(--ink); transform: translateX(4px); }
.dropdown li a::after { display: none; }
.dropdown li a .num { font-family: var(--mono); font-size: 10px; color: var(--gold); width: 22px; flex-shrink: 0; }
/* Active item inside dropdown (override white text from .nav-main .current-menu-item > a) */
.dropdown .current-menu-item > a,
.dropdown .current_page_item > a { color: var(--navy) !important; background: var(--cream); font-weight: 600; }
.dropdown .current-menu-item > a .num { color: var(--gold); }

.header-actions { display: flex; gap: 12px; align-items: center; }

/* ─── BOTONES ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 3px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  transition: all .3s var(--ease-out); position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.08); opacity: 0;
  transition: opacity .2s;
}
.btn:hover::before { opacity: 1; }
.btn-outline { border: 1.5px solid rgba(255,255,255,.3); color: #fff; }
.btn-outline:hover { border-color: rgba(255,255,255,.7); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold2); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(201,168,76,.4); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy2); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(15,42,74,.5); }
.btn-forest { background: var(--navy); color: #fff; }
.btn-forest:hover { background: var(--navy2); transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid var(--rule); color: var(--ink); background: #fff; }
.btn-ghost:hover { background: var(--cream); transform: translateY(-1px); }
.btn-arrow::after { content: '→'; font-family: var(--serif); font-size: 16px; transition: transform .2s; }
.btn-arrow:hover::after { transform: translateX(4px); }
.btn-arrow-anim { position: relative; padding-right: 36px; }
.btn-arrow-anim .arr { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-family: var(--serif); font-size: 16px; transition: transform .3s var(--ease-out); }
.btn-arrow-anim:hover .arr { transform: translateY(-50%) translateX(5px); }
.magnetic { display: inline-block; }

/* ─── HERO (HOME) ──────────────────────────────────────── */
.hero {
  position: relative; height: 100svh; min-height: 660px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; will-change: transform; overflow: hidden; }
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 115%;
  object-fit: cover; object-position: center 60%;
  transform-origin: center center;
  animation: ken-burns 22s ease-in-out infinite alternate;
}
@keyframes ken-burns {
  0%   { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.15) translate(-1.5%, -1%); }
}
.hero-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-particles span {
  position: absolute; bottom: -10%;
  width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,217,122,.95) 0%, rgba(232,202,122,.5) 40%, transparent 70%);
  filter: blur(.5px);
  animation: float-up linear infinite;
  opacity: 0;
}
@keyframes float-up {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: .8; }
  90%  { opacity: .8; }
  100% { transform: translateY(-120vh) translateX(40px); opacity: 0; }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,13,28,.05) 0%, rgba(5,13,28,.1) 45%, rgba(12,21,36,.55) 80%, rgba(12,21,36,.85) 100%);
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  animation: grain-shift 8s steps(2) infinite;
}
@keyframes grain-shift { 0%{transform:translate(0,0)} 25%{transform:translate(-2%,-1%)} 50%{transform:translate(1%,2%)} 75%{transform:translate(-1%,1%)} 100%{transform:translate(0,0)} }

.hero-content {
  position: relative; z-index: 2; width: 100%;
  max-width: 1380px; margin: auto;
  padding: 0 clamp(20px,4vw,56px);
  padding-bottom: clamp(60px,8vw,110px);
}
.hero-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 14px;
  overflow: hidden;
}
.hero-eyebrow-line {
  width: 32px; height: 1.5px; background: var(--gold);
  transition: width .8s var(--ease-out);
}
.has-anim .hero-eyebrow-line { width: 0; }
.hero-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(44px,7.2vw,118px);
  line-height: 1; letter-spacing: -.025em;
  color: #fff; max-width: 16ch; margin-top: 24px;
}
.hero-title .word {
  display: inline-block; overflow: hidden;
  margin-right: .18em; vertical-align: baseline;
  padding-bottom: .25em; margin-bottom: -.18em;
}
.hero-title .word-inner { display: block; }
.has-anim .hero-title .word-inner { transform: translateY(110%); }
.hero-title em { font-style: italic; color: var(--gold2); margin-right: .18em; }
.hero-title em .word-inner { color: var(--gold2); }

.hero-sub {
  font-size: clamp(15px,1.2vw,18px); color: rgba(255,255,255,.72);
  max-width: 46ch; margin-top: 28px; line-height: 1.7;
}
.has-anim .hero-sub { opacity: 0; transform: translateY(20px); }
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 38px;
}
.has-anim .hero-actions { opacity: 0; transform: translateY(20px); }
.hero-scroll {
  position: absolute; right: clamp(20px,4vw,56px); bottom: 36px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.has-anim .hero-scroll { opacity: 0; }
.hero-scroll-text { font-family: var(--mono); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.35); writing-mode: vertical-rl; }
.scroll-line { width: 1.5px; height: 56px; background: rgba(255,255,255,.15); position: relative; overflow: hidden; }
.scroll-line::after { content: ''; position: absolute; top: -100%; left: 0; right: 0; height: 100%; background: linear-gradient(to bottom, transparent, var(--gold)); animation: scroll-drop 2s 2s infinite; }
@keyframes scroll-drop { to { top: 200%; } }

.hero-stats {
  position: absolute; right: clamp(20px,4vw,56px);
  top: 50%; transform: translateY(-50%);
  z-index: 3; display: flex; flex-direction: column; gap: 0;
  border-left: 2px solid rgba(255,255,255,.55);
}
.has-anim .hero-stats { opacity: 0; }
.hstat { padding: 20px 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,.45); }
.hstat:last-child { border-bottom: none; }
.hstat-num {
  font-family: var(--serif); font-size: 52px; font-weight: 400;
  color: #ffe9a8; line-height: 1; letter-spacing: -.02em;
}
.hstat-num sup { font-size: .45em; vertical-align: super; color: #ffd97a; }
.hstat-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.92); margin-top: 7px; font-weight: 500; }
@media(max-width:900px){ .hero-stats { display: none; } }

/* ─── MARQUEE STRIP ─────────────────────────────────────── */
.marquee-strip { background: var(--gold); overflow: hidden; padding: 14px 0; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 0; animation: marquee 28s linear infinite; }
.marquee-item {
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink); font-weight: 600;
  padding: 0 36px; display: inline-flex; align-items: center; gap: 12px;
}
.marquee-item::after { content: '·'; opacity: .4; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── ABOUT STRIP (dark, home) ──────────────────────────── */
.about-strip { background: var(--ink); padding: clamp(80px,10vw,140px) 0; overflow: hidden; }
.about-inner {
  max-width: 1380px; margin: auto; padding: 0 clamp(20px,4vw,56px);
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px,6vw,120px); align-items: center;
}
@media(max-width:900px){ .about-inner { grid-template-columns: 1fr; } }
.about-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 12px; }
.about-eyebrow::before { content: ''; width: 28px; height: 1.5px; background: var(--gold); }
.about-heading { font-family: var(--serif); font-size: clamp(38px,4vw,62px); font-weight: 300; color: #fff; line-height: 1.04; letter-spacing: -.015em; margin-top: 22px; max-width: 16ch; }
.about-heading em { font-style: italic; color: var(--gold2); }
.about-body { color: rgba(255,255,255,.62); font-size: 16px; line-height: 1.78; margin-top: 28px; }
.about-body p + p { margin-top: 18px; }
.about-cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

.about-imgs { position: relative; height: 540px; }
.about-img-main {
  position: absolute; top: 0; left: 0; right: 56px;
  height: 420px; object-fit: cover; border-radius: 4px;
  will-change: transform;
}
.about-img-sub {
  position: absolute; bottom: 0; right: 0; width: 62%; height: 280px;
  object-fit: cover; border-radius: 4px;
  border: 5px solid var(--ink);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  will-change: transform;
}
.about-badge {
  position: absolute; bottom: 24px; left: 24px;
  background: var(--gold); color: var(--ink);
  padding: 18px 24px; border-radius: 3px;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
  z-index: 2;
}
.about-badge .n { font-family: var(--serif); font-size: 44px; font-weight: 400; line-height: 1; display: block; }
.about-badge .l { font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; display: block; margin-top: 4px; opacity: .75; }

/* ─── KPIs (home) ───────────────────────────────────────── */
.kpis-section { background: var(--navy); padding: 0; }
.kpis-grid { max-width: 100%; margin: auto; display: grid; grid-template-columns: repeat(4,1fr); }
@media(max-width:700px){ .kpis-grid { grid-template-columns: 1fr 1fr; } }
.kpi-item {
  padding: clamp(40px,5vw,72px) clamp(24px,3vw,40px);
  border-right: 1px solid rgba(255,255,255,.08);
  position: relative; overflow: hidden;
  transition: background .3s;
}
.kpi-item:last-child { border-right: none; }
.kpi-item:hover { background: rgba(255,255,255,.04); }
.kpi-item::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.kpi-item:hover::before { transform: scaleX(1); }
.kpi-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); opacity: .8; margin-bottom: 14px; }
.kpi-num {
  font-family: var(--serif); font-size: clamp(48px,5vw,76px);
  font-weight: 300; color: #fff; line-height: 1; letter-spacing: -.02em;
  display: flex; align-items: baseline; gap: 2px;
}
.kpi-num sup { font-size: .42em; color: var(--gold); }
.kpi-label { font-size: 13.5px; color: rgba(255,255,255,.5); margin-top: 12px; max-width: 22ch; line-height: 1.5; }

/* ─── SERVICES GRID (home) ──────────────────────────────── */
.svc-section { padding: clamp(80px,10vw,140px) 0; background: var(--cream); }
.section-header { max-width: 1380px; margin: auto; padding: 0 clamp(20px,4vw,56px); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px,6vw,90px); margin-bottom: clamp(48px,6vw,80px); align-items: center; }
@media(max-width:800px){ .section-header { grid-template-columns: 1fr; } }
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 28px; height: 1.5px; background: var(--gold); }
.svc-section .eyebrow, .blog-section .eyebrow { color: var(--ink); }
.section-title { font-family: var(--serif); font-size: clamp(34px,3.5vw,56px); font-weight: 300; line-height: 1.04; color: var(--ink); letter-spacing: -.015em; margin-top: 18px; max-width: 18ch; }
.section-desc { color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 46ch; }

.svc-grid {
  max-width: 1380px; margin: auto; padding: 0 clamp(20px,4vw,56px);
  display: flex; gap: 6px; height: 560px;
}
.svc-card { position: relative; flex: 1 1 0; min-width: 0; border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  text-decoration: none; opacity: 1 !important;
  transition: flex .7s var(--ease-out);
  will-change: flex;
}
.svc-card.is-default { flex: 2.6; }
.svc-grid:hover .svc-card.is-default:not(:hover) { flex: 1; }
.svc-card.is-default .svc-title { opacity: 1; max-height: 200px; margin-top: 10px; }
.svc-grid:hover .svc-card.is-default:not(:hover) .svc-title { opacity: 0; max-height: 0; margin-top: 0; }
.svc-card.is-default .svc-desc { max-height: 140px; opacity: 1; margin-top: 14px; }
.svc-card.is-default .svc-link { transform: none; opacity: 1; }
.svc-card.is-default img { filter: brightness(1) saturate(1.1); }
.svc-grid:hover .svc-card.is-default:not(:hover) .svc-desc { max-height: 0; opacity: 0; margin-top: 0; }
.svc-grid:hover .svc-card.is-default:not(:hover) .svc-link { opacity: 0; transform: translateY(6px); }
.svc-card:hover { flex: 2.6; }
.svc-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease-out), filter .6s;
  filter: brightness(.85) saturate(1.05);
}
.svc-card:hover img { transform: scale(1.06); filter: brightness(1) saturate(1.1); }
.svc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(12,21,36,.96) 0%, rgba(12,21,36,.55) 55%, rgba(12,21,36,.2) 100%);
  transition: background .5s;
}
.svc-card:hover .svc-overlay { background: linear-gradient(0deg, rgba(15,42,74,.92) 0%, rgba(15,42,74,.45) 60%, rgba(15,42,74,.12) 100%); }
.svc-body { position: relative; z-index: 2; padding: 28px 26px; }
.svc-num { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); opacity: 1; font-weight: 600; }
.svc-title { font-family: var(--serif); font-size: clamp(20px,1.7vw,28px); font-weight: 400; color: #fff; line-height: 1.18; letter-spacing: -.01em; margin-top: 10px;
  opacity: 0; max-height: 0; overflow: hidden;
  transition: opacity .4s var(--ease-out) .15s, max-height .55s var(--ease-out), margin-top .4s;
}
.svc-vlabel { display: none; }
.svc-card:hover .svc-title { opacity: 1; max-height: 200px; margin-top: 10px; }
.svc-desc { font-size: 14px; color: rgba(255,255,255,.78); line-height: 1.6; max-height: 0; overflow: hidden; transition: max-height .55s var(--ease-out), opacity .45s, margin-top .45s; opacity: 0; }
.svc-card:hover .svc-desc { max-height: 140px; opacity: 1; margin-top: 14px; }
.svc-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-top: 16px;
  transform: translateY(6px); opacity: 0;
  transition: transform .4s var(--ease-out), opacity .4s;
}
.svc-card:hover .svc-link { transform: none; opacity: 1; }
.svc-link-arr { transition: transform .3s; font-family: var(--serif); font-size: 14px; }
.svc-card:hover .svc-link-arr { transform: translateX(4px); }
@media(max-width:900px){
  .svc-grid { flex-direction: column; height: auto; gap: 10px; }
  .svc-card { height: 220px; flex: none; }
  .svc-card:hover { flex: none; }
  .svc-title { opacity: 1; max-height: none; margin-top: 10px; }
  .svc-desc { max-height: 100px; opacity: 1; margin-top: 10px; }
  .svc-link { transform: none; opacity: 1; }
}

/* ─── WHY US (home) ─────────────────────────────────────── */
.why-section { padding: clamp(80px,10vw,140px) 0; background: #fff; overflow: hidden; }
.why-inner { max-width: 1380px; margin: auto; padding: 0 clamp(20px,4vw,56px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px,6vw,100px); align-items: center; }
@media(max-width:900px){ .why-inner { grid-template-columns: 1fr; } }

.why-imgs { position: relative; height: 640px; }
.why-img-a {
  position: absolute; top: 0; left: 0; right: 48px;
  height: 440px; object-fit: cover; border-radius: 4px;
  will-change: transform;
}
.why-img-b {
  position: absolute; bottom: 0; right: 0; width: 58%; height: 300px;
  object-fit: cover; border-radius: 4px;
  border: 6px solid #fff; box-shadow: 0 20px 56px rgba(0,0,0,.14);
  will-change: transform;
}
.why-accent-box {
  position: absolute; bottom: 72px; left: -16px;
  background: var(--navy); color: #fff;
  padding: 18px 22px; border-radius: 3px;
  box-shadow: 0 12px 40px rgba(0,0,0,.2); z-index: 2;
}
.why-accent-box .n { font-family: var(--serif); font-size: 36px; font-weight: 300; color: var(--gold); display: block; line-height: 1; }
.why-accent-box .l { font-family: var(--mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55); display: block; margin-top: 4px; }

.why-list { margin-top: 44px; }
.why-item {
  display: grid; grid-template-columns: auto 1fr; gap: 20px;
  padding: 26px 0; border-bottom: 1px solid var(--rule);
  transition: background .2s; border-radius: 4px;
  cursor: default;
}
.why-item:first-child { border-top: 1px solid var(--rule); }
.why-icon {
  width: 46px; height: 46px; background: var(--cream); border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0; margin-top: 2px;
  transition: background .3s, transform .3s var(--ease-out);
}
.why-item:hover .why-icon { background: var(--navy); transform: scale(1.08) rotate(-6deg); }
.why-icon svg { width: 20px; height: 20px; color: var(--blue); transition: color .3s; }
.why-item:hover .why-icon svg { color: var(--gold); }
.why-item h4 { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: -.01em; margin-bottom: 6px; }
.why-item p { font-size: 14.5px; color: var(--muted); line-height: 1.65; }

/* ─── TESTIMONIALS (home) ───────────────────────────────── */
.testi-section { padding: clamp(80px,10vw,140px) 0; background: var(--navy); overflow: hidden; }
.testi-header { max-width: 1380px; margin: auto; padding: 0 clamp(20px,4vw,56px); display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; margin-bottom: 56px; align-items: end; }
@media(max-width:800px){ .testi-header { grid-template-columns: 1fr; } }
.testi-grid { max-width: 1380px; margin: auto; padding: 0 clamp(20px,4vw,56px); display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media(max-width:960px){ .testi-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:600px){ .testi-grid { grid-template-columns: 1fr; } }

.tcard {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  border-radius: 6px; padding: 36px 30px;
  display: flex; flex-direction: column; gap: 20px;
  transition: background .4s, transform .5s var(--ease-out), box-shadow .4s;
  will-change: transform;
}
.tcard:hover { background: rgba(255,255,255,.09); transform: translateY(-6px); box-shadow: 0 24px 56px rgba(0,0,0,.3); }
.tcard .stars { display: flex; gap: 4px; }
.tcard .stars span { color: var(--gold); font-size: 13px; }
.tcard .tquote { font-family: var(--serif); font-size: clamp(18px,1.5vw,22px); font-weight: 300; color: #fff; line-height: 1.45; flex: 1; }
.tcard .tquote::before { content: '\201C'; font-size: 52px; color: var(--gold); line-height: .4; display: block; margin-bottom: 18px; font-weight: 300; }
.tcard-foot { display: flex; align-items: center; gap: 14px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; margin-top: auto; }
.tcard-av {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,.15);
  background-size: cover; background-position: center;
  display: grid; place-items: center;
  font-size: 0; color: transparent; overflow: hidden;
}
.tcard-name { font-size: 14px; font-weight: 600; color: #fff; }
.tcard-origin { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; margin-top: 2px; }

/* ─── PROCESS (home) ────────────────────────────────────── */
.process-section { padding: clamp(80px,10vw,140px) 0; background: #fff; }
.process-grid { max-width: 1380px; margin: auto; padding: 0 clamp(20px,4vw,56px); display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 64px; }
@media(max-width:800px){ .process-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:480px){ .process-grid { grid-template-columns: 1fr; } }
.pstep { border-radius: 8px; padding: 40px 32px; background: #fff; position: relative; overflow: hidden; transition: background .3s, transform .3s var(--ease-out), box-shadow .3s; border: 1px solid var(--rule); }
.pstep:hover { background: var(--cream); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.08); }
.pstep-bg-num { position: absolute; right: 12px; top: 8px; font-family: var(--serif); font-size: 88px; font-weight: 300; color: var(--rule); line-height: 1; pointer-events: none; transition: color .3s; }
.pstep:hover .pstep-bg-num { color: rgba(201,168,76,.18); }
.pstep-icon { width: 48px; height: 48px; background: var(--navy); border-radius: 50%; display: grid; place-items: center; margin-bottom: 20px; transition: transform .4s var(--ease-out), background .3s; }
.pstep:hover .pstep-icon { transform: rotate(-10deg) scale(1.1); background: var(--gold); }
.pstep-icon svg { width: 22px; height: 22px; color: var(--gold); transition: color .3s; }
.pstep:hover .pstep-icon svg { color: var(--ink); }
.pstep h4 { font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--ink); margin-bottom: 12px; letter-spacing: -.01em; }
.pstep p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ─── BLOG (home) ───────────────────────────────────────── */
.blog-section { padding: clamp(80px,10vw,140px) 0; background: var(--cream); }
.blog-grid { max-width: 1380px; margin: auto; padding: 0 clamp(20px,4vw,56px); display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 20px; margin-top: 56px; }
@media(max-width:1000px){ .blog-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:620px){ .blog-grid { grid-template-columns: 1fr; } }

.bcard { border-radius: 6px; overflow: hidden; background: #fff; display: flex; flex-direction: column; text-decoration: none; color: inherit; box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: box-shadow .4s, transform .4s var(--ease-out); will-change: transform; }
.bcard:hover { box-shadow: 0 20px 56px rgba(0,0,0,.14); transform: translateY(-6px); }
.bcard-img { position: relative; overflow: hidden; }
.bcard-img img { width: 100%; height: 220px; object-fit: cover; transition: transform .7s var(--ease-out); }
.blog-grid .bcard:first-child .bcard-img img { height: 340px; }
.bcard:hover .bcard-img img { transform: scale(1.06); }
.bcard-cat { position: absolute; top: 14px; left: 14px; background: var(--gold); color: var(--ink); font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; padding: 5px 11px; border-radius: 2px; font-weight: 600; }
.bcard-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.bcard-meta { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; display: flex; gap: 12px; }
.bcard h4 { font-family: var(--serif); font-size: clamp(19px,1.6vw,25px); font-weight: 400; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); transition: color .2s; }
.bcard:hover h4 { color: var(--blue); }
.bcard p { font-size: 13.5px; color: var(--muted); line-height: 1.6; flex: 1; }
.bcard-link { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); display: flex; align-items: center; gap: 7px; margin-top: auto; }
.bcard-link::after { content: '→'; font-family: var(--serif); font-size: 14px; transition: transform .2s; }
.bcard:hover .bcard-link::after { transform: translateX(4px); }
.bcard-link-arr { transition: transform .2s; font-family: var(--serif); font-size: 14px; }
.bcard:hover .bcard-link-arr { transform: translateX(4px); }

/* ─── CTA FINAL (home) ──────────────────────────────────── */
.cta-section { position: relative; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 115%; object-fit: cover; object-position: center 35%; will-change: transform; }
.cta-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,21,36,.97) 42%, rgba(12,21,36,.72) 100%); }
.cta-inner { position: relative; z-index: 2; max-width: 1380px; margin: auto; padding: clamp(80px,10vw,150px) clamp(20px,4vw,56px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
@media(max-width:800px){ .cta-inner { grid-template-columns: 1fr; } }
.cta-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 12px; }
.cta-eyebrow::before { content: ''; width: 28px; height: 1.5px; background: var(--gold); }
.cta-title { font-family: var(--serif); font-size: clamp(38px,4.5vw,68px); font-weight: 300; color: #fff; line-height: 1.02; letter-spacing: -.02em; margin-top: 20px; max-width: 18ch; }
.cta-title em { font-style: italic; color: var(--gold2); }
.cta-sub { color: rgba(255,255,255,.65); font-size: 16px; line-height: 1.7; margin-top: 22px; max-width: 44ch; }
.cta-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.cta-aside { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 36px 32px; backdrop-filter: blur(10px); }
.cta-aside h4 { font-family: var(--serif); font-size: 24px; font-weight: 300; color: #fff; margin-bottom: 24px; }
.cta-contact-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.ccl-item { display: flex; align-items: center; gap: 14px; }
.ccl-item svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.ccl-item a, .ccl-item span { color: rgba(255,255,255,.75); font-size: 14px; line-height: 1.4; transition: color .2s; }
.ccl-item a:hover { color: var(--gold); }

/* ─── FOOTER ────────────────────────────────────────────── */
.site-footer { background: var(--ink); border-top: 1px solid rgba(255,255,255,.06); padding: clamp(56px,7vw,96px) 0 28px; }
.foot-inner { max-width: 1380px; margin: auto; padding: 0 clamp(20px,4vw,56px); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 40px; }
@media(max-width:1000px){ .foot-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media(max-width:600px){ .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-about p { color: rgba(255,255,255,.5); font-size: 13.5px; line-height: 1.65; margin-top: 16px; max-width: 30ch; }
.foot-col h5 { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-weight: 500; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col ul li a { color: rgba(255,255,255,.5); font-size: 13.5px; transition: color .2s, transform .2s; display: inline-block; }
.foot-col ul li a:hover { color: #fff; transform: translateX(4px); }
.foot-col ul li { color: rgba(255,255,255,.5); font-size: 13.5px; }
.foot-social { display: flex; gap: 12px; margin-top: 20px; }
.foot-social a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; display: grid; place-items: center; transition: border-color .2s, background .2s, transform .3s var(--ease-out); }
.foot-social a:hover { border-color: var(--gold); background: rgba(201,168,76,.12); transform: translateY(-3px); }
.foot-social svg { width: 15px; height: 15px; color: rgba(255,255,255,.6); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 32px; margin-top: 56px; border-top: 1px solid rgba(255,255,255,.08); font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: rgba(255,255,255,.3); }
.foot-bottom a { color: rgba(255,255,255,.3); transition: color .2s; }
.foot-bottom a:hover { color: rgba(255,255,255,.7); }

/* ─── WHATSAPP FLOAT ─────────────────────────────────────── */
.wa-btn { position: fixed; right: 24px; bottom: 24px; z-index: 600; width: 62px; height: 62px; background: #25d366; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 8px 32px rgba(37,211,102,.4); transition: transform .4s var(--ease-out), box-shadow .4s; overflow: visible; }
.wa-btn:hover { transform: scale(1.1) rotate(-8deg); box-shadow: 0 16px 48px rgba(37,211,102,.5); }
.wa-btn svg { width: 28px; height: 28px; fill: #fff; }
.wa-pulse { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(37,211,102,.4); animation: wa-ring 2.5s infinite; pointer-events: none; }
@keyframes wa-ring { 0%{opacity:1;transform:scale(1)} 100%{opacity:0;transform:scale(1.5)} }

/* ─── RESPONSIVE BASE ────────────────────────────────────── */

/* ── Hamburger toggle button ──────────────────────────────── */
.nav-toggle {
  display: none; /* oculto en desktop */
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; padding: 6px;
  background: none; border: none; cursor: pointer; z-index: 610;
}
.nav-toggle-bar {
  display: block; width: 100%; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .2s;
}
/* Animación X cuando abierto */
.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile overlay backdrop ──────────────────────────────── */
.mob-overlay {
  display: none; position: fixed; inset: 0; z-index: 499;
  background: rgba(0,0,0,.6); opacity: 0;
  transition: opacity .35s;
}
.nav-open ~ .mob-overlay { display: block; opacity: 1; }

/* ── Mobile breakpoint ≤980px ─────────────────────────────── */
@media(max-width:980px){
  .nav-toggle { display: flex; }
  .header-actions .btn-outline { display: none; }

  .header-inner {
    grid-template-columns: auto 1fr auto auto;
  }

  /* Drawer menu */
  .nav-main {
    position: fixed; top: 0; right: 0; width: 300px; height: 100vh;
    background: var(--ink); z-index: 600;
    padding: 100px 32px 40px;
    display: flex; flex-direction: column; gap: 0;
    transform: translateX(100%);
    transition: transform .35s var(--ease-out);
    overflow-y: auto;
    box-shadow: -8px 0 40px rgba(0,0,0,.4);
  }
  .nav-open .nav-main { transform: translateX(0); }

  .nav-main > ul {
    flex-direction: column; gap: 0;
  }
  .nav-main > ul > li {
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-main a {
    display: block; padding: 16px 0;
    font-size: 17px; color: rgba(255,255,255,.85);
  }
  .nav-main a:hover, .nav-main .current-menu-item > a { color: var(--gold); }
  .nav-main a::after { display: none; } /* quitar línea underline en móvil */

  /* Dropdown dentro del drawer */
  .dropdown {
    position: static; transform: none;
    background: transparent; box-shadow: none;
    opacity: 1; pointer-events: auto;
    padding: 0 0 8px 18px; min-width: 0;
  }
  .dropdown li a { color: rgba(255,255,255,.6); font-size: 15px; padding: 10px 0; white-space: normal; word-wrap: break-word; }
  .dropdown li a:hover { background: transparent; color: var(--gold); transform: none; }
  .dropdown li a .num { display: none; }
  .nav-main li.has-sub > a::before { display: none; }
  .nav-main li.has-sub::after { display: none; }

  /* Mobile CTA dentro del drawer */
  .nav-main::after {
    content: ''; display: block; margin-top: 24px;
    border-top: 1px solid rgba(255,255,255,.1);
  }
}

/* ── Topbar responsive ────────────────────────────────────── */
@media(max-width:700px){
  .tb-right { display: none; }
  .topbar-inner { justify-content: center; }
  .topbar { font-size: 10px; }
}
@media(max-width:420px){
  .topbar { display: none; }
  .site-header { top: 0; }
  .site-header.scrolled { top: 0; }
}

/* ── Header compact en móvil ──────────────────────────────── */
@media(max-width:600px){
  .header-inner { height: 64px; gap: 12px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-mark img { width: 32px; }
  .header-actions .btn-gold { font-size: 11px; padding: 9px 14px; }
  .header-actions .btn-gold .arr { display: none; }
  .svc-nav { margin-top: 64px; }
}

/* =========================================================
   SUB-PAGE STYLES
   Estilos compartidos por todas las páginas interiores
   (visas, trámites, nosotros, contacto, faq, blog, etc.)
   Extraídos del CSS inline de contacto.html y similares.
   ========================================================= */

/* Container y sección comunes en sub-páginas */
section { padding-block: clamp(64px, 8vw, 110px); }
.section-tight { padding-block: clamp(40px, 5vw, 72px); }
.container { max-width: 1380px; margin: auto; padding: 0 clamp(20px,4vw,56px); }
.lede { color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 52ch; }

/* Page Hero (header interno de cada sub-página) */
.page-hero { position: relative; background: var(--navy); overflow: hidden; padding: clamp(110px,10vw,150px) 0 clamp(56px,7vw,96px); }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 90% 10%, rgba(201,168,76,.18), transparent 60%), radial-gradient(40% 60% at 5% 90%, rgba(201,168,76,.1), transparent 60%); }
.page-hero-img { position: absolute; inset: 0; z-index: 0; }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.page-hero-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,21,36,.35) 0%, rgba(12,21,36,.7) 100%); }
.page-hero-inner { position: relative; z-index: 2; max-width: 1380px; margin: auto; padding: 0 clamp(20px,4vw,56px); }
.crumbs { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.45); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }
.crumbs a { color: rgba(255,255,255,.45); transition: color .2s; }
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { color: rgba(255,255,255,.25); }
.page-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.page-eyebrow::before { content: ''; width: 28px; height: 1.5px; background: var(--gold); }
.page-hero h1 { font-family: var(--serif); font-size: clamp(38px,5vw,72px); font-weight: 300; color: #fff; line-height: 1.02; letter-spacing: -.02em; max-width: 18ch; }
.page-hero .lede { color: rgba(255,255,255,.7); font-size: clamp(15px,1.2vw,18px); line-height: 1.7; max-width: 54ch; margin-top: 20px; }
.page-hero-meta { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 36px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.page-hero-meta strong { color: var(--gold); font-weight: 500; }
.page-hero h1 .ww, .article-hero h1 .ww { padding-bottom: .18em !important; margin-bottom: -.15em !important; line-height: 1 !important; }
.page-hero h1, .article-hero h1 { line-height: 1.04 !important; }

/* Navegación entre servicios (en cada page-template de servicio) */
.svc-nav { display: flex; gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); overflow-x: auto; margin-top: 78px; /* clear fixed header */ background: #fff; position: relative; z-index: 90; }
.svc-nav a { flex: 1; min-width: fit-content; padding: 18px 20px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--rule); transition: background .2s, color .2s; white-space: nowrap; text-align: center; }
.svc-nav a:last-child { border-right: none; }
.svc-nav a:hover { background: var(--cream); color: var(--ink); }
.svc-nav a.active { background: var(--navy); color: var(--gold); }
.svc-nav + .page-hero { padding-top: clamp(40px,5vw,56px); } /* hero after svc-nav doesn't need to clear header */

/* Time badge (información destacada de tiempo estimado) */
.time-badge { background: var(--navy); color: #fff; border-radius: 6px; padding: 28px 32px; display: inline-flex; flex-direction: column; gap: 6px; transition: transform .4s var(--ease-out), box-shadow .4s; }
.time-badge:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 16px 40px rgba(0,0,0,.15); }
.time-badge .t-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.time-badge .t-val { font-family: var(--serif); font-size: 28px; font-weight: 300; color: var(--gold); }

/* Pills de documentación */
.doc-pill { display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px; background: #fff; border: 1px solid var(--rule); border-radius: 4px; font-size: 14px; color: var(--ink); transition: transform .3s var(--ease-out), border-color .3s, background .2s, box-shadow .3s; }
.doc-pill::before { content: '✓'; color: var(--gold); font-weight: 700; font-size: 13px; flex-shrink: 0; }
.doc-pill:hover { transform: translateY(-3px); border-color: var(--gold); background: var(--cream); box-shadow: 0 8px 24px rgba(0,0,0,.08); }

/* Lista editorial (usada en page-tramites.php para el índice de servicios) */
.ed-list { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.ed-row { display: grid; grid-template-columns: 120px 1fr 280px; gap: clamp(24px,4vw,64px); align-items: center; padding: clamp(28px,3.5vw,48px) 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; transition: padding .35s var(--ease-out); }
.ed-row:hover { padding-left: 12px; padding-right: 12px; }
.ed-num { font-family: var(--serif); font-size: clamp(48px,5vw,80px); font-weight: 300; color: var(--rule); line-height: 1; letter-spacing: -.02em; transition: color .35s; }
.ed-row:hover .ed-num { color: var(--gold); }
.ed-content { min-width: 0; }
.ed-title { font-family: var(--serif); font-size: clamp(24px,2.2vw,36px); font-weight: 400; color: var(--ink); letter-spacing: -.015em; line-height: 1.15; margin-bottom: 10px; transition: color .25s; }
.ed-row:hover .ed-title { color: var(--blue); }
.ed-desc { font-size: 15.5px; color: var(--muted); line-height: 1.65; max-width: 62ch; margin-bottom: 14px; }
.ed-cta { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.ed-arr { font-family: var(--serif); font-size: 15px; transition: transform .3s var(--ease-out); }
.ed-row:hover .ed-arr { transform: translateX(6px); }
.ed-img { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4/3; }
.ed-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out), filter .4s; filter: saturate(.9) brightness(.96); }
.ed-row:hover .ed-img img { transform: scale(1.06); filter: saturate(1.1) brightness(1); }
@media(max-width:900px){ .ed-row { grid-template-columns: 80px 1fr; gap: 20px; } .ed-img { display: none; } }
@media(max-width:500px){ .ed-row { grid-template-columns: 1fr; gap: 6px; } .ed-num { font-size: 32px; } }

/* Navegación prev/next entre servicios */
.svc-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--rule); padding-top: 32px; }
.svc-prevnext a { text-decoration: none; color: inherit; padding: 20px; border-radius: 4px; transition: background .2s; }
.svc-prevnext a:hover { background: var(--cream); }
.svc-prevnext .pn-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; }
.svc-prevnext .pn-title { font-family: var(--serif); font-size: 22px; font-weight: 400; color: var(--ink); }
.svc-prevnext .pn-next { text-align: right; }

/* Two-col */
.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px,5vw,80px); }
@media(max-width:900px){ .two-col { grid-template-columns: 1fr; } }
.two-col .serif-lede { font-family: var(--serif); font-size: 24px; line-height: 1.4; color: var(--ink); font-weight: 300; max-width: 36ch; margin-bottom: 26px; letter-spacing: -.01em; }
.two-col .body-text p { color: var(--muted); font-size: 15.5px; line-height: 1.75; margin-bottom: 18px; }
.two-col .body-text p.serif-lede { font-family: var(--serif); font-size: 24px; line-height: 1.4; color: var(--ink); font-weight: 300; }

/* Feature list */
.feat-list { list-style: none; display: flex; flex-direction: column; }
.feat-list li { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 22px 12px; border-bottom: 1px solid var(--rule); border-radius: 6px; transition: background .3s, transform .3s var(--ease-out), padding .3s; }
.feat-list li:first-child { border-top: 1px solid var(--rule); }
.feat-list li:hover { background: rgba(15,42,74,.04); transform: translateX(8px); }
.feat-list .fl-num { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--gold); padding-top: 3px; transition: color .3s; }
.feat-list li:hover .fl-num { color: var(--gold); }
.feat-list h4 { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 5px; transition: color .3s; }
.feat-list li:hover h4 { color: var(--navy); }
.feat-list p { font-size: 14.5px; color: var(--muted); line-height: 1.65; }
.feat-list .num { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; color: var(--gold); padding-top: 4px; }

/* Steps grid (sub-páginas) */
.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
@media(max-width:800px){ .steps-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:480px){ .steps-grid { grid-template-columns: 1fr; } }
.step-box { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 36px 28px; background: #fff; position: relative; overflow: hidden; transition: background .3s; }
.step-box:hover { background: var(--cream); }
.step-box::before { content: attr(data-n); position: absolute; right: 16px; top: 12px; font-family: var(--serif); font-size: 72px; font-weight: 300; color: var(--rule); line-height: 1; pointer-events: none; }
.step-box:hover::before { color: rgba(201,168,76,.16); }
.step-box h4 { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--ink); margin-bottom: 10px; }
.step-box p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* CTA Band (sub-páginas) */
.cta-band { background: var(--navy); position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 70% at 85% 30%, rgba(201,168,76,.2), transparent 60%); }
.cta-band-inner { position: relative; z-index: 2; max-width: 1380px; margin: auto; padding: clamp(64px,8vw,110px) clamp(20px,4vw,56px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
@media(max-width:800px){ .cta-band-inner { grid-template-columns: 1fr; } }
.cta-band h2 { font-family: var(--serif); font-size: clamp(32px,3vw,52px); font-weight: 300; color: #fff; letter-spacing: -.015em; line-height: 1.05; max-width: 20ch; }
.cta-band .lede { color: rgba(255,255,255,.7); margin-top: 16px; }
.cta-band-actions { display: flex; flex-direction: column; gap: 13px; align-items: flex-start; }
@media(min-width:500px){ .cta-band-actions { flex-direction: row; flex-wrap: wrap; } }

/* FAQ details/summary */
.faq { display: flex; flex-direction: column; }
.faq details { border-bottom: 1px solid var(--rule); padding: 22px 0; }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-family: var(--serif); font-size: 22px; line-height: 1.3; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--serif); font-size: 28px; color: var(--gold); transition: transform .3s; font-weight: 300; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding-top: 16px; color: var(--muted); max-width: 70ch; line-height: 1.75; font-size: 15px; }

/* Formularios (genéricos + Contact Form 7 hereda estos) */
.form-grid { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media(max-width:600px){ .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { font-family: var(--sans); font-size: 15px; padding: 13px 16px; background: #fff; border: 1.5px solid var(--rule); border-radius: 3px; color: var(--ink); transition: border-color .2s; outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--navy); }
.field textarea { min-height: 140px; resize: vertical; }

/* Hero del artículo individual */
.article-hero { position: relative; overflow: hidden; margin-top: 0; }
.article-hero-img { width: 100%; height: clamp(320px,40vw,580px); object-fit: cover; display: block; }
.article-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(12,21,36,.1) 0%,rgba(12,21,36,.7) 100%); }
.article-hero-meta { position: absolute; bottom: 0; left: 0; right: 0; padding: clamp(24px,4vw,56px); }
.article-hero-meta > div { max-width: 1380px; margin: auto; padding: 0 clamp(20px,4vw,56px); }
.article-cat { background: var(--gold); color: var(--ink); font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; padding: 5px 12px; border-radius: 2px; font-weight: 600; display: inline-block; margin-bottom: 16px; }
.article-hero h1 { font-family: var(--serif); font-size: clamp(32px,4vw,60px); font-weight: 300; color: #fff; line-height: 1.04; letter-spacing: -.02em; max-width: 22ch; }
.article-meta-bar { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* Wrapper del artículo: contenido + sidebar */
.article-wrapper { max-width: 1380px; margin: auto; padding: 0 clamp(20px,4vw,56px); display: grid; grid-template-columns: 1fr 320px; gap: 60px; padding-block: clamp(48px,6vw,80px); }
@media(max-width:960px){ .article-wrapper { grid-template-columns: 1fr; padding-left: 20px; padding-right: 20px; width: 100%; max-width: 100%; box-sizing: border-box; } .article-body { max-width: 100%; margin-left: 0; margin-right: 0; } .article-sidebar { position: static; } }

.article-sidebar { display: flex; flex-direction: column; gap: 24px; align-self: start; position: sticky; top: 100px; }
.sidebar-box { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 24px; }
.sidebar-box h4 { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--ink); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.sidebar-cta { background: var(--navy); border-radius: 6px; padding: 28px 24px; text-align: center; }
.sidebar-cta h4 { font-family: var(--serif); font-size: 22px; color: #fff; font-weight: 300; margin-bottom: 12px; padding-bottom: 0; border: none; }
.sidebar-cta p { color: rgba(255,255,255,.75); font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.related-post { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; align-items: flex-start; }
.related-post:last-child { border-bottom: none; }
.related-post img { width: 70px; height: 56px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.related-post h5 { font-size: 13.5px; font-weight: 500; color: var(--ink); line-height: 1.4; transition: color .2s; }
.related-post:hover h5 { color: var(--blue); }
.related-post span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 4px; }

/* Bloque de autor al final del artículo */
.article-author-box { display: flex; align-items: center; gap: 16px; padding: 24px; background: var(--cream); border-radius: 6px; border: 1px solid var(--rule); margin-top: 48px; }
.article-author-av { width: 52px; height: 52px; background: var(--navy); border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-family: var(--serif); font-size: 18px; color: var(--gold); font-weight: 500; }
.article-author-info-name { font-weight: 600; font-size: 15px; color: var(--ink); }
.article-author-info-desc { font-size: 13.5px; color: var(--muted); margin-top: 3px; }

/* Cuerpo de artículo (single.php) */
.article-body { max-width: min(72ch, 100%); margin-inline: auto; font-size: 17px; line-height: 1.8; color: #1f2118; min-width: 0; overflow-wrap: break-word; word-wrap: break-word; width: 100%; }
.article-body > * { max-width: 100%; }
.article-body h2 { font-family: var(--serif); font-size: clamp(26px,2.5vw,38px); font-weight: 400; margin: 48px 0 18px; letter-spacing: -.01em; color: var(--ink); }
.article-body h3 { font-family: var(--serif); font-size: 24px; margin: 36px 0 14px; color: var(--ink); }
.article-body p { margin-bottom: 22px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote { border-left: 3px solid var(--gold); padding: 4px 0 4px 18px; font-family: var(--serif); font-size: 18px; line-height: 1.5; color: var(--navy); margin: 24px 0; font-weight: 300; }
.article-body a { color: var(--blue); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.article-body img { border-radius: 4px; margin: 28px auto; }

/* Posts grid (archive y blog index) */
.posts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media(max-width:900px){ .posts-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:600px){ .posts-grid { grid-template-columns: 1fr; } }

/* Tags (filtros del blog) */
.tag { display: inline-block; padding: 5px 12px; background: var(--cream); color: var(--blue); font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; border-radius: 2px; border: 1px solid var(--rule); cursor: pointer; transition: background .2s; }
.tag:hover, .tag.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Sidebar de contacto (página de contacto y similares) */
.contact-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px,5vw,80px); }
.contact-aside { background: var(--cream); padding: 40px 36px; border-radius: 6px; border: 1px solid var(--rule); align-self: start; }
.contact-aside a { transition: color .3s, text-decoration-color .3s; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.contact-aside a:hover { color: var(--gold) !important; text-decoration-color: var(--gold); }

/* ─── COMENTARIOS ────────────────────────────────────────── */
.amq-comments { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--rule); }
.amq-comments-header { margin-bottom: 36px; }
.amq-comments-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.amq-comments-eyebrow::before { content: ''; display: inline-block; width: 24px; height: 1px; background: var(--gold); }
.amq-comments-title { font-family: var(--serif); font-size: 28px; font-weight: 400; color: var(--ink); }

/* Lista de comentarios */
.amq-comment-list { list-style: none; padding: 0; margin: 0; }
.amq-comment { margin-bottom: 20px; }
.amq-comment-body { position: relative; background: #fff; border: 1px solid var(--rule); border-left: 3px solid var(--navy); border-radius: 0 10px 10px 0; padding: 28px 28px 22px; box-shadow: 0 2px 12px rgba(15,42,74,.04); transition: box-shadow .3s ease, border-color .3s ease; }
.amq-comment-body:hover { box-shadow: 0 4px 20px rgba(15,42,74,.08); border-left-color: var(--gold); }
.amq-comment.is-post-author .amq-comment-body { border-left-color: var(--gold); background: linear-gradient(135deg, #fffdf5, #fff); }
.amq-comment .children { margin-top: 16px; margin-left: 36px; padding-left: 20px; list-style: none; border-left: 2px solid var(--rule); }
.amq-comment .children .amq-comment-body { background: var(--cream); }
.amq-comment .children .amq-comment.is-post-author .amq-comment-body { background: linear-gradient(135deg, #fffdf5, var(--cream)); }

/* Meta del comentario */
.amq-comment-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.amq-avatar-wrap { position: relative; flex-shrink: 0; }
.amq-avatar-wrap img { border-radius: 50%; border: 2px solid var(--rule); display: block; transition: border-color .3s ease; }
.amq-comment-body:hover .amq-avatar-wrap img { border-color: var(--gold); }
.amq-comment.is-post-author .amq-avatar-wrap img { border-color: var(--gold); }
.amq-author-badge { position: absolute; bottom: -2px; right: -2px; width: 20px; height: 20px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; border: 2px solid #fff; }
.amq-comment-info { flex: 1; min-width: 0; }
.amq-comment-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.amq-comment-author { font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--navy); font-style: normal; display: inline; }
.amq-author-tag { display: inline-block; font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; background: var(--gold); color: #fff; padding: 2px 8px; border-radius: 10px; line-height: 1.6; font-weight: 600; }
.amq-comment-date { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); margin-top: 2px; display: block; }

/* Aviso de pendiente */
.amq-comment-awaiting { display: inline-flex; align-items: center; gap: 8px; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 20px; padding: 6px 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: #92400e; margin-bottom: 14px; }
.amq-comment-awaiting svg { color: #f59e0b; flex-shrink: 0; }

/* Contenido */
.amq-comment-content { font-size: 15px; line-height: 1.8; color: var(--ink); }
.amq-comment-content p { margin: 0 0 8px; }
.amq-comment-content p:last-child { margin-bottom: 0; }

/* Acciones */
.amq-comment-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); }
.amq-comment-actions a { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--muted); padding: 5px 12px; border-radius: 4px; transition: color .2s, background .2s; }
.amq-comment-actions a:hover { color: var(--gold); background: rgba(240,192,64,.08); }
.amq-edit-btn { margin-left: auto; }
.amq-edit-btn a { opacity: .6; }
.amq-edit-btn a:hover { opacity: 1; }
.amq-comments-closed { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 16px 0; }

/* Formulario de comentarios */
.amq-comment-form { margin-top: 48px; background: var(--cream); border-radius: 12px; padding: 36px; border: 1px solid var(--rule); }
.amq-comments #reply-title { font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--ink); margin-bottom: 6px; display: block; }
.amq-comments .comment-notes { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); margin-bottom: 24px; }
.amq-comments #reply-title small { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-left: 12px; }
.amq-comments #reply-title small a { color: var(--muted); text-decoration: none; padding: 4px 10px; border-radius: 4px; transition: color .2s, background .2s; }
.amq-comments #reply-title small a:hover { color: var(--gold); background: rgba(240,192,64,.08); }
.amq-field { margin-bottom: 20px; }
.amq-field label,
.amq-comment-form label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.amq-field .required,
.amq-comment-form .required { color: var(--gold); }
.amq-field input,
.amq-field textarea,
.amq-comment-form input[type="text"],
.amq-comment-form input[type="email"],
.amq-comment-form textarea { width: 100%; padding: 14px 18px; font-family: var(--sans); font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 8px; outline: none; transition: border-color .2s, box-shadow .2s; box-sizing: border-box; }
.amq-field input:focus,
.amq-field textarea:focus,
.amq-comment-form input:focus,
.amq-comment-form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240,192,64,.15); }
.amq-field textarea,
.amq-comment-form textarea { min-height: 140px; resize: vertical; }
.amq-comment-form .comment-form-cookies-consent { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 13px; color: var(--muted); }
.amq-comment-form .comment-form-cookies-consent input[type="checkbox"] { accent-color: var(--gold); width: 16px; height: 16px; }
.amq-comment-form p.comment-form-author,
.amq-comment-form p.comment-form-email { margin-bottom: 20px; }

/* Reveal on scroll (versión sub-páginas, fallback sin GSAP) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }

/* Home scroll reveal — estado oculto inicial controlado por .has-anim en <html>.
   GSAP ScrollTrigger.batch() se encarga de animar a opacity:1 / y:0
   conforme cada elemento entra al viewport. Si GSAP no carga, el timeout
   de 3 s en front-page.php quita .has-anim y todo queda visible. */
.has-anim .gsap-fade {
  opacity: 0;
  transform: translateY(28px);
}
.has-anim .gsap-card {
  opacity: 0;
  transform: translateY(40px);
}
.has-anim .kpi-item {
  opacity: 0;
  transform: translateY(40px);
}
.has-anim .pstep {
  opacity: 0;
  transform: translateY(32px);
}
.has-anim .bcard {
  opacity: 0;
  transform: translateY(40px);
}
.has-anim .foot-col {
  opacity: 0;
  transform: translateY(24px);
}
.has-anim .about-badge,
.has-anim .why-accent-box {
  opacity: 0;
  transform: scale(0) rotate(-8deg);
}

/* =========================================================
   COMPATIBILIDAD WORDPRESS
   Clases que WP/editor Gutenberg pueden inyectar en el contenido.
   ========================================================= */
.alignleft   { float: left; margin: 0 24px 12px 0; }
.alignright  { float: right; margin: 0 0 12px 24px; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide   { max-width: 1100px; margin-inline: auto; }
.alignfull   { width: 100vw; margin-inline: calc(50% - 50vw); max-width: none; }
@media(max-width:960px){ .alignfull { width: 100%; margin-left: 0; margin-right: 0; } }
.wp-caption  { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; text-align: center; }
.screen-reader-text {
  position: absolute !important; clip: rect(1px, 1px, 1px, 1px);
  height: 1px; width: 1px; overflow: hidden; word-wrap: normal;
}
.sticky { display: block; }
.bypostauthor { display: block; }

/* Paginación */
.pagination, .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 48px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; }
.pagination a, .pagination span, .nav-links a, .nav-links span {
  display: inline-grid; place-items: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--rule); border-radius: 2px;
  color: var(--ink); transition: background .2s, color .2s, border-color .2s;
}
.pagination a:hover, .nav-links a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .current, .nav-links .current { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* Estilos básicos para shortcode Contact Form 7 sin sobrescribir su markup */
.wpcf7 .form-grid, .wpcf7 form > p { margin: 0; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"], .wpcf7 input[type="number"], .wpcf7 input[type="date"], .wpcf7 select, .wpcf7 textarea {
  font-family: var(--sans); font-size: 15px;
  padding: 13px 16px; background: #fff;
  border: 1.5px solid var(--rule); border-radius: 3px;
  color: var(--ink); transition: border-color .2s; outline: none;
  width: 100%;
}
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { border-color: var(--navy); }
.wpcf7 textarea { min-height: 140px; resize: vertical; }
.wpcf7 input[type="submit"] {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 3px;
  font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .02em;
  background: var(--gold); color: var(--ink); border: none;
  transition: background .3s, transform .3s, box-shadow .3s;
  cursor: pointer; width: auto;
}
.wpcf7 input[type="submit"]:hover { background: var(--gold2); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(201,168,76,.4); }
.wpcf7-response-output { margin: 18px 0 0 !important; padding: 14px 18px !important; border-radius: 3px !important; font-size: 14px !important; }
.wpcf7-not-valid-tip { color: #c0392b; font-size: 12px; margin-top: 4px; }

/* =========================================================
   MOBILE TYPOGRAPHY & SPACING
   Ajusta tamaños de fuente, padding y márgenes para pantallas
   pequeñas. Evita que el texto se "pierda" o desborde.
   ========================================================= */

/* ── Tablet / pantallas medianas ≤768px ──────────────────── */
@media(max-width:768px){
  /* Hero */
  .hero-title { font-size: clamp(34px,9vw,52px); margin-top: 18px; }
  .hero-sub { font-size: 15px; margin-top: 20px; }
  .hero-actions { gap: 10px; margin-top: 28px; }
  .hero-content { padding-bottom: clamp(48px,6vw,80px); }

  /* About */
  .about-heading { font-size: clamp(30px,6vw,42px); }
  .about-body { font-size: 15px; }
  .about-badge .n { font-size: 36px; }

  /* KPIs */
  .kpi-num { font-size: clamp(36px,8vw,52px); }
  .kpi-label { font-size: 12.5px; }
  .kpi-item { padding: clamp(28px,4vw,48px) clamp(16px,2.5vw,28px); }

  /* Section titles */
  .section-title { font-size: clamp(28px,5.5vw,40px); }
  .section-desc { font-size: 15px; }

  /* Services */
  .svc-title { font-size: clamp(18px,3.5vw,24px); }

  /* Why us */
  .why-item h4 { font-size: 19px; }
  .why-accent-box .n { font-size: 30px; }

  /* Testimonials */
  .tcard .tquote { font-size: 17px; }
  .tcard .tquote::before { font-size: 40px; margin-bottom: 12px; }
  .tcard { padding: 28px 22px; }

  /* Process */
  .pstep h4 { font-size: 20px; }
  .pstep-bg-num { font-size: 60px; }

  /* Blog cards */
  .bcard h4 { font-size: clamp(17px,3.5vw,22px); }

  /* CTA section */
  .cta-title { font-size: clamp(30px,6vw,46px); }
  .cta-aside { padding: 28px 22px; }
  .cta-aside h4 { font-size: 20px; }
  .cta-inner { gap: 36px; }
  .ccl-item a, .ccl-item span { font-size: 13px; word-break: break-word; overflow-wrap: break-word; }

  /* FAQ */
  .faq summary { font-size: 19px; gap: 16px; }
  .faq summary::after { font-size: 24px; }

  /* Sub-page heroes */
  .page-hero h1 { font-size: clamp(30px,6.5vw,48px); }
  .page-hero-meta { gap: 18px 28px; font-size: 10px; }
  .article-hero h1 { font-size: clamp(26px,5.5vw,42px); }
  .cta-band h2 { font-size: clamp(26px,5vw,38px); }

  /* Svc nav — hidden on tablet/mobile */
  .svc-nav { display: none; }
  .svc-nav + .page-hero { padding-top: clamp(110px,10vw,150px); }

  /* Prev/next between services */
  .svc-prevnext .pn-title { font-size: 18px; }

  /* Two-col */
  .two-col .serif-lede { font-size: 20px; }

  /* Feat list */
  .feat-list h4 { font-size: 16px; }
  .feat-list p { font-size: 13.5px; }
  .feat-list li { padding: 18px 8px; gap: 14px; }

  /* Doc pills */
  .doc-pill { font-size: 13px; padding: 12px 14px; }

  /* Steps */
  .step-box::before { font-size: 52px; }
  .step-box h4 { font-size: 19px; }

  /* Contact page */
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .contact-aside { padding: 32px 24px; }
  .contact-aside a[style*="font-size:22px"],
  .contact-aside p[style*="font-size:22px"] { font-size: 18px !important; }

  /* Article body */
  .article-body { font-size: 16px; }
  .article-body h2 { font-size: clamp(22px,4.5vw,32px); }
  .article-body h3 { font-size: 20px; }
  .article-body blockquote { font-size: 17px; }
  .article-wrapper { padding-left: 16px; padding-right: 16px; gap: 32px; }
  .article-body img { max-width: 100%; height: auto; }

  /* Comments responsive */
  .amq-comment .children { margin-left: 12px; padding-left: 14px; }
  .amq-comment-body { padding: 20px 18px 16px; }
  .amq-comments-title, .amq-comments #reply-title { font-size: 22px; }
  .amq-comment-form { padding: 24px 20px; }

  /* Footer */
  .foot-grid { gap: 28px; }
  .foot-col ul li a, .foot-col ul li { word-break: break-word; overflow-wrap: break-word; }
}

/* ── Teléfono / pantallas ≤480px ─────────────────────────── */
@media(max-width:480px){
  /* Hero — muy compacto */
  .hero-title { font-size: clamp(28px,8.5vw,38px); max-width: 14ch; }
  .hero-sub { font-size: 14px; max-width: 32ch; }
  .hero-eyebrow { font-size: 10px; }
  .hero-actions .btn { font-size: 12px; padding: 12px 18px; }

  /* About */
  .about-heading { font-size: clamp(26px,7vw,34px); }
  .about-body { font-size: 14px; }
  .about-badge .n { font-size: 30px; }
  .about-badge .l { font-size: 8.5px; }

  /* KPIs */
  .kpi-num { font-size: clamp(32px,9vw,44px); }
  .kpi-label { font-size: 11.5px; }
  .kpi-tag { font-size: 9px; margin-bottom: 10px; }
  .kpi-item { padding: 24px 14px; }

  /* Sections */
  .section-title { font-size: clamp(24px,6.5vw,32px); }
  .section-desc { font-size: 14px; }
  .eyebrow { font-size: 10.5px; }

  /* Services */
  .svc-title { font-size: 17px; }
  .svc-num { font-size: 10px; }
  .svc-desc { font-size: 13px; }

  /* Why us */
  .why-item h4 { font-size: 17px; }
  .why-item p { font-size: 13.5px; }
  .why-accent-box .n { font-size: 26px; }
  .why-imgs { height: 400px; }
  .why-img-a { height: 280px; right: 24px; }
  .why-img-b { height: 200px; width: 55%; }

  /* Testimonials */
  .tcard .tquote { font-size: 15.5px; }
  .tcard .tquote::before { font-size: 32px; margin-bottom: 8px; }
  .tcard { padding: 24px 18px; gap: 14px; }
  .tcard-name { font-size: 13px; }

  /* Process */
  .pstep h4 { font-size: 18px; }
  .pstep p { font-size: 13px; }
  .pstep-bg-num { font-size: 48px; }

  /* Blog cards */
  .bcard h4 { font-size: 17px; }
  .bcard p { font-size: 13px; }
  .bcard-meta { font-size: 9px; }

  /* CTA */
  .cta-title { font-size: clamp(24px,7vw,34px); }
  .cta-sub { font-size: 14px; max-width: 100%; }
  .cta-aside { padding: 22px 16px; }
  .cta-aside h4 { font-size: 17px; margin-bottom: 16px; }
  .cta-eyebrow { font-size: 10px; }
  .cta-inner { padding: clamp(48px,8vw,80px) 16px; gap: 28px; }
  .cta-btns { gap: 10px; margin-top: 24px; }
  .cta-btns .btn { font-size: 12px; padding: 11px 16px; }
  .ccl-item a, .ccl-item span { font-size: 12.5px; word-break: break-all; overflow-wrap: break-word; }
  .ccl-item { gap: 10px; }
  .cta-contact-list { gap: 12px; }

  /* FAQ */
  .faq summary { font-size: 17px; gap: 12px; }
  .faq summary::after { font-size: 22px; }
  .faq .ans { font-size: 14px; }
  .faq details { padding: 18px 0; }

  /* Sub-page heroes */
  .page-hero h1 { font-size: clamp(26px,7vw,36px); }
  .page-hero .lede { font-size: 14px; }
  .page-hero-meta { gap: 12px 20px; font-size: 9.5px; margin-top: 24px; padding-top: 18px; }
  .article-hero h1 { font-size: clamp(24px,6vw,34px); }
  .cta-band h2 { font-size: clamp(22px,6vw,32px); }

  /* Svc nav */
  .svc-nav { display: none; }

  /* Prev/next between services */
  .svc-prevnext { grid-template-columns: 1fr; gap: 16px; padding-top: 24px; }
  .svc-prevnext .pn-title { font-size: 17px; }
  .svc-prevnext .pn-next { text-align: left; }
  .svc-prevnext a { padding: 16px; }

  /* Two-col */
  .two-col .serif-lede { font-size: 18px; }
  .two-col .body-text p { font-size: 14.5px; }

  /* Steps */
  .step-box::before { font-size: 42px; }
  .step-box h4 { font-size: 17px; }
  .step-box p { font-size: 13px; }
  .step-box { padding: 28px 20px; }

  /* Feature list */
  .feat-list h4 { font-size: 16px; }
  .feat-list p { font-size: 13.5px; }
  .feat-list li { padding: 16px 6px; gap: 12px; }
  .feat-list .fl-num { font-size: 10px; }

  /* Doc pills */
  .doc-pill { font-size: 12.5px; padding: 11px 12px; }

  /* Contact page */
  .contact-aside { padding: 24px 18px; border-radius: 4px; }
  .contact-aside a[style*="font-size:22px"],
  .contact-aside p[style*="font-size:22px"] { font-size: 16px !important; line-height: 1.35 !important; }

  /* Article body */
  .article-body { font-size: 15px; word-break: break-word; }
  .article-body h2 { font-size: clamp(20px,5vw,26px); }
  .article-body h3 { font-size: 18px; }
  .article-body blockquote { font-size: 15px; padding-left: 14px; margin: 18px 0; }
  .article-wrapper { padding-left: 14px; padding-right: 14px; }
  .article-body .amq-cta { margin-left: -6px; margin-right: -6px; }

  /* Footer */
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .foot-about p { font-size: 12.5px; max-width: 100%; }
  .foot-col ul li a, .foot-col ul li { font-size: 12.5px; word-break: break-all; overflow-wrap: break-word; }
  .foot-col h5 { font-size: 9.5px; margin-bottom: 12px; }
  .foot-bottom { font-size: 9px; flex-direction: column; align-items: center; text-align: center; }

  /* Loader */
  .loader-logo { font-size: 48px; }

  /* General spacing */
  section { padding-block: clamp(48px,7vw,72px); }
  .container { padding: 0 16px; }

  /* Buttons */
  .btn { font-size: 12px; padding: 12px 20px; }
  .btn-gold { font-size: 12px; }
}

/* =========================================================
   MOBILE / TÁCTIL — DESACTIVAR CURSOR CUSTOM
   En pantallas táctiles (sin puntero fino) deshabilitamos
   el cursor custom, el progress bar y restauramos el cursor del sistema.
   ========================================================= */
@media (pointer: coarse), (hover: none) {
  body, a, button, .wa-btn, .bcard, .svc-card, .nl-form button { cursor: auto !important; }
  a, button { cursor: pointer !important; }
  #cursor, #cursor-dot { display: none !important; }
  /* La barra de progreso sí la dejamos visible — funciona bien en móvil */
}
