/* =========================================================
   Beenable — Design Tokens
   Paleta e identidad oficial (02-Beenable-Guía_Identidad.pdf)
   ========================================================= */
:root {
  /* Marca */
  --navy: #19233e;
  --navy-deep: #0f1526;
  --navy-soft: #2c3759;
  --orange: #f49925;
  --orange-dark: #d9841a;
  --white: #ffffff;

  /* Neutros */
  --ink: #19233e;
  --ink-muted: #5c6482;
  --ink-faint: #8891ab;
  --surface: #ffffff;
  --surface-alt: #f3f4f8;
  --border: #e2e4ee;
  --border-dark: rgba(255, 255, 255, 0.12);

  /* Tipografías */
  --font-display: "Google Sans Flex", "Segoe UI", Roboto, Arial, sans-serif;
  --font-hand: "Caveat", cursive;

  /* Layout & Efectos */
  --container: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 26px;
  --shadow-soft: 0 24px 60px -30px rgba(15, 21, 38, 0.35);
  --shadow-tight: 0 10px 24px -14px rgba(15, 21, 38, 0.3);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

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

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

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

input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   Layout Helpers & Tipografía de Secciones
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(56px, 8vw, 108px);
}

.section--alt {
  background: var(--surface-alt);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-bottom {
  max-width: 680px;
  margin-top: clamp(36px, 5vw, 64px);
}

.section-bottom--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--orange);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}

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

.section--navy .eyebrow {
  color: var(--orange);
}

.lede {
  font-size: 1.06rem;
  color: var(--ink-muted);
  margin-top: 16px;
  max-width: 60ch;
}

.section--navy .lede {
  color: rgba(255, 255, 255, 0.72);
}

/* =========================================================
   Botones
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.98rem;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn-primary {
  background: var(--orange);
  color: var(--navy-deep);
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--orange-dark);
}

.btn-ghost {
  border-color: var(--border-dark);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline {
  border-color: var(--border);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--navy);
  background: var(--surface-alt);
}

/* =========================================================
   Header & Navegación Principal
   ========================================================= */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), padding 0.25s var(--ease);
}

.site-header .container {
  max-width: 1240px;
}

.site-header.is-scrolled {
  border-color: var(--border);
  box-shadow: 0 8px 30px -20px rgba(15, 21, 38, 0.4);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  transition: height 0.25s var(--ease);
}

.site-header.is-scrolled .site-header__bar {
  height: 68px;
}

/* Logotipo */
.brand-block {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: height 0.25s var(--ease);
}

.site-header.is-scrolled .brand-logo {
  height: 40px;
}

/* Acciones de Cabecera & Selector de Idioma */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 5px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.lang-switch__link {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--ink-muted);
  text-decoration: none;
  line-height: 1.2;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.lang-switch__link:hover {
  color: var(--navy);
}

.lang-switch__link.is-active {
  background: var(--navy);
  color: var(--white);
  cursor: default;
}

.lang-switch__sep {
  display: none;
}

/* Menú Escritorio */
.main-nav {
  display: none;
  margin-inline: clamp(16px, 2.5vw, 36px);
}

.main-nav ul {
  display: flex;
  gap: clamp(10px, 1.4vw, 24px);
  align-items: center;
}

.main-nav a {
  font-size: clamp(0.86rem, 0.95vw, 0.93rem);
  font-weight: 500;
  color: var(--ink-muted);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.main-nav a:hover {
  color: var(--navy);
  border-color: var(--orange);
}

.header-cta {
  display: none;
  padding: 11px 20px;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Botón Hamburguesa */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--navy);
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-toggle:hover {
  background: var(--surface-alt);
  border-color: var(--ink-faint);
}

.nav-toggle__icon {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}

.nav-toggle__icon span {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease), top 0.25s var(--ease);
}

.nav-toggle__icon span:nth-child(1) { top: 0; }
.nav-toggle__icon span:nth-child(2) { top: 6px; }
.nav-toggle__icon span:nth-child(3) { top: 12px; }

