/* =========================================================
   Sistema de diseño — Abogados Medellín
   Trust-first · sector legal · mobile-first
   ========================================================= */

:root {
  /* Paleta */
  --navy-900: #0a1f3a;
  --navy-800: #0e2a47;
  --navy-700: #14365b;
  --navy-600: #1d4571;
  --gold-500: #b5853a;
  --gold-400: #c9974a;
  --gold-100: #f3ead6;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-50: #f0fdf4;
  --red-600: #dc2626;
  --whatsapp: #25d366;

  /* Tipografía */
  --font-serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, sans-serif;

  /* Espaciado */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Layout */
  --container: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Transiciones */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--navy-700);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ---------- Tipografía ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  color: var(--navy-900);
  margin: 0 0 var(--space-4);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: var(--space-3);
}

.lead {
  font-size: 1.125rem;
  color: var(--slate-700);
  max-width: 60ch;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

section {
  padding: var(--space-20) 0;
}

@media (max-width: 768px) {
  section {
    padding: var(--space-12) 0;
  }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: all var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
}

.btn-primary {
  background: var(--gold-500);
  color: var(--white);
  border-color: var(--gold-500);
}

.btn-primary:hover {
  background: var(--gold-400);
  border-color: var(--gold-400);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--navy-800);
  color: var(--white);
  border-color: var(--navy-800);
}

.btn-secondary:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-800);
}

.btn-ghost:hover {
  background: var(--navy-800);
  color: var(--white);
  text-decoration: none;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  border-color: var(--whatsapp);
}

.btn-whatsapp:hover {
  background: #1faa52;
  border-color: #1faa52;
  text-decoration: none;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1.05rem;
}

/* ---------- Top Bar ---------- */
.topbar {
  background: var(--navy-900);
  color: var(--slate-300);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.topbar-info {
  display: flex;
  gap: var(--space-5);
  align-items: center;
  flex-wrap: wrap;
}

.topbar-info a {
  color: var(--slate-300);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--t-fast);
}

.topbar-info a:hover {
  color: var(--gold-400);
  text-decoration: none;
}

.topbar-info svg {
  width: 14px;
  height: 14px;
}

.topbar-trust {
  color: var(--gold-400);
  font-weight: 500;
}

@media (max-width: 640px) {
  .topbar-trust {
    display: none;
  }
}

/* ---------- Header (sticky) ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow var(--t-base);
}

.header.scrolled {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
  gap: var(--space-6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
}

.brand-logo--footer {
  width: 72px;
  height: 72px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  position: relative;
}

.nav-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links>li {
  position: relative;
}

.nav-links a {
  color: var(--slate-700);
  font-weight: 500;
  font-size: 0.92rem;
}

.nav-links a:hover {
  color: var(--navy-800);
  text-decoration: none;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-chevron {
  transition: transform var(--t-fast);
}

.nav-dropdown.open .nav-chevron,
.nav-dropdown:hover .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 300px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  padding: var(--space-2) 0;
  margin: 0;
  list-style: none;
  z-index: 110;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.86rem;
  line-height: 1.35;
  white-space: normal;
}

.nav-dropdown-menu a:hover {
  background: var(--slate-50);
  color: var(--navy-800);
}

@media (min-width: 901px) {

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--slate-50) 0%, var(--white) 100%);
  padding: var(--space-16) 0 var(--space-20);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px,
      var(--slate-200) 1px,
      transparent 0);
  background-size: 28px 28px;
  opacity: 0.4;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (max-width: 960px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
}

.hero h1 strong {
  color: var(--gold-500);
  font-weight: 700;
}

.hero-title-accent {
  text-transform: uppercase;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-6) 0;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  color: var(--slate-700);
  font-weight: 500;
}

.trust-pill svg {
  width: 14px;
  height: 14px;
  color: var(--green-600);
}

.hero-cta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-6);
}

/* ---------- Form (hero) ---------- */
.lead-form {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 40px -8px rgba(15, 23, 42, 0.12);
}

