/* =========================================================
   Barberá Digital Studio — Quantum Civic Systems
   styles.css — Versión sin rectángulos, puntos ni círculos
   (solo fondos suaves, líneas y contenido)
   ========================================================= */

/* =========================================================
   1. RESET BÁSICO Y TIPOGRAFÍA
   ========================================================= */

/* Scrollbar */
body {
  scrollbar-width: thin;
  scrollbar-color: rgba(91, 108, 255, 0.6) #02030a;
}

body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-track {
  background: #02030a;
}

body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(91, 108, 255, 0.9), rgba(0, 167, 201, 0.9));
  border-radius: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

/* Elementos de texto base */
h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 12px;
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

li {
  margin-bottom: 4px;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  color: var(--text-strong);
}

button {
  font-family: inherit;
  background: none;
  border: none;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600; border-radius: 999px; cursor: pointer; transition: all .25s ease; white-space: nowrap; text-align: center; line-height: 1;
}

/* =========================================================
   2. TEMAS, TOKENS Y VARIABLES
   ========================================================= */

/* Tema CLARO por defecto */
:root {
  /* Paleta base light */
  --bg-main: #f3f5fb;
  --bg-elevated: #ffffff;
  --bg-elevated-soft: #f1f3ff;

  --border-soft: rgba(12, 14, 40, 0.08);
  --border-strong: rgba(12, 14, 40, 0.2);

  --text-main: #111324;
  --text-soft: #424667;
  --text-mute: #7d81a3;
  --text-strong: #050617;

  /* Acentos */
  --accent: #5b6cff;
  --accent-soft: rgba(91, 108, 255, 0.16);
  --accent-strong: #2533c7;

  --accent-secondary: #00a7c9;
  --accent-secondary-soft: rgba(0, 167, 201, 0.16);

  --accent-success: #1fa77a;
  --accent-success-soft: rgba(31, 167, 122, 0.12);

  /* Estado */
  --danger: #d92d5b;
  --success: #1f9b5f;
  --warning: #f59f36;

  /* Sombras */
  --shadow-soft: 0 18px 40px rgba(12, 14, 40, 0.12);
  --shadow-subtle: 0 10px 30px rgba(12, 14, 40, 0.08);

  /* Radios y bordes */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 999px;

  /* Transiciones */
  --transition-fast: 150ms ease-out;
  --transition-med: 220ms ease-out;
  --transition-slow: 420ms ease-out;

  /* Layout */
  --header-height: 76px;

  /* Grid cuántico (solo líneas) */
  --quantum-line: rgba(12, 14, 40, 0.06);
  --quantum-line-strong: rgba(12, 14, 40, 0.14);
}

/* Tema OSCURO */
html[data-theme="dark"] {
  color-scheme: dark;

  --bg-main: #050612;
  --bg-elevated: #050717;
  --bg-elevated-soft: #090b22;

  --border-soft: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text-main: #f5f7ff;
  --text-soft: #c3c6e3;
  --text-mute: #8b8fb3;
  --text-strong: #ffffff;

  --accent: #7b5cff;
  --accent-soft: rgba(123, 92, 255, 0.16);
  --accent-strong: #bba7ff;

  --accent-secondary: #1fd1ff;
  --accent-secondary-soft: rgba(31, 209, 255, 0.22);

  --accent-success: #3fd58a;
  --accent-success-soft: rgba(63, 213, 138, 0.18);

  --danger: #ff5c7b;
  --success: #3fd58a;
  --warning: #ffb74a;

  --shadow-soft: 0 26px 60px rgba(0, 0, 0, 0.7);
  --shadow-subtle: 0 16px 36px rgba(0, 0, 0, 0.55);

  --quantum-line: rgba(255, 255, 255, 0.06);
  --quantum-line-strong: rgba(255, 255, 255, 0.12);
}

/* Fondo global según tema */
body {
  background-color: var(--bg-main);
  color: var(--text-main);
  transition:
    background-color var(--transition-slow),
    color var(--transition-med);
}

/* Contenedores y layout base */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Espaciado de secciones (compacto institucional) */
.section {
  position: relative;
  padding: 64px 0 64px;
}

.section:first-of-type {
  padding-top: 85px;
}

.section:last-of-type {
  padding-bottom: 80px;
}

/* Utilidades de texto */
.text-soft {
  color: var(--text-soft);
}

.text-mute {
  color: var(--text-mute);
}

.text-accent {
  color: var(--accent-strong);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: linear-gradient(90deg, rgba(91, 108, 255, 0.18), rgba(0, 167, 201, 0.06));
  border: 1px solid rgba(91, 108, 255, 0.45);
}

/* Píldoras de estado */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-size: 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(12, 14, 40, 0.1);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text-soft);
}

html[data-theme="dark"] .pill {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(10, 12, 35, 0.96);
}

/* =========================================================
   3. FONDO GLOBAL (SIN RECTÁNGULOS, PUNTOS NI CÍRCULOS)
   ========================================================= */

.page-shell {
  position: relative;
  z-index: 0;
  min-height: 100vh;
  overflow: hidden;
  background: radial-gradient(circle at top, #e6ebff 0, var(--bg-main) 52%, var(--bg-main) 100%);
  transition: background var(--transition-slow);
}

html[data-theme="dark"] .page-shell {
  background: radial-gradient(circle at top, #181a3b 0, #050612 58%, #010208 100%);
}

/* Línea sutil horizontal fija (opcional, no animada) */
.page-shell::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 180px;
  height: 1px;
  background-image: linear-gradient(
    90deg,
    transparent 0,
    var(--quantum-line-strong) 30%,
    var(--quantum-line) 70%,
    transparent 100%
  );
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

/* =========================================================
   4. HEADER, NAVEGACIÓN Y LOGO — BASE
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  background: radial-gradient(circle at top left, rgba(247, 248, 255, 1), rgba(241, 242, 255, 1));
  border-bottom: 1px solid rgba(12, 14, 40, 0.06);
  transition:
    background var(--transition-med),
    border-color var(--transition-med),
    box-shadow var(--transition-med),
    transform 0.2s ease-out;
}

html[data-theme="dark"] .site-header {
  background: radial-gradient(circle at top left, rgba(11, 13, 40, 1), rgba(3, 4, 10, 1));
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.site-header--compact {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  margin-top: -1px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  height: 55px;
  width: auto;
  display: block;
}

html[data-theme="dark"] .logo-mark {
  background:
    radial-gradient(circle at 18% 15%, #ffffff 0, #d6cdff 20%, #a696ff 44%, #7b5cff 72%, #181a3b 100%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
}

.logo-text {
  display: inline-flex;
  flex-direction: column;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.logo-text span:first-child {
  font-weight: 600;
  color: var(--text-main);
}

/* Controles header: nav + tema + toggle */
.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 15px;
}

/* ================================
   NAV — ESCRITORIO
   ================================ */

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 13px;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  inset: auto 8px -4px 8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: center;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.96);
}

html[data-theme="dark"] .nav-link:hover {
  color: var(--text-strong);
  background: rgba(7, 10, 35, 0.96);
}

.nav-link--active {
  color: var(--text-main);
  background: var(--accent-soft);
}

html[data-theme="dark"] .nav-link--active {
  color: var(--text-strong);
  background: rgba(123, 92, 255, 0.22);
}

.nav-link--active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-link--primary {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(91, 108, 255, 0.6);
  background: linear-gradient(90deg, rgba(91, 108, 255, 0.18), rgba(0, 167, 201, 0.12));
}

/* ================================
   TOGGLE DE TEMA
   ================================ */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  /*padding: 3px 11px;*/
  border: 1px solid rgba(12, 14, 40, 0.12);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-soft);
  font-size: 11px;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

html[data-theme="dark"] .theme-toggle {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(4, 6, 20, 0.96);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.65);
}

.theme-toggle:hover {
  margin-top: -0.5px;
  box-shadow: 0 10px 28px rgba(12, 14, 40, 0.18);
}

html[data-theme="dark"] .theme-toggle:hover {
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.85);
}

.theme-toggle-track {
  width: 32px;
  height: 16px;
  border-radius: 999px;
  background: rgba(230, 232, 255, 1);
  border: 1px solid rgba(0, 0, 0, 0.18);
  display: inline-flex;
  align-items: center;
  padding: 2px;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

html[data-theme="dark"] .theme-toggle-track {
  background: rgba(14, 18, 48, 1);
  border-color: rgba(255, 255, 255, 0.26);
}

.theme-toggle-thumb {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5f7ff, #bba7ff);
  transform: translateX(0);
  transition:
    transform var(--transition-fast),
    background var(--transition-fast),
    box-shadow var(--transition-fast);
}

html[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(0);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(14px);
  background: linear-gradient(135deg, #f5f7ff, #7b5cff);
  box-shadow: 0 0 8px rgba(123, 92, 255, 0.9);
}

/* ================================
   NAV TOGGLE + THEME TOGGLE
   ================================ */

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(12, 14, 40, 0.2);
  background: rgba(255, 255, 255, 0.96);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px; /* separación vertical entre las 3 líneas */
  cursor: pointer;
  z-index: 100000;
  box-sizing: border-box;
  position: relative;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

html[data-theme="dark"] .nav-toggle {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(4, 6, 20, 0.96);
}

.nav-toggle span {
  display: block;
  width: 18px;          /* MISMO ancho para las 3 líneas */
  height: 2px;          /* MISMA altura para las 3 líneas */
  border-radius: 999px;
  background: var(--text-main);
  transition:
    transform 260ms cubic-bezier(0.19, 1, 0.22, 1),
    opacity 200ms ease,
    background 220ms ease;
  transform-origin: center;
  position: relative;
}

html[data-theme="dark"] .nav-toggle span {
  background: #ffffff;
}

/* ================================
   ESTADO CERRADO → 3 LÍNEAS IGUALES
   ================================ */

.nav-toggle:not(.is-open):not([aria-expanded="true"]) {
  display: flex;
}

.nav-toggle:not(.is-open):not([aria-expanded="true"]) span {
  transform: none;
  opacity: 1;
}

/* Hover */
.nav-toggle:hover,
.nav-toggle:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 1px rgba(80, 120, 255, 0.35),
    0 0 18px rgba(80, 120, 255, 0.45);
  transform: translateY(-0.5px);
}

/* ================================
   ESTADO ABIERTO → X PERFECTA
   ================================ */

.nav-toggle.is-open,
.nav-toggle[aria-expanded="true"],
.nav-open .nav-toggle {
  display: block !important; /* CLAVE PARA FIREFOX */
  position: relative;
  border-color: rgba(80, 120, 255, 0.6);
  box-shadow:
    0 0 0 1px rgba(80, 120, 255, 0.45),
    0 0 26px rgba(80, 120, 255, 0.65);
  animation: nav-toggle-pulse 900ms ease-out forwards;
}

html[data-theme="dark"] .nav-toggle.is-open,
html[data-theme="dark"] .nav-toggle[aria-expanded="true"],
html[data-theme="dark"] .nav-open .nav-toggle {
  background: radial-gradient(circle at 30% 0%, rgba(120, 180, 255, 0.35), transparent 55%),
              rgba(4, 6, 20, 0.98);
}

/* Todas las líneas se solapan en el centro para formar la X */
.nav-toggle.is-open span,
.nav-toggle[aria-expanded="true"] span,
.nav-open .nav-toggle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  transform-origin: center;
}

