/* =====================================================================
   Flinero Abogada — Landing pública v2
   Tipografía: Cormorant Garamond · Plus Jakarta Sans · DM Mono
   Paleta:     Navy profundo · Ámbar cobre · Pergamino cálido
   ===================================================================== */

:root {
  --ink:          #0D1B2A;
  --ink-2:        #1A2F48;
  --ink-3:        #08121D;
  --amber:        #C48A2B;
  --amber-2:      #D4A040;
  --amber-soft:   #F5EACC;
  --parchment:    #F8F4EC;
  --stone:        #F0EBE0;
  --paper:        #FFFFFF;
  --text:         #1C1A18;
  --muted:        #6B6860;
  --border:       #DDD6C8;
  --error:        #B91C1C;
  --success:      #166534;

  --r-sm:  6px;
  --r:     10px;
  --r-lg:  16px;

  --s-xs:  0 1px 3px rgba(13,27,42,.06), 0 1px 2px rgba(13,27,42,.04);
  --s-sm:  0 4px 12px rgba(13,27,42,.08), 0 2px 4px rgba(13,27,42,.04);
  --s:     0 10px 32px rgba(13,27,42,.10), 0 4px 8px rgba(13,27,42,.06);
  --s-lg:  0 24px 56px rgba(13,27,42,.14), 0 8px 16px rgba(13,27,42,.08);

  --container: 1200px;
  --t:         0.22s cubic-bezier(.2,.7,.2,1);
  --t-slow:    0.40s cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--parchment);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

h1, h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
h1 em, h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--amber);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Skip link ── */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ════════════════════════ NAV ════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 90;
  background: rgba(248,244,236,.95);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}
.nav.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--s-xs);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--amber-2);
  border-radius: var(--r-sm);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700; font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.brand__text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; color: var(--ink); font-weight: 600;
  line-height: 1.1;
}
.brand__sub {
  font-family: 'DM Mono', monospace;
  font-size: 0.54rem; color: var(--muted);
  letter-spacing: 0.22em; text-transform: uppercase; margin-top: 3px;
}
.nav__links { display: flex; align-items: center; gap: 2.2rem; }
.nav__links a {
  color: var(--muted); font-size: 0.88rem; font-weight: 500;
  transition: color var(--t); letter-spacing: 0.01em;
}
.nav__links a:hover { color: var(--ink); }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  border-radius: var(--r);
  font-weight: 600; font-size: 0.88rem;
  cursor: pointer; border: none;
  transition: all var(--t);
  white-space: nowrap; letter-spacing: 0.01em;
}
.btn--primary {
  background: var(--ink); color: #fff;
  box-shadow: 0 4px 14px rgba(13,27,42,.22);
}
.btn--primary:hover {
  background: var(--ink-2);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(13,27,42,.28);
}
.btn--gold {
  background: var(--amber); color: #fff;
  box-shadow: 0 4px 14px rgba(196,138,43,.28);
}
.btn--gold:hover {
  background: var(--amber-2);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(196,138,43,.32);
}
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: #fff; }

.nav__toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px; color: var(--ink);
}

/* ════════════════════════ HERO ════════════════════════ */
.hero {
  padding: 9.5rem 0 6rem;
  background: var(--parchment);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 80% 0%, rgba(196,138,43,.09) 0%, transparent 65%),
    radial-gradient(ellipse 600px 400px at -10% 80%, rgba(13,27,42,.04) 0%, transparent 60%);
  pointer-events: none;
}

/* Thin vertical rule between columns — documento oficial */
.hero::after {
  content: '';
  position: absolute;
  top: 10rem; bottom: 4rem;
  left: calc(50% + 10px);
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, var(--border) 20%, var(--border) 80%, transparent 100%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative; z-index: 1;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber-soft);
  color: var(--ink);
  padding: 5px 14px 5px 10px;
  border-radius: 999px;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(196,138,43,.25);
}
.hero__badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%; background: var(--amber);
  flex-shrink: 0; box-shadow: 0 0 0 3px rgba(196,138,43,.2);
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  margin-bottom: 1.4rem;
}
.hero__lead {
  font-size: 1.05rem; color: var(--muted);
  max-width: 520px; margin-bottom: 2.2rem; line-height: 1.7;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.8rem; }

.hero__trust {
  display: flex; gap: 3rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
}
.trust__num {
  font-family: 'DM Mono', monospace;
  color: var(--ink); font-size: 1.45rem; font-weight: 500;
  line-height: 1; letter-spacing: -0.02em;
}
.trust__label {
  font-size: 0.66rem; color: var(--muted);
  letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500; margin-top: 5px;
}