.lead-form-header {
  text-align: center;
  margin-bottom: var(--space-5);
}

.lead-form-header h3 {
  margin-bottom: var(--space-2);
  font-size: 1.35rem;
}

.lead-form-header p {
  margin: 0;
  color: var(--slate-500);
  font-size: 0.92rem;
}

.field {
  margin-bottom: var(--space-4);
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-700);
  margin-bottom: 6px;
}

.field label .req {
  color: var(--red-600);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  color: var(--slate-900);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(20, 54, 91, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 80px;
}

.field-error {
  display: block;
  color: var(--red-600);
  font-size: 0.8rem;
  margin-top: 4px;
  min-height: 1em;
}

.form-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.78rem;
  color: var(--slate-500);
  margin-top: var(--space-3);
  line-height: 1.4;
}

.form-meta svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--green-600);
}

.form-success {
  background: var(--green-50);
  border: 1px solid var(--green-500);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-align: center;
  display: none;
}

.form-success.show {
  display: block;
}

.form-success h4 {
  color: var(--green-600);
  margin-bottom: var(--space-2);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
}

.form-success p {
  margin: 0;
  color: var(--slate-700);
  font-size: 0.92rem;
}

/* ---------- Credentials bar ---------- */
.credentials {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  padding: var(--space-8) 0;
}

.credentials-label {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: var(--space-5);
  font-weight: 600;
}

.credentials-carousel {
  max-width: 1100px;
  margin: 0 auto;
}

.credentials-marquee {
  display: block;
}

.credentials-row.credentials-row--clone {
  display: none;
}

.credentials-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-5) var(--space-6);
  align-items: center;
  justify-items: center;
}

.credential-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  width: 100%;
  min-height: 80px;
  padding: var(--space-3) var(--space-4);
  opacity: 1;
  filter: none;
  transition: opacity var(--t-fast), filter var(--t-fast);
}

.credential-logo img {
  display: block;
  max-height: 64px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (hover: hover) and (pointer: fine) {
  .credential-logo {
    opacity: 0.8;
    filter: grayscale(100%);
  }

  .credential-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
  }
}

@media (max-width: 768px) {
  .credentials {
    padding: var(--space-6) 0 !important;
  }

  .credentials .container {
    padding-left: 0;
    padding-right: 0;
  }

  .credentials-label {
    padding: 0 var(--space-4);
    margin-bottom: var(--space-4);
  }

  .credentials-carousel {
    overflow: hidden;
    max-width: none;
    -webkit-mask-image: linear-gradient(90deg,
        transparent,
        #000 8%,
        #000 92%,
        transparent);
    mask-image: linear-gradient(90deg,
        transparent,
        #000 8%,
        #000 92%,
        transparent);
  }

  .credentials-marquee {
    display: flex;
    width: max-content;
    animation: credentials-marquee 45s linear infinite;
  }

  .credentials-row.credentials-row--clone {
    display: flex;
  }

  .credentials-marquee:active {
    animation-play-state: paused;
  }

  .credentials-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--space-5);
    width: max-content;
    padding: 0 var(--space-3);
  }

  .credentials-row+.credentials-row {
    padding-left: 0;
  }

  .credential-logo {
    flex: 0 0 auto;
    width: 128px;
    min-height: 72px;
    padding: var(--space-2) var(--space-3);
  }

  .credential-logo img {
    max-height: 56px;
  }
}

@keyframes credentials-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .credentials-carousel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .credentials-marquee {
    animation: none;
    width: max-content;
  }

  .credential-logo {
    scroll-snap-align: center;
  }
}

