/* =========================================================================
   PROLITIGA ABOGADOS — hoja de estilos principal
   Paleta: negro carbón · azul profundo · dorado · blanco cálido
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Color */
  --negro:        #0E1116;
  --carbon:       #171C24;
  --carbon-2:     #222834;
  --azul:         #16324F;
  --azul-2:       #1E4166;
  --azul-suave:   #E8EDF3;
  --oro:          #C9A45C;
  --oro-claro:    #E3C88A;
  --oro-texto:    #7A5C1A;   /* dorado legible sobre fondos claros */
  --crema:        #F6F2EA;
  --crema-2:      #EBE4D6;
  --blanco:       #FFFDFA;
  --texto:        #1A1D23;
  --texto-2:      #565E6B;
  --texto-inv:    #F2EEE7;
  --texto-inv-2:  #B4BBC6;
  --verde-wa:     #0F7A42;
  --verde-wa-2:   #0B6335;
  --error:        #A3271F;
  --linea:        rgba(26, 29, 35, .14);
  --linea-inv:    rgba(242, 238, 231, .18);

  /* Tipografía */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Métrica */
  --header-h: 68px;
  --radio: 2px;
  --sombra: 0 1px 2px rgba(14, 17, 22, .05), 0 12px 32px -18px rgba(14, 17, 22, .35);
  --sombra-alta: 0 2px 4px rgba(14, 17, 22, .06), 0 24px 48px -24px rgba(14, 17, 22, .42);
  --transicion: 220ms cubic-bezier(.4, 0, .2, 1);
}

@media (min-width: 1024px) {
  :root { --header-h: 82px; }
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--crema);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.68;
  letter-spacing: .002em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-abierto { overflow: hidden; }

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.14; letter-spacing: -.01em; }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- 3. Utilidades ---------- */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 5vw, 2.5rem);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -140%);
  z-index: 200;
  padding: .8rem 1.4rem;
  background: var(--oro);
  color: var(--negro);
  font-size: .9rem;
  font-weight: 600;
  border-radius: 0 0 var(--radio) var(--radio);
  transition: transform var(--transicion);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* Foco visible y consistente */
:focus-visible {
  outline: 2px solid var(--oro);
  outline-offset: 3px;
  border-radius: 2px;
}
.section-dark :focus-visible,
.cta :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--oro-claro); }

/* ---------- 4. Tipografía compartida ---------- */
.kicker {
  margin: 0 0 .95rem;
  font-family: var(--sans);
  font-size: clamp(.68rem, 1.5vw, .74rem);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--oro-texto);
}
.kicker-gold { color: var(--oro-claro); }

.h2 {
  font-family: var(--serif);
  font-size: clamp(1.95rem, 5.2vw, 3.15rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--texto);
  margin-bottom: 1.1rem;
  text-wrap: balance;
}
.h2 em { font-style: italic; font-weight: 400; color: var(--azul); }
.h2-light { color: var(--texto-inv); }
.h2-light em { color: var(--oro-claro); }

.h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 500;
}

.lead {
  font-size: clamp(1.02rem, 2.1vw, 1.14rem);
  color: var(--texto-2);
  max-width: 62ch;
}

