/* ==========================================================================
   ITP Plan Básico — custom.css
   Paleta y layout extraídos del sitio Canva real del cliente (Puppeteer render)
   Mobile-first. Bootstrap 5.3.3.

   PALETA (medida con getComputedStyle en el Canva renderizado):
     Azul marino: rgb(39, 80, 117)  = #275075
     Dorado/bronce: rgb(164, 126, 90) = #a47e5a
     Blanco: #ffffff
     Texto en fondos claros: rgb(39, 80, 117) = #275075
     Texto en fondos oscuros: #ffffff

   TIPOGRAFÍAS Canva (propietarias, no disponibles fuera):
     YACgEXvxf8Q_0 — usada para titulares (sustituida por Cinzel / Playfair Display)
     YAD1aU3sLnI_0 — usada para cuerpo (sustituida por Open Sans)

   TAMAÑOS EXACTOS (medidos en px a escala 1440px, convertidos):
     H1 hero: 34.67px @ 1440px viewport → clamp(1.8rem, 4.5vw, 2.6rem)
     Subtítulo hero: 18.67px → clamp(1rem, 2vw, 1.17rem)
     Eyebrow (p dorado): 18.67px → 1rem
     H2 secciones: 34.67px → clamp(1.8rem, 4.5vw, 2.6rem)
     Body texto tarjetas: 16px → 1rem
     Labels formulario: 13.33px → 0.83rem
   ========================================================================== */

/* --------------------------------------------------------------------------
   GOOGLE FONTS — Cinzel (sustituye tipografía Canva para titulares)
                  Open Sans (cuerpo de texto)
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Open+Sans:wght@300;400;500;600;700;800&display=swap');

/* --------------------------------------------------------------------------
   DESIGN TOKENS — Paleta real medida del Canva renderizado
   -------------------------------------------------------------------------- */
:root {
  /* Colores principales */
  --primary:          #275075;   /* rgb(39, 80, 117) — azul marino Canva */
  --primary-dark:     #1e3d5c;
  --primary-light:    #e8eef5;
  --accent:           #a47e5a;   /* rgb(164, 126, 90) — dorado Canva */
  --accent-dark:      #8a6847;
  --accent-light:     #f5ede4;

  /* Fondos */
  --surface:          #ffffff;
  --surface-alt:      #f5f3f0;

  /* Texto */
  --text-primary:     #275075;   /* azul marino — texto principal en secciones claras */
  --text-muted:       rgba(39, 80, 117, 0.65);
  --text-white:       #ffffff;

  /* Bordes y separadores */
  --border:           #e2ddd8;

  /* Sombras */
  --shadow-sm:        0 2px 8px rgba(39, 80, 117, 0.08);
  --shadow-md:        0 4px 20px rgba(39, 80, 117, 0.14);

  /* Radios */
  --radius-sm:        0.25rem;
  --radius-md:        0.5rem;

  /* Transiciones */
  --transition:       0.25s ease;

  /* Tipografías */
  --font-heading:     'Cinzel', 'Georgia', serif;
  --font-body:        'Open Sans', 'Segoe UI', system-ui, sans-serif;

  /* Espaciado de secciones */
  --section-py:       5rem;

  /* Navbar height */
  --navbar-h:         72px;
}

/* --------------------------------------------------------------------------
   RESET Y BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* overflow-x: hidden NO va en html — altera el ICB en Chrome y bloquea
     momentum scroll en Safari. El corte horizontal se gestiona desde body. */
}

body {
  /* overflow-x: hidden aquí recorta desbordamiento de secciones 100vw en desktop */
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Body bloqueado cuando el overlay del menú está abierto */
body.nav-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

@media (hover: hover) {
  a:hover {
    color: var(--accent-dark);
  }
}

/* Base img — height: auto solo para imágenes de contenido, NO para imgfondo */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   ELEMENTOS BASE REUTILIZABLES
   -------------------------------------------------------------------------- */

/* Secciones full-bleed: 100vw referencia el viewport directamente,
   sin depender de la cadena html→body→main→section (que Chrome puede romper).
   body { overflow-x: hidden } recorta el sobrante del scrollbar en desktop. */
section {
  display: block;
  width: 100vw;
  margin-left: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* Section con imagen de fondo */
.section-bg {
  position: relative;
  overflow: hidden; /* contiene la imagen absoluta y evita desbordamiento */
}

.section-bg .container,
.section-bg .container-fluid {
  position: relative;
  z-index: 1;
}

/* Eyebrow — etiqueta dorada encima del título (18.67px Canva = 1.17rem) */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.6rem;
}

.section-eyebrow--light {
  color: var(--accent);
}

/* H2 de sección — 34.67px Canva */
.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   ACCESIBILIDAD
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background-color: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0 0 0.5rem 0.5rem;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  color: white;
}

