/* ============================================================
   CÁCERES CASTRO ABOGADOS — Estilos
   Paleta: Azul marino + Dorado
   ============================================================ */

:root {
  /* Colores de marca */
  --navy-deep: #0a0f33;
  --navy: #0d1440;
  --navy-2: #141d5c;
  --navy-soft: #1c2670;
  --gold: #c9973b;
  --gold-light: #e6c877;
  --gold-dark: #a97a24;
  --gold-grad: linear-gradient(135deg, #b8842a 0%, #e6c877 50%, #c9973b 100%);

  --cream: #f8f6f1;
  --cream-2: #f1ede3;
  --white: #ffffff;
  --ink: #171a2e;
  --ink-soft: #464a63;
  --muted: #6b6f85;
  --line: #e4e0d5;

  --shadow-sm: 0 2px 8px rgba(13, 20, 64, .06);
  --shadow-md: 0 12px 30px rgba(13, 20, 64, .10);
  --shadow-lg: 0 28px 60px rgba(13, 20, 64, .18);

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;

  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 16px;
}
.eyebrow-light { color: var(--gold-light); }

.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: .2px;
}
.section-title.light { color: var(--white); }

.text-gold { color: var(--gold-light); }
.text-gold-dark {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead { font-size: 1.12rem; color: var(--ink-soft); margin: 18px 0; }

/* Texto justificado en bloques de prosa (con guionado para evitar espacios feos) */
.lead,
.nosotros .two-col > div > p,
.area-desc,
.member-bio {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.section { padding: clamp(64px, 9vw, 118px) 0; }

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 68px); text-align: center; }
.section-intro { color: var(--muted); font-size: 1.06rem; margin-top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
  padding: 13px 26px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s;
  white-space: nowrap;
}
.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-gold {
  background: var(--gold-grad);
  color: var(--navy-deep);
  box-shadow: 0 8px 22px rgba(201, 151, 59, .35);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(201, 151, 59, .45); }

.btn-outline-light {
  border-color: rgba(255, 255, 255, .5);
  color: var(--white);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); transform: translateY(-3px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding: 14px 0;
}
.site-header.scrolled {
  background: rgba(10, 15, 51, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 26px rgba(0, 0, 0, .25);
  padding: 8px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.brand-logo { height: 72px; width: auto; transition: height .4s var(--ease); }
.site-header.scrolled .brand-logo { height: 56px; }

.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a {
  color: rgba(255, 255, 255, .88);
  font-size: .88rem;
  font-weight: 500;
  position: relative;
  transition: color .25s;
  white-space: nowrap;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--gold-light);
  transition: width .3s var(--ease);
}
.nav-links a:not(.nav-cta):hover { color: var(--white); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { color: var(--navy-deep) !important; }

/* Enlaces a portales externos */
.nav-portal .ext { font-size: .72em; margin-left: 3px; display: inline-block; color: var(--gold-light); }
.nav-sep { width: 1px; height: 22px; background: rgba(255, 255, 255, .18); flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  padding: 120px 0 90px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 700px at 75% -10%, rgba(201, 151, 59, .18), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(28, 38, 112, .55), transparent 55%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 45%, var(--navy-2) 100%);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 78%);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
}
.hero-watermark { display: none; }

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.hero-content::before {
  content: '';
  position: absolute;
  left: 50%; top: 42%;
  transform: translate(-50%, -50%);
  width: 780px; height: 520px;
  max-width: 100%;
  background: radial-gradient(ellipse at center, rgba(10, 15, 51, .6), transparent 66%);
  filter: blur(12px);
  z-index: -1;
  pointer-events: none;
}

.hero-logo {
  height: clamp(96px, 15vw, 168px);
  width: auto;
  margin: 0 auto 26px;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, .5));
  animation: heroLogoIn 1.1s var(--ease) both;
}
@keyframes heroLogoIn {
  from { opacity: 0; transform: translateY(18px) scale(.94); }
  to { opacity: 1; transform: none; }
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.8vw, 3.9rem);
  line-height: 1.12;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-subtitle {
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  color: rgba(255, 255, 255, .82);
  font-weight: 300;
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 46px; }

.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero-badges span {
  font-size: .78rem;
  letter-spacing: .04em;
  padding: 7px 15px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 100px;
  color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .04);
}