/* Línea superior → / */
.nav-toggle.is-open span:nth-child(1),
.nav-toggle[aria-expanded="true"] span:nth-child(1),
.nav-open .nav-toggle span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

/* Línea central oculta */
.nav-toggle.is-open span:nth-child(2),
.nav-toggle[aria-expanded="true"] span:nth-child(2),
.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
  transform: translate(-50%, -50%) scaleX(0.4);
}

/* Línea inferior → \ */
.nav-toggle.is-open span:nth-child(3),
.nav-toggle[aria-expanded="true"] span:nth-child(3),
.nav-open .nav-toggle span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Rebote al cerrar */
.nav-toggle:not(.is-open):not([aria-expanded="true"]):not(.nav-open .nav-toggle) span {
  transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Pulso */
@keyframes nav-toggle-pulse {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 0 0 rgba(80, 120, 255, 0.55),
      0 0 0 0 rgba(80, 120, 255, 0.0);
  }
  45% {
    transform: scale(1.06);
    box-shadow:
      0 0 0 6px rgba(80, 120, 255, 0.25),
      0 0 0 14px rgba(80, 120, 255, 0.12);
  }
  100% {
    transform: scale(1.0);
    box-shadow:
      0 0 0 0 rgba(80, 120, 255, 0.0),
      0 0 22px rgba(80, 120, 255, 0.55);
  }
}

/* ================================
   THEME TOGGLE
   ================================ */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  flex-shrink: 0;
  position: relative;
  z-index: 9999;
}

.theme-toggle .theme-toggle-track {
  height: 14px;
}

.theme-toggle-label {
  display: none;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 768px), (max-height: 500px) {
  .nav-toggle {
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 9999;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-height: 500px), (max-width: 900px) {
  .nav-toggle {
    position: static !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
  }

  .theme-toggle,
  .nav-toggle {
    display: inline-flex !important;
    flex-shrink: 0 !important;
    height: 36px !important;
    width: auto !important;
  }

  .nav-toggle {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 3px !important;
    box-sizing: border-box !important;
  }

  .nav-toggle span {
    width: 18px !important;
    height: 2px !important;
    border-radius: 999px !important;
  }
}

@media (min-width: 769px) and (max-height: 500px) {
  .nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    position: static !important;
    width: auto !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    transform: none !important;
  }

  .nav-toggle {
    display: none !important;
  }

  .header-controls {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 14px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
  }

  .theme-toggle {
    height: 36px !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }

  .theme-toggle-label {
    display: none !important;
  }
}

@media (min-width: 769px) and (min-height: 501px) {
  .nav-toggle {
    display: none !important;
  }

  .nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 24px !important;
    position: static !important;
    width: auto !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    transform: none !important;
  }

  .nav.nav--open {
    all: unset !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 24px !important;
  }
}


/* =========================================================
   4. HEADER RESPONSIVE — UNA SOLA MEDIA QUERY
   ========================================================= */

@media (max-width: 768px) {

  .site-header {
    position: relative;
    min-height: 64px;
    overflow: visible;
  }

  .site-header .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    width: 100%;
  }

  .logo {
    margin-right: auto;
  }

  .header-controls {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .theme-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    flex-shrink: 0;
    position: relative;
    z-index: 9999;
  }

  .theme-toggle .theme-toggle-track {
    height: 14px;
  }

  .theme-toggle-label {
    display: none;
  }

  .nav {
    display: none;
  }

  .nav.nav--open {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 90%;
  position: fixed;
  top: 75px;
  left: 50%;                      
  transform: translateX(-50%);    
  max-height: calc(100vh - 64px - 16px);
  overflow-y: auto;
  padding: 12px 12px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  z-index: 99999;
}

  .nav-link {
    background: rgba(0, 0, 0, 0.04);
    padding: 10px 14px;
    border-radius: 8px;
  }

  .nav-link--active {
    background: rgba(0, 0, 0, 0.08);
  }
}

/* =========================================================
   4B. HEADER RESPONSIVE — MÓVIL HORIZONTAL (LANDSCAPE)
   ========================================================= */

@media (max-width: 768px) and (max-height: 500px) {

  .header-inner {
    min-height: 70px;
  }

  .header-controls {
    gap: 14px;
  }

  .theme-toggle {
    height: 36px;
    min-height: 36px;
    max-height: 36px;
  }

  .theme-toggle .theme-toggle-track {
    height: 16px;
  }

  .theme-toggle-label {
    display: none;
  }

  /* Menú abierto en landscape móvil */
  .nav.nav--open {
    top: 70px;
    max-height: calc(100vh - 70px - 16px);
    padding: 20px;
  }
}


/* =========================================================
   5. BOTONES, ETIQUETAS Y CARDS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-main);
  transition:
    background var(--transition-med),
    border-color var(--transition-med),
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    color var(--transition-fast);
}

/* Botón primario */
.btn--primary {
  background: linear-gradient(135deg, #5b6cff, #bba7ff);
  color: #05040e;
  box-shadow: 0 18px 80px rgba(12, 14, 40, 0.25);
}

html[data-theme="dark"] .btn--primary {
  background: linear-gradient(135deg, #7b5cff, #bba7ff);
  color: #05040e;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95);
}

.btn--primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 22px 44px rgba(12, 14, 40, 0.1);
}

/* Botón secundario */
.btn--secondary {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(12, 14, 40, 0.18);
  color: var(--text-main);
}

html[data-theme="dark"] .btn--secondary {
  background: rgba(5, 7, 23, 0.98);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--text-soft);
}

.btn--secondary:hover {
  background: rgba(241, 242, 255, 0.98);
}

html[data-theme="dark"] .btn--secondary:hover {
  background: rgba(9, 11, 32, 0.98);
}

/* Botón fantasma */
.btn--ghost {
  background: transparent;
  border-color: rgba(12, 14, 40, 0.14);
  color: var(--text-soft);
}

html[data-theme="dark"] .btn--ghost {
  border-color: rgba(255, 255, 255, 0.24);
}

.btn--ghost:hover {
  background: rgba(245, 246, 255, 0.9);
  border-color: rgba(12, 14, 40, 0.25);
  color: var(--text-main);
}

html[data-theme="dark"] .btn--ghost:hover {
  background: rgba(8, 10, 32, 0.88);
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--text-strong);
}

/* Tamaños */
.btn--xl {
  padding: 12px 26px;
  font-size: 14px;
}

.btn--sm {
  padding: 7px 14px;
  font-size: 12px;
}

.btn--block {
  width: 100%;
}

/* Cards base */
.card {
  position: relative;
  border-radius: var(--radius-md);
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-subtle);
  color: var(--text-main);
}

html[data-theme="dark"] .card {
  background: #050717;
  color: var(--text-main);
}

/* Card elevable */
.card--lift {
  transition:
    transform var(--transition-med),
    box-shadow var(--transition-med),
    border-color var(--transition-med),
    background var(--transition-med);
}

.card--lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 60px rgba(12, 14, 40, 0.15);
  border-color: rgba(91, 108, 255, 0.4);
}

html[data-theme="dark"] .card--lift:hover {
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.92);
}

/* Card hero highlight */
.card--hero-highlight {
  background: radial-gradient(circle at top, #f0f2ff 0%, #ffffff 100%);
  border: 1px solid rgba(91, 108, 255, 0.42);
}

html[data-theme="dark"] .card--hero-highlight {
  background: radial-gradient(circle at top, #1a1e53 0%, #050717 100%);
  border-color: rgba(123, 92, 255, 0.7);
}

/* Card header/body/footer */
.card-header {
  margin-bottom: 10px;
}

.card-kicker {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  border-radius: var(--radius-pill);
  background: rgba(91, 108, 255, 0.14);
  border: 1px solid rgba(91, 108, 255, 0.45);
}

.card-title {
  margin: 0;
  font-size: 18px;
  color: var(--text-strong);
}

.card-body {
  font-size: 13px;
  color: var(--text-soft);
}

.card-body p {
  margin-bottom: 10px;
}

.card-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.card-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  font-size: 13px;
}

.card-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, #bba7ff, #1fd1ff);
}

.card-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed rgba(12, 14, 40, 0.16);
}

html[data-theme="dark"] .card-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.card-note {
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 30px;
}

/* Tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  border: 1px solid rgba(12, 14, 40, 0.08);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text-soft);
}

html[data-theme="dark"] .tag {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(8, 10, 30, 0.96);
}

/* =========================================================
   6. HERO
   ========================================================= */

.section--hero {
  padding-top: 52px;
  padding-bottom: 64px;
}

.hero-container {
  position: relative;
}

/* Grid hero */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6.5fr) minmax(0, 4.5fr);
  gap: 40px;
  align-items: start;
}

/* Columna izquierda */
.hero-main {
  max-width: 660px;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 12px;
}

.hero-title {
  font-size: 44px;
  line-height: 1.13;
  margin-bottom: 16px;
  color: var(--text-strong);
}

.hero-title span.hero-title-highlight {
  background: linear-gradient(120deg, var(--accent-strong), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-soft);
  max-width: 540px;
  margin-bottom: 24px;
}

