
/* Fuentes locales: no dependen de Google Fonts ni de conexión externa. */
@font-face { font-family: "Playfair Display"; src: url("assets/fonts/PlayfairDisplay-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("assets/fonts/PlayfairDisplay-Bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("assets/fonts/PlayfairDisplay-Italic.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
/* =====================================================================
   Sofía Quinga Potosí · Abogada
   Hoja de estilos principal
   1. Variables y base
   2. Tipografía fluida
   3. Header / navegación
   4. Hero
   5. Servicios
   6. Banner oscuro (¿Por qué elegirnos?)
   7. Testimonios
   8. FAQ
   9. Contacto y formulario
   10. Footer y páginas legales
   11. Carruseles móviles (snap scroll)
   12. Responsive y accesibilidad
   ===================================================================== */

/* ============================ 1. VARIABLES ========================== */
:root {
  --site-header-height: 92px;
  --navy: #0b2b48;
  --navy-deep: #071d32;
  --navy-soft: #16406a;
  --brand: #6d9bc3;
  --brand-deep: #3f6f9e;
  --gold: #c59b27;
  --gold-light: #d4af37;
  --sky: #8da9c4;
  --sky-pale: #dce7f2;
  --bg-light: #f7f9fc;
  --text-dark: #1e293b;
  --text-muted: rgba(30, 41, 59, 0.72);
  --line: rgba(0, 0, 0, 0.05);

  --radius-card: 1.25rem;
  --shadow-soft: 0 10px 24px -12px rgba(11, 43, 72, 0.18);
  --shadow-hover: 0 20px 30px -10px rgba(11, 43, 72, 0.12);
  --shadow-float: 0 12px 30px -12px rgba(11, 43, 72, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: clip;
  padding-top: 0;
}

.about-page {
  overflow-x: clip;
}

.contact-page {
  overflow-x: clip;
}

::selection {
  background-color: var(--gold);
  color: #fff;
}

/* Scrollbar discreta de marca */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-soft) 100%);
  border-radius: 9999px;
}

/* Tipografía de marca: una sola familia visual en todo el sitio. */
body, body *, button, input, textarea, select, option {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
}

/* Font Awesome debe conservar su propia familia tipográfica para que los iconos no se conviertan en cuadros. */
.fa-solid, .fas {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}
.fa-regular, .far {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 400 !important;
}
.fa-brands, .fab {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

/* ========================= 2. TIPOGRAFÍA FLUIDA ===================== */
body,
button,
input,
textarea,
select {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

h1, h2, h3, h4, h5, h6, .font-serif, .font-signature {
  letter-spacing: -0.01em;
}

/* Prefijo body: gana a la normalizaci\u00f3n de Tailwind, que fuerza font-size: inherit */
body h1 {
  font-size: clamp(2rem, 1.35rem + 3.1vw, 3.5rem);
  line-height: 1.1;
}

body h2 {
  font-size: clamp(1.65rem, 1.2rem + 2.1vw, 2.75rem);
  line-height: 1.18;
}

body h3 {
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.3rem);
  line-height: 1.35;
}

.lead-text {
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.125rem);
  line-height: 1.75;
}

.eyebrow {
  font-size: clamp(0.625rem, 0.6rem + 0.15vw, 0.72rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Firma manuscrita de la abogada */
.font-signature {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  line-height: 1.2;
  color: var(--navy);
}

.text-gradient-gold {
  background: linear-gradient(100deg, var(--navy-soft) 0%, var(--gold-light) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.divider-gold {
  height: 3px;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--sky) 50%, var(--gold) 100%);
}

/* Encabezado con líneas laterales: —— TÍTULO —— */
.section-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem);
}

.section-rule::before,
.section-rule::after {
  content: "";
  height: 1px;
  width: clamp(1.5rem, 6vw, 5rem);
  background: linear-gradient(90deg, transparent 0%, var(--gold) 100%);
}

.section-rule::after {
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
}

body h2.section-rule {
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem);
  line-height: normal;
}