.nav-open .nav-toggle__icon span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
.nav-open .nav-toggle__icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-open .nav-toggle__icon span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

/* Menú Móvil Desplegable */
.mobile-nav {
  position: fixed;
  top: 84px;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100vh - 84px);
  height: calc(100dvh - 84px);
  background: var(--white);
  z-index: 99;
  padding: 24px 24px 44px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.site-header.is-scrolled ~ .mobile-nav {
  top: 68px;
  height: calc(100vh - 68px);
  height: calc(100dvh - 68px);
}

.nav-open .mobile-nav {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav ul a {
  display: block;
  padding: 13px 4px;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.mobile-nav ul a:hover,
.mobile-nav ul a:active {
  color: var(--orange);
  padding-left: 6px;
}

.mobile-nav .btn {
  margin-top: 20px;
  width: 100%;
}

.mobile-nav__lang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  margin-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--ink-muted);
  font-weight: 500;
}

@media (min-width: 1160px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle,
  .mobile-nav { display: none; }
}

/* =========================================================
   Hero Section
   ========================================================= */
.hero {
  position: relative;
  padding-top: clamp(120px, 16vw, 168px);
  padding-bottom: clamp(64px, 10vw, 104px);
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.hero .container {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  animation: fade-up 0.7s var(--ease) both;
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.015em;
  animation: fade-up 0.7s 0.08s var(--ease) both;
}

.hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero__lede {
  margin-top: 22px;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 52ch;
  animation: fade-up 0.7s 0.16s var(--ease) both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
  animation: fade-up 0.7s 0.24s var(--ease) both;
}

.hero__panel {
  position: relative;
  animation: fade-up 0.7s 0.3s var(--ease) both;
}

.hero__card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 26px;
  max-width: 380px;
  margin-inline: auto;
  backdrop-filter: blur(6px);
}

.hero__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-dark);
  font-weight: 500;
}

.hero__card-head svg {
  width: 20px;
  height: 20px;
  color: var(--orange);
}

.hero__bar {
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-bottom: 18px;
}

.hero__bar span {
  display: block;
  width: 78%;
  height: 100%;
  background: var(--orange);
}

.hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero__stat {
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.hero__stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
}

.hero__stat span {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.6);
}

.hero__note {
  position: absolute;
  top: -20px;
  right: 18px;
  z-index: 2;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-hand);
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  white-space: nowrap;
  padding: 6px 16px;
  border-radius: 6px;
  transform: rotate(4deg);
  box-shadow: var(--shadow-tight);
}

@media (min-width: 860px) {
  .hero .container {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .hero__panel {
    order: 2;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   Contexto / Comparación de Caminos
   ========================================================= */
.fork {
  display: grid;
  gap: 20px;
  margin-top: 12px;
}

.fork__path {
  border-radius: var(--radius-md);
  padding: 30px;
  border: 1px solid var(--border);
}

.fork__path--risk {
  background: var(--surface);
  opacity: 0.85;
}

.fork__path--chosen {
  background: var(--surface);
  border: 1px solid var(--orange);
  position: relative;
}

.fork__flag {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--orange);
  color: var(--navy-deep);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.fork__path svg {
  width: 26px;
  height: 26px;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.fork__path--chosen svg {
  color: var(--orange);
}

.fork__path h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.fork__path p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.fork__vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--ink-faint);
}

@media (min-width: 760px) {
  .fork {
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
  }
}

/* =========================================================
   Tablas Comparativas (Sin Scroll Horizontal en Desktop)
   ========================================================= */
.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 100%;
  font-size: 0.9rem;
}

thead th {
  text-align: left;
  padding: 14px 16px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  line-height: 1.3;
}

thead th.is-accent {
  background: var(--orange);
  color: var(--navy-deep);
}

tbody td {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  vertical-align: top;
  color: var(--ink-muted);
  line-height: 1.5;
}

tbody td.is-strong {
  color: var(--navy);
  font-weight: 500;
  white-space: normal;
}

tbody tr:hover td {
  background: rgba(25, 35, 62, 0.02);
}

.check-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--ink);
}