/* Acciones hero */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

/* Métricas y confianza */
.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.hero-metrics .metric {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated-soft);
  border: 1px solid rgba(12, 14, 40, 0.08);
}

html[data-theme="dark"] .hero-metrics .metric {
  background: rgba(8, 10, 32, 0.94);
  border-color: rgba(255, 255, 255, 0.1);
}

.hero-metrics dt {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 4px;
}

.hero-metrics dd {
  margin: 0;
  font-size: 12px;
  color: var(--text-soft);
}

/* Bloque de confianza */
.hero-trust {
  min-width: 220px;
  font-size: 12px;
  color: var(--text-soft);
}

.hero-trust-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 6px;
}

.hero-trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Columna derecha: panel */
.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Card “qué resuelves” */
.hero-systems-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  background: radial-gradient(circle at top, #f5f6ff 0%, #ffffff 100%);
  border: 1px solid rgba(91, 108, 255, 0.4);
  box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] .hero-systems-card {
  background: radial-gradient(circle at top, #1a1e53 0%, #050717 100%);
  border-color: rgba(123, 92, 255, 0.7);
}

.hero-systems-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.hero-systems-title {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* Badge circular (texto) */
.hero-systems-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-success-soft);
  color: var(--accent-success);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  padding: 8px;
  box-shadow: 0 0 12px rgba(31, 167, 122, 0.3);
  border: 1px solid rgba(31, 167, 122, 0.5);
  flex-shrink: 0;
}

.hero-systems-heading {
  font-size: 16px;
  color: var(--text-strong);
  margin-bottom: 6px;
}

.hero-systems-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 8px;
}

.hero-systems-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-soft);
}

.hero-systems-list li::before {
  content: "▸";
  position: absolute;
  left: 3px;
  top: 1px;
  font-size: 11px;
  color: var(--accent-secondary);
}

.hero-systems-note {
  font-size: 12px;
  color: var(--text-mute);
}

/* Card “qué gana el cliente” */
.hero-results-card {
  position: relative;
  border-radius: var(--radius-md);
  padding: 12px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px dashed rgba(91, 108, 255, 0.45);
}

html[data-theme="dark"] .hero-results-card {
  background: rgba(8, 10, 32, 0.98);
  border-color: rgba(123, 92, 255, 0.7);
}

.hero-results-title {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 4px;
}

.hero-results-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.hero-results-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--text-soft);
}

.hero-results-list li::before {
  content: "▸";
  position: absolute;
  left: 3px;
  top: 1px;
  font-size: 11px;
  color: var(--accent-secondary);
}

/* =========================================================
   CABECERAS DE SECCIÓN — VERSIÓN IMPACTANTE Y FUTURISTA
   ========================================================= */

.section-header .section-header-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #ffffff;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  margin: 0 auto 28px;

  /* 🔥 GRADIENTE EXPLOSIVO MULTICOLOR */
  background: linear-gradient(
    135deg,
    #ff3cac,
    #784ba0,
    #2b86c5,
    #20e3b2,
    #f9d423
  );
  background-size: 300% 300%;

  /* 🔥 ANIMACIÓN DE COLOR */
  animation: kickerGradient 6s ease infinite;

  /* 🔥 BRILLO Y PROFUNDIDAD */
  box-shadow:
    0 0 22px rgba(255, 60, 172, 0.45),
    0 0 22px rgba(32, 227, 178, 0.35),
    inset 0 0 18px rgba(255,255,255,0.15);
}

/* 🔥 BARRIDO DE LUZ */
.section-header .section-header-label::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.45) 50%,
    transparent 100%
  );
  opacity: 0;
  transform: translateX(-120%);
  transition: transform .6s ease, opacity .4s ease;
}

.section-header .section-header-label:hover::after {
  opacity: 1;
  transform: translateX(120%);
}

/* 🔥 ANIMACIÓN DEL GRADIENTE */
@keyframes kickerGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* =========================================================
   TITULOS DE SECCIÓN — VERSIÓN IMPACTANTE, MODERNA Y PREMIUM
   ========================================================= */

.section-title {
  font-size: 34px; /* antes 26px */
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin-bottom: 14px;

  /* efecto moderno */
  background: linear-gradient(120deg, var(--accent-strong), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  /* sutil brillo */
  text-shadow: 0 4px 22px rgba(91, 108, 255, 0.25);

  /* animación suave al aparecer */
  opacity: 0;
  transform: translateY(12px);
  animation: sectionTitleFade 0.8s ease-out forwards;
}

@keyframes sectionTitleFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subrayado más potente */
.section-title-underline {
  width: 72px; /* más ancho */
  height: 3px;
  border-radius: 999px;
  margin-top: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  box-shadow: 0 4px 14px rgba(91, 108, 255, 0.35);
}

/* Versión responsive */
@media (max-width: 640px) {
  .section-title {
    font-size: 28px;
  }
}


.section-description {
  font-size: 14px;
  color: var(--text-soft);
}

.section-header--center {
  text-align: center;
}


/* =========================================================
   8. SECCIÓN PROPUESTA
   ========================================================= */

.propuesta-container {
  position: relative;
}

.propuesta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.propuesta-block {
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 24px rgba(12, 14, 40, 0.08);
}

html[data-theme="dark"] .propuesta-block {
  background: rgba(7, 9, 28, 0.98);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.85);
}

.propuesta-block-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 6px;
}

.propuesta-block-title {
  font-size: 15px;
  color: var(--text-strong);
  margin-bottom: 6px;
}

.propuesta-block-text {
  font-size: 13px;
  color: var(--text-soft);
}

/* Deep propuesta */
.propuesta-deep {
  position: relative;
  padding: 20px 18px 18px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(240, 242, 255, 0.98), rgba(255, 255, 255, 0.98));
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] .propuesta-deep {
  background: radial-gradient(circle at top left, rgba(17, 19, 56, 0.98), rgba(5, 7, 23, 0.98));
}

.propuesta-deep-title {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-strong);
}

.propuesta-deep-text {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.propuesta-deep-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.propuesta-deep-item {
  font-size: 13px;
  color: var(--text-soft);
}

.propuesta-deep-item .deep-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.propuesta-deep-item .deep-item-text {
  font-size: 12px;
  color: var(--text-mute);
}

/* =========================================================
   9. SECCIÓN SOBRE MÍ (MANIFIESTO)
   ========================================================= */

.manifiesto-container {
  position: relative;
}

.manifiesto-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.manifiesto-block {
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 24px rgba(12, 14, 40, 0.08);
}

html[data-theme="dark"] .manifiesto-block {
  background: rgba(7, 9, 28, 0.98);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.85);
}

.manifiesto-block-badge {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 6px;
}

.manifiesto-block-title {
  font-size: 15px;
  color: var(--text-strong);
  margin-bottom: 6px;
}

.manifiesto-block-text {
  font-size: 13px;
  color: var(--text-soft);
}

/* Deep manifiesto */
.manifiesto-deep {
  position: relative;
  padding: 20px 18px 18px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top right, rgba(242, 243, 255, 0.98), rgba(255, 255, 255, 0.98));
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] .manifiesto-deep {
  background: radial-gradient(circle at top right, rgba(21, 23, 64, 0.98), rgba(5, 7, 23, 0.98));
}

.manifiesto-deep-title {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-strong);
}

.manifiesto-deep-text {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.manifiesto-deep-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.manifiesto-deep-item .deep-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.manifiesto-deep-item .deep-item-text {
  font-size: 12px;
  color: var(--text-mute);
}

/* =========================================================
   10. SECCIÓN PROYECTOS / ESPECIALIZACIÓN
   ========================================================= */

.especializacion-container {
  position: relative;
}

.especializacion-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.especializacion-block {
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
}

html[data-theme="dark"] .especializacion-block {
  background: rgba(7, 9, 28, 0.98);
  border-color: rgba(255, 255, 255, 0.1);
}

.especializacion-block-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 4px;
}

.especializacion-block-title {
  font-size: 15px;
  color: var(--text-strong);
  margin-bottom: 6px;
}

.especializacion-block-text {
  font-size: 13px;
  color: var(--text-soft);
}

/* Deep especialización */
.especializacion-deep {
  position: relative;
  padding: 20px 18px 18px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(244, 245, 255, 0.98), rgba(255, 255, 255, 0.98));
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] .especializacion-deep {
  background: radial-gradient(circle at top left, rgba(24, 27, 72, 0.98), rgba(5, 7, 23, 0.98));
}

.especializacion-deep-title {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-strong);
}

.especializacion-deep-text {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 16px;
}

.especializacion-deep-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.especializacion-deep-item .deep-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.especializacion-deep-item .deep-item-text {
  font-size: 12px;
  color: var(--text-mute);
}

/* =========================================================
   11. SECCIÓN SISTEMA (METODOLOGÍA)
   ========================================================= */

.sistema-container {
  position: relative;
}

.sistema-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.sistema-phase {
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
}

html[data-theme="dark"] .sistema-phase {
  background: rgba(7, 9, 28, 0.98);
  border-color: rgba(255, 255, 255, 0.09);
}

.sistema-phase-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 4px;
}

.sistema-phase-title {
  font-size: 15px;
  color: var(--text-strong);
  margin-bottom: 6px;
}

.sistema-phase-text {
  font-size: 13px;
  color: var(--text-soft);
}

/* Deep sistema */
.sistema-deep {
  position: relative;
  padding: 20px 18px 18px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, rgba(241, 242, 255, 0.98), rgba(255, 255, 255, 0.98));
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] .sistema-deep {
  background: radial-gradient(circle at top, rgba(17, 21, 64, 0.98), rgba(5, 7, 23, 0.98));
}

.sistema-deep-title {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-strong);
}

.sistema-deep-text {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.sistema-deep-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sistema-deep-item .deep-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.sistema-deep-item .deep-item-text {
  font-size: 12px;
  color: var(--text-mute);
}

/* =========================================================
   12. SECCIÓN SECTORES / ENCAJE — VERSIÓN FINAL
   ========================================================= */

/* GRID PRINCIPAL — DOS COLUMNAS */
.encaje-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 36px;
  margin-top: 60px;
  margin-bottom: 80px;
  align-items: start; /* CLAVE: evita que una columna baje si la otra crece */
}