.section-rule-left {
  justify-content: flex-start;
}

.section-rule-left::before {
  display: none;
}

/* ====================== 3. HEADER / NAVEGACIÓN ====================== */
.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 18px -8px rgba(11, 43, 72, 0.25);
  transition: padding 0.3s var(--ease), background-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 24px -14px rgba(11, 43, 72, 0.45);
}

.site-logo {
  height: 68px;
  width: auto;
  transition: height 0.3s var(--ease);
}

.nav-link {
  position: relative;
  font-size: 0.875rem !important;
  line-height: 1.25rem;
  font-weight: 500;
  color: rgba(11, 43, 72, 0.78);
  transition: color 0.25s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--gold) 100%);
  transition: width 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  font-weight: 600;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.nav-dropdown-icon,
.mobile-dropdown-icon {
  font-size: 0.65rem;
  transition: transform 0.25s var(--ease);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 50%;
  z-index: 80;
  min-width: 15rem;
  width: max-content;
  max-width: 19rem;
  padding: 0.55rem;
  border: 1px solid rgba(11, 43, 72, 0.08);
  border-radius: 1rem;
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 34px -20px rgba(7, 29, 50, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -0.35rem);
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-dropdown:hover .nav-dropdown-icon,
.nav-dropdown:focus-within .nav-dropdown-icon,
.nav-dropdown.is-open .nav-dropdown-icon,
.mobile-dropdown.is-open .mobile-dropdown-icon {
  transform: rotate(180deg);
}

.nav-dropdown-menu a {
  display: block;
  border-radius: 0.75rem;
  padding: 0.72rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(11, 43, 72, 0.78);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background-color: var(--sky-pale);
  color: var(--navy);
  padding-left: 1.1rem;
  outline: none;
}

.btn-gold-ring:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Menú lateral móvil */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background-color: rgba(7, 29, 50, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.menu-backdrop.is-open {
  opacity: 1;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: min(82vw, 340px);
  padding: 1.25rem 1.5rem 2rem;
  background-color: #fff;
  box-shadow: -20px 0 45px -25px rgba(7, 29, 50, 0.75);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  overflow-y: auto;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.mobile-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: var(--bg-light);
  color: var(--navy);
  font-size: 1.1rem;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.mobile-drawer-close:hover {
  background-color: var(--navy);
  color: var(--gold-light);
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
}

.mobile-drawer-links .mobile-link {
  display: block;
  padding: 0.95rem 0.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.mobile-drawer-links .mobile-link:hover {
  color: var(--gold);
  padding-left: 0.6rem;
}

.mobile-dropdown-toggle {
  width: 100%;
  justify-content: space-between;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  transition: max-height 0.3s var(--ease);
}

.mobile-dropdown.is-open .mobile-submenu {
  max-height: 30rem;
}

.mobile-submenu .mobile-link {
  padding: 0.72rem 0.25rem 0.72rem 1rem;
  border-bottom: 0;
  font-size: 0.82rem;
  color: rgba(11, 43, 72, 0.72);
}

.mobile-submenu .mobile-link:hover {
  padding-left: 1.25rem;
}

.mobile-drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 0.9rem 1.25rem;
  border-radius: 9999px;
  background-color: var(--navy);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 16px 30px -18px rgba(11, 43, 72, 0.9);
}

.mobile-drawer-cta:hover {
  background-color: var(--brand-deep);
}

.mobile-drawer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 1.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.mobile-drawer-contact a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.mobile-drawer-contact i {
  color: var(--gold);
}

/* Bloquea el scroll del fondo con el menú abierto */
body.menu-open {
  overflow: hidden;
}

/* ============================== 4. HERO ============================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(460px, 68vh, 620px);
  background-color: var(--navy);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  z-index: -2;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 32% 12%;
}

/* Velo azul de marca: sólido a la izquierda y transparente sobre el rostro */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--navy) 0%, rgba(11, 43, 72, 0.96) 26%, rgba(22, 64, 106, 0.82) 42%, rgba(63, 111, 158, 0.4) 56%, rgba(109, 155, 195, 0.12) 68%, transparent 80%),
    linear-gradient(180deg, rgba(7, 29, 50, 0.35) 0%, transparent 28%, rgba(7, 29, 50, 0.4) 100%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: clamp(0.62rem, 0.58rem + 0.15vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero-title {
  margin-top: 1.1rem;
  color: #fff;
  text-shadow: 0 10px 34px rgba(7, 29, 50, 0.45);
}

.hero-title-accent {
  color: var(--gold-light);
}

.hero-desc {
  margin-top: 1.25rem;
  max-width: 30rem;
  font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 2rem;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: clamp(0.7rem, 0.66rem + 0.15vw, 0.8rem);
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.92);
}

.hero-badge i {
  font-size: 1.35rem;
  color: var(--brand);
}

.hero-badge + .hero-badge {
  padding-left: 1.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.95rem 2rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-color: var(--navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 18px 34px -16px rgba(0, 0, 0, 0.85);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.hero-cta:hover {
  background-color: var(--brand-deep);
  transform: translateY(-2px);
}

.hero-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-underline-offset: 4px;
}

.hero-link:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

/* Firma sobre la fotografía */
.hero-signature {
  position: absolute;
  right: clamp(1rem, 3vw, 3.5rem);
  bottom: clamp(1rem, 4vh, 2.5rem);
  max-width: none;
  padding: 0.9rem 1.6rem;
  text-align: center;
  color: #fff;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(7, 29, 50, 0.35) 0%, rgba(7, 29, 50, 0.55) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
}

.hero-signature .font-signature {
  color: #fff;
  font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.95rem);
  line-height: 1.15;
  white-space: nowrap;
  text-shadow: 0 4px 18px rgba(7, 29, 50, 0.75);
}

.hero-signature-role {
  margin-top: 0.5rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero-signature-note {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(212, 175, 55, 0.45);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.7;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 767px) {
  /* En móvil el rostro queda arriba y el texto debajo sobre el azul de marca */
  .hero {
    --hero-media-h: clamp(240px, 46vw, 320px);
    display: block;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  }

  .hero-media {
    width: 100%;
    height: var(--hero-media-h);
    bottom: auto;
    z-index: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-media img {
    object-position: 50% 22%;
  }

  .hero-overlay {
    inset: 0 0 auto 0;
    height: var(--hero-media-h);
    z-index: 1;
    background: linear-gradient(180deg, rgba(7, 29, 50, 0.12) 0%, rgba(11, 43, 72, 0.2) 50%, rgba(11, 43, 72, 0.82) 88%, var(--navy) 100%);
  }

  .hero > .relative {
    position: relative;
    z-index: 2;
    margin-top: var(--hero-media-h);
  }

  .hero-signature {
    display: none;
  }
}

.float-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 1rem;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-float);
  animation: float-y 5s ease-in-out infinite;
}

.float-badge:nth-of-type(2) { animation-delay: 1.2s; }
.float-badge:nth-of-type(3) { animation-delay: 2.2s; }

.float-badge.no-float {
  animation: none;
}

.signature-badge {
  animation: none;
  padding: 0.75rem 1.25rem;
}

.float-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Barra de cifras */
.stats-bar {
  position: relative;
  background:
    linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 45%, var(--brand-deep) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 60px);
  pointer-events: none;
}

.stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 80rem;
  margin-inline: auto;
  padding: 2.25rem 1.25rem;
}