/* ---------- 5. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 52px;
  padding: .85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radio);
  font-family: var(--sans);
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: .035em;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--transicion), color var(--transicion),
              border-color var(--transicion), transform var(--transicion),
              box-shadow var(--transicion);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn-wa {
  background: var(--verde-wa);
  color: #fff;
  box-shadow: 0 10px 26px -14px rgba(15, 122, 66, .9);
}
.btn-wa:hover { background: var(--verde-wa-2); }

.btn-gold {
  background: linear-gradient(135deg, var(--oro-claro), var(--oro) 55%, #B08B3E);
  color: #241A06;
  font-weight: 700;
}
.btn-gold:hover { filter: brightness(1.06); }

.btn-ghost {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(242, 238, 231, .45);
  color: var(--texto-inv);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: var(--oro); }

.btn-outline-light {
  border-color: rgba(242, 238, 231, .4);
  color: var(--texto-inv);
}
.btn-outline-light:hover { border-color: var(--oro); color: var(--oro-claro); }

.btn-block { width: 100%; }

/* ---------- 6. Encabezado ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(14, 17, 22, .82), rgba(14, 17, 22, .38) 65%, transparent);
  transition: background-color var(--transicion), box-shadow var(--transicion), backdrop-filter var(--transicion);
}
.site-header.is-scrolled {
  background: rgba(14, 17, 22, .96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--linea-inv), 0 14px 34px -26px rgba(0, 0, 0, .9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--texto-inv);
  flex: none;
}
.brand-mark { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--crema);
}
.brand-sub {
  margin-top: .24rem;
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--oro);
}

@media (min-width: 1024px) {
  .brand-mark { width: 46px; height: 46px; }
  .brand-name { font-size: 1.58rem; }
  .brand-sub { font-size: .6rem; }
}

/* Navegación de escritorio */
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.1rem); }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2.1vw, 1.85rem);
}
.nav-list a {
  position: relative;
  display: inline-block;
  padding: .4rem 0;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .015em;
  color: rgba(242, 238, 231, .84);
  transition: color var(--transicion);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--oro);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transicion);
}
.nav-list a:hover,
.nav-list a.is-active { color: var(--crema); }
.nav-list a:hover::after,
.nav-list a.is-active::after { transform: scaleX(1); }

.nav-cta { min-height: 44px; padding: .6rem 1.25rem; font-size: .84rem; }

/* Botón hamburguesa */
.nav-toggle {
  position: relative;
  z-index: 3;
  display: none;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding: .4rem .2rem .4rem .6rem;
  background: none;
  border: 0;
  color: var(--crema);
  cursor: pointer;
}
.nav-toggle-box { position: relative; width: 26px; height: 16px; }
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 0;
  width: 26px; height: 1.6px;
  background: currentColor;
  transition: transform var(--transicion), opacity var(--transicion), width var(--transicion);
}
.nav-toggle-bar { top: 7.2px; }
.nav-toggle-bar::before { content: ""; top: -7px; }
.nav-toggle-bar::after { content: ""; top: 7px; width: 18px; }
.nav-toggle-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { width: 26px; transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(8, 10, 14, .62);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity var(--transicion);
}
.nav-backdrop.is-visible { opacity: 1; }

/* Navegación móvil */
@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }

  body.nav-abierto .site-header {
    background: var(--negro);
    box-shadow: none;
  }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 1;
    width: min(340px, 86vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--header-h) + 1.6rem) clamp(1.4rem, 6vw, 2rem) 2.2rem;
    background: var(--negro);
    border-left: 1px solid var(--linea-inv);
    box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .9);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(102%);
    visibility: hidden;
    transition: transform 280ms cubic-bezier(.4, 0, .2, 1), visibility 280ms;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li + li { border-top: 1px solid var(--linea-inv); }
  .nav-list a {
    padding: 1.05rem 0;
    font-size: 1.02rem;
    font-weight: 500;
  }
  .nav-list a::after { display: none; }
  .nav-list a.is-active { color: var(--oro-claro); }

  .nav-cta { margin-top: 1.8rem; min-height: 52px; font-size: .9rem; }
}