/* CARD BASE — MISMA FORMA QUE ANTES */
.encaje-item {
  position: relative;
  padding: 28px 24px 26px;
  border-radius: var(--radius-lg);
  margin-top: 24px;
  margin-bottom: 32px;

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 1),
    rgba(245, 247, 255, 0.98)
  );

  border: 1px solid rgba(91, 108, 255, 0.35);

  box-shadow:
    0 22px 50px rgba(12, 14, 40, 0.16),
    inset 0 0 22px rgba(91, 108, 255, 0.12);

  transition:
    transform 0.35s cubic-bezier(0.16, 0.8, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 0.8, 0.3, 1),
    border-color 0.35s ease-out,
    background 0.35s ease-out;
}

/* HOVER BASE */
.encaje-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 32px 70px rgba(12, 14, 40, 0.22),
    inset 0 0 32px rgba(91, 108, 255, 0.18);
}

/* TÍTULO DEL CARD */
.encaje-item-title {
  font-size: 37px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  background: linear-gradient(120deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
}

/* TEXTO DEL CARD */
.encaje-item-text {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-soft);
  opacity: 0.95;
}

/* LÍNEA LUMINOSA */
.encaje-item::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: 14px;
  width: 60px;
  height: 3px;
  border-radius: 999px;

  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  opacity: 0.8;

  transform: scaleX(0.5);
  transform-origin: left;
  transition: transform 0.35s ease-out, opacity 0.35s ease-out;
}

.encaje-item:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

/* =========================================================
   ESTILOS VERDES — COLUMNA IZQUIERDA
   ========================================================= */

.encaje-col--good .encaje-item {
  background: linear-gradient(
    145deg,
    rgba(31, 167, 122, 0.18),
    rgba(31, 167, 122, 0.10)
  );
  border-color: rgba(31, 167, 122, 0.55);
}

.encaje-col--good .encaje-item-title {
  background: linear-gradient(120deg, #1fa77a, #3fd58a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.encaje-col--good .encaje-item::after {
  background: linear-gradient(90deg, #1fa77a, #3fd58a);
}

.encaje-col--good .encaje-item:hover {
  background: linear-gradient(
    145deg,
    rgba(31, 167, 122, 0.28),
    rgba(31, 167, 122, 0.16)
  );
  border-color: #3fd58a;
  box-shadow:
    0 32px 70px rgba(31, 167, 122, 0.28),
    inset 0 0 32px rgba(31, 167, 122, 0.22);
}

/* =========================================================
   ESTILOS ROJOS — COLUMNA DERECHA
   ========================================================= */

.encaje-col--bad .encaje-item {
  background: linear-gradient(
    145deg,
    rgba(217, 45, 91, 0.18),
    rgba(217, 45, 91, 0.10)
  );
  border-color: rgba(217, 45, 91, 0.55);
}

.encaje-col--bad .encaje-item-title {
  background: linear-gradient(120deg, #d92d5b, #ff5c7b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.encaje-col--bad .encaje-item::after {
  background: linear-gradient(90deg, #d92d5b, #ff5c7b);
}

.encaje-col--bad .encaje-item:hover {
  background: linear-gradient(
    145deg,
    rgba(217, 45, 91, 0.28),
    rgba(217, 45, 91, 0.16)
  );
  border-color: #ff5c7b;
  box-shadow:
    0 32px 70px rgba(217, 45, 91, 0.28),
    inset 0 0 32px rgba(217, 45, 91, 0.22);
}

/* RESPONSIVE — UNA COLUMNA EN MÓVIL */
@media (max-width: 900px) {
  .encaje-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
}


/* Deep encaje */
.encaje-deep {
  position: relative;
  padding: 20px 18px 18px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top right, rgba(244, 245, 255, 0.98), rgba(255, 255, 255, 0.98));
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] .encaje-deep {
  background: radial-gradient(circle at top right, rgba(24, 26, 72, 0.98), rgba(5, 7, 23, 0.98));
}

.encaje-deep-title {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-strong);
}

.encaje-deep-text {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 10px;
}

/* =========================================================
   13. SECCIÓN FAQ
   ========================================================= */

.faq-container {
  position: relative;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  margin-bottom: 32px;
}

.faq-item {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid rgba(12, 14, 40, 0.08);
}

html[data-theme="dark"] .faq-item {
  background: rgba(8, 10, 32, 0.96);
  border-color: rgba(255, 255, 255, 0.08);
}

.faq-question {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

html[data-theme="dark"] .faq-question {
  color: var(--text-main);
}

.faq-answer {
  font-size: 13px;
  color: var(--text-soft);
}

/* Deep FAQ */
.faq-deep {
  position: relative;
  padding: 20px 18px 18px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(244, 245, 255, 0.98), rgba(255, 255, 255, 0.98));
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] .faq-deep {
  background: radial-gradient(circle at top left, rgba(24, 26, 72, 0.98), rgba(5, 7, 23, 0.98));
}

.faq-deep-title {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-strong);
}

.faq-deep-text {
  font-size: 13px;
  color: var(--text-soft);
}

/* =========================================================
   14. SECCIÓN CTA FINAL
   ========================================================= */

.section--cta {
  padding-bottom: 80px;
}

.cta-container {
  position: relative;
}

/* Caja CTA principal */
.cta-box {
  max-width: 660px;
  margin: 0 auto 32px;
  text-align: center;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top, rgba(244, 245, 255, 1), rgba(255, 255, 255, 1));
  border: 1px solid rgba(91, 108, 255, 0.5);
  box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] .cta-box {
  background: radial-gradient(circle at top, rgba(24, 27, 80, 1), rgba(5, 7, 23, 1));
  border-color: rgba(123, 92, 255, 0.7);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.8);
}

.cta-box-title {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--text-strong);
}

.cta-box-text {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.cta-box-note {
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 12px;
}

/* Deep CTA */
.cta-deep {
  position: relative;
  padding: 20px 18px 18px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at bottom, rgba(244, 245, 255, 0.98), rgba(255, 255, 255, 0.98));
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] .cta-deep {
  background: radial-gradient(circle at bottom, rgba(22, 25, 72, 0.98), rgba(5, 7, 23, 0.98));
}

.cta-deep-title {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-strong);
}

.cta-deep-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cta-deep-item .deep-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.cta-deep-item .deep-item-text {
  font-size: 12px;
  color: var(--text-mute);
}

/* =========================================================
   15. FOOTER (SIN NINGÚN FONDO CUÁNTICO)
   ========================================================= */

.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(12, 14, 40, 0.08);
  background: #f3f5fb; /* opaco */
}

html[data-theme="dark"] .site-footer {
  border-top-color: rgba(255, 255, 255, 0.06);
  background: #050612; /* opaco */
}

.footer-container {
  position: relative;
  padding-top: 24px;
  padding-bottom: 24px;
}

/* Bloqueo total de fondos detrás del footer */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  z-index: -1;
}

/* Grid footer */
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 3.5fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.footer-col-title {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 8px;
}

/* Nav footer */
.footer-nav {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.footer-nav li {
  margin-bottom: 4px;
}

.footer-nav a {
  font-size: 13px;
  color: var(--text-soft);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--text-main);
}

html[data-theme="dark"] .footer-nav a:hover {
  color: var(--text-strong);
}

/* Meta footer */
.footer-meta {
  display: grid;
  list-style: none;
  margin: 0;
  padding-left: 0;
  font-size: 12px;
  color: var(--text-soft);
  gap: 0.5rem;
}

.footer-meta li {
  margin-bottom: 4px;
}

.footer-meta span {
  font-weight: 600;
  color: var(--text-main);
}

/* Contacto footer */
.footer-contact {
  list-style: none;
  margin: 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  text-align: left;
  margin-left: 0;        
}


.footer-contact a {
  font-size: 13px;
  color: var(--accent-strong);
  text-decoration: none;
  border-bottom: 1px dashed rgba(91, 108, 255, 0.5);
  padding-bottom: 2px;
}

/* Línea final */
.footer-bottom {
  display: flex;
  justify-content: center;
}

.footer-copy {
  font-size: 11px;
  color: var(--text-mute);
}

/* =========================================================
   16. RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {
  .container {
    max-width: 1000px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
  }

  .propuesta-deep-grid,
  .manifiesto-deep-grid,
  .especializacion-deep-grid,
  .sistema-deep-grid,
  .cta-deep-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .especializacion-grid,
  .sistema-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 56px 0 56px;
  }

  .section--hero {
    padding-top: 44px;
  }

  .header-inner {
    height: 70px;
  }

  .nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero-main {
    max-width: none;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-meta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .propuesta-grid,
  .manifiesto-grid,
  .especializacion-grid,
  .sistema-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .encaje-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 48px 0 48px;
  }

  .section--hero {
    padding-top: 32px;
  }

  .section-title {
    font-size: 22px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .propuesta-grid,
  .manifiesto-grid,
  .especializacion-grid,
  .sistema-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .propuesta-deep-grid,
  .manifiesto-deep-grid,
  .especializacion-deep-grid,
  .sistema-deep-grid,
  .cta-deep-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-box {
    padding: 20px 16px 20px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-container {
    padding-top: 22px;
    padding-bottom: 22px;
  }
}

/* =========================================================
   FORMATS BLOCK — BASE
   ========================================================= */

.strategic-formats {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0;
  background: none;
  overflow: visible;
}

/* =========================================================
   CARD GRANDE — RESPONSIVE Y MISMO ANCHO QUE EL SUPERIOR
   ========================================================= */

.strategic-formats-inner {
  position: relative;
  z-index: 1;
  background: var(--bg-main);
  border-radius: 28px;
  padding: clamp(24px, 5vw, 64px);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);

  max-width: 1200px;
  width: 92%;
  margin: 0 auto;
}

.strategic-formats-inner > * {
  position: relative;
  z-index: 2;
}

/* =========================================================
   DRAGÓN — BASE
   ========================================================= */

.strategic-dragon {
  position: absolute;
  inset: -28% -28%;
  z-index: 0;
  pointer-events: none;

  opacity: 0.9;
  filter: blur(26px);
  will-change: transform, opacity, filter;
  transform: translate3d(-18%, 8%, 0) scale(1.18);
}