/* --------------------------------------------------------------------------
   NAVBAR
   Canva: transparente sobre hero → negro al hacer scroll.
   Logo y menú alineados al mismo nivel vertical.
   Referencia desktop (≥1400px): margin-left/right: 242px, margin-top: 69px.
   Escala hacia abajo proporcionalmente en breakpoints menores.
   -------------------------------------------------------------------------- */
.navbar-custom {
  background-color: transparent;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
  /* Sin padding propio — los márgenes de brand y collapse gestionan el espacio */
  padding-top: 0;
  padding-bottom: 0;
}

.navbar-custom.scrolled {
  background-color: #000000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

/* Contenedor interno: sin padding propio (lo gestionan los márgenes de los hijos) */
.navbar-inner {
  padding-left: 0;
  padding-right: 0;
  align-items: flex-start; /* los márgenes top de brand y collapse definen la alineación */
}

/* ── LOGO ─────────────────────────────────────────────────────────────────── */
/* mobile: márgenes mínimos para no pegar al borde */
.navbar-brand-custom {
  padding-left: 0;
  margin-left: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* tablet ≥768px */
@media (min-width: 768px) {
  .navbar-brand-custom {
    margin-left: 2rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
  }
}

/* desktop angosto ≥992px */
@media (min-width: 992px) {
  .navbar-brand-custom {
    margin-left: 5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
  }
}

/* desktop medio ≥1200px */
@media (min-width: 1200px) {
  .navbar-brand-custom {
    margin-left: 9rem;     /* ~144px */
    margin-top: 3rem;      /* ~48px */
    margin-bottom: 1.5rem;
  }
}

/* desktop referencia ≥1400px — valores exactos del cliente */
@media (min-width: 1400px) {
  .navbar-brand-custom {
    margin-left: 242px;
    margin-top: 69px;
    margin-bottom: 1rem;
  }
}

/* Al hacer scroll: comprime los márgenes top para navbar más compacta */
.navbar-custom.scrolled .navbar-brand-custom {
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
  transition: margin 0.35s ease;
}

/* ── MENÚ DESKTOP — márgenes responsivos ──────────────────────────────────── */
@media (min-width: 992px) {
  .navbar-mobile-menu {
    margin-right: 5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    align-self: flex-start;
  }
}

@media (min-width: 1200px) {
  .navbar-mobile-menu {
    margin-right: 9rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 1400px) {
  .navbar-mobile-menu {
    margin-right: 242px;
    margin-top: 69px;
    margin-bottom: 1rem;
  }
}

.navbar-custom.scrolled .navbar-mobile-menu {
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
  transition: margin 0.35s ease;
}

/* ── LINKS ────────────────────────────────────────────────────────────────── */
.navbar-custom .navbar-logo {
  height: 44px;
  width: auto;
}

.navbar-custom .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  transition: color var(--transition);
}

.navbar-custom .nav-item:last-child .nav-link {
  padding-right: 0 !important;
}

@media (hover: hover) {
  .navbar-custom .nav-link:hover {
    color: var(--accent) !important;
  }
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
  margin-right: 1rem;
  margin-top: 0.75rem;
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* ── MENÚ MOBILE — OVERLAY FULL-SCREEN (portrait + landscape) ─────────────── */
@media (max-width: 991.98px) {

  /* Overlay oculto por defecto: ocupa 100vw × 100vh, fade out */
  .navbar-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.97);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* fade out: opacity inmediata, visibility retrasada hasta que termina fade */
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
  }

  /* Overlay abierto: fade in */
  .navbar-mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.4s ease, visibility 0s linear 0s;
  }

  /* Links: columna centrada, tipografía grande */
  .navbar-mobile-menu .navbar-nav {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding: 0;
    margin: 0;
  }

  .navbar-mobile-menu .nav-link {
    font-size: 1.4rem !important;
    letter-spacing: 0.12em !important;
    padding: 0.25rem 0 !important;
    color: rgba(255, 255, 255, 0.92) !important;
    border-bottom: none !important;
  }

  .navbar-mobile-menu .nav-link:hover {
    color: var(--accent) !important;
  }

  /* Botón cerrar: esquina superior derecha */
  .nav-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.85);
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
  }

  .nav-close-btn:hover {
    border-color: white;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
  }
}