.stat-item {
  padding-inline: 0.75rem;
  text-align: center;
}

.stat-item + .stat-item {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.stat-number {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.stat-label {
  margin-top: 0.55rem;
  font-size: clamp(0.68rem, 0.62rem + 0.2vw, 0.85rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 767px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 0;
    padding: 1.75rem 1rem;
  }

  .stat-item:nth-child(odd) {
    border-left: 0;
  }

  .stat-item:last-child {
    grid-column: 1 / -1;
    border-left: 0;
  }
}

/* ============================ 5. SERVICIOS ========================== */
.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background-color: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(140deg, var(--navy-soft) 0%, var(--navy-deep) 100%);
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7, 29, 50, 0.55) 100%);
}

.card-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

/* Visible mientras no exista la fotografía del servicio */
.card-media-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: rgba(212, 175, 55, 0.8);
}

.service-card:hover .card-media img {
  transform: scale(1.06);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.5rem 1.4rem 1.6rem;
}

.service-tag {
  position: absolute;
  right: 0.9rem;
  top: 0.9rem;
  z-index: 2;
  border-radius: 9999px;
  background-color: rgba(197, 155, 39, 0.95);
  padding: 0.3rem 0.75rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(197, 155, 39, 0.35);
}

.service-card p {
  flex-grow: 1;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #eef4fa 0%, var(--sky-pale) 100%);
  color: var(--navy-soft);
  font-size: 1.35rem;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--navy-soft) 0%, var(--navy) 100%);
  color: var(--gold-light);
  transform: scale(1.06) rotate(-3deg);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-soft);
  transition: color 0.3s var(--ease);
}

