/* =============================================
   ESCALA DESKTOP
   ============================================= */
@media (min-width: 769px) {
  html {
    zoom: 1.0;
  }
}

/* =============================================
   VARIABLES
   ============================================= */
:root {
  --color-primary: #1E1E6E;      /* Azul índigo del logo */
  --color-gold:    #B8860B;      /* Dorado del logo */
  --color-green:   #27ae60;      /* Botón verde */
  --color-green-h: #219150;      /* Hover botón verde */
  --color-text:    #1a1a1a;
  --color-text-light: #ffffff;
  --color-bg:      #f5f5f5;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --header-height: 80px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
}

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

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

ul {
  list-style: none;
}

/* =============================================
   CONTAINER
   ============================================= */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* =============================================
   BOTÓN BASE
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================
   BOTÓN WHATSAPP
   ============================================= */
.btn--whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
  animation: waPulse 3s ease-in-out infinite;
}

.btn__icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

/* Barrido de luz al hacer hover */
.btn--whatsapp::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: skewX(-15deg);
  transition: left 0.55s ease;
}

.btn--whatsapp:hover::before {
  left: 160%;
}

.btn--whatsapp:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
  background: #1ebe5d;
  animation: none;
}

.btn--whatsapp:hover .btn__icon {
  transform: rotate(-8deg) scale(1.15);
}

.btn--whatsapp:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35); }
  50%       { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.55); }
}

/* =============================================
   HEADER — ENTRADA
   ============================================= */
@keyframes headerSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: #1a2d4a;
  display: flex;
  align-items: center;
  padding: 0 40px;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
  animation: headerSlideDown 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Estado al hacer scroll */
.header.scrolled {
  background: #1a2d4a;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.25);
  border-bottom-color: rgba(201, 168, 76, 0.25);
}

/* =============================================
   LOGO
   ============================================= */
.header__logo {
  display: flex;
  align-items: center;
}

.header__logo img {
  height: 72px;
  width: auto;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.4s ease;
}

.logo--mobile { display: none; }
.logo--desktop { display: block; }

.header__logo:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 3px 10px rgba(30, 30, 110, 0.2));
}

/* =============================================
   NAVEGACIÓN
   ============================================= */
@keyframes navFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav__list {
  display: flex;
  gap: 4px;
}

.nav__list li {
  animation: navFadeIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(0.25s + var(--i, 0) * 0.08s);
}

.nav__link {
  position: relative;
  display: inline-block;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 6px;
  transition: color 0.35s ease, text-shadow 0.35s ease;
  z-index: 1;
}

/* Halo dorado de fondo */
.nav__link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: rgba(201, 168, 76, 0);
  box-shadow: none;
  transition: background 0.4s ease, box-shadow 0.5s ease;
  z-index: -1;
}

/* Línea dorada que nace desde el centro */
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1.5px;
  background: linear-gradient(
    90deg,
    transparent,
    #C9A84C,
    #e8c96e,
    #C9A84C,
    transparent
  );
  border-radius: 1px;
  box-shadow:
    0 0 6px rgba(201, 168, 76, 0.9),
    0 0 16px rgba(201, 168, 76, 0.5),
    0 0 30px rgba(201, 168, 76, 0.25);
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__link:hover,
.nav__link.active {
  color: #C9A84C;
  text-shadow:
    0 0 10px rgba(201, 168, 76, 0.6),
    0 0 22px rgba(201, 168, 76, 0.3);
}

.nav__link:hover::before,
.nav__link.active::before {
  background: rgba(201, 168, 76, 0.08);
  box-shadow:
    0 0 18px rgba(201, 168, 76, 0.12),
    inset 0 0 12px rgba(201, 168, 76, 0.05);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: calc(100% - 20px);
}

/* =============================================
   HAMBURGER
   ============================================= */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  background: none;
  border: 1.5px solid rgba(30, 30, 110, 0.18);
  border-radius: 9px;
  cursor: pointer;
  padding: 8px 10px;
  width: 44px;
  height: 40px;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.header__hamburger:hover {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.05);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.15);
}

/* 3 líneas de ancho escalonado — look técnico */
.header__hamburger span {
  display: block;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transform-origin: center;
  box-shadow: 0 0 6px rgba(255, 106, 0, 0.7), 0 0 14px rgba(255, 106, 0, 0.35);
  transition:
    transform  0.38s cubic-bezier(0.16, 1, 0.3, 1),
    opacity    0.25s ease,
    width      0.35s ease,
    box-shadow 0.3s ease;
}

.header__hamburger span:nth-child(1) { width: 100%; }
.header__hamburger span:nth-child(2) { width: 100%; }
.header__hamburger span:nth-child(3) { width: 100%; }