/* =========================================================
   TEMA OSCURO — EFECTO BRILLANTE
   ========================================================= */

:root[data-theme="dark"] .strategic-dragon {
  mix-blend-mode: screen;
  background:
    radial-gradient(ellipse at 15% 40%, rgba(91,108,255,0.45), rgba(12,14,40,0.25) 70%),
    radial-gradient(ellipse at 85% 60%, rgba(0,167,201,0.45), rgba(12,14,40,0.25) 70%),
    conic-gradient(
      from 200deg,
      rgba(91,108,255,1) 0deg,
      rgba(56,189,248,1) 90deg,
      rgba(0,167,201,1) 150deg,
      rgba(245,159,54,1) 210deg,
      rgba(91,108,255,0.35) 280deg,
      rgba(56,189,248,0.35) 360deg
    );
}

/* =========================================================
   TEMA CLARO — EFECTO VISIBLE SIEMPRE
   ========================================================= */

:root[data-theme="light"] .strategic-dragon {
  mix-blend-mode: normal; /* ← CLAVE: sin mezcla */
  opacity: 0.9;
  filter: blur(24px);

  /* Colores más oscuros para que CONTRASTEN sobre blanco */
  background:
    radial-gradient(ellipse at 15% 40%, rgba(91,108,255,0.55), rgba(200,210,240,0.55) 70%),
    radial-gradient(ellipse at 85% 60%, rgba(0,167,201,0.55), rgba(200,210,240,0.55) 70%),
    conic-gradient(
      from 200deg,
      rgba(91,108,255,0.85) 0deg,
      rgba(56,189,248,0.85) 90deg,
      rgba(0,167,201,0.85) 150deg,
      rgba(245,159,54,0.85) 210deg,
      rgba(91,108,255,0.45) 280deg,
      rgba(56,189,248,0.45) 360deg
    );
}

/* Animación */
.strategic-formats.is-visible .strategic-dragon {
  opacity: 1;
  animation: dragonPath 22s ease-in-out infinite;
}


/* =========================================================
   TITULOS Y TEXTOS
   ========================================================= */

.strategic-formats-title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--text-strong);
}

.strategic-formats-subtitle {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.65;
  color: #000;
  margin-bottom: 40px;
}

html[data-theme="dark"] .strategic-formats-subtitle {
  color: #fff;
}

/* =========================================================
   GRID DE TARJETAS — RESPONSIVE
   ========================================================= */

.strategic-formats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 900px) {
  .strategic-formats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
}

/* =========================================================
   TARJETAS — CÍRCULOS + BOTÓN A LA MISMA ALTURA
   ========================================================= */

.strategic-format-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-subtle);
  transition:
    transform var(--transition-med),
    box-shadow var(--transition-med),
    border-color var(--transition-med),
    background-color var(--transition-med);

  display: grid;

  grid-template-rows:
    auto                     /* título */
    1fr                      /* descripción */
    minmax(160px, auto)      /* TAGS — MISMA ALTURA */
    auto;                    /* botón */

  row-gap: 16px;
  height: 100%;
}

.strategic-format-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
  background: radial-gradient(circle at 0% 0%, var(--accent-soft), var(--bg-elevated) 55%);
}

/* =========================================================
   TITULO + DESCRIPCIÓN
   ========================================================= */

.strategic-format-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-strong);
}

.strategic-format-description {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
}

/* =========================================================
   TAGS — CÍRCULOS 2×2 PERFECTOS Y RESPONSIVE
   ========================================================= */

.strategic-format-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 3vw, 14px);
  justify-items: center;

  align-self: center;

  /* AUMENTAMOS LA SEPARACIÓN ANTES DEL BOTÓN */
  margin-top: 4px;
  margin-bottom: 28px; 
}

.strategic-format-tags li {
  display: flex;
  align-items: center;
  justify-content: center;

  width: clamp(78px, 28vw, 96px);
  height: clamp(78px, 28vw, 96px);
  border-radius: 50%;

  font-size: clamp(12px, 3vw, 14px);
  font-weight: 600;
  text-align: center;
  line-height: 1.1;

  background: linear-gradient(135deg, rgba(91,108,255,0.45), rgba(0,167,201,0.45));
  border: 1px solid rgba(91,108,255,0.55);
  backdrop-filter: blur(8px);
  color: var(--text-strong);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

/* =========================================================
   CTA — CENTRADO, MISMA ALTURA, RESPONSIVE
   ========================================================= */

.strategic-format-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: 240px;
  height: 48px;
  margin: 0 auto;

  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;

  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);

  background: linear-gradient(135deg, #f8fafc, #e5e7eb);
  color: var(--text-strong);
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;

  box-shadow: 0 10px 22px rgba(12, 14, 40, 0.14);

  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.strategic-format-cta:hover {
  color: #fff;
  border-color: var(--accent-strong);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(12, 14, 40, 0.28);
}

/* =========================================================
   MODO OSCURO
   ========================================================= */

html[data-theme="dark"] .strategic-formats-inner {
  background: #02030a;
}

html[data-theme="dark"] .strategic-format-card {
  background: #050617;
  border-color: rgba(148,163,184,0.45);
  box-shadow: 0 18px 40px rgba(0,0,0,0.7);
}

html[data-theme="dark"] .strategic-format-tags li {
  background: rgba(15,23,42,0.9);
  border-color: rgba(148,163,184,0.7);
  color: #e5e7eb;
}

html[data-theme="dark"] .strategic-format-cta {
  background: linear-gradient(135deg, #020617, #020617);
  border-color: rgba(148,163,184,0.7);
  color: #e5e7eb;
}


/* =========================================================
   SERVICIOS.CSS — ULTRA PREMIUM / FUTURISTA / COMPACTO
   ========================================================= */

/* ===========================
   0) BASE ESPECÍFICA SERVICIOS
   =========================== */

.section.section--services {
  position: relative;
  z-index: 1;
}

/* Para que todo el contenido de servicios respire bien */
.section--services,
.hero--services,
.section--encaje-services,
.section-acompanamiento,
.section--faq,
.section--cta-final {
  scroll-margin-top: 80px; /* por si hay header fijo */
}

/* ===========================
   1) HERO — SERVICIOS
   =========================== */

.hero--services {
  padding: 120px 0 100px;
  position: relative;
  z-index: 5;
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-services-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.hero-kicker {
  display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 18px;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.22em;
        color: #ffffff;
        border-radius: 999px;
        position: relative;
        overflow: hidden;
        margin-bottom: 18px;
        background: linear-gradient(
          135deg,
          #ff3cac,
          #784ba0,
          #2b86c5,
          #20e3b2,
          #f9d423
        );
        background-size: 300% 300%;
        animation: aboutKickerGradient 7s ease infinite;
        box-shadow:
          0 0 22px rgba(255, 60, 172, 0.45),
          0 0 22px rgba(32, 227, 178, 0.35),
          inset 0 0 18px rgba(255,255,255,0.2);
      }

      @keyframes aboutKickerGradient {
        0%   { background-position: 0% 50%; }
        50%  { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
      }

.hero-title--services {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 760px;
  color: var(--text);
  text-wrap: balance;
  text-rendering: optimizeLegibility;
}

.hero-subtitle--services {
  font-size: 18px;
  opacity: 0.85;
  max-width: 720px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-services-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.hero-services-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-footnote--services {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-secondary);
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  max-width: 640px;
  margin-top: 32px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.hero-footnote--services:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 2px var(--accent);
}

.hero-footnote--services .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green-light);
  flex-shrink: 0;
}

.hero-services-aside {
  display: flex;
  flex-direction: column;
  gap: 54px;
}

@keyframes asideFade {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Panels */
.hero-panel {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 16px 36px rgba(0,0,0,0.35);
  transition: transform .3s ease, box-shadow .3s ease;
}

.hero-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.45);
}

.hero-panel--primary {
  border-left: 4px solid var(--accent);
}

.hero-panel-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-panel-text {
  opacity: 0.85;
  line-height: 1.55;
}

.hero-panel--metrics {
  display: grid;
  gap: 14px;
}

.hero-metric-label {
  font-size: 12px;
  opacity: 0.55;
  margin-bottom: 2px;
}

.hero-metric-value {
  font-size: 16px;
  font-weight: 600;
}

.hero-panel--quote {
  font-style: italic;
  opacity: 0.8;
}

/* ===========================
   2) MAPA DE SERVICIOS — PILARES
   =========================== */

.pillars-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 36px 40px;
  align-items: stretch;
}

.pillar-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 18px 36px rgba(0,0,0,0.28);
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
  overflow: hidden;
}

.pillar-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 28px 56px rgba(0,0,0,0.38);
}

.pillar-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.06));
  opacity: 0;
  transition: opacity .3s ease;
}

.pillar-card:hover::after {
  opacity: 1;
}

.pillar-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-secondary);
  margin-bottom: 12px;
}

.pillar-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pillar-text {
  opacity: 0.82;
  margin-bottom: 14px;
  line-height: 1.55;
}

.pillar-list li {
  opacity: 0.75;
  margin-bottom: 6px;
  padding-left: 12px;
  position: relative;
}

.pillar-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ===========================
   3) SPLIT LAYOUT — PROFUNDO
   =========================== */

.split-layout {
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.split-layout--reverse {
  grid-template-columns: 0.85fr 1.15fr;
}

.split-side--card {
  background: rgba(255,255,255,0.03);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.28);
  transition: transform .3s ease, box-shadow .3s ease;
  max-width: 550px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 50px;
}

.split-side--card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 48px rgba(0,0,0,0.38);
}

/* Reducir altura vertical del aside */
.split-side--card {
  padding: 14px 16px !important; /* antes 24px */
  display: flex;
  flex-direction: column;
  gap: 10px !important; /* reduce separación interna */
}

/* Asegurar que el grid no lo estira verticalmente */
.split-layout,
.split-layout--reverse {
  align-items: start !important;
}

/* Reducir márgenes internos de listas y títulos */
.split-side--card .side-title {
  margin-bottom: 6px !important;
}

.split-side--card .side-list li {
  margin-bottom: 4px !important;
}

.side-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 14px;
}

