/* ═══════════════════════════════════════════════════════════════
   RESET & CUSTOM PROPERTIES
═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:   #273359;
  --green-mid:    #1F2847;
  --green-light:  #3A4E7C;
  --gold:         #C9A84C;
  --gold-light:   #E2C06A;
  --bg:           #F8F8FC;
  --bg-alt:       #EEEEF6;
  --text:         #1A1A2E;
  --text-muted:   #4A4A6A;
  --text-light:   #8A8AAA;
  --white:        #FFFFFF;
  --border:       #DCDCE8;
  --shadow-sm:    0 1px 4px rgba(39,51,89,.08);
  --shadow-md:    0 4px 16px rgba(39,51,89,.12);
  --shadow-lg:    0 8px 32px rgba(39,51,89,.16);
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Inter', system-ui, sans-serif;
  --transition:   0.25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY UTILITIES
═══════════════════════════════════════════════════════════════ */
.serif { font-family: var(--font-serif); }
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--green-dark);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-sans);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-dark);
  color: var(--white);
  border: 2px solid var(--green-dark);
}
.btn-primary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-gold {
  background: var(--gold);
  color: var(--green-dark);
  border: 2px solid var(--gold);
  font-weight: 700;
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200,168,75,.35);
}
.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green-dark);
}
.btn-outline:hover {
  background: var(--green-dark);
  color: var(--white);
}
.btn-full { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════════ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #273359;
  border-bottom: 1px solid rgba(201,168,76,.18);
  transition: box-shadow var(--transition);
}
#header.scrolled {
  box-shadow: 0 2px 28px rgba(15,18,50,.7);
  border-bottom-color: rgba(201,168,76,.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-img {
  height: 60px;
  width: auto;
  display: block;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-text strong {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--green-dark);
}
.logo-text small {
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  transition: color var(--transition), background var(--transition);
}
.nav a:hover {
  color: var(--gold);
  background: rgba(255,255,255,.07);
}
.header-cta { flex-shrink: 0; }
.header-cta .btn { padding: 10px 20px; font-size: 14px; }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  z-index: 1001;
}
.hamburger:hover { background: rgba(255,255,255,.1); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--bg);
  z-index: 999;
  flex-direction: column;
  padding: 24px;
  gap: 8px;
  border-top: 1px solid var(--border);
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { background: var(--bg-alt); }
.mobile-nav .btn { margin-top: 16px; }

/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */
#hero {
  padding-top: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(to bottom, rgba(39,51,89,0.75) 0%, rgba(39,51,89,0.60) 30%, rgba(20,28,60,0.66) 100%),
    url('hero-bg.jpg') center/cover no-repeat;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 60px 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.45);
  color: var(--gold);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-badge svg { flex-shrink: 0; }
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
}
.hero-title em {
  font-style: normal;
  color: var(--gold);
}
.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 36px;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}
.hero-trust-item .trust-icon { color: var(--gold); }

/* ── LEAD FORM ── */
.lead-form-wrap {
  background: var(--white);
  border-radius: 0;
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow-lg);
  padding: 36px 32px;
  position: relative;
  top: 0;
}
.form-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 6px;
}
.form-subtitle {
  font-size: 13.5px;
  color: var(--text-light);
  margin-bottom: 24px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 16px; /* 16px mínimo para evitar zoom automático en iOS */
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A5A5A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.form-group textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(26,107,74,0.1);
  background: var(--white);
}
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #D94040;
  box-shadow: 0 0 0 3px rgba(217,64,64,0.08);
}
.field-error {
  display: none;
  font-size: 12px;
  color: #D94040;
  margin-top: 4px;
}
.form-group.error .field-error { display: block; }

.form-submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--green-dark);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}
.form-submit-btn:hover:not(:disabled) {
  background: var(--green-mid);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.form-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.form-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
}
.form-note svg { flex-shrink: 0; margin-top: 1px; color: var(--green-light); }