/* ---------- 7. Portada ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding: calc(var(--header-h) + clamp(3.5rem, 12vh, 7rem)) 0 clamp(4.5rem, 12vh, 7.5rem);
  background: var(--negro);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(8, 10, 14, .93) 0%, rgba(8, 10, 14, .8) 42%, rgba(8, 10, 14, .52) 72%, rgba(8, 10, 14, .62) 100%),
    linear-gradient(to top, rgba(8, 10, 14, .92) 0%, rgba(8, 10, 14, .2) 45%, rgba(8, 10, 14, .5) 100%);
}

.hero-inner { position: relative; max-width: 760px; color: var(--texto-inv); }

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 8.2vw, 4.6rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.015em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 26px rgba(0, 0, 0, .42);
}
.hero-title em { display: block; font-style: italic; font-weight: 400; color: var(--oro-claro); }

.hero-lead {
  margin-top: 1.35rem;
  max-width: 54ch;
  font-size: clamp(1.02rem, 2.5vw, 1.2rem);
  font-weight: 300;
  color: rgba(242, 238, 231, .92);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin: 1.7rem 0 0;
  padding: .7rem 1.15rem;
  border: 1px solid rgba(201, 164, 92, .42);
  border-radius: var(--radio);
  background: rgba(14, 17, 22, .5);
  backdrop-filter: blur(6px);
  font-size: clamp(.82rem, 2vw, .93rem);
  line-height: 1.45;
  color: var(--crema);
}
.hero-badge svg { flex: none; color: var(--oro); }
.hero-badge strong { color: var(--oro-claro); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2.1rem;
}
.hero-actions .btn { flex: 1 1 auto; min-width: 220px; }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  color: var(--oro);
}
.hero-scroll span {
  width: 11px; height: 11px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  animation: baja 2.4s ease-in-out infinite;
}
@keyframes baja {
  0%, 100% { transform: translateY(-4px) rotate(45deg); opacity: .55; }
  50%      { transform: translateY(2px) rotate(45deg); opacity: 1; }
}

@media (max-width: 719px) {
  .hero { align-items: center; min-height: 92svh; }
  .hero-bg img { object-position: 50% 46%; }
  .hero-actions .btn { flex: 1 1 100%; min-width: 0; }
  .hero-scroll { display: none; }
}

/* ---------- 8. Secciones ---------- */
.section {
  position: relative;
  padding: clamp(3.8rem, 9vw, 7.5rem) 0;
  scroll-margin-top: var(--header-h);
}
.section-cream { background: var(--crema); }
.section-white { background: var(--blanco); }
.section-dark  { background: var(--carbon); color: var(--texto-inv); }
.section-dark p { color: var(--texto-inv-2); }

#inicio { scroll-margin-top: 0; }

/* ---------- 9. Quiénes somos ---------- */
.about-grid {
  display: grid;
  gap: clamp(2.2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.04fr .96fr; }
}

.about-copy .lead { margin-bottom: 1.05em; }
.about-copy p:not(.lead):not(.kicker) { color: var(--texto-2); max-width: 58ch; }

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.4rem, 5vw, 3rem);
  margin: 2.2rem 0 0;
  padding-top: 1.7rem;
  border-top: 1px solid var(--linea);
}
.stat { display: flex; flex-direction: column; }
.stat dt {
  order: 2;
  max-width: 17ch;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--texto-2);
  line-height: 1.4;
}
.stat dd {
  order: 1;
  margin: 0 0 .3rem;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 6vw, 3.1rem);
  font-weight: 600;
  line-height: 1;
  color: var(--azul);
}

.about-figure { margin: 0; position: relative; }
.about-figure img {
  width: 100%;
  aspect-ratio: 4 / 4.2;
  object-fit: cover;
  object-position: 42% 50%;
  border-radius: var(--radio);
  box-shadow: var(--sombra-alta);
}
.about-figure::after {
  content: "";
  position: absolute;
  inset: auto -14px -14px auto;
  width: 58%; height: 46%;
  border: 1px solid rgba(201, 164, 92, .55);
  border-radius: var(--radio);
  z-index: -1;
}
@media (max-width: 899px) {
  .about-figure img { aspect-ratio: 16 / 11; object-position: 40% 46%; }
  .about-figure::after { display: none; }
}

/* Equipo */
.team-title {
  margin: clamp(3.2rem, 7vw, 5rem) 0 0;
  padding-top: clamp(2.2rem, 5vw, 3.2rem);
  border-top: 1px solid var(--linea);
  color: var(--texto);
}
.team {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
  margin-top: 1.9rem;
}
@media (min-width: 760px) { .team { grid-template-columns: 1fr 1fr; } }