.side-list li {
  opacity: 0.78;
  margin-bottom: 8px;
  padding-left: 12px;
  position: relative;
}

.side-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
}

.side-cta {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent-secondary);
  font-weight: 600;
  transition: color .3s ease;
}

.side-cta:hover {
  color: var(--accent);
}

/* ===========================
   4) FEATURE GRID — ARQUITECTURA
   =========================== */

.feature-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.feature-card {
  background: rgba(255,255,255,0.03);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  transition: transform .3s ease, box-shadow .3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(0,0,0,0.32);
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-text {
  opacity: 0.78;
  line-height: 1.55;
}

.section--timeline {
  padding-top: 60px;
  padding-bottom: 60px;
}

.timeline-wrapper {
  display: flex;
  justify-content: center;
}

.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
}

.timeline {
  position: relative;
  background: #0b0f1d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #5b6cff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
}

.timeline:hover {
  transform: translateY(-2px);
}

.timeline-number {
  position: absolute;
  top: -14px;
  left: -14px;
  background: #5b6cff;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(91, 108, 255, 0.5);
}

.timeline-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8ea0ff;
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #f5f5f7;
}

.timeline-text {
  font-size: 14px;
  color: #c2c7d1;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
  .timeline-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .timeline-number {
    top: -10px;
    left: -10px;
    font-size: 12px;
    padding: 5px 8px;
  }
}


/* ===========================
   6) INTEGRACIÓN — TECNOLÓGICO
   =========================== */

.integration-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.integration-card {
  background: rgba(255,255,255,0.03);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.integration-card--highlight {
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(91,108,255,0.25);
}

.integration-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(0,0,0,0.32);
}

.integration-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.integration-list li {
  opacity: 0.78;
  margin-bottom: 6px;
  padding-left: 12px;
  position: relative;
}

.integration-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
}

/* ===========================
   7) ENCAJE — SERVICIOS
   =========================== */

.section--encaje-services {
  padding: 0;
}

.encaje-col-title {
  font-size: 30px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2;
  margin-bottom: 36px;
  text-shadow: 0 0 12px rgba(91,108,255,0.35);
  position: relative;
  isolation: isolate;
}

/* Línea luminosa inferior (fusionada, sin duplicados) */
.encaje-col-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--accent-primary),
    rgba(255,255,255,0.4),
    var(--accent-primary)
  );
  box-shadow: 0 0 12px var(--accent-primary);
  opacity: 0.9;
}

/* Microbarra superior */
.encaje-col-title::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
}

.encaje-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 36px;
  margin-top: 20px;
  margin-bottom: 80px;
  align-items: stretch; /* ← clave para igualar altura */
}

.encaje-block {
  flex-direction: column;
  gap: 2px;
  justify-content: space-between;
}

.encaje-col-title {
  font-size: 22px;
  margin-bottom: 6px;
}

.encaje-item {
  background: #0b0f1d;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px;
  flex-grow: 1;
}

.encaje-item-title {
  font-size: 18px;
  margin-bottom: 6px;
}

.encaje-item-text {
  font-size: 14px;
  color: #c2c7d1;
}

/* Fondo verde para “Podemos trabajar juntos” */
.encaje-block--verde .encaje-item {
  background: linear-gradient(135deg, #1f6f3f, #2ea964);
  color: #fff;
  border: none;
}

.encaje-block--verde .encaje-item-text {
  color: #e3fbe9;
}

/* Fondo rojo para “Puede no ser buen encaje” */
.encaje-block--rojo .encaje-item {
  background: linear-gradient(135deg, #7c1f1f, #d13c3c);
  color: #fff;
  border: none;
}

.encaje-block--rojo .encaje-item-text {
  color: #ffeaea;
}

/* Responsive */
@media (max-width: 900px) {
  .encaje-grid {
    grid-template-columns: 1fr;
  }
}


/* ===========================
   8) FLUJO DE COLABORACIÓN
   =========================== */

/* Lista sin bullets */
.flow-steps {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0 0;
}

/* Paso individual */
.flow-step {
  position: relative;
  margin-bottom: 2.2rem;
}

/* Número circular generado por pseudo-elemento */
.flow-step::before {
  content: attr(data-step);
  position: absolute;
  top: 0;
  left: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: #4da3ff;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contenedor que alinea el número + “PASO X” */
.flow-step-header {
  display: flex;
  align-items: center;
  min-height: 2.6rem;      /* igual que el círculo */
  margin-bottom: 0.4rem;
  padding-left: 3.8rem;    /* deja sitio al círculo */
}

/* Texto “PASO X” alineado al centro del círculo */
.flow-step-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #4da3ff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

/* Título */
.flow-step-title {
  margin: 0.4rem 0 0.6rem;
  font-size: 1.25rem;
  font-weight: 600;
  padding-left: 3.8rem;    /* alineado con el texto del header */
}

/* Texto */
.flow-step-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  padding-left: 3.8rem;    /* alineado con el título */
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
  .flow-steps {
    margin-top: 2.2rem;
  }

  .flow-step {
    margin-bottom: 1.8rem;
  }

  .flow-step::before {
    width: 2.3rem;
    height: 2.3rem;
    font-size: 1.05rem;
    top: 0.1rem;
  }

  .flow-step-header {
    padding-left: 3.2rem;
    min-height: 2.3rem;
    margin-bottom: 0.3rem;
  }

  .flow-step-label {
    font-size: 0.85rem;
    letter-spacing: 0.4px;
  }

  .flow-step-title {
    padding-left: 3.2rem;
    font-size: 1.1rem;
    margin: 0.3rem 0 0.5rem;
  }

  .flow-step-text {
    padding-left: 3.2rem;
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .flow-steps {
    margin-top: 2rem;
  }

  .flow-step {
    margin-bottom: 1.6rem;
  }

  .flow-step::before {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1rem;
  }

  .flow-step-header {
    padding-left: 3rem;
  }

  .flow-step-title,
  .flow-step-text {
    padding-left: 3rem;
  }
}


/* ===========================
   9) FAQ — SERVICIOS (DETAILS)
   =========================== */

.section--faq {
  padding: 20px 0 20px 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 48px;
  margin-top: 80px;
  position: relative;
  z-index: 1;
}

.faq-item {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(91,108,255,0.35);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(14px);
  box-shadow:
    0 0 20px rgba(91,108,255,0.25),
    inset 0 0 20px rgba(255,255,255,0.05);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.faq-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(91,108,255,0.25) 50%,
    transparent 100%
  );
  opacity: 0.15;
  mix-blend-mode: screen;
  transform: translateX(-100%);
  animation: holoSweep 6s infinite linear;
}

@keyframes holoSweep {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* STATE HOVER (solo efecto visual extra) */
.faq-item:hover {
  transform: translateY(-8px);
  border-color: rgba(91,108,255,0.8);
  box-shadow:
    0 0 40px rgba(91,108,255,0.45),
    inset 0 0 30px rgba(255,255,255,0.1);
}

/* SUMMARY */
.faq-question {
  padding: 32px 40px;
  cursor: pointer;
  list-style: none;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent-primary);
  text-shadow: 0 0 12px rgba(91,108,255,0.35);
}

.faq-question::-webkit-details-marker {
  display: none;
}

/* Flecha */
.faq-question::after {
  content: "►";
  float: right;
  transition: transform .3s ease, opacity .3s ease;
  opacity: 0.7;
}

.faq-item[open] .faq-question::after {
  content: "▼";
  transform: rotate(180deg);
  opacity: 1;
}

/* ANSWER */
.faq-answer {
  padding: 0 40px 32px;
  opacity: 0.78;
  line-height: 1.55;
  animation: faqOpen .35s ease;
}

@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   10) CTA FINAL — CINEMÁTICA
   =========================== */

.section--cta-final {
  text-align: center;
  padding: 80px 0;
}

.cta-final-title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-final-text {
  max-width: 680px;
  margin: 0 auto 32px;
  opacity: 0.82;
  line-height: 1.6;
}

.cta-final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

/* =========================================================
   BLOQUE PROFUNDO — ACOMPAÑAMIENTO (VERSIÓN PREMIUM)
   ========================================================= */

.section-acompanamiento {
  padding: 100px 0;
  position: relative;
}

/* GRID PRINCIPAL */
.section-acompanamiento-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  grid-auto-rows: min-content;
  align-items: start;
  gap: 48px;
}

/* TITULAR MÁS PODEROSO */
.section-title--acompanamiento {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

/* SUBTÍTULO MÁS ELEGANTE */
.section-subtitle--acompanamiento {
  opacity: 0.85;
  font-size: 18px;
  line-height: 1.65;
  max-width: 720px;
  margin-bottom: 40px;
}

/* GRID DE DOS BLOQUES */
.acompanamiento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* BLOQUES INTERNOS */
.acompanamiento-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 28px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.25);
  transition: transform .35s ease, box-shadow .35s ease;
}

.acompanamiento-block:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 48px rgba(0,0,0,0.35);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #ffffff;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  margin: 0 auto 48px;

  /* 🔥 GRADIENTE EXPLOSIVO MULTICOLOR */
  background: linear-gradient(
    135deg,
    #ff3cac,
    #784ba0,
    #2b86c5,
    #20e3b2,
    #f9d423
  );
  background-size: 300% 300%;

  /* 🔥 ANIMACIÓN DE COLOR */
  animation: kickerGradient 6s ease infinite;

  /* 🔥 BRILLO Y PROFUNDIDAD */
  box-shadow:
    0 0 22px rgba(255, 60, 172, 0.45),
    0 0 22px rgba(32, 227, 178, 0.35),
    inset 0 0 18px rgba(255,255,255,0.15);
}

/* 🔥 BARRIDO DE LUZ */
.section-kicker::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.45) 50%,
    transparent 100%
  );
  opacity: 0;
  transform: translateX(-120%);
  transition: transform .6s ease, opacity .4s ease;
}

.section-kicker:hover::after {
  opacity: 1;
  transform: translateX(120%);
}

/* 🔥 ANIMACIÓN DEL GRADIENTE */
@keyframes kickerGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* PANEL LATERAL DESTACADO */
.acompanamiento-aside {
  align-self: start;
  position: relative;
  top: 0;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.acompanamiento-quote {
  background: linear-gradient(135deg, rgba(91,108,255,0.15), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.12);
  padding: 32px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.35);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--accent-secondary);
  position: relative;
  top: 0;
}