/* ── MENÚ DESKTOP — siempre visible, horizontal ───────────────────────────── */
@media (min-width: 992px) {

  .navbar-mobile-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Restablece cualquier propiedad de overlay */
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: auto;
  }

  .nav-close-btn {
    display: none;
  }
}

/* ── SAFE AREA INSETS — notch/home bar (viewport-fit: cover) ──────────────── */
/* Protege el contenido de quedar oculto detrás del notch en iPhones con muesca */
@supports (padding-left: env(safe-area-inset-left)) {

  /* Navbar: desplaza logo y toggler fuera de la zona del notch */
  .navbar-inner {
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }

  /* Botón WhatsApp flotante: no queda bajo el home indicator */
  .whatsapp-float {
    bottom: max(1.5rem, calc(env(safe-area-inset-bottom, 0px) + 1rem));
    right: max(1.5rem, calc(env(safe-area-inset-right, 0px) + 1rem));
  }
}

/* --------------------------------------------------------------------------
   SECCIÓN 1: HERO
   Mobile: ocupa 100svh (pantalla completa).
   Desktop (≥992px): altura fija 768px según el Canva original.
   Imagen fondo: fondo1.png mediante <img class="imgfondo">.
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: 100svh; /* mobile-first: pantalla completa */
  display: flex;
  align-items: center;
  position: relative;
  background-color: var(--primary); /* fallback sin imagen */
}

@media (min-width: 992px) {
  .hero-section {
    min-height: 768px;
  }
}

/* El contenido del hero siempre con padding top/bottom para no pegarse a los bordes */
.hero-content-col {
  padding-top: 6rem;   /* espacio bajo la navbar */
  padding-bottom: 3rem; /* espacio sobre el borde inferior */
}

/* Landscape en mobile/tablet: viewport corto, ajustar padding y centrar bien */
@media (orientation: landscape) and (max-width: 991.98px) {
  .hero-section {
    min-height: 100svh;
    align-items: flex-start;
  }

  .hero-content-col {
    padding-top: 5rem;
    padding-bottom: 2.5rem;
  }

  /* Reducir tamaños para que todo quepa en pantallas cortas */
  .hero-title {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  .hero-ctas {
    gap: 0.75rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    min-height: 42px;
    padding: 0.6rem 1.6rem;
    font-size: 0.78rem;
  }
}

/* Wrapper de imagen de fondo — patrón <div.hero_fondoimg><img.imgfondo> */
.hero_fondoimg,
.seccion_fondoimg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.imgfondo {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important; /* anula img { max-width: 100% } */
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Posición específica por sección */
.hero_fondoimg .imgfondo {
  object-position: center 27%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Overlay oscuro — permite ver la foto pero mantiene legibilidad del texto blanco */
  background: linear-gradient(
    135deg,
    rgba(15, 30, 50, 0.80) 0%,
    rgba(27, 51, 77, 0.72) 100%
  );
  z-index: 0;
}

.hero-section .container-fluid {
  position: relative;
  z-index: 1;
}

/* H1 — "DEFENDEMOS TUS DERECHOS / CON EXPERIENCIA"
   Canva mide 34.67px @ 1440px (upscaled desde 26px @ 1080px base)
   En nuestro layout usamos Cinzel que naturalmente es más impactante */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 5vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-white);
  line-height: 1.15;
  margin-bottom: 1.4rem;
}

/* Subtítulo — 18.67px Canva ≈ 1.17rem, blanco, centrado */
.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, 1.17rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

/* CTAs del hero — dos botones en fila centrada */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* Botón primario: azul marino #275075, bordes completamente redondeados (pill) */
.btn-hero-primary {
  background-color: #275075;
  color: var(--text-white);
  border: 2px solid #275075;
  border-radius: 50px;
  padding: 0.75rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  min-height: 48px;
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

@media (hover: hover) {
  .btn-hero-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(39, 80, 117, 0.45);
  }
}