/* ── Tarjeta del héroe ── */
.hero__card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.2rem;
  box-shadow: var(--s);
  position: relative;
  overflow: visible;
}
.hero__card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--ink) 0%, var(--amber) 60%, var(--amber-2) 100%);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

/* Sello oficial — elemento signature */
.hero__seal {
  position: absolute;
  top: -22px; right: -22px;
  width: 88px; height: 88px;
  border: 1.5px solid var(--amber);
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transform: rotate(-9deg);
  background: var(--paper);
  gap: 1px;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 5px var(--amber-soft),
    0 4px 12px rgba(13,27,42,.12);
}
.seal__top, .seal__bottom {
  font-family: 'DM Mono', monospace;
  font-size: 0.44rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  text-align: center;
  line-height: 1;
}
.seal__mid {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-weight: 700;
  color: var(--ink); line-height: 1;
}

.hero__photo {
  width: 92px; height: 92px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  margin-bottom: 1.1rem;
  box-shadow: 0 6px 20px rgba(13,27,42,.22), 0 0 0 3px var(--amber-soft), 0 0 0 4.5px var(--amber);
  display: block;
}
.hero__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; color: var(--ink); font-weight: 600;
  margin-bottom: 3px;
}
.hero__role { color: var(--muted); font-size: 0.82rem; margin-bottom: 1.2rem; }
.hero__divider { height: 1px; background: var(--border); margin: 1rem 0; }
.hero__meta { display: flex; flex-direction: column; gap: 9px; font-size: 0.86rem; }
.hero__meta-item { display: flex; align-items: center; gap: 10px; color: var(--text); }
.hero__meta-item svg { color: var(--amber); flex-shrink: 0; }
.hero__meta-item a { color: var(--text); }
.hero__meta-item a:hover { color: var(--amber); transition: color var(--t); }

.hero__chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 1rem; }
.hero__chip {
  font-family: 'DM Mono', monospace;
  background: var(--stone); color: var(--ink);
  padding: 4px 10px; border-radius: var(--r-sm);
  font-size: 0.65rem; font-weight: 400;
  border: 1px solid var(--border);
  letter-spacing: 0.04em; text-transform: uppercase;
}

/* ════════════════════════ SECCIONES ════════════════════════ */
.section { padding: 6.5rem 0; }
.section--alt {
  background: var(--stone);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section--dark {
  background: var(--ink);
  color: rgba(248,244,236,.8);
  position: relative; overflow: hidden;
}
/* Sutil grid de textura — estética documental */
.section--dark::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(248,244,236,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248,244,236,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.section--dark h2, .section--dark h3 { color: #F8F4EC; }
.section--dark h2 em { color: var(--amber-2); }
.section--dark .section__lead { color: rgba(248,244,236,.62); }

.section__head {
  max-width: 700px; margin: 0 auto 3.5rem;
  text-align: center;
}
/* Tag con guiones — marca tipográfica */
.section__tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 0.64rem; color: var(--amber);
  letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 500; margin-bottom: 0.9rem;
}
.section__tag::before, .section__tag::after {
  content: '—'; opacity: 0.55;
}
.section--dark .section__tag { color: var(--amber-2); }
.section__title { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 1.1rem; }
.section__lead { color: var(--muted); font-size: 1.02rem; line-height: 1.65; }

/* ── Servicios ── */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.service {
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--r);
  padding: 2rem 1.6rem;
  transition: box-shadow var(--t), border-color var(--t), transform var(--t);
}
.service:hover {
  box-shadow: var(--s-sm);
  border-left-color: var(--amber);
  transform: translateX(3px);
}
.service__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--amber-soft); color: var(--ink);
  border-radius: 10px; margin-bottom: 1.2rem;
}
.service h3 { font-size: 1.2rem; margin-bottom: 0.55rem; }
.service p { color: var(--muted); font-size: 0.92rem; margin-bottom: 1rem; line-height: 1.6; }
.service__tags { display: flex; flex-wrap: wrap; gap: 5px; }
.service__tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem; color: var(--muted);
  background: var(--stone); border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 4px;
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* ── Proceso — cuadrícula documental ── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(248,244,236,.12);
  border-radius: var(--r);
  overflow: hidden;
  position: relative; z-index: 1;
}
.step {
  padding: 2.4rem 1.6rem;
  border-right: 1px solid rgba(248,244,236,.1);
  transition: background var(--t);
}
.step:last-child { border-right: none; }
.step:hover { background: rgba(248,244,236,.04); }