.hero-scroll {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 100px;
  z-index: 2;
}
.hero-scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--gold-light);
  border-radius: 4px;
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 0; }
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: clamp(36px, 5vw, 56px) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 12px; position: relative; }
.stat:not(:last-child)::after {
  content: ''; position: absolute; right: -12px; top: 12%; bottom: 12%;
  width: 1px; background: var(--line);
}
.stat-value {
  height: clamp(3rem, 5.2vw, 3.9rem);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  line-height: 1;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: .9;
}
.stat-plus {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: .12em;
}
.stat-label-big {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.8vw, 1.95rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.05;
  text-align: center;
}
.stat-label {
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  max-width: 20ch;
  margin: 0 auto;
}

/* ============================================================
   NOSOTROS
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.nosotros p { color: var(--ink-soft); }

.check-list { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--ink);
  font-weight: 500;
}
.check-list li::before {
  content: '';
  position: absolute; left: 0; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gold-grad);
}
.check-list li::after {
  content: '';
  position: absolute; left: 6px; top: 9px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--navy-deep);
  border-bottom: 2px solid var(--navy-deep);
  transform: rotate(-45deg);
}

.nosotros-card {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.nosotros-card::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(201, 151, 59, .3), transparent 70%);
}
.values-stack { display: grid; gap: 26px; position: relative; z-index: 1; }
.value-item { display: flex; gap: 18px; align-items: flex-start; }
.value-icon {
  flex-shrink: 0;
  width: 50px; height: 50px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(201, 151, 59, .14);
  border: 1px solid rgba(201, 151, 59, .3);
  color: var(--gold-light);
}
.value-icon svg { width: 26px; height: 26px; }
.value-item h3 { color: var(--white); font-size: 1.15rem; font-weight: 600; margin-bottom: 4px; }
.value-item p { color: rgba(255, 255, 255, .7); font-size: .95rem; }

/* ============================================================
   ÁREAS
   ============================================================ */
.areas { background: var(--cream-2); }
.areas-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.area-card {
  flex: 1 1 232px;
  max-width: 272px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  min-height: 196px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
  position: relative;
  overflow: hidden;
}
.area-card::before {
  content: '';
  position: absolute; left: 0; top: 0;
  width: 100%; height: 3px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
  z-index: 3;
}
.area-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.area-card:hover::before { transform: scaleX(1); }
.area-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--gold-light);
  margin-bottom: 15px;
  transition: transform .45s var(--ease);
}
.area-card:hover .area-icon { transform: scale(1.08) rotate(-3deg); }
.area-icon svg { width: 24px; height: 24px; }
.area-title {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
  line-height: 1.22;
}
.area-hook {
  color: var(--gold-dark);
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.5;
}

/* Panel azul que se revela al pasar el cursor */
.area-reveal {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.area-reveal::after {
  content: '';
  position: absolute; top: -50px; right: -50px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(201, 151, 59, .3), transparent 70%);
  pointer-events: none;
}
.area-card:hover .area-reveal { transform: translateY(0); }
.area-reveal .area-title { color: #fff; margin-bottom: 4px; position: relative; z-index: 1; }
.area-desc { color: rgba(255, 255, 255, .82); font-size: .84rem; line-height: 1.5; position: relative; z-index: 1; }
.area-cta {
  margin-top: 6px;
  color: var(--gold-light);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .03em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
  z-index: 1;
}
.area-cta span { transition: transform .3s var(--ease); }
.area-cta:hover span { transform: translateX(5px); }

/* Táctil / sin hover: mostrar la descripción sin necesidad de pasar el cursor */
@media (hover: none) {
  .area-card { min-height: 0; }
  .area-card::before { transform: scaleX(1); }
  .area-reveal {
    position: static;
    transform: none;
    background: none;
    color: inherit;
    padding: 14px 0 0;
    gap: 8px;
  }
  .area-reveal::after { display: none; }
  .area-reveal .area-title { display: none; }
  .area-desc { color: var(--ink-soft); }
  .area-cta { color: var(--gold-dark); margin-top: 10px; }
}

/* ============================================================
   EQUIPO
   ============================================================ */
.equipo { background: var(--cream); }

/* Tratamiento duotono compartido (azul marino → color al hover) */
.lead-photo, .member-photo {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.lead-photo img, .member-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease);
}
.lead-card:hover .lead-photo img,
.member-card:hover .member-photo img { transform: scale(1.05); }