/* Botón secundario: dorado #a47e5a, bordes completamente redondeados (pill) */
.btn-hero-secondary {
  background-color: #a47e5a;
  color: var(--text-white);
  border: 2px solid #a47e5a;
  border-radius: 50px;
  padding: 0.75rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  min-height: 48px;
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

@media (hover: hover) {
  .btn-hero-secondary:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(164, 126, 90, 0.45);
  }
}

/* --------------------------------------------------------------------------
   SECCIÓN 2: SERVICIOS — ¿CÓMO PODEMOS AYUDARTE?
   Canva: fondo blanco (#ffffff). Sección de 679px aprox (desktop).
   4 columnas: icono SVG dorado grande + título dorado uppercase + texto azul marino.
   Sin tarjetas con borde ni sombra — layout limpio y abierto.
   -------------------------------------------------------------------------- */
.servicios-section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  background-color: var(--surface);
}

/* Tarjeta de servicio — sin borde, sin sombra — solo hover sutil */
.service-card {
  text-align: center;
  padding: 1.5rem 1rem;
  cursor: pointer;
  transition: transform var(--transition);
  height: 100%;
}

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-4px);
  }
}

.service-card:active {
  transform: translateY(-1px);
}

/* Contenedor del icono SVG — tamaño del ícono Canva ≈ 83-93px */
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 1.2rem auto;
  color: var(--accent); /* SVG hereda el color via currentColor */
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

/* Título de tarjeta — "DERECHO CIVIL" etc. — dorado, uppercase */
.service-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

/* Descripción — azul marino, 16px */
.service-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--primary);
  line-height: 1.65;
  margin-bottom: 0;
}

/* Modal servicios */
.modal-service .modal-header {
  background-color: var(--primary);
  border-bottom: none;
}

.modal-service .modal-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.modal-service .btn-close {
  filter: invert(1);
}

.modal-service .modal-footer {
  border-top: 1px solid var(--border);
}

.btn-modal-cta {
  background-color: var(--accent);
  color: white;
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background-color var(--transition), border-color var(--transition);
}

@media (hover: hover) {
  .btn-modal-cta:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: white;
  }
}

/* Área shortcode galería */
.gallery-shortcode-area {
  background-color: var(--surface-alt);
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   SECCIÓN 3: ASESORÍA (strip intermedio)
   Canva: imagen fondo3.jpg (apretón de manos escala grises clara).
   Overlay MUY suave — la imagen se ve casi completamente.
   Texto: eyebrow dorado + H2 azul marino uppercase + párrafo azul marino.
   CTA: botón azul marino con texto blanco ("CONTÁCTENOS").
   Altura sección: ~374px desktop — padding simétrico reducido.
   -------------------------------------------------------------------------- */
.asesoria-strip {
  /* Padding reducido según proporción Canva: 374px con texto centrado */
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  background-color: #e8e8e8; /* fallback mientras carga fondo3.jpg */
  background-position: center center;
}

.asesoria-overlay {
  position: absolute;
  inset: 0;
  /* Overlay muy suave — la imagen B&N se ve claramente, texto azul marino encima */
  background: rgba(255, 255, 255, 0.55);
  z-index: 0;
}

.asesoria-strip .container {
  position: relative;
  z-index: 1;
}

/* H2 — azul marino, uppercase, tamaño similar al H2 de servicios */
.asesoria-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 1.2rem;
  line-height: 1.25;
}

/* Párrafo — azul marino, 18.67px ≈ 1.17rem */
.asesoria-text {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--primary);
  line-height: 1.65;
  max-width: 820px;
  margin: 0 auto 2rem auto;
}

/* CTA — botón azul marino con bordes redondeados (pill) */
.btn-asesoria-cta {
  background-color: var(--primary);
  color: var(--text-white);
  border: 2px solid var(--primary);
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}

@media (hover: hover) {
  .btn-asesoria-cta:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text-white);
    transform: translateY(-2px);
  }
}

/* --------------------------------------------------------------------------
   SECCIÓN 4: ¿POR QUÉ ELEGIRNOS? — COMPROMISO Y RESULTADOS
   Canva: fondo BLANCO (#ffffff). Sección de 708px aprox (desktop).
   Sin imagen de fondo. Sin tarjeta con borde.
   3 columnas: icono SVG circular (azul marino, relleno) + título dorado + texto azul.
   Los iconos en el Canva son círculos azul marino con icono blanco dentro.
   -------------------------------------------------------------------------- */
.confianza-section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  background-color: var(--surface);
}