.step__num {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem; color: var(--amber-2);
  font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 1.2rem;
}
.step h3 { color: #F8F4EC; font-size: 1.1rem; margin-bottom: 0.55rem; }
.step p { color: rgba(248,244,236,.62); font-size: 0.9rem; line-height: 1.62; }

/* ── Sobre mí ── */
.about {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 4.5rem; align-items: center;
}
.about__visual {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.5rem; text-align: center;
  box-shadow: var(--s);
}
.about__photo {
  width: 100%; max-width: 260px; height: 320px;
  border-radius: var(--r-lg);
  object-fit: cover; object-position: center 15%;
  margin: 0 auto 1.2rem;
  display: block;
  box-shadow: var(--s);
  border: 1px solid var(--border);
}
.about__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; color: var(--ink); font-weight: 600; margin-bottom: 3px;
}
.about__role { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.5rem; }
.about__creds {
  text-align: left; display: flex; flex-direction: column; gap: 12px;
  border-top: 1px solid var(--border); padding-top: 1.4rem;
}
.about__cred { display: flex; gap: 12px; align-items: flex-start; font-size: 0.86rem; }
.about__cred svg { color: var(--amber); flex-shrink: 0; margin-top: 2px; }
.about__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-top: 1.8rem;
  padding-top: 1.5rem; border-top: 1px solid var(--border);
  text-align: center;
}
.about__stat-num {
  font-family: 'DM Mono', monospace;
  font-size: 1.25rem; color: var(--ink); font-weight: 500;
  letter-spacing: -0.02em;
}
.about__stat-lbl {
  font-size: 0.62rem; color: var(--muted);
  letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500; margin-top: 4px;
}
.about__text h2 {
  text-align: left; margin-bottom: 1.4rem;
  font-size: clamp(2rem, 2.8vw, 2.6rem);
}
.about__text p { color: var(--text); margin-bottom: 1rem; font-size: 1rem; line-height: 1.7; }
.about__values { list-style: none; margin-top: 1.6rem; }
.about__values li {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 12px; color: var(--text); font-size: 0.95rem; line-height: 1.55;
}
.about__values svg { color: var(--amber); flex-shrink: 0; margin-top: 4px; }

/* ── Reseñas Google ── */
.reviews {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}
.review-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--s); text-align: center;
  position: relative; overflow: hidden;
}
.review-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--amber) 0%, var(--amber-2) 100%);
}
.review-card__rating {
  font-family: 'DM Mono', monospace;
  font-size: 5rem; color: var(--amber);
  font-weight: 500; line-height: 1; letter-spacing: -0.03em;
}
.review-card__stars { color: var(--amber-2); font-size: 1.3rem; margin: 0.6rem 0; letter-spacing: 4px; }
.review-card__count { color: var(--muted); font-size: 0.86rem; margin-bottom: 1.8rem; line-height: 1.4; }
.review-card .btn { display: inline-flex; }

/* ── Contacto ── */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
}
.contact__info { display: flex; flex-direction: column; gap: 0.8rem; }
.contact__info h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.contact__info > p { color: var(--muted); margin-bottom: 1.4rem; font-size: 0.95rem; line-height: 1.6; }
.contact__item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px;
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color var(--t);
}
.contact__item:hover { border-color: var(--amber); }
.contact__item svg { color: var(--amber); flex-shrink: 0; margin-top: 2px; }
.contact__label {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem; color: var(--muted);
  letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500; margin-bottom: 2px;
}
.contact__value { font-size: 0.93rem; color: var(--text); font-weight: 500; }
.contact__value a { color: var(--text); }
.contact__value a:hover { color: var(--amber); transition: color var(--t); }

/* ── Formulario ── */
.form {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.5rem; box-shadow: var(--s);
  position: relative; overflow: hidden;
}
.form::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--ink) 0%, var(--amber) 100%);
}
.form h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; margin-bottom: 0.4rem;
}
.form > p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.8rem; line-height: 1.5; }