/* ---------- Services ---------- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-12);
}

.section-head .eyebrow {
  display: block;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: all var(--t-base);
  position: relative;
  scroll-margin-top: 100px;
}

.service-card:hover {
  border-color: var(--gold-500);
  transform: translateY(-2px);
}

.service-card .icon {
  width: 44px;
  height: 44px;
  background: var(--gold-100);
  color: var(--gold-500);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-4);
}

.service-card .icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-2);
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--navy-900);
}

.service-card p {
  margin: 0 0 var(--space-3);
  color: var(--slate-700);
  font-size: 0.94rem;
}

.service-card a {
  color: var(--navy-700);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Process ---------- */
.process {
  background: var(--navy-900);
  color: var(--slate-100);
  position: relative;
  overflow: hidden;
}

.process::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}

.process h2,
.process .eyebrow {
  color: var(--white);
}

.process .eyebrow {
  color: var(--gold-400);
}

.process .section-head p {
  color: var(--slate-300);
}

.process .section-head h2 {
  color: var(--white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
  position: relative;
  z-index: 1;
}

.step {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.step-num {
  font-family: var(--font-serif);
  color: var(--gold-400);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-3);
}

.step h3 {
  color: var(--white);
  font-size: 1.1rem;
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.step p {
  color: var(--slate-300);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Stats ---------- */
.stats {
  background: var(--slate-50);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-5);
  text-align: center;
}

.stat {
  padding: var(--space-5);
}

.stat-value {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-value .gold {
  color: var(--gold-500);
}

.stat-label {
  font-size: 0.92rem;
  color: var(--slate-700);
  font-weight: 500;
}

.disclaimer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--slate-500);
  margin-top: var(--space-8);
  font-style: italic;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Lawyer profile ---------- */
.profile {
  background: var(--white);
}

.profile-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (max-width: 900px) {
  .profile-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

.profile-photo {
  aspect-ratio: 4 / 5;
  background: var(--slate-100);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.profile-photo svg,
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-photo {
  width: 100%;
  max-width: 220px;
  margin: 0 auto var(--space-4);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--navy-900);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.team-photo--tuned img {
  object-fit: cover;
  object-position: center 14%;
  transform: scale(0.95);
  transform-origin: center 90%;
}

.profile-content h3 {
  font-size: 0.85rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: var(--space-2);
}

.profile-content h2 {
  margin-bottom: var(--space-3);
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin: var(--space-5) 0;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.profile-meta-item {
  flex: 1;
  min-width: 140px;
}

.profile-meta-item strong {
  display: block;
  font-family: var(--font-serif);
  color: var(--navy-900);
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 4px;
}

.profile-meta-item span {
  font-size: 0.82rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-content ul.checklist {
  margin-top: var(--space-4);
}

.profile-content ul.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: var(--space-2);
  color: var(--slate-700);
}

.profile-content ul.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23b5853a'><path fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' clip-rule='evenodd'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--slate-50);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-5);
}

.testimonial {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--gold-500);
  margin-bottom: var(--space-3);
}

.stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.testimonial blockquote {
  margin: 0 0 var(--space-5);
  font-size: 0.96rem;
  color: var(--slate-700);
  line-height: 1.6;
  flex: 1;
}

.testimonial blockquote::before {
  content: "“";
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold-500);
  line-height: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--slate-200);
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-500);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.author-info strong {
  display: block;
  font-size: 0.92rem;
  color: var(--navy-900);
  font-weight: 600;
}

.author-info span {
  font-size: 0.8rem;
  color: var(--slate-500);
}

.reviews-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  margin-top: var(--space-10);
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.reviews-summary .google-g {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.reviews-summary .summary-info strong {
  display: block;
  font-size: 1.5rem;
  color: var(--navy-900);
  font-family: var(--font-serif);
}

.reviews-summary .summary-info span {
  font-size: 0.85rem;
  color: var(--slate-500);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--slate-200);
}

.faq-item:first-child {
  border-top: 1px solid var(--slate-200);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: 0;
  padding: var(--space-5) 0;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  cursor: pointer;
  font-family: var(--font-sans);
}