.header__hamburger:hover span {
  box-shadow: 0 0 10px rgba(255, 106, 0, 0.9), 0 0 24px rgba(255, 106, 0, 0.5);
}

/* Estado abierto → X */
.header__hamburger.open {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.06);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.18);
}

.header__hamburger.open span:nth-child(1) {
  width: 100%;
  transform: translateY(6.5px) rotate(45deg);
  box-shadow: 0 0 10px rgba(255, 106, 0, 0.95), 0 0 24px rgba(255, 106, 0, 0.5);
}
.header__hamburger.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.header__hamburger.open span:nth-child(3) {
  width: 100%;
  transform: translateY(-6.5px) rotate(-45deg);
  box-shadow: 0 0 10px rgba(255, 106, 0, 0.95), 0 0 24px rgba(255, 106, 0, 0.5);
}

/* =============================================
   HEADER — LAYOUT 3 COLUMNAS
   ============================================= */

/* Nav izquierda: Inicio, Servicios, Sobre Nosotros */
.header__nav-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contenedor derecha: nav + botón WA */
.header__right {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

/* Nav derecha: Información, Contacto */
.header__nav-right {
  display: flex;
  align-items: center;
}

/* Menú móvil — oculto en desktop */
.header__nav {
  display: none;
}

/* Botón WhatsApp outline (header) */
.btn--wa-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  background: #25D366;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s ease, transform 0.2s ease;
}

.btn--wa-header .btn__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn--wa-header:hover {
  background: #1ebe5a;
  transform: translateY(-1px);
}

/* =============================================
   SECCIONES
   ============================================= */
.section {
  padding: 100px 0 60px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Hero — imagen de fondo */
.section--hero {
  position: relative;
  padding: 0;
  min-height: 100vh;
  background-image: url('assets/portadax6.png');
  background-size: cover;
  background-position: center -10%;
  background-attachment: scroll;
  display: flex;
  align-items: center;
  color: #fff;
  text-align: left;
}

/* Overlay degradado oscuro */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 10, 40, 0.5) 0%,
    rgba(10, 10, 40, 0.35) 60%,
    rgba(10, 10, 40, 0.2) 100%
  );
  z-index: 0;
}
@media (min-width: 769px) {
  .hero__overlay {
    background: linear-gradient(
      105deg,
      rgba(10, 10, 40, 0.18) 0%,
      rgba(10, 10, 40, 0.10) 60%,
      rgba(10, 10, 40, 0.04) 100%
    );
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: var(--header-height);
  max-width: 750px;
  margin-left: 8%;   /* ← MUEVE EL TEXTO: sube = más a la izquierda, baja = más a la derecha */
  margin-right: auto;
}

/* Etiqueta pequeña */
.hero__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid rgba(184, 134, 11, 0.5);
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  animation: heroFadeUp 0.7s 0.2s cubic-bezier(0.16,1,0.3,1) both;
}

/* Título principal */
.hero__title {
  font-size: clamp(1.8rem, 4vw, 4.9rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
  animation: heroFadeUp 0.7s 0.35s cubic-bezier(0.16,1,0.3,1) both;
}

/* Subtítulo */
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  margin-bottom: 40px;
  animation: heroFadeUp 0.7s 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

/* Botones */
.hero__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 40px;
  animation: heroFadeUp 0.7s 0.65s cubic-bezier(0.16,1,0.3,1) both;
}

/* Botón primario hero (WhatsApp) */
.hero__actions .btn--whatsapp {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 14px 32px;
  border-radius: 6px;
  animation: none;
}

.hero__actions .btn--whatsapp::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.22), transparent);
  transition: left 0.4s ease;
  transform: none;
}

.hero__actions .btn--whatsapp:hover {
  transform: translateY(-2px) scale(1);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  animation: none;
}

.hero__actions .btn--whatsapp:hover::before {
  left: 100%;
}

/* Botón secundario hero (outline) */
.btn--outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #ffffff;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  padding: 14px 32px;
  border-radius: 6px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  cursor: pointer;
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

/* Animación de entrada stagger */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section--alt {
  background: #eaeaea;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
}

/* =============================================
   HERO — DESKTOP OVERRIDES
   ============================================= */