@keyframes quoteFade {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* SLIDERS COMPROMISO */

.compromiso-sliders {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.compromiso-bar {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 20px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.compromiso-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-secondary);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.compromiso-track {
  width: 100%;
  height: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.compromiso-fill {
  width: 100%;
  height: 100%;
  animation: fillBar 2s ease forwards;
  box-shadow: 0 0 12px currentColor;
}

/* Colores únicos por slider */
.compromiso--implicacion .compromiso-fill {
  background: linear-gradient(90deg, #00c9a7, #00e6c3);
  color: #00c9a7;
}

.compromiso--coherencia .compromiso-fill {
  background: linear-gradient(90deg, #ff6b6b, #ff8787);
  color: #ff6b6b;
}

.compromiso--automatizacion .compromiso-fill {
  background: linear-gradient(90deg, #ffa94d, #ffc078);
  color: #ffa94d;
}

.compromiso--visibilidad .compromiso-fill {
  background: linear-gradient(90deg, #20c997, #38d9a9);
  color: #20c997;
}

.compromiso--documentacion .compromiso-fill {
  background: linear-gradient(90deg, #e64980, #f783ac);
  color: #e64980;
}

.compromiso--alineacion .compromiso-fill {
  background: linear-gradient(90deg, #845ef7, #b197fc);
  color: #845ef7;
}

@keyframes fillBar {
  from { width: 0%; }
  to   { width: 100%; }
}

/* LISTAS ACOMPAÑAMIENTO */
.bullet-list li {
  opacity: 0.85;
  margin-bottom: 10px;
  padding-left: 14px;
  position: relative;
}

.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 18px;
}

.button--primary {
  position: relative;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, #5b6cff, #8f6bff);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    0 0 18px rgba(91,108,255,0.55),
    inset 0 0 12px rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  transition: all .28s ease;
  overflow: hidden;
  text-align: center;
}

.button--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.35) 50%,
    transparent 100%
  );
  opacity: 0;
  transform: translateX(-120%);
  transition: transform .6s ease, opacity .4s ease;
}

.button--primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 28px rgba(91,108,255,0.75),
    inset 0 0 18px rgba(255,255,255,0.25);
}

.button--primary:hover::before {
  opacity: 1;
  transform: translateX(120%);
}

.button--ghost {
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: #e8e4ff; /* texto morado claro */
  background: #2a1b47; /* morado oscuro sólido */
  border: 1px solid #5b4b8a; /* borde morado suave */
  transition: all .25s ease;
  text-align: center;
}

.button--ghost:hover {
  background: #3a2563; /* morado más intenso */
  border-color: #7a63c7; /* borde más luminoso */
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 14px rgba(122, 99, 199, 0.35);
}


/* ===========================
   RESPONSIVE — BREAKPOINTS
   =========================== */

/* <= 1024px (tablets landscape / laptops pequeños) */
@media (max-width: 1024px) {
  .hero--services {
    padding: 100px 0 80px;
  }

  .hero-services-grid {
    grid-template-columns: 1fr;
  }

  .hero-services-aside {
    max-width: 640px;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .split-layout,
  .split-layout--reverse {
    grid-template-columns: 1fr;
  }

  .section-acompanamiento-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .faq-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* <= 768px (tablets portrait / móviles grandes) */
@media (max-width: 768px) {
  .hero--services {
    padding: 80px 0 64px;
  }

  .hero-title--services {
    font-size: clamp(30px, 7vw, 40px);
  }

  .hero-subtitle--services {
    font-size: 16px;
  }

  .hero-services-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pillars-grid {
    gap: 24px;
    margin-top: 40px;
  }

  .feature-grid,
  .integration-grid {
    gap: 20px;
  }

  .section--encaje-services {
    padding: 60px 0 30px 0;
  }

  .encaje-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 30px;
  }

  .section-acompanamiento {
    padding: 80px 0;
  }

  .section-acompanamiento-grid {
    grid-template-columns: 1fr;
  }

  .acompanamiento-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 48px;
  }

  .faq-question {
    padding: 24px 24px 18px;
    font-size: 18px;
  }

  .faq-answer {
    padding: 0 24px 24px;
  }

  .cta-final-title {
    font-size: clamp(26px, 6vw, 32px);
  }

  .cta-final-text {
    padding: 0 16px;
  }

  .flow-step {
    margin-bottom: 32px;
  }
}

/* <= 480px (móviles pequeños) */
@media (max-width: 480px) {
  .hero--services {
    padding: 64px 0 48px;
  }

  .hero-title--services {
    font-size: 28px;
  }

  .hero-services-grid {
    gap: 32px;
  }

  .hero-footnote--services {
    flex-direction: column;
    align-items: flex-start;
  }

  .pillar-card,
  .feature-card,
  .integration-card,
  .split-side--card,
  .acompanamiento-block,
  .acompanamiento-quote,
  .faq-item {
    padding: 20px;
  }

  .faq-question {
    padding: 20px 20px 14px;
  }

  .faq-answer {
    padding: 0 20px 20px;
  }

  .encaje-col-title {
    font-size: 22px;
    letter-spacing: 1px;
    margin-bottom: 24px;
  }

  .flow-step::before {
    width: 24px;
    height: 24px;
    left: 10px;
    font-size: 12px;
  }

  .section--cta-final {
    padding: 80px 0;
  }
}

.section--timeline {
  padding-top: 60px;
  padding-bottom: 60px;
}

.timeline-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
}

.timeline {
  background: #0b0f1d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #5b6cff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
}

.timeline:hover {
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 900px) {
  .timeline-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

/* =========================================================
   BOTÓN SUBIR ARRIBA
   ========================================================= */

#btn-scroll-top {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--accent-secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all .35s ease;
  z-index: 9999;
}

#btn-scroll-top svg {
  width: 22px;
  height: 22px;
}

#btn-scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =========================================================
   BOTÓN WHATSAPP
   ========================================================= */

#btn-whatsapp {
  position: fixed;
  bottom: 22px;
  left: 22px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  text-decoration: none;
  z-index: 9999;
  transition: transform .25s ease, box-shadow .25s ease;
}

#btn-whatsapp svg {
  width: 26px;
  height: 26px;
}

#btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}

/* Pulso suave para el botón de WhatsApp */
@keyframes whatsappPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

#btn-whatsapp {
  animation: whatsappPulse 2.4s ease-in-out infinite;
}

/* Glow cuántico para el botón de subir arriba */
@keyframes quantumGlow {
  0% {
    box-shadow:
      0 0 12px rgba(91,108,255,0.45),
      0 0 24px rgba(32,227,178,0.25),
      0 0 36px rgba(249,212,35,0.18);
  }
  50% {
    box-shadow:
      0 0 20px rgba(91,108,255,0.75),
      0 0 36px rgba(32,227,178,0.35),
      0 0 48px rgba(249,212,35,0.28);
  }
  100% {
    box-shadow:
      0 0 12px rgba(91,108,255,0.45),
      0 0 24px rgba(32,227,178,0.25),
      0 0 36px rgba(249,212,35,0.18);
  }
}

#btn-scroll-top.show {
  animation: quantumGlow 3.2s ease-in-out infinite;
}

@keyframes floatUp {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

#btn-scroll-top.show {
  animation:
    quantumGlow 3.2s ease-in-out infinite,
    floatUp 4s ease-in-out infinite;
}

/* Halo verde sincronizado con el pulso */
@keyframes whatsappHalo {
  0%   { box-shadow: 0 0 0 rgba(37,211,102,0); }
  50%  { box-shadow: 0 0 22px rgba(37,211,102,0.55); }
  100% { box-shadow: 0 0 0 rgba(37,211,102,0); }
}

#btn-whatsapp {
  animation:
    whatsappPulse 2.4s ease-in-out infinite,
    whatsappHalo 2.4s ease-in-out infinite;
}

.section-reveal {
  opacity: 0;
  transform: translateY(90px);
  filter: blur(18px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1s ease-out;
  will-change: opacity, transform, filter;
}

.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

#btn-whatsapp {
  opacity: 1;
  animation: fadeInUltraSoft 1.5s ease-out forwards;
  animation-delay: 0.05s;
  display: flex !important; visibility: visible !important; opacity: 1 !important;
}

/* ===========================
   BANNER DE COOKIES (MOBILE FIRST)
=========================== */

.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;          /* solo pegado abajo */
  width: 100%;
  z-index: 999999;

  background: #111;
  color: #fff;

  padding: 1.4rem 0 1.6rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 -6px 24px rgba(0,0,0,0.5);

  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner-inner {
  max-width: 100%;
  margin: 0;
  padding: 0 1.1rem;

  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-banner-text h2 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.cookie-banner-text p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  opacity: 0.9;
}

/* Botones en columna, full-width, cómodos para dedo */

.cookie-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
}

.cookie-btn {
  padding: 0.7rem 1rem;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Aceptar */
.cookie-btn-primary {
  background: #0b84ff;
  color: #fff;
  box-shadow: 0 3px 14px rgba(11,132,255,0.4);
}
.cookie-btn-primary:hover {
  background: #0066d6;
}

/* Rechazar */
.cookie-btn-secondary {
  background: #333;
  color: #fff;
}
.cookie-btn-secondary:hover {
  background: #222;
}

/* Configurar */
.cookie-btn-ghost {
  background: transparent;
  color: #ddd;
  border: 1px solid #555;
}
.cookie-btn-ghost:hover {
  color: #fff;
  border-color: #aaa;
  background: rgba(255,255,255,0.06);
}

/* ===========================
   MODAL (MOBILE FIRST)
=========================== */

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: rgba(0,0,0,0.7);

  display: flex;
  align-items: flex-end;      /* en móvil, tipo "sheet" desde abajo */
  justify-content: center;

  padding: 0;                 /* controlado por inner */
}

.cookie-modal-inner {
  background: #111;
  width: 100%;
  max-height: 80vh;           /* que no se salga de la pantalla */
  border-radius: 16px 16px 0 0;
  padding: 1.4rem 1.2rem 1.2rem;
  box-shadow: 0 -10px 32px rgba(0,0,0,0.6);

  display: flex;
  flex-direction: column;
  gap: 1rem;

  overflow-y: auto;           /* scroll interno si hace falta */
}