.service-link:hover {
  color: var(--gold);
}

/* Ajustes localizados para la página de Derecho Migratorio y Visas */
.migration-page .migration-service-card .card-media::after {
  display: none;
}

.migration-page .migration-service-card .card-media {
  aspect-ratio: 5 / 4;
}

.migration-page .migration-service-card .card-media img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.migration-page .migration-service-card .card-body {
  padding: 1.7rem 1.45rem 1.8rem;
}

.migration-page .migration-service-card .card-body h3 {
  font-size: clamp(1.12rem, 1rem + 0.45vw, 1.35rem);
}

.migration-page .migration-service-card .card-body p {
  font-size: 0.92rem;
  line-height: 1.65;
}

.migration-destination-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  isolation: isolate;
}

.migration-destination-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 29, 50, 0.22) 0%, rgba(7, 29, 50, 0.78) 100%);
}

.migration-destination-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.migration-destination-card:hover img {
  transform: scale(1.06);
}

.migration-destination-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 210px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-shadow: 0 10px 24px rgba(7, 29, 50, 0.95);
}

.migration-destination-content p {
  line-height: 1.15;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.9), 0 0 1px rgba(255, 255, 255, 0.45);
}

/* ====================== 6. BANNER OSCURO / AUTORIDAD ================ */
.dark-banner {
  position: relative;
  background:
    radial-gradient(circle at 20% 15%, rgba(22, 64, 106, 0.85) 0%, transparent 55%),
    linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.dark-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.portrait-ring {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 9999px;
  border: 4px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 35px 60px -25px rgba(0, 0, 0, 0.75);
}

.portrait-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Fotografía rectangular del banner de autoridad */
.banner-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 35px 60px -25px rgba(0, 0, 0, 0.8);
}

.banner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 20%;
}

.banner-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7, 29, 50, 0.85) 100%);
}

/* Placa con la firma sobre el retrato */
.portrait-plate {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.35rem 1.5rem 1.5rem;
  text-align: center;
}

.portrait-plate-rule {
  display: block;
  width: 3.5rem;
  height: 1px;
  margin: 0 auto 0.9rem;
  background: linear-gradient(90deg, transparent 0%, var(--gold-light) 50%, transparent 100%);
}

.portrait-plate .font-signature {
  color: #fff;
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem);
  line-height: 1;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.portrait-plate-role {
  margin-top: 0.7rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
}

@media (min-width: 1024px) {
  .banner-photo {
    aspect-ratio: 3 / 4;
    max-height: 520px;
  }
}

.stat-card {
  padding: 1.25rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-card);
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.stat-card:hover {
  transform: translateY(-6px);
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(197, 155, 39, 0.55);
}

.stat-card p:first-of-type {
  font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.5rem);
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background-color: rgba(197, 155, 39, 0.16);
  color: var(--gold-light);
  font-size: 1.1rem;
}