@media (min-width: 769px) {

  /* 1. Hero — flex, contenido a la izquierda */
  .section--hero {
    display: flex !important;
    align-items: center !important;
    text-align: left !important;
  }

  /* 2. Overlay — oscuro a la izquierda donde está el texto */
  .hero__overlay {
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.65) 0%,
      rgba(0, 0, 0, 0.30) 55%,
      rgba(0, 0, 0, 0.00) 100%
    ) !important;
  }

  /* 3. Texto al lado izquierdo */
  .hero__content {
    position: static !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-left: 8% !important;
    padding: 0 !important;
    max-width: 650px !important;
    width: auto !important;
  }

  /* 4. Badge — línea dorada inferior, sin pill */
  .hero__tag {
    border: none !important;
    border-bottom: 1.5px solid #C9A84C !important;
    border-radius: 0 !important;
    padding: 0 0 4px 0 !important;
    color: #C9A84C !important;
    font-size: 11px !important;
    letter-spacing: 0.2em !important;
    font-weight: 600 !important;
    background: transparent !important;
  }

  /* 5. Título blanco sobre overlay oscuro */
  .hero__title {
    color: #FFFFFF !important;
    text-align: left !important;
    font-size: 52px !important;
  }

  /* 6. Subtítulo legible */
  .hero__subtitle {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 17px !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
  }

  /* 7. Botones en fila */
  .hero__actions {
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
    justify-content: flex-start !important;
    margin-top: 36px !important;
  }

  .hero__actions .btn--whatsapp {
    padding: 14px 32px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    background: #25A244 !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(37, 162, 68, 0.35) !important;
  }

  .hero__actions .btn--outline {
    padding: 14px 32px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    background: transparent !important;
    border: 1.5px solid rgba(255, 255, 255, 0.85) !important;
    color: #ffffff !important;
    order: 0 !important;
  }

  .hero__actions .btn--outline:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #ffffff !important;
  }

  .hero__actions .btn--whatsapp:hover {
    background: #1e8e3a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(37, 162, 68, 0.45) !important;
  }
}

/* =============================================
   SECCIÓN — ¿POR QUÉ ELEGIRNOS?
   ============================================= */
.section--why {
  background: #ffffff;
  padding: 70px 0;
  min-height: unset;
}

/* Encabezado de sección */
.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

.section__subtitle {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
}

/* Grid de 3 columnas */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Card individual */
.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 36px 28px;
  text-align: center;
  transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
  will-change: transform;
}

.card:hover {
  border-color: #3B82F6;
  box-shadow:
    0 0 0 1px #3B82F6,
    0 0 18px rgba(59, 130, 246, 0.25),
    0 8px 32px rgba(59, 130, 246, 0.12);
  transform: translateY(-4px) scale(1.03);
}

/* Ícono con fondo azul suave */
.card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #EFF6FF;
  border-radius: 12px;
  margin: 0 auto 22px;
  transition: background 0.3s ease;
}

.card:hover .card__icon-wrap {
  background: #DBEAFE;
}

.card__icon {
  width: 26px;
  height: 26px;
  color: #3B82F6;
  stroke: #3B82F6;
}

.card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
  letter-spacing: -0.1px;
  transition: color 0.3s ease;
}

.card:hover .card__title {
  color: #1d4ed8;
}

.card__desc {
  font-size: 0.92rem;
  color: #6b7280;
  line-height: 1.7;
}

/* Responsive — 1 columna en móvil */
@media (max-width: 768px) {
  .section--why {
    padding: 60px 0;
  }

  .section--why .section__subtitle {
    display: none;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section__title {
    font-size: 1.6rem;
  }
}

/* =============================================
   SECCIÓN — NUESTRA MISIÓN
   ============================================= */
.section--mision {
  background: #F8F8F8;
  padding: 80px 0;
}

.mision__container {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.mision__img-wrap {
  width: 45%;
  flex-shrink: 0;
  border-radius: 16px;
  position: relative;
  cursor: default;
  transition:
    box-shadow 0.4s ease,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mision__img-wrap:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 0 0 2px #3B82F6,
    0 0 20px rgba(59, 130, 246, 0.55),
    0 0 50px rgba(59, 130, 246, 0.3),
    0 0 90px rgba(59, 130, 246, 0.15),
    0 20px 40px rgba(0, 0, 0, 0.1);
}

/* LEDs en las esquinas con pseudo-elementos */
.mision__img-wrap::before,
.mision__img-wrap::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: -1;
  pointer-events: none;
}

/* LED esquina superior izquierda */
.mision__img-wrap::before {
  width: 120px;
  height: 120px;
  top: -20px;
  left: -20px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.6) 0%, transparent 70%);
  transform: scale(0.6);
}

/* LED esquina inferior derecha */
.mision__img-wrap::after {
  width: 160px;
  height: 160px;
  bottom: -24px;
  right: -24px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.5) 0%, transparent 70%);
  transform: scale(0.6);
}

.mision__img-wrap:hover::before,
.mision__img-wrap:hover::after {
  opacity: 1;
  transform: scale(1);
}

.mision__img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