.faq-question:hover {
  color: var(--gold-500);
}

.faq-question .icon-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform var(--t-base);
  color: var(--gold-500);
}

.faq-item.open .faq-question .icon-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-base);
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 0 var(--space-5);
  color: var(--slate-700);
  line-height: 1.65;
}

/* ---------- CTA Final + Mapa ---------- */
.cta-final {
  background: var(--navy-900);
  color: var(--white);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (max-width: 900px) {
  .cta-grid {
    grid-template-columns: 1fr;
  }
}

.cta-final h2 {
  color: var(--white);
}

.cta-final .lead {
  color: var(--slate-300);
}

.cta-options {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.cta-option {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  text-decoration: none;
  color: var(--white);
  transition: all var(--t-fast);
}

.cta-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold-500);
  text-decoration: none;
}

.cta-option .icon {
  width: 44px;
  height: 44px;
  background: var(--gold-500);
  color: var(--navy-900);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cta-option .icon svg {
  width: 22px;
  height: 22px;
}

.cta-option strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}

.cta-option span {
  font-size: 0.86rem;
  color: var(--slate-300);
}

.map-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.map-card h3 {
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: var(--space-3);
}

.map-info {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  color: var(--slate-300);
  font-size: 0.92rem;
}

.map-info-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.map-info-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--gold-400);
  margin-top: 2px;
}

.map-embed {
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  color: var(--slate-300);
  font-size: 0.85rem;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Footer ---------- */
.footer {
  background: #050f1f;
  color: var(--slate-300);
  padding: var(--space-16) 0 var(--space-8);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  margin-bottom: var(--space-4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer ul li {
  margin-bottom: var(--space-2);
}

.footer ul li a,
.footer p,
.footer ul li {
  color: var(--slate-300);
}

.footer a:hover {
  color: var(--gold-400);
  text-decoration: none;
}

.footer-brand p {
  color: var(--slate-500);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: var(--space-3) 0;
}

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  color: var(--slate-500);
  font-size: 0.82rem;
}

.footer-legal {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.footer-legal a {
  color: var(--slate-500);
}

/* ---------- Floating WhatsApp ---------- */
.fab-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  z-index: 90;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  transition: transform var(--t-fast);
  animation: pulse 2.4s infinite;
}

.fab-whatsapp:hover {
  transform: scale(1.06);
}

.fab-whatsapp svg {
  width: 30px;
  height: 30px;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4),
      0 0 0 0 rgba(37, 211, 102, 0.6);
  }

  50% {
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4),
      0 0 0 14px rgba(37, 211, 102, 0);
  }
}

/* ---------- Exit-intent modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 31, 58, 0.7);
  display: none;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  backdrop-filter: blur(4px);
}

.modal-backdrop.show {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: var(--space-8);
  position: relative;
}

.modal-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--slate-500);
  cursor: pointer;
}

.modal-close:hover {
  background: var(--slate-100);
  color: var(--navy-900);
}

.modal h3 {
  text-align: center;
  margin-bottom: var(--space-2);
}

.modal p {
  text-align: center;
  color: var(--slate-500);
  margin: 0 0 var(--space-5);
}

/* ---------- Utilidades ---------- */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.icon-arrow {
  width: 14px;
  height: 14px;
  transition: transform var(--t-fast);
}

a:hover .icon-arrow,
button:hover .icon-arrow {
  transform: translateX(3px);
}

/* ---------- Animaciones de scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Mobile menu trigger ---------- */
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: var(--space-5);
    gap: var(--space-4);
    border-bottom: 1px solid var(--slate-200);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    border: 0;
    padding: var(--space-2) 0 var(--space-2) var(--space-4);
    margin-top: var(--space-2);
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }
}

/* Print-friendly */
@media print {

  .topbar,
  .header,
  .fab-whatsapp,
  .modal-backdrop,
  .lead-form {
    display: none !important;
  }
}