/* Tabs estilo */
.form-tabs {
  display: flex; border-bottom: 1.5px solid var(--border);
  margin-bottom: 1.5rem;
}
.form-tab {
  flex: 1; padding: 12px; background: none; border: none;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem; font-weight: 600;
  cursor: pointer; margin-bottom: -1.5px;
  transition: color var(--t), border-color var(--t);
}
.form-tab.is-active { color: var(--ink); border-bottom-color: var(--ink); }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form__group { margin-bottom: 1rem; }
.form__group label {
  font-family: 'DM Mono', monospace;
  font-size: 0.64rem; color: var(--muted);
  letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500; display: block; margin-bottom: 7px;
}
.form__group input,
.form__group select,
.form__group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.93rem; color: var(--text);
  background: var(--parchment); outline: none;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(13,27,42,.09);
  background: #fff;
}
.form__group textarea { min-height: 110px; resize: vertical; }

.form__honeypot {
  position: absolute; left: -9999px; opacity: 0; pointer-events: none;
}
.form__check {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0.8rem 0 1.4rem;
  font-size: 0.8rem; color: var(--muted);
}
.form__check input { margin-top: 3px; flex-shrink: 0; cursor: pointer; }
.form__check label { cursor: pointer; line-height: 1.5; }
.form__check a { color: var(--ink); text-decoration: underline; }
.form__submit { width: 100%; justify-content: center; padding: 14px; font-size: 0.94rem; }
.form__note {
  font-size: 0.76rem; color: var(--muted); text-align: center; margin-top: 0.9rem;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.form__alert {
  margin-top: 1rem; padding: 14px 16px;
  border-radius: var(--r-sm); font-size: 0.9rem; display: none;
}
.form__alert.is-visible { display: block; }
.form__alert--ok { background: #ecfdf5; color: var(--success); border: 1px solid #bbf7d0; }
.form__alert--err { background: #fef2f2; color: var(--error); border: 1px solid #fecaca; }

/* ════════════════════════ FOOTER ════════════════════════ */
.footer {
  background: var(--ink-3);
  color: rgba(248,244,236,.6);
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(248,244,236,.06);
}
.footer__inner {
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem; align-items: center;
}
.footer__brand {
  font-family: 'Cormorant Garamond', serif;
  color: rgba(248,244,236,.9); font-weight: 600; font-size: 1.05rem;
}
.footer__copy { font-size: 0.76rem; margin-top: 4px; letter-spacing: 0.02em; }
.footer__links { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.footer__links a {
  color: rgba(248,244,236,.5); font-size: 0.82rem;
  transition: color var(--t); letter-spacing: 0.02em;
}
.footer__links a:hover { color: var(--amber-2); }

/* ════════════════════════ MODAL ════════════════════════ */
.modal {
  position: fixed; inset: 0;
  background: rgba(8,18,29,.8);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 1rem; z-index: 200;
}
.modal.is-visible { display: flex; }
.modal__panel {
  background: #fff; border-radius: var(--r-lg);
  max-width: 720px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  padding: 2.4rem 2.2rem; box-shadow: var(--s-lg);
  position: relative;
}
.modal__close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none; cursor: pointer;
  font-size: 1.6rem; color: var(--muted); line-height: 1;
  transition: color var(--t);
}
.modal__close:hover { color: var(--ink); }
.modal__panel h2 { color: var(--ink); margin-bottom: 1rem; }
.modal__panel h3 { font-size: 1rem; margin: 1.2rem 0 0.4rem; color: var(--ink); }
.modal__panel p, .modal__panel li { color: var(--text); font-size: 0.92rem; margin-bottom: 0.8rem; }
.modal__panel ul { padding-left: 1.4rem; }

/* ════════════════════════ REVEAL ════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════ RESPONSIVE ════════════════════════ */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero::after { display: none; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: none; }
  .step:nth-child(3), .step:nth-child(4) { border-top: 1px solid rgba(248,244,236,.1); }
  .about { grid-template-columns: 1fr; gap: 3rem; }
  .reviews { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav__inner { height: 64px; }
  .nav__links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--parchment); padding: 1rem;
    border-top: 1px solid var(--border); box-shadow: var(--s);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px; width: 100%; font-size: 1rem; }
  .nav__links .btn { width: 100%; justify-content: center; padding: 14px; }
  .nav__toggle { display: inline-flex; }

  .hero { padding: 7.5rem 0 4.5rem; }
  .hero__trust { gap: 1.8rem; }
  .hero__seal { display: none; }

  .section { padding: 4.5rem 0; }
  .section__head { margin-bottom: 2.5rem; }
  .services, .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid rgba(248,244,236,.1); }
  .step:nth-child(3), .step:nth-child(4) { border-top: none; }
  .step:last-child { border-bottom: none; }

  .form, .modal__panel { padding: 1.8rem 1.4rem; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .brand__sub { display: none; }
}

/* ════════════════════════ ACCESIBILIDAD ════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}