.mision__content {
  flex: 1;
}

.mision__label {
  color: #888;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.mision__title {
  color: #3B3DB8;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.mision__desc {
  color: #888;
  font-size: 16px;
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 36px;
}

@media (max-width: 768px) {
  .mision__desc {
    text-align: justify;
  }
}

/* Botón dorado */
.btn--gold {
  display: inline-block;
  border: 1.5px solid #C9A84C;
  color: #C9A84C;
  background: transparent;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn--gold:hover {
  background: #C9A84C;
  color: #ffffff;
}

/* Mobile */
@media (max-width: 768px) {
  .section--mision {
    padding: 50px 20px;
  }

  .mision__container {
    flex-direction: column;
    gap: 32px;
    padding: 0;
  }

  .mision__img-wrap {
    width: 100%;
  }

  .mision__title {
    font-size: 28px;
  }

  .mision__desc {
    max-width: 100%;
  }
}

/* =============================================
   SECCIÓN — CREDENCIALES / ¿POR QUÉ ELEGIRNOS?
   ============================================= */
.section--credenciales {
  background: #ffffff;
  padding: 80px 0;
}

.credenciales__container {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 64px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Imagen */
.credenciales__img-wrap {
  width: 42%;
  flex-shrink: 0;
  border-radius: 16px;
  position: relative;
  transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.credenciales__img-wrap:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 0 0 2px #3B82F6,
    0 0 20px rgba(59, 130, 246, 0.55),
    0 0 50px rgba(59, 130, 246, 0.3),
    0 0 90px rgba(59, 130, 246, 0.15),
    0 20px 40px rgba(0, 0, 0, 0.08);
}

.credenciales__img-wrap::before,
.credenciales__img-wrap::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: -1;
  pointer-events: none;
}

.credenciales__img-wrap::before {
  width: 120px;
  height: 120px;
  top: -20px;
  left: -20px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.6) 0%, transparent 70%);
  transform: scale(0.6);
}

.credenciales__img-wrap::after {
  width: 160px;
  height: 160px;
  bottom: -24px;
  right: -24px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.5) 0%, transparent 70%);
  transform: scale(0.6);
}

.credenciales__img-wrap:hover::before,
.credenciales__img-wrap:hover::after {
  opacity: 1;
  transform: scale(1);
}

.credenciales__img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

/* Contenido */
.credenciales__content {
  flex: 1;
}

.credenciales__title {
  color: #3B3DB8;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 28px;
}

/* Bloque de texto descriptivo */
.credenciales__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.credenciales__text p {
  color: #666;
  font-size: 15px;
  line-height: 1.75;
  padding-left: 16px;
  border-left: 2px solid rgba(59, 130, 246, 0.3);
  text-align: justify;
}

/* Botón azul */
.btn--blue {
  display: inline-block;
  background: #3B82F6;
  color: #ffffff;
  border: none;
  padding: 16px 40px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  transition: background 0.25s ease, transform 0.2s ease;
  cursor: pointer;
}

.btn--blue:hover {
  background: #2563EB;
  transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 768px) {
  .section--credenciales {
    padding: 50px 20px;
  }

  .credenciales__container {
    flex-direction: column;
    gap: 32px;
    padding: 0;
  }

  .credenciales__img-wrap {
    width: 100%;
  }

  .credenciales__content .btn--blue {
    display: block;
    width: fit-content;
    margin: 0 auto;
  }

  .credenciales__title {
    font-size: 28px;
  }
}

/* ── Marquee Separator (estático + LED pulse dorado) ── */
.marquee-section {
  background: #0a0a2e;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  padding: 22px 40px;
  overflow: hidden;
}

.marquee-content {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
}

.marquee-content span {
  font-size: 13px;
  font-weight: 700;
  color: rgba(201, 168, 76, 0.55);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: ledPulse 4s ease-in-out infinite;
  text-shadow: 0 0 6px rgba(201, 168, 76, 0.2);
}

.marquee-dot {
  color: rgba(201, 168, 76, 0.4) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  text-shadow: 0 0 6px rgba(201, 168, 76, 0.15) !important;
  animation: ledPulseDot 4s ease-in-out infinite !important;
}

/* Desfase escalonado — 12 hijos */
.marquee-content span:nth-child(1)  { animation-delay: 0.0s; }
.marquee-content span:nth-child(2)  { animation-delay: 0.3s; }
.marquee-content span:nth-child(3)  { animation-delay: 0.6s; }
.marquee-content span:nth-child(4)  { animation-delay: 0.9s; }
.marquee-content span:nth-child(5)  { animation-delay: 1.2s; }
.marquee-content span:nth-child(6)  { animation-delay: 1.5s; }
.marquee-content span:nth-child(7)  { animation-delay: 1.8s; }
.marquee-content span:nth-child(8)  { animation-delay: 2.1s; }
.marquee-content span:nth-child(9)  { animation-delay: 2.4s; }
.marquee-content span:nth-child(10) { animation-delay: 2.7s; }
.marquee-content span:nth-child(11) { animation-delay: 3.0s; }
.marquee-content span:nth-child(12) { animation-delay: 3.3s; }