.cookie-modal-inner h2 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.cookie-modal-inner p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  opacity: 0.9;
}

.cookie-options {
  margin: 1.1rem 0 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.9rem;
}

.cookie-options label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.cookie-options input[type="checkbox"] {
  margin-top: 0.15rem;
}

.cookie-modal-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.55rem;
  margin-top: 0.4rem;
}

.cookie-modal-actions .cookie-btn {
  width: 100%;
}

.cookie-modal[hidden] {
  display: none !important;
}

/* ===========================
   BOTÓN FLOTANTE (MOBILE FIRST)
=========================== */

.cookie-preferences-floating {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999998;

  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  cursor: pointer;

  font-size: 0.85rem;
  font-weight: 600;

  background: var(--cookie-btn-bg);
  color: var(--cookie-btn-text);

  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 3px 16px rgba(0,0,0,0.35);

  max-width: calc(100% - 2.4rem);
  text-align: center;

  transition: all 0.2s ease;
}

.cookie-preferences-floating::before {
  content: "Gestionar cookies";
}

.cookie-preferences-floating:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.45);
}

/* Tema claro / oscuro */

:root[data-theme="light"] {
  --cookie-btn-bg: #fff;
  --cookie-btn-text: #000;
}

:root[data-theme="dark"] {
  --cookie-btn-bg: #000;
  --cookie-btn-text: #fff;
}

@media (min-width: 768px) {
  .cookie-banner {
    padding: 1.8rem 0 2rem;
  }

  .cookie-banner-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;

    flex-direction: row;
    align-items: flex-start;
    gap: 1.6rem;
  }

  .cookie-banner-text h2 {
    font-size: 1.2rem;
  }

  .cookie-banner-text p {
    font-size: 0.95rem;
  }

  .cookie-banner-actions {
    flex-direction: row;
    justify-content: flex-end;
    width: auto;
  }

  .cookie-btn {
    width: auto;
    font-size: 0.9rem;
  }

  .cookie-modal {
    align-items: center; /* ya no sheet, ahora cuadro centrado */
    padding: 2rem;
  }

  .cookie-modal-inner {
    width: min(90%, 520px);
    max-height: 70vh;
    border-radius: 14px;
    padding: 2rem 1.8rem;
  }

  .cookie-modal-actions {
    flex-direction: row;
    justify-content: flex-end;
  }

  .cookie-modal-actions .cookie-btn {
    width: auto;
  }

  .cookie-preferences-floating {
    bottom: 1.5rem;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    max-width: none;
  }
}

@media (min-width: 1024px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cookie-banner-text {
    max-width: 720px;
  }

  .cookie-banner-actions {
    justify-content: center;
  }

  .cookie-btn {
    min-width: 160px;
  }
}

/* Texto del modal de preferencias siempre en blanco */
.cookie-modal-inner,
.cookie-modal-inner h2,
.cookie-modal-inner p,
.cookie-options,
.cookie-options label {
  color: #fff;
}

/* Si algún párrafo tenía opacidad baja, puedes subirla un poco */
.cookie-modal-inner p {
  opacity: 0.9;
}

.cookie-banner.show ~ #btn-whatsapp {
  bottom: 110px !important; /* ajusta según altura del banner */
}

/* ============================================
   FIX NAV MÓVIL — LANDSCAPE (HORIZONTAL)
   ============================================ */

@media (max-height: 500px) and (max-width: 900px) {

  .nav.nav--open {
    display: flex !important;
    flex-direction: column;
    gap: 14px;
    width: 90%;
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    max-height: calc(100vh - 70px - 16px);
    overflow-y: auto;
    padding: 20px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    z-index: 999999;
  }
}


/* PANTALLAS BAJAS: FORZAR MISMA ALTURA Y ALINEACIÓN PERFECTA */
@media (max-height: 500px) {

  .site-header,
  .header-inner {
    min-height: 70px; /* altura suficiente para que quepan en fila */
  }

  .header-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  /* 🔥 MISMA ALTURA EXACTA PARA AMBOS BOTONES */
  .theme-toggle{
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  /* Ajuste interno del botón de tema */
  .theme-toggle .theme-toggle-track {
    height: 16px;
  }

  /* Si el texto "Tema" rompe la altura, lo ocultamos */
  .theme-toggle-label {
    display: none;
  }
}

/* ============================================
   FIX REAL — EVITAR QUE EL BOTÓN CIRCULAR SE MONTE
   ============================================ */

@media (max-height: 500px), (max-width: 900px) {

  /* Asegura que ambos botones estén en fila */
  .header-controls {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 14px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
  }

  .theme-toggle{
    display: inline-flex !important;
    flex-shrink: 0 !important;
    height: 36px !important;
    width: auto !important;
  }

  .theme-toggle-label {
    display: none !important;
  }
}

/* NAV MÓVIL — TEMA OSCURO (OPACO) */
html[data-theme="dark"] .nav.nav--open {
  background: #0b0d28 !important; /* azul oscuro institucional, 100% opaco */
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85) !important;
}

/* Links dentro del menú móvil en tema oscuro */
html[data-theme="dark"] .nav.nav--open .nav-link {
  background: #11152f !important; /* tono oscuro sólido, sin transparencia */
  color: var(--text-strong) !important;
}

/* Link activo en tema oscuro */
html[data-theme="dark"] .nav.nav--open .nav-link--active {
  background: #3d2b8f !important; /* violeta institucional sólido */
}

/* ============================================
   OCULTAR BOTÓN HAMBURGUESA EN ESCRITORIO
   ============================================ */

@media (min-width: 769px) {

  .nav {
    display: flex !important; /* menú visible en escritorio */
  }
}


/* =========================================================
   BLOQUE NUEVO · QUÉ RESUELVO / IMPACTO / BENEFICIOS / CÓMO TRABAJO
   Totalmente alineado con el sistema Barberá Digital Studio
   ========================================================= */

/* ------------------------------
   SECCIONES · RITMO Y RESPIRACIÓN
------------------------------ */

.section--resuelvo,
.section--impacto,
.section--beneficios,
.section--workflow {
  position: relative;
  padding: 80px 0;
  border-top: 1px solid var(--border-soft);
}

.section--resuelvo:first-of-type {
  border-top: none;
}

@media (max-width: 900px) {
  .section--resuelvo,
  .section--impacto,
  .section--beneficios,
  .section--workflow {
    padding: 72px 0;
  }
}

@media (max-width: 640px) {
  .section--resuelvo,
  .section--impacto,
  .section--beneficios,
  .section--workflow {
    padding: 60px 0;
  }
}

/* ------------------------------
   GRIDS PRINCIPALES
------------------------------ */

.resuelvo-grid,
.impacto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: flex-start;
  margin-top: 32px;
}

.beneficios-grid,
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}

@media (max-width: 1120px) {
  .beneficios-grid,
  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .resuelvo-grid,
  .impacto-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .beneficios-grid,
  .workflow-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* FORZAR que el botón NO sea flex cuando está abierto */
.nav-toggle.is-open,
.nav-toggle[aria-expanded="true"],
.nav-open .nav-toggle {
    display: block !important;
}

/* Bloquear scroll del body cuando el modal está abierto */
body.no-scroll {
  overflow: hidden;
}

/* Overlay: ocupa toda la pantalla, centrado, con fondo semitransparente */
#legal-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 20, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease-out;
}

/* Cuando está visible (aria-hidden="false") */
#legal-modal-overlay[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

/* Tarjeta del modal */
.legal-modal {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: min(80vh, 640px);
  background: var(--bg-elevated, #ffffff);
  color: var(--text-main, #111324);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(5, 7, 25, 0.45);
  padding: 20px 18px 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Título */
#legal-modal-title {
  font-size: 1.1rem;
  font-weight: 650;
  margin: 0 32px 10px 0;
}

/* Contenido scrollable dentro del modal */
#legal-modal-content {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-soft, #424667);
  overflow-y: auto;
  padding-right: 6px;
}

/* Espaciado entre párrafos y listas */
#legal-modal-content p {
  margin: 0 0 10px;
}

#legal-modal-content ul {
  padding-left: 18px;
  margin: 0 0 10px;
}

#legal-modal-content li {
  margin-bottom: 4px;
}

/* Enlaces dentro del contenido legal */
#legal-modal-content a {
  color: var(--accent, #5b6cff);
  text-decoration: underline;
}

/* Botón de cierre */
.legal-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: rgba(12, 14, 40, 0.06);
  color: var(--text-main, #111324);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 160ms ease-out, transform 160ms ease-out;
  font-size: 16px;
  line-height: 1;
}

.legal-modal-close:hover,
.legal-modal-close:focus-visible {
  background: rgba(12, 14, 40, 0.12);
  transform: translateY(-1px);
  outline: none;
}

/* =========================
   RESPONSIVE FINO
   ========================= */

/* Móviles pequeños: modal casi a pantalla completa */
@media (max-width: 480px) {
  #legal-modal-overlay {
    padding: 10px;
  }

  .legal-modal {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 14px;
    padding: 16px 14px 14px;
  }

  #legal-modal-title {
    font-size: 1rem;
    margin-right: 28px;
    margin-bottom: 8px;
  }

  #legal-modal-content {
    font-size: 0.9rem;
  }

  .legal-modal-close {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }
}

/* Tablets: un poco más aire, pero sigue siendo cómodo */
@media (min-width: 481px) and (max-width: 900px) {
  .legal-modal {
    max-width: 640px;
    max-height: 80vh;
    padding: 18px 18px 16px;
  }

  #legal-modal-title {
    font-size: 1.05rem;
  }
}

/* Escritorio grande: lectura cómoda, sin ocupar todo */
@media (min-width: 901px) {
  .legal-modal {
    max-width: 760px;
    max-height: 78vh;
  }
}

/* REGLA FINAL: NADA puede pisar esto */
.nav-toggle.is-open,
.nav-toggle[aria-expanded="true"],
.nav-open .nav-toggle {
  display: block !important;
  position: relative !important;
  justify-content: center !important;
  align-items: center !important;
}