.check-row svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--orange);
  margin-top: 3px;
}

/* =========================================================
   Servicios (Ecosistema 3x2 Simétrico y Equilibrado)
   ========================================================= */
.services {
  display: grid;
  gap: 24px;
}

@media (min-width: 600px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .services {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Tarjeta destacada: Transición a Vault CRM */
.service-lead {
  background: var(--navy-soft);
  border: 1px solid var(--orange);
  border-radius: var(--radius-md);
  padding: 30px;
  grid-column: auto !important;
  display: flex;
  flex-direction: column;
}

.service-lead__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--orange);
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-lead__icon svg {
  width: 22px;
  height: 22px;
}

.service-lead h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}

.service-lead p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* Tarjetas secundarias */
.service {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.service:hover {
  border-color: rgba(244, 153, 37, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.service svg {
  width: 24px;
  height: 24px;
  color: var(--orange);
  margin-bottom: 18px;
}

.service h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}

.service p {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
}

/* =========================================================
   La Ventaja Vault & Caso de Uso (Dra. Sánchez)
   ========================================================= */
.advantage {
  display: grid;
  gap: 36px;
  align-items:center;
  margin-bottom: 56px;
}

.advantage__copy {
  max-width: 44ch;
}

.advantage__copy p + p {
  margin-top: 14px;
  color: var(--ink-muted);
}

.advantage__copy strong {
  color: var(--navy);
}

@media (min-width: 980px) {
  .advantage {
    grid-template-columns: 1fr 1.7fr;
    gap: 48px;
  }
}

.usecase {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  gap: 26px;
}

.usecase__icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.usecase__icon svg {
  width: 26px;
  height: 26px;
  color: var(--orange);
}

.usecase h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.usecase__tag {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  color: var(--orange);
  margin-top: 10px;
}

@media (min-width: 700px) {
  .usecase {
    grid-template-columns: auto 1fr;
  }
}

/* =========================================================
   Metodología (Timeline)
   ========================================================= */
.timeline {
  display: grid;
  gap: 30px;
  margin-top: 20px;
  counter-reset: step;
}

.timeline__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
}

.timeline__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline__num {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
}

.timeline__item--current .timeline__num {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--navy-deep);
}

.timeline__line {
  position: relative;
  z-index: 0;
  width: 2px;
  flex: 1;
  background: var(--border);
  margin-top: 6px;
}

.timeline__item:last-child .timeline__line {
  display: none;
}

.timeline__body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  padding-top: 8px;
}

.timeline__body p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

@media (min-width: 860px) {
  .timeline {
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
  }
  .timeline__item {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding-inline: 10px;
    position: relative;
  }
  .timeline__line {
    position: absolute;
    width: 100%;
    height: 2px;
    top: 22px;
    left: 50%;
    margin-top: 0;
  }
}

/* =========================================================
   Liderazgo (Quiénes Somos)
   ========================================================= */
.leaders {
  display: grid;
  gap: 20px;
}

.leader {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
}

.leader__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--ink-faint);
  overflow: hidden;
  box-shadow: 0 4px 12px -2px rgba(15, 21, 38, 0.12);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.leader:hover .leader__avatar {
  transform: scale(1.04);
  border-color: var(--orange);
}

.leader__avatar img,
.leader__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.leader__avatar svg {
  width: 34px;
  height: 34px;
}

.leader h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
}

.leader__role {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--orange);
  margin: 4px 0 14px;
}

.leader p {
  font-size: 0.92rem;
  color: var(--ink-muted);
  font-style: italic;
}