.lawyer {
  display: grid;
  grid-template-columns: clamp(126px, 17vw, 158px) 1fr;
  gap: clamp(1.1rem, 3vw, 1.7rem);
  align-items: start;
  padding: clamp(1.1rem, 3vw, 1.7rem);
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}
.lawyer-photo {
  position: relative;
  display: block;
  border-radius: var(--radio);
  overflow: hidden;
  background: var(--crema-2);
  box-shadow: 0 0 0 1px rgba(201, 164, 92, .5), 0 10px 22px -16px rgba(14, 17, 22, .6);
}
.lawyer-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 22%;
}
.lawyer-name {
  font-family: var(--serif);
  font-size: clamp(1.24rem, 2.8vw, 1.48rem);
  font-weight: 600;
  line-height: 1.18;
  color: var(--texto);
  text-wrap: balance;
}
.lawyer-role {
  margin: .5rem 0 .7rem;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--oro-texto);
}
.lawyer-bio { font-size: .88rem; line-height: 1.62; color: var(--texto-2); margin: 0; }

.lawyer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .38rem;
  margin-top: .95rem;
}
.lawyer-tags li {
  padding: .3rem .62rem;
  background: var(--crema);
  border: 1px solid var(--linea);
  border-radius: 999px;
  font-size: .71rem;
  font-weight: 500;
  letter-spacing: .015em;
  color: var(--texto-2);
  white-space: nowrap;
}

@media (max-width: 559px) {
  .lawyer { grid-template-columns: 1fr; gap: 1.15rem; }
  .lawyer-photo { width: 132px; }
  .lawyer-tags li { white-space: normal; }
}

/* ---------- 10. Áreas de práctica ---------- */
.areas-head {
  display: grid;
  gap: 1.4rem;
  margin-bottom: clamp(2.2rem, 5vw, 3.4rem);
}
@media (min-width: 900px) {
  .areas-head { grid-template-columns: 1fr .85fr; align-items: end; gap: 3rem; }
}
.areas-intro {
  font-size: 1.02rem;
  color: var(--texto-inv-2);
  max-width: 46ch;
  padding-bottom: .5rem;
}

.areas-grid {
  display: grid;
  gap: clamp(.9rem, 2vw, 1.3rem);
}
@media (min-width: 620px)  { .areas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .areas-grid { grid-template-columns: repeat(3, 1fr); } }

.area {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 3.4vw, 2.2rem);
  border-radius: var(--radio);
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform var(--transicion), box-shadow var(--transicion), border-color var(--transicion);
}
.area::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--oro-claro), var(--oro) 40%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms cubic-bezier(.4, 0, .2, 1);
}
.area:hover { transform: translateY(-4px); box-shadow: var(--sombra-alta); }
.area:hover::before { transform: scaleX(1); }

.area-blue  { background: var(--azul);   color: var(--texto-inv); }
.area-cream { background: var(--crema-2); color: var(--texto); }
.area-light { background: var(--crema);  color: var(--texto); }

.area-num {
  font-family: var(--serif);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .16em;
  opacity: .55;
}
.area-ico {
  width: 34px; height: 34px;
  margin: 1.15rem 0 1.1rem;
  color: var(--oro);
}
.area-cream .area-ico,
.area-light .area-ico { color: var(--oro-texto); }

.area-title {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.62rem);
  font-weight: 600;
  line-height: 1.18;
  margin-bottom: .7rem;
}
.area-blue .area-title { color: var(--crema); }

.area p {
  margin: 0;
  font-size: .93rem;
  line-height: 1.66;
}
.area-blue p  { color: rgba(242, 238, 231, .86); }
.area-cream p,
.area-light p { color: var(--texto-2); }

/* ---------- 11. Por qué elegirnos ---------- */
.why-head { max-width: 62ch; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }

.why-grid {
  display: grid;
  gap: clamp(.9rem, 2vw, 1.3rem);
}
@media (min-width: 600px)  { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }

.why-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-top: 2px solid var(--oro);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  transition: transform var(--transicion), box-shadow var(--transicion);
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--sombra-alta); }
.why-ico { width: 32px; height: 32px; margin-bottom: 1.1rem; color: var(--azul); }
.why-title {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.6vw, 1.34rem);
  font-weight: 600;
  line-height: 1.24;
  margin-bottom: .6rem;
  text-wrap: balance;
}
.why-card p { margin: 0; font-size: .9rem; color: var(--texto-2); }

/* ---------- 12. Proceso ---------- */
.proc-head { max-width: 54ch; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }

.proc-grid {
  display: grid;
  gap: clamp(1.6rem, 3vw, 1.2rem);
  counter-reset: paso;
}
@media (min-width: 640px)  { .proc-grid { grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 4vw, 2.6rem); } }
@media (min-width: 1040px) { .proc-grid { grid-template-columns: repeat(4, 1fr); } }

.proc-step { position: relative; padding-top: 1.9rem; }
.proc-step::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 1px;
  background: var(--linea);
}
.proc-step::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 44px; height: 1px;
  background: var(--oro);
}
.proc-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 2.7rem);
  font-weight: 500;
  line-height: 1;
  color: var(--azul);
  opacity: .32;
  margin-bottom: .7rem;
}
.proc-title {
  font-family: var(--serif);
  font-size: clamp(1.22rem, 2.8vw, 1.4rem);
  font-weight: 600;
  line-height: 1.22;
  margin-bottom: .55rem;
  text-wrap: balance;
}
.proc-step p { margin: 0; font-size: .91rem; color: var(--texto-2); }

/* ---------- 13. Llamado a la acción ---------- */
.cta {
  position: relative;
  padding: clamp(4.2rem, 11vw, 8rem) 0;
  background: var(--negro);
  color: var(--texto-inv);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/img/cta-1500.webp");
  background-size: cover;
  background-position: 58% 42%;
  opacity: .3;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 50% 40%, rgba(14, 17, 22, .58), rgba(8, 10, 14, .93) 72%);
}
.cta-inner { position: relative; max-width: 780px; }
.cta .kicker { margin-bottom: 1rem; }

.cta-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6.4vw, 3.8rem);
  font-weight: 500;
  line-height: 1.06;
  color: #fff;
  text-wrap: balance;
}
.cta-title em { font-style: italic; font-weight: 400; color: var(--oro-claro); }

.cta-lead {
  margin: 1.25rem auto 0;
  max-width: 50ch;
  font-size: clamp(1rem, 2.3vw, 1.14rem);
  font-weight: 300;
  color: rgba(242, 238, 231, .88);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .85rem;
  margin-top: 2.3rem;
}
.cta-actions .btn { flex: 0 1 auto; min-width: 262px; }
@media (max-width: 519px) { .cta-actions .btn { flex: 1 1 100%; min-width: 0; } }

/* ---------- 14. Contacto y formulario ---------- */
.contact-grid {
  display: grid;
  gap: clamp(2.2rem, 5vw, 3.6rem);
  align-items: start;
}
@media (min-width: 940px) {
  .contact-grid { grid-template-columns: 1fr 1.05fr; }
}

.contact-note {
  margin-top: 1.2rem;
  font-size: .87rem;
  color: var(--texto-2);
  max-width: 46ch;
}

.contact-list { margin-top: 2rem; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .85rem; align-items: flex-start; }
.contact-list svg { flex: none; margin-top: .18rem; color: var(--oro-texto); }
.contact-list span { display: flex; flex-direction: column; gap: .1rem; }
.contact-list strong {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--texto-2);
}
.contact-list a, .contact-list span > :not(strong) {
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--texto);
}
.contact-list a { text-decoration: underline; text-decoration-color: rgba(26, 29, 35, .25); text-underline-offset: 4px; }
.contact-list a:hover { color: var(--azul); text-decoration-color: currentColor; }

.form-card {
  padding: clamp(1.4rem, 4vw, 2.4rem);
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-top: 2px solid var(--oro);
  border-radius: var(--radio);
  box-shadow: var(--sombra-alta);
}
.form-intro {
  margin-bottom: 1.5rem;
  font-size: .82rem;
  color: var(--texto-2);
}

.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  margin-bottom: .42rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--texto);
}
.req { color: var(--oro-texto); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .82rem .95rem;
  background: #fff;
  border: 1px solid rgba(26, 29, 35, .22);
  border-radius: var(--radio);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color var(--transicion), box-shadow var(--transicion);
  appearance: none;
}
.field textarea { resize: vertical; min-height: 118px; }
.field input::placeholder,
.field textarea::placeholder { color: #9AA1AC; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(26, 29, 35, .4); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(22, 50, 79, .14);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--oro); outline-offset: 1px; }

.select-wrap { position: relative; }
.select-wrap select { padding-right: 2.8rem; cursor: pointer; }
.select-caret {
  position: absolute;
  right: .95rem; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--texto-2);
}