/* Socios destacados */
.team-leads {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-bottom: 40px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.lead-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.lead-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.lead-photo { aspect-ratio: 4 / 5; }
.lead-info { padding: 24px 26px; display: flex; flex-direction: column; flex: 1; }
.lead-info .member-bio { flex: 1; }

.member-role {
  font-size: .74rem; letter-spacing: .13em; text-transform: uppercase;
  font-weight: 600; color: var(--gold-dark);
}
.member-name {
  font-family: var(--font-serif); font-size: 1.55rem; font-weight: 600;
  color: var(--navy); line-height: 1.15; margin: 5px 0 6px;
}
.member-area { font-size: .9rem; color: var(--muted); font-weight: 500; }
.member-bio { font-size: .92rem; color: var(--ink-soft); line-height: 1.55; margin-top: 10px; }
.member-bio p { margin: 0; }
.member-bio p + p { margin-top: .7em; }
.member-links { display: flex; gap: 10px; margin-top: 16px; }

/* Reseña del socio: aparece sobre la foto al pasar el cursor */
.lead-reveal {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  aspect-ratio: 4 / 5;            /* cubre exactamente la foto */
  background: linear-gradient(165deg, rgba(13, 20, 64, .96) 0%, rgba(10, 15, 51, .97) 100%);
  color: #fff;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .4s var(--ease), transform .5s var(--ease), visibility .4s;
  z-index: 4;
  overflow: hidden;
}
.lead-card:hover .lead-reveal { opacity: 1; visibility: visible; transform: none; }
.lead-reveal-inner {
  max-height: 100%;
  overflow-y: auto;
  font-size: .85rem;
  line-height: 1.55;
  text-align: justify;
  -webkit-hyphens: auto; hyphens: auto;
  color: rgba(255, 255, 255, .9);
}
.lead-reveal-inner p { margin: 0; }
.lead-reveal-inner p + p { margin-top: .7em; }
.lead-hint {
  position: absolute;
  left: 50%; bottom: 14px;
  transform: translateX(-50%);
  z-index: 3;
  background: rgba(13, 20, 64, .82);
  color: var(--gold-light);
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 15px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.lead-card:hover .lead-hint { opacity: 0; }

/* En pantallas táctiles (sin hover) mostramos la reseña en el flujo, debajo de la ficha */
@media (hover: none) {
  .lead-reveal {
    position: static;
    aspect-ratio: auto;
    width: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: none;
    color: var(--ink-soft);
    padding: 0 26px 24px;
    display: block;
  }
  .lead-reveal-inner { color: var(--ink-soft); max-height: none; }
  .lead-hint { display: none; }
}
.member-links a {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--navy);
  font-size: .8rem; font-weight: 700;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.member-links a:hover { background: var(--gold-grad); color: var(--navy-deep); border-color: transparent; transform: translateY(-2px); }
/* Símbolo del correo un poco más grande que el resto */
.member-links a[aria-label="Escribir"] { font-size: 1.08rem; }

/* Asociados */
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.member-card { flex: 1 1 240px; max-width: 270px; text-align: center; }
.member-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.member-photo .member-links {
  position: absolute; left: 0; right: 0; bottom: 12px;
  justify-content: center; margin: 0; z-index: 2;
  opacity: 0; transform: translateY(10px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.member-photo .member-links a { background: rgba(255, 255, 255, .92); border-color: transparent; }
.member-photo .member-links a:hover { background: var(--gold-grad); }
.member-card:hover .member-photo .member-links { opacity: 1; transform: none; }
.member-card .member-name { font-size: 1.2rem; margin-top: 2px; }
.member-card .member-area { margin-top: 2px; }

/* ============================================================
   COMPROMISO (dark)
   ============================================================ */
.compromiso {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-2) 100%);
  position: relative;
  overflow: hidden;
}
.compromiso::before {
  content: '';
  position: absolute; top: -120px; left: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(201, 151, 59, .16), transparent 70%);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
  z-index: 1;
}
.why-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform .4s var(--ease), background .4s, border-color .4s;
}
.why-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, .07);
  border-color: rgba(201, 151, 59, .4);
}
/* Imagen de fondo alusiva (ilustración) en cada cuadro */
.why-bg {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 58%;
  max-width: 148px;
  color: var(--gold-light);
  opacity: .13;
  pointer-events: none;
  transition: opacity .45s var(--ease), transform .6s var(--ease);
}
.why-bg svg { width: 100%; height: auto; display: block; }
.why-card:hover .why-bg { opacity: .22; transform: scale(1.06) rotate(-2deg); }
.why-card h3, .why-card p { position: relative; z-index: 1; }
.why-card h3 { color: var(--white); font-size: 1.18rem; font-weight: 600; margin-bottom: 8px; }
.why-card p { color: rgba(255, 255, 255, .68); font-size: .93rem; }