@keyframes ledPulse {
  0%, 100% {
    color: rgba(201, 168, 76, 0.35);
    text-shadow: 0 0 4px rgba(201, 168, 76, 0.15);
  }
  50% {
    color: rgba(201, 168, 76, 1);
    text-shadow:
      0 0 6px rgba(201, 168, 76, 0.9),
      0 0 18px rgba(201, 168, 76, 0.6),
      0 0 36px rgba(201, 168, 76, 0.25);
  }
}

@keyframes ledPulseDot {
  0%, 100% {
    color: rgba(201, 168, 76, 0.3) !important;
    text-shadow: 0 0 4px rgba(201, 168, 76, 0.1) !important;
  }
  50% {
    color: rgba(201, 168, 76, 1) !important;
    text-shadow:
      0 0 6px rgba(201, 168, 76, 0.9),
      0 0 18px rgba(201, 168, 76, 0.5) !important;
  }
}

@media (max-width: 768px) {
  .marquee-section {
    padding: 18px 12px;
  }
  .marquee-content {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0;
  }
  .marquee-content span {
    font-size: clamp(7px, 2vw, 11px);
    letter-spacing: 0;
  }
  .marquee-dot {
    font-size: clamp(8px, 2.2vw, 13px) !important;
    letter-spacing: 0 !important;
  }
}

/* =============================================
   SECCIÓN — TPC ABOGADOS MEX (5 CARDS)
   ============================================= */
.section--tpc-cards {
  background: #F8F8F8;
  padding: 80px 0;
}

.tpc-cards__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.tpc-cards__title {
  color: #3B82F6;
  font-size: 42px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.5px;
}

/* Grid 5 columnas */
.tpc-cards__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}