/* =========================== 7. TESTIMONIOS ========================= */
.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1.9rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background-color: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.testimonial-mark {
  position: absolute;
  top: 0.9rem;
  right: 1.25rem;
  font-size: 3.25rem;
  color: rgba(197, 155, 39, 0.14);
}

.testimonial-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--sky) 100%);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.testimonial-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================== 8. FAQ ============================== */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background-color: var(--bg-light);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.faq-item[open] {
  border-color: rgba(197, 155, 39, 0.4);
  box-shadow: var(--shadow-hover);
  background-color: #fff;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  cursor: pointer;
  list-style: none;
  font-size: clamp(0.85rem, 0.8rem + 0.2vw, 0.95rem);
  font-weight: 600;
  color: var(--navy);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--sky);
  transition: transform 0.35s var(--ease), color 0.35s var(--ease);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--gold);
}

.faq-answer {
  padding: 0 1.4rem 1.35rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ====================== 9. CONTACTO Y FORMULARIO ==================== */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #eef4fa 0%, var(--sky-pale) 100%);
  color: var(--navy-soft);
  font-size: 1.15rem;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.contact-item:hover .contact-icon {
  background: linear-gradient(135deg, var(--navy-soft) 0%, var(--navy) 100%);
  color: var(--gold-light);
}

.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
}

.form-input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(11, 43, 72, 0.15);
  border-radius: 0.85rem;
  background-color: #fff;
  font-size: 16px; /* evita el zoom automático en iOS */
  color: var(--text-dark);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

textarea.form-input {
  min-height: 120px;
}

.form-input::placeholder {
  color: rgba(30, 41, 59, 0.4);
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.18);
}

.form-input:user-invalid {
  border-color: #ef4444;
}

.form-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.form-note i {
  margin-top: 0.15rem;
  color: var(--gold);
}

.form-note strong {
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
}

.smart-form {
  position: relative;
}

.smart-progress {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(11, 43, 72, 0.58);
}

.smart-progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 9999px;
  background-color: rgba(141, 169, 196, 0.28);
}

.smart-progress-track span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--navy) 0%, var(--gold) 100%);
  transition: width 0.3s var(--ease);
}

.smart-step {
  display: none;
}

.smart-step.is-active {
  display: block;
}

.conditional-step {
  display: none;
}

.conditional-step.is-active {
  display: block;
}

.smart-options {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.smart-option {
  display: flex;
  min-height: 4rem;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(11, 43, 72, 0.12);
  border-radius: 1rem;
  background-color: #fff;
  padding: 0.95rem 1rem;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.smart-option i {
  color: var(--gold);
  font-size: 1.05rem;
}

.smart-option:hover,
.smart-option:focus-visible {
  border-color: rgba(197, 155, 39, 0.5);
  box-shadow: var(--shadow-hover);
  outline: none;
  transform: translateY(-2px);
}

.smart-option.is-selected {
  border-color: var(--gold);
  background-color: rgba(197, 155, 39, 0.08);
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.14);
}

.smart-form-error {
  display: none;
  margin-bottom: 1rem;
  border: 1px solid rgba(197, 155, 39, 0.35);
  border-radius: 1rem;
  background-color: rgba(197, 155, 39, 0.08);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

.smart-form-error.is-visible {
  display: block;
}

.smart-summary {
  display: grid;
  gap: 0.75rem;
}

.smart-summary div {
  border: 1px solid rgba(11, 43, 72, 0.08);
  border-radius: 1rem;
  background-color: #fff;
  padding: 0.9rem 1rem;
}

.smart-summary dt {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(11, 43, 72, 0.48);
}

.smart-summary dd {
  margin-top: 0.25rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--navy);
}

@media (max-width: 767px) {
  .smart-options {
    grid-template-columns: 1fr;
  }

  .smart-option {
    min-height: 3.65rem;
    padding: 0.9rem 0.95rem;
  }
}

.credential-item .credential-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 84px;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  background-color: #fff;
  box-shadow: var(--shadow-soft);
}