/* form success state */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 0;
  gap: 16px;
}
.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(45,155,106,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-success h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--green-dark);
}
.form-success p { font-size: 14px; color: var(--text-muted); max-width: 280px; }

/* form error message */
.form-error-msg {
  display: none;
  background: rgba(217,64,64,0.08);
  border: 1px solid rgba(217,64,64,0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13.5px;
  color: #C03030;
  margin-top: 10px;
}

/* spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════════════════════════ */
#stats {
  background: var(--green-dark);
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.stat-item {
  text-align: center;
  padding: 24px 16px;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,0.1);
}
.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13.5px;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* ═══════════════════════════════════════════════════════════════
   AREAS
═══════════════════════════════════════════════════════════════ */
#areas {
  padding: 96px 0;
  background: var(--bg-alt);
}
.areas-carousel-outer { position: relative; }
.areas-carousel-clip { overflow: hidden; }
#areas-dots { margin-top: 20px; }
.section-header { margin-bottom: 56px; }
.areas-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  transition: transform .4s ease;
  will-change: transform;
}
.area-card {
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1.5px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.area-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26,107,74,0.25);
}
.area-icon {
  width: 52px;
  height: 52px;
  background: rgba(13,59,46,0.07);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--green-dark);
}
.area-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 8px;
}
.area-cases {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(200,168,75,0.1);
  color: #8A6820;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}
.area-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}
.area-services {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 24px;
  flex: 1;
}
.area-services li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.area-services li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-light);
  flex-shrink: 0;
  margin-top: 6px;
}
.area-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  border: 1.5px solid var(--green-dark);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green-dark);
  transition: all var(--transition);
  cursor: pointer;
  background: none;
  font-family: var(--font-sans);
  align-self: flex-start;
}
.area-btn:hover {
  background: var(--green-dark);
  color: var(--white);
}
.area-btn svg { transition: transform var(--transition); }
.area-btn:hover svg { transform: translateX(3px); }

/* ═══════════════════════════════════════════════════════════════
   PROCESO
═══════════════════════════════════════════════════════════════ */
#proceso {
  padding: 96px 0;
  background: var(--bg);
}
.proceso-header { margin-bottom: 64px; }
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--green-dark), var(--green-light));
  z-index: 0;
}
.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}
.step-number {
  width: 72px;
  height: 72px;
  background: var(--white);
  border: 3px solid var(--green-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  flex-shrink: 0;
  position: relative;
  transition: background var(--transition), color var(--transition);
}
.step-number .num {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 800;
  color: var(--green-dark);
  transition: color var(--transition);
}
.timeline-step:hover .step-number {
  background: var(--green-dark);
}
.timeline-step:hover .step-number .num {
  color: var(--white);
}
.step-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--gold);
  color: var(--green-dark);
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.step-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.step-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  background: rgba(200,168,75,0.12);
  color: #8A6820;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   ABOGADO
═══════════════════════════════════════════════════════════════ */
#abogado {
  padding: 96px 0;
  background: var(--bg-alt);
}
.abogado-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: start;
}
.abogado-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.abogado-avatar {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--white);
  outline: 2px solid var(--border);
}
.abogado-initials {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -1px;
}
.abogado-name-card {
  text-align: center;
}
.abogado-name-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 4px;
}
.abogado-name-card p {
  font-size: 13.5px;
  color: var(--text-light);
}
.abogado-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.badge-pill {
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(13,59,46,0.08);
  color: var(--green-dark);
  border: 1px solid rgba(13,59,46,0.15);
}
.abogado-content .section-label { margin-bottom: 8px; }
.abogado-content .section-title { margin-bottom: 20px; }
.abogado-bio {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 28px;
}
.abogado-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--border);
  padding-left: 24px;
  margin-bottom: 32px;
}
.abogado-timeline-item {
  padding-bottom: 20px;
  position: relative;
}
.abogado-timeline-item:last-child { padding-bottom: 0; }
.abogado-timeline-item::before {
  content: '';
  position: absolute;
  left: -31px; top: 5px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green-mid);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--green-mid);
}
.tl-period {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.tl-role {
  font-size: 15px;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 2px;
}
.tl-org {
  font-size: 13.5px;
  color: var(--text-muted);
}
.abogado-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════
   TESTIMONIOS
═══════════════════════════════════════════════════════════════ */
#testimonios {
  padding: 96px 0;
  background: var(--bg);
}
.testimonios-header { margin-bottom: 56px; }
/* Carrusel */
.carousel-wrap { position: relative; overflow: hidden; padding: 8px 0 16px; }
.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--green-dark);
  font-size: 18px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.carousel-btn:hover { background: var(--green-dark); color: var(--gold); }