/* ── Animación de entrada desktop ── */
@media (min-width: 769px) {
  @keyframes tpcCardIn {
    from { opacity: 0; transform: translateY(28px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
  }

  .tpc-card {
    opacity: 0; /* invisible hasta que JS dispare */
  }

  .tpc-cards__grid.animated .tpc-card {
    animation: tpcCardIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .tpc-cards__grid.animated .tpc-card:nth-child(1) { animation-delay: 0.00s; }
  .tpc-cards__grid.animated .tpc-card:nth-child(2) { animation-delay: 0.10s; }
  .tpc-cards__grid.animated .tpc-card:nth-child(3) { animation-delay: 0.20s; }
  .tpc-cards__grid.animated .tpc-card:nth-child(4) { animation-delay: 0.30s; }
  .tpc-cards__grid.animated .tpc-card:nth-child(5) { animation-delay: 0.40s; }
}

/* Card */
.tpc-card {
  background: #FFFFFF;
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 16px;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-align: center;
}

.tpc-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #3B82F6;
  box-shadow:
    0 0 0 1px #3B82F6,
    0 0 16px rgba(59, 130, 246, 0.25),
    0 8px 32px rgba(59, 130, 246, 0.14);
}

/* Ícono */
.tpc-card__icon-wrap {
  background: #EFF6FF;
  border-radius: 12px;
  padding: 14px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease;
}

.tpc-card:hover .tpc-card__icon-wrap {
  background: #DBEAFE;
}

.tpc-card__icon-wrap svg {
  width: 24px;
  height: 24px;
  color: #3B82F6;
  stroke: #3B82F6;
}

/* Texto */
.tpc-card__text {
  color: #555;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

/* Botón centrado */
.tpc-cards__cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* Mobile */
@media (max-width: 768px) {
  .section--tpc-cards {
    padding: 50px 20px;
  }

  .tpc-cards__inner {
    padding: 0;
  }

  .tpc-cards__title {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .tpc-cards__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tpc-card--last {
    grid-column: span 2;
    max-width: 200px;
    margin: 0 auto;
    width: 100%;
  }
}

/* =============================================
   PÁGINA PRÓXIMAMENTE
   ============================================= */
.page-coming-soon {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  background: #f9f9f9;
}

.coming-soon__inner {
  text-align: center;
  max-width: 480px;
  padding: 0 24px;
}

.coming-soon__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(30, 30, 110, 0.07);
  border: 1px solid rgba(30, 30, 110, 0.15);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 28px;
}

.coming-soon__title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.coming-soon__line {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
  border-radius: 2px;
  margin: 0 auto 20px;
}

.coming-soon__text {
  font-size: 1rem;
  color: #666;
  line-height: 1.7;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #111827;
  padding: 0;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  text-align: center;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 20px 24px;
  }
}

/* =============================================
   RESPONSIVE — MÓVIL
   ============================================= */
/* Solo visible en móvil */
.nav__whatsapp-mobile {
  display: none;
}

@media (max-width: 768px) {
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: #222C3E;
  }

  .header.scrolled {
    background: #222C3E;
  }

  .header__nav-left,
  .header__right {
    display: none;
  }

  .header__logo img {
    height: 78px;
    transform: scaleX(1.10);
    transform-origin: left center;
  }

  .logo--desktop { display: none; }
  .logo--mobile  { display: block; }

  .header__hamburger {
    display: flex;
  }

  .header__nav {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: #0f0f3d;
    border-bottom: 1px solid rgba(96, 165, 250, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    padding: 20px 24px 28px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    z-index: 999;
  }

  .header__nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  /* Línea decorativa arriba del menú móvil */
  .header__nav::before {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #60a5fa, #818cf8);
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.7);
    border-radius: 2px;
    margin-bottom: 18px;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    animation: none; /* desactivar stagger de escritorio */
  }

  .nav__list li:last-child {
    border-bottom: none;
  }

  /* Override estilos desktop del link */
  .nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
    letter-spacing: 1.8px;
    padding: 15px 8px;
    border-radius: 0;
    text-shadow: none;
    transition: color 0.3s ease, padding-left 0.3s ease, background 0.3s ease;
  }

  /* Punto neón a la izquierda */
  .nav__link::before {
    content: '';
    position: static;
    width: 5px;
    height: 5px;
    min-width: 5px;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.3);
    box-shadow: none;
    inset: unset;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  }

  /* Quitar línea inferior (::after) en móvil */
  .nav__link::after {
    display: none;
  }

  .nav__link:hover,
  .nav__link.active {
    color: #ffffff;
    text-shadow: none;
    padding-left: 16px;
    background: rgba(96, 165, 250, 0.06);
  }

  .nav__link:hover::before,
  .nav__link.active::before {
    background: #60a5fa;
    box-shadow: 0 0 8px rgba(96, 165, 250, 0.9), 0 0 18px rgba(96, 165, 250, 0.4);
    transform: scale(1.4);
    inset: unset;
  }

  /* WhatsApp dentro del menú móvil */
  .nav__whatsapp-mobile {
    display: block;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .btn--whatsapp-mobile {
    width: 100%;
    justify-content: center;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 14px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #25D366 0%, #1aad52 100%);
    box-shadow:
      0 4px 20px rgba(37, 211, 102, 0.4),
      0 0 0 1px rgba(37, 211, 102, 0.15);
    animation: waPulse 3s ease-in-out infinite;
  }

  .btn--whatsapp-mobile .btn__icon {
    width: 20px;
    height: 20px;
  }

  /* ── HERO MOBILE ── */
  .section--hero {
    background-attachment: scroll;
    background-size: cover !important;
    background-position: center top !important;
    min-height: 100vh !important;
    height: auto !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: stretch !important;
    padding-bottom: 48px !important;
  }

  /* Overlay — claro en el centro, oscuro abajo */
  .section--hero .hero__overlay {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.35) 40%,
      rgba(0, 0, 0, 0.65) 100%
    ) !important;
  }

  .hero__content {
    position: relative !important;
    transform: none !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 20px 28px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* Badge */
  .hero__tag {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    border-bottom: 1.5px solid #C9A84C !important;
    padding: 0 0 6px 0 !important;
    font-size: 11px !important;
    letter-spacing: 0.2em !important;
    color: #C9A84C !important;
    margin-bottom: 12px !important;
  }

  /* Título */
  .hero__title {
    color: #FFFFFF !important;
    text-shadow: none !important;
    font-size: 28px !important;
    margin-bottom: 16px !important;
  }

  /* Subtítulo */
  .hero__subtitle {
    font-size: 15px !important;
    color: rgba(255, 255, 255, 0.90) !important;
    margin-bottom: 320px !important;
    line-height: 1.65 !important;
    text-shadow: none !important;
  }

  /* Contenedor de botones — columna centrada */
  .hero__actions {
    display: flex !important;
    flex-direction: column !important;
    transform: translateY(-80px) !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-top: 0 !important;
  }

  /* Ver Servicios */
  .hero__actions .btn--outline {
    order: -1 !important;
    width: fit-content !important;
    min-width: 200px !important;
    max-width: 230px !important;
    text-align: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
    padding: 12px 28px !important;
    text-shadow: none !important;
  }

  .hero__actions .btn--outline:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #ffffff !important;
    transform: none !important;
  }

  /* WhatsApp */
  .hero__actions .btn--whatsapp {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: fit-content !important;
    min-width: 200px !important;
    max-width: 230px !important;
    white-space: nowrap !important;
    background: #25A244 !important;
    box-shadow: 0 4px 16px rgba(37, 162, 68, 0.4) !important;
    border-radius: 6px !important;
    font-size: 0.88rem !important;
    padding: 12px 28px !important;
    animation: none !important;
    letter-spacing: 0.04em !important;
  }

  .hero__actions .btn--whatsapp:hover {
    background: #1e8e3a !important;
    transform: none !important;
    box-shadow: 0 6px 20px rgba(37, 162, 68, 0.5) !important;
  }

  .hero__actions .btn--whatsapp .btn__icon {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
  }
}