.credential-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.8;
  transition: filter 0.35s var(--ease), opacity 0.35s var(--ease);
}

.credential-item:hover .credential-logo img {
  filter: none;
  opacity: 1;
}

/* Botón flotante de WhatsApp */
.whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.whatsapp-fab-text {
  display: flex;
  flex-direction: column;
  padding: 0.55rem 0.9rem;
  border-radius: 0.6rem;
  background-color: #fff;
  box-shadow: 0 12px 28px -14px rgba(11, 43, 72, 0.65);
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--navy);
}

.whatsapp-fab-text strong {
  font-weight: 500;
  color: var(--text-muted);
}

.whatsapp-fab-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background-color: #25d366;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.75);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.whatsapp-fab-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: fab-pulse 2.4s ease-out infinite;
}

.whatsapp-fab:hover .whatsapp-fab-icon {
  transform: scale(1.08);
  background-color: #1ebe5b;
}

@keyframes fab-pulse {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ==================== 10. FOOTER Y PÁGINAS LEGALES ================== */
.site-footer {
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%);
}

/* El logo es azul marino: se invierte para verse claro sobre el fondo oscuro */
.logo-white {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.9rem;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s var(--ease);
}

.social-link:hover {
  background-color: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
}

.legal-content h2 {
  margin-top: 2.25rem;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  color: var(--navy);
}

.legal-content p,
.legal-content li {
  margin-top: 0.85rem;
  font-size: 0.925rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.legal-content ul {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-content a {
  color: var(--navy-soft);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--gold);
}

/* ==================== 11. CARRUSELES MÓVILES (SNAP) ================= */
.carousel-dots {
  display: none;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: rgba(11, 43, 72, 0.22);
  transition: width 0.3s var(--ease), background-color 0.3s var(--ease);
}

.carousel-dot.is-active {
  width: 26px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--gold) 100%);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  border-radius: 9999px;
  background-color: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-soft);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.carousel-arrow:hover {
  background-color: var(--navy);
  color: var(--gold-light);
}

.carousel-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.carousel-prev { left: -0.5rem; }
.carousel-next { right: -0.5rem; }

/* Carrusel activo en todos los tamaños (testimonios) */
.carousel-always.carousel-always {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-block: 0.5rem;
}

.carousel-always::-webkit-scrollbar {
  display: none;
}

.carousel-always > * {
  flex: 0 0 calc((100% - 3rem) / 3);
  scroll-snap-align: start;
}

.carousel-always ~ .carousel-dots {
  display: flex;
}

.carousel-always ~ .carousel-arrow,
.relative:has(> .carousel-always) > .carousel-arrow {
  display: inline-flex;
}

@media (max-width: 1023px) {
  :root {
    --site-header-height: 88px;
  }

  .carousel-always > * {
    flex: 0 0 calc((100% - 1.5rem) / 2);
  }
}

@media (min-width: 1280px) {
  .carousel-prev { left: -1.75rem; }
  .carousel-next { right: -1.75rem; }
}

@media (max-width: 767px) {
  /* Doble clase para prevalecer sobre las utilidades de Tailwind */
  .mobile-carousel.mobile-carousel {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
    scrollbar-width: none;
  }

  .mobile-carousel.mobile-carousel::-webkit-scrollbar {
    display: none;
  }

  .mobile-carousel > * {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }

  .carousel-dots {
    display: flex;
  }

  .carousel-arrow {
    display: inline-flex;
  }
}