.carousel-prev { left: -20px; }
.carousel-next { right: -20px; }
.carousel-dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 24px;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); border: none; cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.carousel-dot.active { background: var(--green-dark); transform: scale(1.3); }
.testimonios-grid {
  display: flex;
  transition: transform 0.45s cubic-bezier(.4,0,.2,1);
  gap: 20px;
}
.testimonio-card {
  flex: 0 0 calc(33.333% - 14px);
}
.testimonio-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonio-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.test-stars {
  display: flex;
  gap: 3px;
  color: var(--gold);
  font-size: 16px;
}
.test-text {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}
.test-result {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green-mid);
  display: flex;
  align-items: center;
  gap: 5px;
}
.test-result::before {
  content: '✓';
  width: 16px; height: 16px;
  background: rgba(45,155,106,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}
.test-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.test-avatar {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.test-info { flex: 1; }
.test-name { font-size: 14px; font-weight: 600; color: var(--text); }
.test-area { font-size: 12px; color: var(--text-light); }

/* ═══════════════════════════════════════════════════════════════
   CTA INTERMEDIO
═══════════════════════════════════════════════════════════════ */
#cta-mid {
  padding: 88px 0;
  background: linear-gradient(135deg, #0B1235 0%, #1B2654 50%, #0E1A4A 100%);
  position: relative;
  overflow: hidden;
}
#cta-mid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-mid-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-mid-inner .section-label { color: var(--gold-light); }
.cta-mid-inner h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}
.cta-mid-inner p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: 36px;
}
.cta-mid-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════════════════ */
#faq {
  padding: 96px 0;
  background: var(--bg-alt);
}
.faq-header { margin-bottom: 56px; }
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open {
  border-color: rgba(26,107,74,0.3);
  box-shadow: var(--shadow-sm);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background var(--transition);
}
.faq-question:hover { background: var(--bg); }
.faq-q-text {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--green-dark);
}
.faq-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(13,59,46,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
  color: var(--green-dark);
}
.faq-item.open .faq-icon {
  background: var(--green-dark);
  color: var(--white);
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 24px 20px;
}
.faq-answer p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACTO
═══════════════════════════════════════════════════════════════ */
#contacto {
  padding-bottom: 96px;
  background: var(--bg);
}
.contacto-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}
.contacto-info-block {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.info-item {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.info-item:first-child { padding-top: 0; }
.info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(39,51,89,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green-dark);
}
.info-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}
.info-value {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}
.info-value a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: none;
}
.info-value a:hover { text-decoration: underline; }
.contacto-btns {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.contacto-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  line-height: 0;
}
.contacto-map iframe {
  width: 100%;
  height: 440px;
  border: 0;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
#footer {
  background: #273359;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-mark { background: rgba(255,255,255,0.1); border-radius: var(--radius-sm); }
.footer-brand .logo-mark span { color: var(--gold); }
.footer-brand .logo-text strong { color: var(--white); }
.footer-brand .logo-text small { color: rgba(255,255,255,0.4); }
.footer-desc {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.7;
  max-width: 280px;
}
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  color: rgba(255,255,255,0.7);
}
.social-btn:hover {
  background: rgba(255,255,255,0.18);
  color: var(--white);
  transform: translateY(-2px);
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}
.footer-contact-item svg { flex-shrink: 0; color: var(--gold); margin-top: 1px; }
.footer-contact-item a { color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--white); }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  max-width: 600px;
  line-height: 1.5;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   WHATSAPP FLOAT