.confianza-block {
  padding: 1rem 0.5rem;
}

/* Contenedor circular del icono — azul marino (#275075) */
.confianza-icon-wrap {
  width: 96px;
  height: 96px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem auto;
  color: white; /* SVG hereda color blanco */
  transition: background-color var(--transition), transform var(--transition);
}

.confianza-icon-wrap svg {
  width: 44px;
  height: 44px;
}

@media (hover: hover) {
  .confianza-block:hover .confianza-icon-wrap {
    background-color: var(--accent);
    transform: translateY(-2px);
  }
}

/* Título/stat — dorado, texto corto ("+200 CLIENTES SATISFECHOS") */
.confianza-stat {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}

/* Descripción — azul marino, 16px */
.confianza-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--primary);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Label carrusel */
.carousel-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(39, 80, 117, 0.40);
  margin-bottom: 1.25rem;
}

/* Carrusel de logos infinito */
.logo-carousel-wrapper {
  overflow: hidden;
  position: relative;
  padding: 1.5rem 0;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.logo-carousel-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: logo-scroll 30s linear infinite;
}

.logo-carousel-wrapper:hover .logo-carousel-track {
  animation-play-state: paused;
}

@keyframes logo-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 110px;
}

.logo-item img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: brightness(0);
  opacity: 0.40;
  transition: opacity var(--transition);
}

@media (hover: hover) {
  .logo-item img:hover {
    opacity: 0.80;
  }
}

.logo-name {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(39, 80, 117, 0.40);
  text-align: center;
  white-space: nowrap;
}

.logo-placeholder-box {
  height: 48px;
  width: 120px;
  border: 1px solid rgba(39, 80, 117, 0.18);
  border-radius: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(39, 80, 117, 0.04);
}

.logo-placeholder-box span {
  font-size: 0.70rem;
  color: rgba(39, 80, 117, 0.35);
}

/* --------------------------------------------------------------------------
   SECCIÓN 5: CONTACTO — CONVERSEMOS
   Canva: imagen fondo fondo5.png (escritorio gris oscuro, objetos legales).
   Overlay oscuro para legibilidad del formulario.
   Eyebrow dorado + H2 blanco + formulario blanco centrado + datos abajo.
   4 campos: Nombre/Teléfono (fila), Correo (solo), Mensaje (solo).
   Datos de contacto debajo del formulario en 3 columnas iguales.
   -------------------------------------------------------------------------- */
.contacto-section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  background-color: #1a1a1a; /* fallback mientras carga fondo5.png */
  background-position: center center;
}

.contacto-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 33, 48, 0.82);
  z-index: 0;
}

.contacto-section .container {
  position: relative;
  z-index: 1;
}

/* H2 "CONVERSEMOS" — blanco */
.contacto-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4.5vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-white);
  margin-bottom: 0;
}

/* Labels del formulario — estilo Canva: "NOMBRE COMPLETO", "TELEFONO" etc. */
.form-label-canva {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.4rem;
  display: block;
}

.required-mark {
  color: var(--accent);
}

/* Campos del formulario — sobre el fondo oscuro, fondo blanco */
.form-control-canva {
  background-color: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--primary);
  min-height: 48px;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control-canva:focus {
  background-color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(164, 126, 90, 0.18);
  outline: none;
  color: var(--primary);
}

.form-control-canva::placeholder {
  color: rgba(39, 80, 117, 0.40);
  opacity: 1;
}

textarea.form-control-canva {
  min-height: 110px;
  resize: vertical;
}

.form-check-label--light {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.70);
  line-height: 1.5;
}

.link-light-canva {
  color: var(--accent);
}