@media (min-width: 760px) {
  .leaders {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================================
   Contacto & Footer
   ========================================================= */
.site-footer {
  background: var(--navy-deep);
  color: var(--white);
  padding-top: clamp(56px, 8vw, 96px);
}

.footer-grid {
  display: grid;
  gap: 48px;
}

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

.footer-grid h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.form-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 520px) {
  .form-row--two {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--white);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23f49925'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5' stroke='%23f49925' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field select option {
  color: var(--navy);
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.field input:focus,
.field select:focus {
  border-color: var(--orange);
}

.field-error {
  display: none;
  font-size: 0.78rem;
  color: var(--orange);
  margin-top: 6px;
}

.field.has-error input,
.field.has-error select {
  border-color: #e06a5c;
}

.field.has-error .field-error {
  display: block;
}

/* Checkbox del Formulario */
.field--checkbox {
  margin-top: 18px;
  margin-bottom: 12px;
}

.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.82) !important;
  line-height: 1.45;
  cursor: pointer;
  margin-bottom: 0 !important;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 2px 0 0;
  accent-color: var(--orange);
  cursor: pointer;
  border-radius: 4px;
}

.legal-link-inline {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.legal-link-inline:hover {
  color: #ffb554;
}

.field--checkbox.has-error input[type="checkbox"] {
  outline: 2px solid #e06a5c;
  outline-offset: 1px;
}

.field--checkbox .field-error {
  margin-top: 6px;
  margin-left: 28px;
}

.form-submit {
  width: 100%;
  margin-top: 6px;
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(244, 153, 37, 0.12);
  border: 1px solid rgba(244, 153, 37, 0.4);
  color: var(--white);
  font-size: 0.92rem;
  margin-top: 16px;
}

.form-success.is-visible {
  display: flex;
}

.form-success svg {
  width: 20px;
  height: 20px;
  color: var(--orange);
  flex-shrink: 0;
}

/* Columna de información del Footer */
.footer-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-brand-wrap {
  margin-bottom: 20px;
}

.brand-logo--footer {
  height: 54px;
  width: auto;
  display: block;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
  max-width: 42ch;
  margin-bottom: 22px;
}

.badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.badge svg {
  width: 14px;
  height: 14px;
  color: var(--orange);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
}

.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-links button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--white);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-dark);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.25s var(--ease);
}

.social-link:hover {
  color: var(--white);
  background: #0a66c2;
  border-color: #0a66c2;
  box-shadow: 0 4px 14px rgba(10, 102, 194, 0.45);
  transform: translateY(-2px);
}

.social-link svg {
  width: 19px;
  height: 19px;
}

.legal {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  padding: 26px 0;
  margin-top: 20px;
  border-top: 1px solid var(--border-dark);
}

/* =========================================================
   Modales (Aviso Legal & Política de Privacidad)
   ========================================================= */
body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}

.modal.is-active {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 21, 38, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 70px -15px rgba(15, 21, 38, 0.5);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s var(--ease);
  overflow: hidden;
  z-index: 1;
}

.modal.is-active .modal__dialog {
  transform: translateY(0) scale(1);
}

.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.modal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--orange);
  margin-bottom: 4px;
}

.modal__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
}

.modal__close:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.modal__close svg {
  width: 16px;
  height: 16px;
}

.modal__body {
  padding: 24px 28px;
  overflow-y: auto;
  font-size: 0.94rem;
  line-height: 1.68;
  color: var(--ink);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.modal__body::-webkit-scrollbar {
  width: 6px;
}

.modal__body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.modal__body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 20px;
  margin-bottom: 8px;
}

.modal__body h4:first-child {
  margin-top: 0;
}

.modal__body p {
  margin-bottom: 14px;
  color: #2b334a;
}

.modal__body ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 14px;
}

.modal__body li {
  margin-bottom: 6px;
  color: #2b334a;
}

.modal__body .legal-meta {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 14px 0 18px;
}

.modal__body .legal-meta p {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.modal__body .legal-meta p:last-child {
  margin-bottom: 0;
}

.modal__body .legal-note {
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-style: italic;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
}