/* ── Contact Info Section ── */
.contact-info-section {
  background: #0d1520;
  padding: 80px 24px;
}

.contact-info-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.contact-info-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  font-style: italic;
  color: #ffffff;
  margin-bottom: 12px;
}

.contact-info-title em {
  color: #C9A84C;
  font-style: italic;
}

.contact-info-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 48px;
  letter-spacing: 0.04em;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.contact-card--full {
  grid-column: 1 / -1;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}

.contact-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.15);
  border-left: 3px solid #C9A84C;
  border-radius: 2px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: background 0.25s ease, border-color 0.25s ease;
  text-align: left;
}

.contact-card:hover {
  background: rgba(201,168,76,0.06);
  border-color: rgba(201,168,76,0.4);
  border-left-color: #C9A84C;
}

.contact-icon-wrapper {
  background: rgba(201,168,76,0.10);
  border-radius: 2px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #C9A84C;
  transition: background 0.25s ease;
}

.contact-icon-wrapper svg {
  width: 20px;
  height: 20px;
}

.contact-card:hover .contact-icon-wrapper {
  background: rgba(201,168,76,0.20);
}

.contact-label {
  font-size: 10px;
  color: #C9A84C;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 5px;
}

.contact-value {
  font-size: 16px;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  display: block;
}

.contact-value:hover {
  color: #C9A84C;
}

@media (max-width: 768px) {
  .contact-info-section {
    padding: 50px 20px;
  }
  .contact-info-title {
    font-size: 26px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-card--full {
    grid-column: 1;
    max-width: 100%;
  }
}

@media (min-width: 769px) {
  .contact-info-section {
    padding: 80px 40px;
  }
  .contact-info-container {
    max-width: 1400px;
  }
  .contact-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }
  .contact-card--full {
    grid-column: auto;
    max-width: 100%;
  }
  .contact-card {
    padding: 24px 16px;
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }
  .contact-value {
    font-size: 14px;
    word-break: break-word;
  }
  .contact-label {
    font-size: 9px;
  }
}

/* ── CTA Final Section ── */
.cta-final-section {
  background: #0d1520;
  padding: 80px 60px;
  width: 100%;
}

.cta-final-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center !important;
  gap: 24px;
}

.cta-final-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center !important;
  align-self: center !important;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.cta-final-card::before {
  display: none;
}

.cta-final-badge {
  display: inline-block;
  width: fit-content;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C9A84C;
  border-bottom: 1.5px solid #C9A84C;
  padding-bottom: 4px;
}

.cta-final-title {
  font-size: 38px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  margin: 0;
  max-width: 320px;
}

.cta-final-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 420px;
  margin: 0;
  text-align: justify;
}

.cta-final-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  background: #25A244;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease;
  margin-top: 8px;
}

.cta-final-btn:hover {
  background: #1e8a38;
  transform: translateY(-2px);
}

.cta-final-image {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  min-height: 340px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.5);
  transform: translateY(-28px);
  transition: transform 0.4s ease;
  position: relative;
}

.cta-final-image:hover {
  transform: translateY(-34px);
}

.cta-final-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.cta-final-image:hover img {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .cta-final-section {
    padding: 28px 0 0;
  }
  .cta-final-container {
    display: block;
    position: relative;
  }
  .cta-final-image {
    height: 480px;
    min-height: unset;
    border-radius: 0;
    transform: translateY(0);
    position: relative;
    box-shadow: none;
  }
  .cta-final-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(6,13,31,0.72);
    pointer-events: none;
    z-index: 1;
  }
  .cta-final-image:hover {
    transform: translateY(0);
  }
  .cta-final-card {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 28px;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    background: transparent;
  }
  .cta-final-badge {
    font-size: 10px;
    letter-spacing: 0.12em;
  }
  .cta-final-title {
    font-size: 26px;
    max-width: 100%;
    margin: 0;
  }
  .cta-final-desc {
    font-size: 13.5px;
    line-height: 1.65;
    color: rgba(255,255,255,0.75);
    max-width: 100%;
    margin: 0;
  }
  .cta-final-btn {
    width: fit-content;
    align-self: center;
    margin-top: 4px;
  }
}