@media (hover: hover) {
  .link-light-canva:hover {
    color: var(--accent-dark);
  }
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Botón enviar — azul marino (consistente con btn-asesoria-cta del Canva) */
.btn-submit-canva {
  background-color: var(--primary);
  color: var(--text-white);
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 0.85rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  min-height: 48px;
  width: 100%;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

@media (hover: hover) {
  .btn-submit-canva:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(39, 80, 117, 0.30);
  }
}

/* Fila de datos de contacto — debajo del formulario, 3 columnas */
.contacto-datos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  justify-content: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.contacto-dato {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 200px;
  flex: 1;
}

.contacto-dato-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(164, 126, 90, 0.20);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.contacto-dato-icon svg {
  width: 20px;
  height: 20px;
}

.contacto-dato-label {
  font-family: var(--font-body);
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(255, 255, 255, 0.45);
  display: block;
  margin-bottom: 0.15rem;
}

.contacto-dato-valor {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  display: block;
  line-height: 1.4;
}

a.contacto-dato-valor {
  transition: color var(--transition);
  text-decoration: none;
}

@media (hover: hover) {
  a.contacto-dato-valor:hover {
    color: var(--accent);
  }
}

/* --------------------------------------------------------------------------
   FOOTER
   Canva: fondo azul marino (#275075). Columnas: logo + links + contacto + social.
   -------------------------------------------------------------------------- */
#footer {
  display: block;
  width: 100vw;
  box-sizing: border-box;
  background-color: var(--primary);
  color: rgba(255, 255, 255, 0.60);
  padding: 3rem 0 1.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 0.5rem;
}

.footer-col-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.75rem;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 0.4rem;
}

.footer-links-list a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  transition: color var(--transition);
}

@media (hover: hover) {
  .footer-links-list a:hover {
    color: var(--accent);
  }
}

.footer-address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-address a {
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
  text-decoration: none;
}

@media (hover: hover) {
  .footer-address a:hover {
    color: var(--accent);
  }
}

.footer-social {
  display: flex;
  gap: 0.85rem;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

@media (max-width: 767.98px) {
  .footer-social {
    justify-content: center;
  }
}

.footer-social-link {
  color: rgba(255, 255, 255, 0.50);
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), border-color var(--transition), background-color var(--transition);
}

@media (hover: hover) {
  .footer-social-link:hover {
    color: var(--text-white);
    border-color: var(--accent);
    background-color: rgba(164, 126, 90, 0.18);
  }
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.12);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.78rem;
}

.footer-copy-link {
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--transition);
}

@media (hover: hover) {
  .footer-copy-link:hover {
    color: var(--accent);
  }
}

/* --------------------------------------------------------------------------
   BOTÓN WHATSAPP FLOTANTE
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.5rem;
  z-index: 1050;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
  text-decoration: none;
}

@media (hover: hover) {
  .whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
  }
}

.whatsapp-float:active {
  transform: scale(0.96);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: white;
}

.whatsapp-float::before {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 0.75rem);
  top: 50%;
  transform: translateY(-50%);
  background-color: #1a1a1a;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 0.4rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

@media (hover: hover) {
  .whatsapp-float:hover::before {
    opacity: 1;
  }
}

.whatsapp-float::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: wa-pulse 2.5s ease-out infinite;
}

@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* --------------------------------------------------------------------------
   ANIMACIONES DE ENTRADA — Intersection Observer (custom.js)
   -------------------------------------------------------------------------- */
[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE — 7 BREAKPOINTS (mobile-first)
   -------------------------------------------------------------------------- */

/* 320px — iPhone SE (más pequeño) */
@media (max-width: 374.98px) {
  :root {
    --section-py: 3rem;
    --navbar-h:   60px;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    min-width: auto;
  }

  .contacto-datos-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 375px–413px — iPhones estándar */
@media (min-width: 375px) and (max-width: 413.98px) {
  .hero-title {
    font-size: 1.8rem;
  }
}

/* 414px–575px — iPhones Plus / Android grandes */
@media (max-width: 575.98px) {
  :root { --section-py: 3.5rem; }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
  }

  .contacto-datos-row {
    flex-direction: column;
  }

  .contacto-dato {
    min-width: auto;
    flex: none;
    width: 100%;
  }

  .footer-social {
    justify-content: center;
  }
}

/* 576px+ — sm Bootstrap */
@media (min-width: 576px) {
  .hero-ctas {
    flex-direction: row;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: auto;
  }
}

/* 768px+ — md Bootstrap */
@media (min-width: 768px) {
  :root { --section-py: 5rem; }

  .contacto-datos-row {
    flex-wrap: nowrap;
  }
}

/* 992px+ — lg Bootstrap */
@media (min-width: 992px) {
  :root { --section-py: 5.5rem; }

  .asesoria-strip {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* 1200px+ — xl Bootstrap */
@media (min-width: 1200px) {
  :root { --section-py: 6rem; }
}

/* 1400px+ — xxl Bootstrap */
@media (min-width: 1400px) {
  .logo-carousel-track { gap: 4rem; }

  :root { --section-py: 6.5rem; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::after {
    animation: none;
  }

  .logo-carousel-track {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