═══════════════════════════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: wa-pulse 3s ease-in-out infinite;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
  animation: none;
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.65), 0 0 0 8px rgba(37,211,102,0.08); }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .abogado-inner { grid-template-columns: 300px 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* header */
  .nav, .header-cta { display: none; }
  .hamburger { display: flex; }

  /* hero — form primero, copy después */
  #hero { min-height: auto; padding-top: 80px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 24px 0 32px;
    display: flex;
    flex-direction: column;
  }
  .hero-copy { padding-top: 20px; }
  .hero-title { font-size: 26px; margin-bottom: 12px; }
  .hero-subtitle { font-size: 15px; margin-bottom: 16px; }
  .hero-badge { font-size: 11px; margin-bottom: 14px; }
  .hero-trust { display: none; } /* oculto en mobile — está en stats */
  .lead-form-wrap { padding: 20px 16px; border-radius: 0; box-shadow: none; }
  .form-title { font-size: 18px; }
  .form-group { margin-bottom: 10px; }
  .form-group textarea { min-height: 64px; }

  /* stats — 2x2 compacto */
  .stats-bar { padding: 24px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat-item { padding: 16px 12px; }
  .stat-item::after { display: none !important; }
  .stat-number { font-size: 28px; }

  /* areas — ajustes mobile */
  #areas { padding: 36px 0; }
  .areas-grid { gap: 12px; }
  .area-card { padding: 20px; }
  .area-card ul { display: none; }
  .area-card .area-btn { display: none; }

  /* proceso — oculto en mobile */
  #proceso { display: none; }

  /* abogado — compacto */
  #abogado { padding: 36px 0; }
  .abogado-inner { grid-template-columns: 1fr; gap: 20px; }
  .abogado-photo-wrap { flex-direction: row; align-items: center; gap: 16px; }
  .abogado-avatar { width: 80px; height: 80px; flex-shrink: 0; }
  .abogado-name-card { text-align: left; }
  .abogado-badges { display: none; }
  .abogado-timeline { display: none; } /* ocultar timeline en mobile */

  /* contacto */
  .contacto-inner { grid-template-columns: 1fr; gap: 32px; }
  .contacto-map { order: -1; }
  .contacto-map iframe { height: 260px; }

  /* cta mid — oculto, reemplazado por sticky bar */
  .cta-mid { display: none; }

  /* testimonios — carrusel (se maneja en JS), ocultar sección de título */
  #testimonios { padding: 36px 0; }

  /* faq — compacto */
  #faq { padding: 36px 0; }

  /* footer — minimal */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-col:nth-child(2), .footer-col:nth-child(3) { display: none; } /* ocultar cols de nav */
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  footer { padding: 32px 0 16px; }

  /* float */
  .wa-float { bottom: 84px; right: 16px; width: 50px; height: 50px; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .hero-title { font-size: 24px; }
  .section-title { font-size: 24px; }
  .lead-form-wrap { padding: 18px 14px; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE STICKY CTA BAR
═══════════════════════════════════════════════════════════════ */
.mobile-cta-bar {
  display: none;
}

@media (max-width: 768px) {
  body { padding-bottom: 72px; }

  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 900;
    background: var(--green-dark);
    padding: 12px 16px;
    gap: 10px;
    box-shadow: 0 -4px 20px rgba(13,59,46,.25);
    align-items: center;
  }
  .mobile-cta-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-sans);
    white-space: nowrap;
  }
  .mobile-cta-form {
    background: var(--gold);
    color: var(--green-dark);
  }
  .mobile-cta-wa {
    background: #25D366;
    color: #fff;
    flex: 0 0 48px;
    border-radius: var(--radius-sm);
  }

  /* Botones con altura mínima táctil */
  .btn { min-height: 52px; }

  /* WhatsApp float oculto en mobile — la barra sticky ya cumple esa función */
  .wa-float { display: none; }
}