/* ── Widget Abogado ── */
.lawyer-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  animation: lawyerBounce 2.8s ease-in-out infinite;
}

.lawyer-svg {
  width: 72px;
  height: 100px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.25));
}

/* Brazo que saluda */
.lawyer-arm {
  animation: lawyerWave 1.6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: top center;
}

/* Burbuja de texto */
.lawyer-bubble {
  background: #ffffff;
  color: #1E1E6E;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 20px 20px 20px 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  margin-bottom: 10px;
  white-space: nowrap;
  animation: bubbleFloat 2.8s ease-in-out infinite;
  border: 1.5px solid #E8EFFE;
}

.lawyer-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 16px;
  border: 5px solid transparent;
  border-top-color: #ffffff;
}

/* Hover */
.lawyer-widget:hover .lawyer-svg {
  filter: drop-shadow(0 12px 24px rgba(30,30,110,0.35));
}
.lawyer-widget:hover .lawyer-bubble {
  background: #1E1E6E;
  color: #ffffff;
  border-color: #1E1E6E;
}

/* Animaciones */
@keyframes lawyerBounce {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-10px); }
}

@keyframes lawyerWave {
  0%, 100% { transform: rotate(0deg);   }
  25%       { transform: rotate(-28deg); }
  75%       { transform: rotate(10deg);  }
}

@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0);   opacity: 1;    }
  50%       { transform: translateY(-4px); opacity: 0.9; }
}

@media (max-width: 768px) {
  .lawyer-widget {
    bottom: 18px;
    right: 16px;
  }
  .lawyer-svg {
    width: 58px;
    height: 80px;
  }
  .lawyer-bubble {
    font-size: 11px;
    padding: 6px 11px;
  }
}

@media (min-width: 769px) {
  .cta-final-container {
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 64px;
  }
  .cta-final-card {
    flex: 1.4;
    align-self: flex-start;
    justify-content: flex-start;
    padding-top: 12px;
    gap: 24px;
  }
  .cta-final-badge {
    font-size: 12px;
  }
  .cta-final-title {
    font-size: 42px;
    max-width: 480px;
  }
  .cta-final-desc {
    max-width: 520px;
  }
  .cta-final-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,27,53,0.45) 0%, rgba(0,0,0,0.25) 100%);
    border-radius: 20px;
    pointer-events: none;
  }
}

/* ── Topbar global ──────────────────────────── */
:root {
  --topbar-h: 42px;
}

.info-topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--topbar-h);
  background: linear-gradient(to right, #04091a 0%, #0d1f45 20%, #152b5e 50%, #0d1f45 80%, #04091a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
}

.info-topbar__link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.info-topbar__link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.85;
}

.info-topbar__link strong {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.has-topbar .header,
.has-topbar .header.scrolled {
  top: var(--topbar-h);
  background: #ffffff;
}

.has-topbar .header__logo img {
  height: calc(var(--header-height) + 7px);
  padding: 0;
}

@media (max-width: 768px) {
  .has-topbar {
    --topbar-h: 52px;
    --header-height: 96px;
  }
  .has-topbar .info-topbar__link {
    font-size: 0.92rem;
    gap: 10px;
  }
  .has-topbar .info-topbar__link svg {
    width: 17px;
    height: 17px;
  }
  .has-topbar .header__logo img {
    height: 80px !important;
  }
}

@media (min-width: 769px) {
  .has-topbar {
    --header-height: 112px;
    --topbar-h: 54px;
  }
  .has-topbar .info-topbar__link {
    font-size: 1rem;
    gap: 10px;
  }
  .has-topbar .info-topbar__link svg {
    width: 18px;
    height: 18px;
  }
  .has-topbar .header {
    padding: 0 56px;
  }
  .header__logo {
    order: 1;
    flex-shrink: 0;
  }
  .header__nav-left {
    order: 2;
    flex: 1;
  }
  .header__right {
    order: 3;
    flex-shrink: 0;
  }
  .has-topbar .header .nav__link {
    font-size: 0.97rem;
    padding: 9px 18px;
    letter-spacing: 1.4px;
    color: #1a2d4a;
  }
  .has-topbar .header .btn--wa-header {
    font-size: 0.9rem;
    padding: 13px 32px;
  }
}