.hint { margin: .4rem 0 0; font-size: .78rem; color: var(--texto-2); }

.error {
  display: none;
  margin: .42rem 0 0;
  font-size: .8rem;
  font-weight: 500;
  color: var(--error);
}
.error.is-visible { display: block; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--error);
  background: #FDF7F6;
}
.field.has-error input:focus,
.field.has-error select:focus,
.field.has-error textarea:focus { box-shadow: 0 0 0 3px rgba(163, 39, 31, .14); }

.form-status {
  margin: 1rem 0 0;
  font-size: .88rem;
  font-weight: 500;
  min-height: 1.2em;
}
.form-status.is-error { color: var(--error); }
.form-status.is-ok { color: var(--verde-wa); }

.form-legal {
  margin: 1.15rem 0 0;
  padding-top: 1.15rem;
  border-top: 1px solid var(--linea);
  font-size: .78rem;
  line-height: 1.6;
  color: var(--texto-2);
}

/* ---------- 15. Pie de página ---------- */
.site-footer {
  padding: clamp(3.2rem, 7vw, 5rem) 0 2rem;
  background: var(--negro);
  color: var(--texto-inv-2);
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 2.6rem);
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.1fr 1fr; gap: 3rem; } }

.footer-brand img { width: 52px; height: 52px; margin-bottom: 1.1rem; }
.footer-name {
  display: flex;
  flex-direction: column;
  margin: 0 0 .7rem;
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--crema);
}
.footer-name-sub {
  margin-top: .32rem;
  font-family: var(--sans);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .42em;
  color: var(--oro);
}
.footer-tag { margin: 0; max-width: 32ch; font-size: .88rem; line-height: 1.6; }

.footer-h {
  margin: 0 0 1.1rem;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--oro);
}
.footer-list { display: grid; gap: .62rem; }
.footer-list li { line-height: 1.5; }
.footer-list a { transition: color var(--transicion); }
.footer-list a:hover { color: var(--oro-claro); text-decoration: underline; text-underline-offset: 4px; }

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--linea-inv);
}

.footer-legal {
  margin-top: clamp(2.6rem, 6vw, 3.6rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--linea-inv);
}
.footer-legal p {
  max-width: 92ch;
  font-size: .79rem;
  line-height: 1.66;
  color: rgba(180, 187, 198, .8);
}
.footer-copy { margin-top: .9rem; font-size: .78rem; color: rgba(180, 187, 198, .62); }

/* ---------- 16. Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: clamp(.9rem, 3vw, 1.6rem);
  bottom: clamp(.9rem, 3vw, 1.6rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .82rem;
  background: var(--verde-wa);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 26px -8px rgba(11, 99, 53, .7), 0 2px 6px rgba(0, 0, 0, .2);
  transition: background-color var(--transicion), transform var(--transicion), box-shadow var(--transicion);
}
.wa-float:hover {
  background: var(--verde-wa-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(11, 99, 53, .8);
}
.wa-float-text {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .03em;
  transition: max-width 300ms cubic-bezier(.4, 0, .2, 1), margin-right 300ms;
}
@media (hover: hover) {
  .wa-float:hover .wa-float-text,
  .wa-float:focus-visible .wa-float-text { max-width: 130px; margin-right: .25rem; }
}

/* ---------- 17. Animación de entrada ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 620ms cubic-bezier(.22, .61, .36, 1), transform 620ms cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .area:hover, .why-card:hover, .wa-float:hover { transform: none; }
}

/* ---------- 18. Impresión ---------- */
@media print {
  .site-header, .nav-backdrop, .wa-float, .hero-scroll, .hero-actions, .cta-actions, .form-card { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: auto; padding: 2rem 0; }
  .hero::after, .hero-bg { display: none; }
  .hero-inner, .hero-title, .cta-title { color: #000; }
  .section, .cta { padding: 1.5rem 0; background: #fff !important; color: #000 !important; }
}