/* =================== 12. RESPONSIVE Y ACCESIBILIDAD ================= */
@media (max-width: 1023px) {
  .site-header .site-logo {
    height: 52px;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: auto;
  }

  .hero-title {
    margin-top: 0.9rem;
  }

  .hero-desc {
    margin-top: 1rem;
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .hero-badges {
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.4rem;
  }

  .hero-badge {
    width: 100%;
    font-size: 0.78rem;
  }

  .hero-badge i {
    width: 1.6rem;
    text-align: center;
  }

  .hero-badge + .hero-badge {
    padding-left: 0;
    border-left: 0;
  }

  .hero-cta {
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-color: rgba(197, 155, 39, 0.6);
  }

  .float-badge {
    padding: 0.45rem 0.7rem;
    gap: 0.45rem;
    transform: scale(0.9);
  }

  .float-badge .float-icon {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 0.75rem;
  }

  .card-body {
    padding: 1.25rem 1.15rem 1.4rem;
  }

  /* Servicios como lista: miniatura a la izquierda y texto a la derecha */
  .services-grid {
    gap: 0.9rem;
  }

  .service-card {
    flex-direction: row;
    align-items: stretch;
  }

  .service-card .card-media {
    flex: 0 0 104px;
    aspect-ratio: auto;
    border-radius: var(--radius-card) 0 0 var(--radius-card);
  }

  .service-card .card-media::after {
    background: linear-gradient(90deg, transparent 60%, rgba(7, 29, 50, 0.25) 100%);
  }

  .service-card .card-body {
    padding: 0.9rem 1rem;
  }

  .service-card .card-body h3 {
    font-size: 0.88rem;
    line-height: 1.25;
  }

  .service-card .card-body p {
    margin-top: 0.3rem;
    font-size: 0.7rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .service-card .service-link {
    margin-top: 0.5rem;
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .service-tag {
    right: auto;
    left: 0.5rem;
    top: 0.5rem;
    padding: 0.2rem 0.5rem;
    font-size: 8px;
  }

  .testimonial-card {
    padding: 1.5rem 1.35rem;
  }

  /* CTA principal y envío del formulario a ancho completo */
  .cta-primary {
    width: 100%;
    justify-content: center;
  }

  .whatsapp-fab {
    right: 1rem;
    bottom: 1rem;
  }

  .migration-page .migration-service-card .card-media {
    flex: 0 0 128px;
    aspect-ratio: auto;
  }

  .migration-page .migration-service-card .card-body {
    padding: 1rem 1.05rem;
  }

  .migration-page .migration-service-card .card-body h3 {
    font-size: 0.96rem;
    line-height: 1.3;
  }

  .migration-page .migration-service-card .card-body p {
    margin-top: 0.45rem;
    font-size: 0.76rem;
    line-height: 1.48;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .migration-destination-card,
  .migration-destination-content {
    min-height: 180px;
  }

  .migration-page .migration-error-card {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .migration-page .migration-error-card h3 {
    display: block;
    font-size: 1.05rem;
    line-height: 1.35;
  }

  .migration-page .migration-error-card p {
    display: block;
    margin-top: 0.65rem;
    font-size: 0.86rem;
    line-height: 1.6;
    overflow: visible;
  }
}

@media (hover: none) {
  .service-card:hover,
  .testimonial-card:hover,
  .benefit-card:hover,
  .stat-card:hover {
    transform: none;
    box-shadow: var(--shadow-soft);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-photo,
  .float-badge,
  .whatsapp-fab::after {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}


/* Formulario inteligente integrado en Inicio */
.smart-form-shell { min-height: 420px; display: flex; flex-direction: column; }
.smart-step { min-height: 280px; align-content: start; }
.smart-step.is-active { animation: smartFade .24s ease both; }
@keyframes smartFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.smart-step-hint { margin-top: .6rem; font-size: .82rem; color: var(--text-muted); }
.smart-back { align-self: flex-start; }
.smart-submit { width: 100%; }
.smart-options.compact { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 640px) { .smart-options, .smart-options.compact { grid-template-columns: 1fr; } .smart-step { min-height: 250px; } }


/* Imágenes: siempre visibles, proporcionales y contenidas en sus tarjetas. */
img { max-width: 100%; }
.card-media img, .service-card .card-media img, .migration-service-card .card-media img, .migration-destination-card img, .banner-photo img, .hero-media img { display: block; width: 100%; }
.card-media { overflow: hidden; }
.card-media img { height: 100%; object-fit: cover; object-position: center; }
.smart-form-shell { width: 100%; max-width: 100%; }
.smart-next { width: 100%; }
@media (max-width: 640px) {
  .smart-form-shell { min-height: 0; }
  .smart-step { min-height: 0 !important; padding-bottom: .5rem; }
  .smart-option { width: 100%; font-size: .95rem; min-height: 3.5rem; }
  .smart-progress { margin-bottom: 1rem; }
  .smart-step h3 { font-size: 1.35rem !important; line-height: 1.25; }
  .smart-step-hint { font-size: .82rem; line-height: 1.55; }
  .form-input { width: 100%; min-height: 3.15rem; font-size: 1rem; }
  .smart-back, .smart-next, .smart-submit { min-height: 3rem; }
}


/* Imágenes: siempre visibles, proporcionales y contenidas en sus tarjetas. */
img { max-width: 100%; }
.card-media img, .service-card .card-media img, .migration-service-card .card-media img, .migration-destination-card img, .banner-photo img, .hero-media img { display: block; width: 100%; }
.card-media { overflow: hidden; }
.card-media img { height: 100%; object-fit: cover; object-position: center; }
.smart-form-shell { width: 100%; max-width: 100%; }
.smart-next { width: 100%; }
@media (max-width: 640px) {
  .smart-form-shell { min-height: 0; }
  .smart-step { min-height: 0 !important; padding-bottom: .5rem; }
  .smart-option { width: 100%; font-size: .95rem; min-height: 3.5rem; }
  .smart-progress { margin-bottom: 1rem; }
  .smart-step h3 { font-size: 1.35rem !important; line-height: 1.25; }
  .smart-step-hint { font-size: .82rem; line-height: 1.55; }
  .form-input { width: 100%; min-height: 3.15rem; font-size: 1rem; }
  .smart-back, .smart-next, .smart-submit { min-height: 3rem; }
}


/* Ajustes finales de producción para pantallas pequeñas */
html, body { overflow-x: hidden; }
img, svg { max-width: 100%; }
@media (max-width: 640px) {
  .site-logo { max-width: 180px; height: auto; }
  .card-media { min-height: 210px; }
  .card-media img { min-height: 210px; object-fit: cover; }
  .service-card, .migration-service-card { min-width: 0; }
  .hero-content, .hero-desc, .lead-text { max-width: 100%; }
  .mobile-submenu a { white-space: normal; }
}

/* Iconos SVG locales: independientes de fuentes externas y robustos en Netlify. */
.fa-svg {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  vertical-align: -0.125em;
  fill: currentColor;
  overflow: visible;
}
.fa-svg.fa-chevron-down,
.fa-svg.nav-dropdown-icon,
.fa-svg.mobile-dropdown-icon { width: .75em; height: .75em; }
.fa-svg.text-xl { width: 1.25em; height: 1.25em; }

/* Ajuste de escala para iconos de contenido: más visibles sin agrandar los iconos del menú. */
.hero-badge .fa-svg {
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 1.45rem;
}

.hero-eyebrow .fa-svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 1.05rem;
}

.hero-cta .fa-svg:first-child {
  width: 1.15rem;
  height: 1.15rem;
}

.service-icon .fa-svg {
  width: 1.5rem;
  height: 1.5rem;
}

.card-media-icon {
  width: 3rem;
  height: 3rem;
  max-width: none;
}

.stat-icon .fa-svg,
.contact-icon .fa-svg,
.float-icon .fa-svg {
  width: 1.25rem;
  height: 1.25rem;
}

.form-note .fa-svg {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 0.95rem;
  margin-top: 0.15rem;
}

.social-link .fa-svg {
  width: 1rem;
  height: 1rem;
}

.mobile-drawer-contact .fa-svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
}

@media (max-width: 767px) {
  .hero-badge .fa-svg {
    width: 1.55rem;
    height: 1.55rem;
    flex-basis: 1.55rem;
  }

  .service-icon .fa-svg {
    width: 1.55rem;
    height: 1.55rem;
  }

  .card-media-icon {
    width: 3.15rem;
    height: 3.15rem;
  }
}