/* ============================================================
   PROCESO
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px; left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--line), var(--gold), var(--line));
  z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; }
.step-badge {
  width: 58px; height: 58px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold-grad);
  color: var(--navy-deep);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(201, 151, 59, .3);
  border: 4px solid var(--cream);
}
.step h3 { font-size: 1.15rem; color: var(--navy); font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .92rem; padding: 0 6px; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto { background: var(--cream-2); }
.contacto-inner { align-items: stretch; }

.contact-list { list-style: none; margin-top: 30px; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-ic {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--gold-dark);
  box-shadow: var(--shadow-sm);
}
.contact-ic svg { width: 22px; height: 22px; }
.contact-list strong { display: block; color: var(--navy); font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 2px; }
.contact-list a, .contact-list span { color: var(--ink-soft); font-size: 1.02rem; }
.contact-list a:hover { color: var(--gold-dark); }
.contact-list .hours-emph { display: block; margin-top: 4px; color: var(--gold-dark); font-weight: 600; font-size: .95rem; }
.contact-list .hours-emph::before { content: "•"; margin-right: 7px; color: var(--gold); }

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 42px);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.form-card h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--navy);
}
.form-note { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
  letter-spacing: .02em;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: .96rem;
  color: var(--ink);
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  transition: border-color .25s, box-shadow .25s, background .25s;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(201, 151, 59, .12);
}
.field input.invalid, .field textarea.invalid { border-color: #d14343; box-shadow: 0 0 0 4px rgba(209, 67, 67, .1); }
.form-fineprint { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 12px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: rgba(255, 255, 255, .75);
  padding-top: clamp(48px, 6vw, 72px);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand img { height: 60px; margin-bottom: 18px; }
.footer-brand p { max-width: 300px; font-size: .95rem; font-weight: 300; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-nav h4 {
  color: var(--gold-light);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-nav a { display: block; color: rgba(255, 255, 255, .7); font-size: .93rem; padding: 5px 0; transition: color .25s, padding-left .25s; }
.footer-nav a:hover { color: var(--gold-light); padding-left: 5px; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 24px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: .82rem; color: rgba(255, 255, 255, .55); }
.footer-legal { font-style: italic; }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .45);
  z-index: 90;
  transition: transform .3s var(--ease);
  animation: waPulse 2.6s infinite;
}
.whatsapp-float svg { width: 34px; height: 34px; }
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes waPulse {
  0% { box-shadow: 0 10px 30px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, .5); }
  70% { box-shadow: 0 10px 30px rgba(37, 211, 102, .45), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 10px 30px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .steps::before { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .stat:nth-child(2)::after { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 44px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .team-leads { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(82vw, 340px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    box-shadow: -20px 0 60px rgba(0, 0, 0, .4);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.08rem; }
  .nav-sep { display: none; }
  .nav-toggle { display: flex; z-index: 101; }
  .nav-cta { margin-top: 8px; }
}

@media (max-width: 720px) {
  .hero { min-height: auto; padding: 130px 0 80px; }
  .hero-actions .btn { flex: 1; }
}

@media (max-width: 520px) {
  .why-grid, .steps, .stats-grid { grid-template-columns: 1fr; }
  .area-card { flex-basis: 100%; max-width: 420px; }
  .stat::after { display: none !important; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .team-leads { grid-template-columns: 1fr; }
  .lead-photo { aspect-ratio: 16 / 10; }
  .team-grid { gap: 16px; }
  .member-card { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
