@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");

/* =============================
   Variables y Reset
   ============================= */
:root {
  --verde: #86bf45;
  --verde-oscuro: #2f6f35;
  --verde-rgb: 134, 191, 69;
  --blanco: #ffffff;
  --gris-oscuro: #1a1a1a;
  --gris-oscuro-2: #2d2d2d;
  --gris-oscuro-3: #3d3d3d;
  --gris-fondo: #0a0f1a;
  --admin-accent: #3b82f6;
  --admin-accent-2: #1e40af;
  --admin-ink: #0b1f4b;
  --paleta-1: #fffdf6;
  --paleta-2: #faf6ea;
  --paleta-3: #ddeb9c;
  --paleta-4: #a0c778;

  /* Glass theme variables */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-medium: rgba(255, 255, 255, 0.08);
  --glass-bg-strong: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(134, 191, 69, 0.35);
  --glass-blur: blur(4px);
  --glass-blur-strong: blur(8px);
  --texto-primario: #e2e8f0;
  --texto-secundario: #94a3b8;
  --texto-terciario: #64748b;

  --sombra-suave: 0 8px 32px rgba(0, 0, 0, 0.2);
  --sombra-media: 0 12px 40px rgba(0, 0, 0, 0.25);
  --sombra-fuerte: 0 16px 48px rgba(0, 0, 0, 0.35);
  --verde-texto: #a3d97a;
  --sombra-verde-suave: 0 8px 24px rgba(134, 191, 69, 0.12);
  --sombra-verde-media: 0 12px 32px rgba(134, 191, 69, 0.18);
  --sombra-verde-fuerte: 0 18px 40px rgba(134, 191, 69, 0.25);

  --body-bg: linear-gradient(135deg, #0a0f1a 0%, #111827 50%, #0a0f1a 100%);
  --header-bg: rgba(10, 15, 26, 0.6);
  --header-bg-scroll: rgba(10, 15, 26, 0.8);
  --footer-bg: rgba(10, 15, 26, 0.7);
  --orb-1: var(--verde);
  --orb-2: #3b82f6;
  --orb-opacity: 0.15;
  --overlay-bg: rgba(10, 15, 26, 0.7);
  --menu-bg: rgba(10, 15, 26, 0.85);
  --spinner-track: rgba(255, 255, 255, 0.08);
}

/* =============================
   Light Theme
   ============================= */
[data-theme="light"] {
  --gris-fondo: #f0f2f5;
  --texto-primario: #1a1a2e;
  --texto-secundario: #4a5568;
  --texto-terciario: #718096;
  --verde-texto: #2f6f35;
  --verde: #5a9216;
  --verde-oscuro: #3d6b10;
  --verde-rgb: 90, 146, 22;

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-bg-medium: rgba(255, 255, 255, 0.8);
  --glass-bg-strong: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-border-hover: rgba(90, 146, 22, 0.5);

  --sombra-suave: 0 8px 32px rgba(0, 0, 0, 0.06);
  --sombra-media: 0 12px 40px rgba(0, 0, 0, 0.08);
  --sombra-fuerte: 0 16px 48px rgba(0, 0, 0, 0.12);
  --sombra-verde-suave: 0 8px 24px rgba(90, 146, 22, 0.15);
  --sombra-verde-media: 0 12px 32px rgba(90, 146, 22, 0.2);
  --sombra-verde-fuerte: 0 18px 40px rgba(90, 146, 22, 0.28);

  --body-bg: linear-gradient(135deg, #f0f2f5 0%, #e8ecf1 50%, #f0f2f5 100%);
  --header-bg: rgba(255, 255, 255, 0.75);
  --header-bg-scroll: rgba(255, 255, 255, 0.9);
  --footer-bg: rgba(255, 255, 255, 0.8);
  --orb-1: #a0c778;
  --orb-2: #93c5fd;
  --orb-opacity: 0.1;
  --overlay-bg: rgba(255, 255, 255, 0.6);
  --menu-bg: rgba(255, 255, 255, 0.92);
  --spinner-track: rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: "Inter", "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--texto-primario);
}

body {
  background: var(--body-bg);
  background-attachment: fixed;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  transition:
    background 0.4s ease,
    color 0.4s ease;
}

/* Animaciones infinitas desactivadas para mejor rendimiento */
/* body::before, */
/* body::after { */
/*   animation: ambientFloat 12s ease-in-out infinite alternate; */
/* } */

body::before {
  width: 600px;
  height: 600px;
  background: var(--orb-1);
  top: -200px;
  left: -200px;
  opacity: var(--orb-opacity);
}

body::after {
  width: 500px;
  height: 500px;
  background: var(--orb-2);
  bottom: -150px;
  right: -150px;
  animation-delay: 6s;
  opacity: var(--orb-opacity);
}

.is-hidden {
  display: none;
}

/* =============================
   Header y Navbar
   ============================= */
/* Optimización: reducir backdrop-filter para mejor rendimiento */
header {
  background: var(--header-bg);
  padding: 1rem 0;
  z-index: 100;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(134, 191, 69, 0.25);
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    background-color 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease,
    transform 350ms ease,
    opacity 350ms ease;
}

header.header-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

header.is-scrolled {
  background: var(--header-bg-scroll);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: rgba(134, 191, 69, 0.4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 0.5rem;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--texto-primario);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.7rem;
  letter-spacing: 0.01em;
  font-weight: bold;
  color: var(--verde);
  margin-right: auto;
  text-decoration: none;
}

.logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo span {
  line-height: 1;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--texto-secundario);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a.is-active {
  color: var(--verde);
}

.nav-links a:not(.download-link):hover {
  color: var(--verde);
}

/* Elementos visibles solo en menú móvil */
.nav-download,
.nav-login,
.nav-calculator {
  display: none;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  margin-right: -1.4rem;
}

.download-link {
  display: inline-block;
  color: var(--blanco);
  background: linear-gradient(
    135deg,
    var(--verde) 0%,
    var(--verde-oscuro) 100%
  );
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none !important;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(134, 191, 69, 0.3);
  transition: all 300ms ease;
}

.download-link:hover {
  text-decoration: none !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(134, 191, 69, 0.45);
}

/* =============================
   Botones generales
   ============================= */
.btn-descarga {
  background: linear-gradient(
    135deg,
    var(--verde) 0%,
    var(--verde-oscuro) 100%
  );
  color: var(--blanco);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(134, 191, 69, 0.3);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.btn-descarga:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(134, 191, 69, 0.5);
}

.btn-descarga:active {
  transform: translateY(0);
}

.btn-descarga.btn-icon {
  background: rgba(134, 191, 69, 0.1);
  color: var(--verde);
  border: 1px solid rgba(134, 191, 69, 0.3);
  padding: 0.6rem 0.8rem;
  min-width: 40px;
  justify-content: center;
  box-shadow: none;
}

.btn-descarga.btn-icon:hover {
  background: rgba(134, 191, 69, 0.2);
  transform: translateY(-1px);
}

.btn-descarga.btn-icon-text {
  background: rgba(134, 191, 69, 0.1);
  border: 1px solid rgba(134, 191, 69, 0.3);
  color: var(--verde);
  box-shadow: none;
}

.btn-descarga.btn-icon-text:hover {
  background: rgba(134, 191, 69, 0.2);
  box-shadow: 0 4px 16px rgba(134, 191, 69, 0.2);
}

.btn-calculadora {
  background: rgba(134, 191, 69, 0.1);
  border: 1px solid rgba(134, 191, 69, 0.3);
  color: var(--verde);
  box-shadow: none;
}

.btn-calculadora:hover {
  background: rgba(134, 191, 69, 0.2);
  box-shadow: none;
}

/* =============================
   Calculadora de préstamos (navbar)
   ============================= */
.loan-calculator {
  position: absolute;
  right: 2rem;
  top: calc(100% + 0.7rem);
  width: min(380px, calc(100vw - 2rem));
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  padding: 1rem;
  z-index: 1150;
  display: none;
  color: var(--texto-primario);
}

.loan-calculator.activo {
  display: block;
}

.loan-calculator h3 {
  margin-bottom: 0.8rem;
  color: var(--verde);
  font-size: 1rem;
}

.loan-calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.loan-calc-grid label {
  display: grid;
  gap: 0.3rem;
  color: var(--texto-secundario);
  font-size: 0.88rem;
  font-weight: 600;
}

.loan-calc-grid input,
.loan-calc-grid select {
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--texto-primario);
}

.loan-calc-grid select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  padding-right: 2rem;
  cursor: pointer;
}

.loan-calc-grid select option {
  background: var(--gris-oscuro-2, #2d2d2d);
  color: var(--texto-primario);
  padding: 0.5rem 0.65rem;
  font-size: 0.92rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.loan-calc-grid select option:checked {
  background: linear-gradient(135deg, var(--verde), var(--verde-oscuro));
  color: var(--blanco);
}

.loan-calc-grid select option:hover {
  background: rgba(134, 191, 69, 0.2);
}

.loan-calc-grid input:focus,
.loan-calc-grid select:focus {
  outline: none;
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(var(--verde-rgb), 0.2);
}

[data-theme="light"] .loan-calc-grid select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

[data-theme="light"] .loan-calc-grid select option {
  background: #ffffff;
  color: var(--texto-primario);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .loan-calc-grid select option:checked {
  background: linear-gradient(135deg, var(--verde), var(--verde-oscuro));
  color: var(--blanco);
}

.loan-calc-btn {
  width: 100%;
  margin-top: 0.8rem;
  border: none;
  border-radius: 10px;
  padding: 0.7rem;
  background: linear-gradient(
    135deg,
    var(--verde) 0%,
    var(--verde-oscuro) 100%
  );
  color: var(--blanco);
  font-weight: 700;
  cursor: pointer;
}

.loan-calc-result {
  margin-top: 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  padding: 0.7rem;
  color: var(--texto-primario);
  font-size: 0.88rem;
  min-height: 44px;
}

.loan-calc-result span {
  display: block;
  color: var(--texto-secundario);
  line-height: 1.5;
}

.loan-calc-result .loan-note {
  color: #ef4444;
}

/* =============================
   Encabezados de sección
   ============================= */
.encabezado {
  background-image: url("./imagenes/group-busy-managers-morning-briefing.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  padding: 8rem 2rem;
  text-align: center;
  color: var(--blanco);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 500px;
}

.encabezado::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 15, 26, 0.7);
  backdrop-filter: blur(2px);
  z-index: 1;
}

.encabezado h1,
.encabezado p {
  position: relative;
  z-index: 2;
}

/* Hero fullscreen con video (solo index) */
.encabezado-hero {
  min-height: 100vh;
  background-image: none;
  background-color: #000;
  overflow: hidden;
}

.encabezado-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(34, 197, 94, 0.35);
  z-index: 1;
  pointer-events: none;
}

/* Optimización del video hero para reducir lag */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Reducir calidad para mejor rendimiento */
  filter: brightness(0.8) contrast(1.1);
  /* will-change: transform; */ /* Removido para mejorar rendimiento */
}

/* Desactivar animación infinita del hero scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--blanco);
  font-size: 1.6rem;
  opacity: 0.8;
  /* animation: vf-bounce-down 1.8s ease-in-out infinite; */
  text-decoration: none;
}

.hero-scroll-hint:hover {
  opacity: 1;
}

/* Optimización: reducir blur en hero logo wrap */
.hero-logo-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  padding: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* will-change removido para mejorar rendimiento */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-logo {
  width: 280px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.35));
}

.titulo-principal {
  font-family: "Lato", "Segoe UI", sans-serif;
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--blanco);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.subtitulo {
  font-size: 1.3rem;
  opacity: 0.9;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: var(--texto-secundario);
}

/* Encabezado Servicios */
.encabezado-servicios {
  background: linear-gradient(
    135deg,
    rgba(134, 191, 69, 0.15) 0%,
    rgba(47, 111, 53, 0.2) 100%
  );
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 6rem 2rem;
  text-align: center;
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 400px;
  overflow: hidden;
  border-bottom: 1px solid rgba(134, 191, 69, 0.2);
}

/* Desactivar animaciones infinitas de elementos decorativos */
/* Elementos decorativos desactivados por rendimiento */
.encabezado-servicios::before,
.encabezado-servicios::after {
  display: none;
}

/* Encabezado Contacto */
.encabezado-contacto {
  background: linear-gradient(
    135deg,
    rgba(134, 191, 69, 0.15) 0%,
    rgba(47, 111, 53, 0.2) 100%
  );
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 4rem 2rem;
  text-align: center;
  color: var(--blanco);
  border-bottom: 1px solid rgba(134, 191, 69, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  min-height: 400px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.encabezado-contacto .encabezado-contenido {
  text-align: center;
  max-width: 100%;
}

/* Modo claro: más verde en encabezados */
[data-theme="light"] .encabezado-servicios {
  background: linear-gradient(
    135deg,
    rgba(90, 146, 22, 0.55) 0%,
    rgba(61, 107, 16, 0.65) 100%
  );
  border-bottom: 2px solid rgba(90, 146, 22, 0.5);
}

[data-theme="light"] .encabezado-servicios::before {
  display: none;
}

[data-theme="light"] .encabezado-contacto {
  background: linear-gradient(
    135deg,
    rgba(90, 146, 22, 0.55) 0%,
    rgba(61, 107, 16, 0.65) 100%
  );
  border-bottom: 2px solid rgba(90, 146, 22, 0.5);
}

/* =============================
   Sección Cuerpo (artículos)
   ============================= */
.cuerpo {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contenedor-parrafos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Optimización: reducir blur en elementos con glass effect */
article {
  padding: 2rem;
  border-radius: 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--sombra-suave);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

article:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-verde-media);
  border-color: var(--glass-border-hover);
}

article h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--verde);
}

article p {
  line-height: 1.8;
  text-align: justify;
  color: var(--texto-secundario);
}

/* Desactivar más animaciones infinitas */
.parrafo-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    rgba(134, 191, 69, 0.2) 0%,
    rgba(47, 111, 53, 0.3) 100%
  );
  border: 1px solid rgba(134, 191, 69, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--verde);
  transition: all 0.3s ease;
  /* animation: vf-float-soft 8s ease-in-out infinite; */
}

article:hover .parrafo-icon {
  transform: scale(1.1) rotate(-10deg);
  box-shadow: 0 0 24px rgba(134, 191, 69, 0.3);
}

.parrafo-verde,
.parrafo-blanco,
.parrafo-negro {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--texto-primario);
  border-left: 3px solid rgba(134, 191, 69, 0.5);
  border: 1px solid var(--glass-border);
  border-left: 3px solid rgba(134, 191, 69, 0.5);
}

.parrafo-verde h2,
.parrafo-blanco h2,
.parrafo-negro h2 {
  color: var(--verde);
}

/* =============================
   Sección Socios
   ============================= */
.socios {
  background: rgba(255, 255, 255, 0.02);
  padding: 4rem 2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.contenedor-socios {
  max-width: 1200px;
  margin: 0 auto;
}

.titulo-socios {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--texto-primario);
}

.subtitulo-socios {
  text-align: center;
  color: var(--texto-secundario);
  margin-bottom: 3rem;
  font-size: 1.1rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.grid-socios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.tarjeta-socio {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.tarjeta-socio:hover {
  transform: translateY(-8px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--sombra-verde-media);
}

.logo-socio {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  color: var(--verde);
  filter: drop-shadow(0 0 12px rgba(134, 191, 69, 0.3));
}

.tarjeta-socio h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--texto-primario);
}

.tarjeta-socio p {
  color: var(--texto-secundario);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =============================
   Métricas y CTA (Inicio)
   ============================= */
.resumen-metricas {
  background: rgba(255, 255, 255, 0.02);
  padding: 2.8rem 1.5rem;
  position: relative;
  z-index: 1;
}

.contenedor-metricas {
  max-width: 1050px;
  margin: 0 auto;
}

.contenedor-metricas h2 {
  text-align: center;
  color: var(--texto-primario);
  font-size: 1.7rem;
  margin-bottom: 1.5rem;
}

.metrica-lista {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.metrica-line {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--glass-border);
  border-left: 4px solid rgba(134, 191, 69, 0.5);
  border-radius: 12px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.metrica-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--verde);
  background: rgba(134, 191, 69, 0.12);
  border: 1px solid rgba(134, 191, 69, 0.2);
}

.metrica-line h3 {
  color: var(--verde);
  margin-bottom: 0.35rem;
  font-size: 1.03rem;
}

.metrica-line p {
  color: var(--texto-secundario);
  font-size: 1rem;
  line-height: 1.75;
}

.cta-principal {
  padding: 3rem 2rem 1rem;
  position: relative;
  z-index: 1;
}

.cta-box {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--glass-bg-medium);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 2.2rem;
  text-align: center;
  position: relative;
}

.cta-box h2 {
  color: var(--texto-primario);
  margin-bottom: 0.8rem;
}

.cta-box p {
  color: var(--texto-secundario);
  max-width: 780px;
  margin: 0 auto 1.5rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* =============================
   Hoja de ruta
   ============================= */
.hoja-ruta {
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.hoja-ruta-contenido {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 2rem;
  position: relative;
}

.hoja-ruta-contenido h2 {
  color: var(--texto-primario);
  margin-bottom: 1rem;
}

.hoja-ruta-contenido > p {
  color: var(--texto-secundario);
  margin-bottom: 1.2rem;
}

.hoja-ruta-lista {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.hoja-ruta-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.hoja-ruta-item:hover {
  border-color: var(--glass-border-hover);
  background: rgba(134, 191, 69, 0.06);
}

.hoja-ruta-item h3 {
  color: var(--verde);
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.hoja-ruta-item p {
  color: var(--texto-secundario);
  font-size: 0.92rem;
}

/* =============================
   FAQ rápida (Inicio)
   ============================= */
.faq-rapida {
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.faq-contenedor {
  max-width: 1050px;
  margin: 0 auto;
}

.faq-contenedor h2 {
  color: var(--texto-primario);
  margin-bottom: 1.1rem;
  text-align: center;
}

.faq-rapida-acordeon {
  display: grid;
  gap: 0.65rem;
}

.faq-rapida-item {
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 0.8rem 0.95rem;
}

.faq-rapida-item summary {
  list-style: none;
  cursor: pointer;
  color: var(--verde);
  font-weight: 700;
  font-size: 1.02rem;
  position: relative;
  padding-right: 1.2rem;
  line-height: 1.45;
}

.faq-rapida-item summary::-webkit-details-marker {
  display: none;
}

.faq-rapida-item summary::after {
  content: "+";
  position: absolute;
  top: 0;
  right: 0;
  color: var(--verde);
  transition: transform 220ms ease;
}

.faq-rapida-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-rapida-item p {
  margin-top: 0.75rem;
  color: var(--texto-secundario);
  font-size: 1rem;
  line-height: 1.8;
}

.faq-rapida-item[open] p {
  animation: vf-fade-up-soft 240ms ease;
}

/* =============================
   Servicios Grid
   ============================= */
.servicios-grid {
  padding: 3rem 2rem;
  position: relative;
  z-index: 1;
}

.contenedor-servicios {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.servicio-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  text-align: center;
  transition: all 0.3s ease;
  color: var(--texto-primario);
}

.servicio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-verde-media);
  border-color: var(--glass-border-hover);
}

/* Desactivar animaciones infinitas en service cards */
.servicio-icon {
  font-size: 2.5rem;
  color: var(--verde);
  margin-bottom: 1rem;
  /* animation: vf-float-soft 8s ease-in-out infinite; */
  filter: drop-shadow(0 0 12px rgba(134, 191, 69, 0.3));
}

.servicio-card h3 {
  color: var(--verde);
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.servicio-card p {
  color: var(--texto-secundario);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =============================
   Calculadora de préstamos (Servicios)
   ============================= */
.calculadora-prestamo-seccion {
  padding: 0 2rem 3rem;
  position: relative;
  z-index: 1;
}

.calculadora-prestamo-card {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 2rem;
  color: var(--texto-primario);
  position: relative;
}

.calculadora-prestamo-card h2 {
  color: var(--verde);
  margin-bottom: 0.5rem;
}

.calculadora-prestamo-card > p {
  color: var(--texto-secundario);
  margin-bottom: 1.2rem;
}

/* =============================
   Timeline de funcionamiento
   ============================= */
.timeline-funcionamiento {
  padding: 1rem 2rem 3rem;
  position: relative;
  z-index: 1;
}

/* Eliminado ::before decorativo por rendimiento */

.timeline-contenedor {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sombra-suave);
}

.timeline-contenedor::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  top: -70px;
  right: -70px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(134, 191, 69, 0.15),
    transparent 70%
  );
  animation: vf-float-blob 8s ease-in-out infinite;
}

.timeline-contenedor h2 {
  color: var(--texto-primario);
  margin-bottom: 0.5rem;
}

.timeline-intro {
  color: var(--texto-secundario);
  margin-bottom: 1.4rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0 0.2rem;
  position: relative;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 16px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(134, 191, 69, 0.4) 0%,
    rgba(59, 130, 246, 0.3) 100%
  );
}

.timeline-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  position: relative;
  border-radius: 12px;
}

.timeline-item-content {
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid transparent;
  border-radius: 10px;
  padding: 0.4rem 0.8rem;
  transition:
    transform 360ms ease,
    opacity 360ms ease,
    background-color 360ms ease,
    border-color 360ms ease,
    box-shadow 360ms ease;
}

.timeline-item-content h3 {
  color: var(--verde);
  margin-bottom: 0.25rem;
  font-size: 1.03rem;
}

.timeline-item-content p {
  color: var(--texto-secundario);
  font-size: 1rem;
  line-height: 1.8;
}

.timeline-step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blanco);
  background: linear-gradient(
    135deg,
    var(--verde) 0%,
    var(--verde-oscuro) 100%
  );
  font-weight: 700;
  margin-top: 0.05rem;
  transition: transform 360ms ease;
  z-index: 1;
  box-shadow: 0 0 16px rgba(134, 191, 69, 0.3);
}

.timeline-item:hover .timeline-step-num {
  transform: scale(1.05);
}

.timeline-item:hover .timeline-item-content {
  transform: translateX(2px);
  background: rgba(134, 191, 69, 0.06);
  border-color: rgba(134, 191, 69, 0.4);
  box-shadow: var(--sombra-verde-suave);
}

.timeline-nota {
  margin-top: 1.2rem;
  color: var(--texto-secundario);
  font-size: 0.9rem;
  line-height: 1.75;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: rgba(134, 191, 69, 0.06);
  border: 1px solid rgba(134, 191, 69, 0.15);
}

/* =============================
   Características
   ============================= */
.caracteristicas {
  padding: 5rem 2rem;
  background: rgba(255, 255, 255, 0.01);
  position: relative;
  z-index: 1;
}

.contenedor-caracteristicas {
  max-width: 1200px;
  margin: 0 auto;
}

.contenedor-caracteristicas h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--texto-primario);
}

.grid-caracteristicas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

.caracteristica {
  text-align: center;
  padding: 2rem;
  border-radius: 16px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  position: relative;
}

.caracteristica:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-verde-media);
  border-color: var(--glass-border-hover);
}

/* Desactivar animaciones infinitas en características */
.carac-numero {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    rgba(134, 191, 69, 0.3) 0%,
    rgba(47, 111, 53, 0.4) 100%
  );
  border: 1px solid rgba(134, 191, 69, 0.4);
  color: var(--verde);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  /* animation: vf-float-soft 8s ease-in-out infinite; */
}

.caracteristica h4 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--texto-primario);
}

.caracteristica p {
  color: var(--texto-secundario);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =============================
   Modal de servicios
   ============================= */
.servicio-modal {
  display: none;
}

.servicio-modal[aria-hidden="false"] {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.servicio-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.servicio-modal__content {
  position: relative;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  color: var(--texto-primario);
  border-radius: 14px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
}

.servicio-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--texto-secundario);
}

/* =============================
   Descargas
   ============================= */
.contenedor-descargas {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.descargas-title {
  text-align: center;
  font-size: 2rem;
  color: var(--texto-primario);
  margin-bottom: 3rem;
}

.descargas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.descargas-col h3 {
  color: var(--verde);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.descargas-col p {
  color: var(--texto-secundario);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.descargas-botones {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.descargas-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  justify-content: center;
  transition: all 300ms ease;
}

.descargas-btn i {
  font-size: 1.8rem;
}

.descargas-btn .btn-text {
  text-align: left;
}

.descargas-btn .btn-text span {
  display: block;
  font-size: 0.9rem;
  opacity: 0.9;
}

.descargas-btn .btn-text strong {
  display: block;
  font-weight: 700;
}

.descargas-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  position: relative;
}

.descargas-qr h3 {
  color: var(--texto-primario);
  margin-bottom: 1rem;
}

.descargas-qr-content {
  text-align: center;
}

.descargas-qr img {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition:
    transform 460ms ease,
    box-shadow 460ms ease;
}

.descargas-qr:hover img {
  transform: translateY(-4px) scale(1.04);
  box-shadow: var(--sombra-verde-media);
}

.descargas-qr .qr-ayuda {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
  width: 100%;
}

.descargas-qr .qr-ayuda p {
  color: var(--texto-secundario);
  font-size: 0.95rem;
}

.descargas-qr .qr-lead {
  margin-bottom: 1rem;
  font-weight: 500;
}

.descargas-pasos {
  background: var(--glass-bg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  border-left: 3px solid rgba(134, 191, 69, 0.5);
  margin-top: 2rem;
}

.descargas-pasos h3 {
  color: var(--texto-primario);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.descargas-pasos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.paso-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--sombra-suave);
  transition: all 0.3s ease;
}

.paso-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-verde-media);
  border-color: var(--glass-border-hover);
}

.paso-num {
  background: linear-gradient(
    135deg,
    rgba(134, 191, 69, 0.3) 0%,
    rgba(47, 111, 53, 0.4) 100%
  );
  border: 1px solid rgba(134, 191, 69, 0.4);
  color: var(--verde);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  box-shadow: 0 0 16px rgba(134, 191, 69, 0.2);
}

.paso-card h4 {
  color: var(--texto-primario);
  margin-bottom: 0.5rem;
}

.paso-card p {
  color: var(--texto-secundario);
  font-size: 0.95rem;
  line-height: 1.6;
}

.descargas-soporte {
  text-align: center;
  margin-top: 2rem;
  padding: 2rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.descargas-soporte p {
  color: var(--texto-secundario);
  margin-bottom: 1rem;
}

.descargas-soporte i {
  color: var(--verde);
  margin-right: 0.5rem;
}

.descargas-soporte a {
  color: var(--verde);
  text-decoration: none;
  font-weight: 600;
  transition: color 300ms ease;
}

.requisitos-app {
  margin-top: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.2rem;
}

.requisitos-app h3 {
  color: var(--verde);
  margin-bottom: 0.8rem;
}

.requisitos-app ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.requisitos-app li {
  color: var(--texto-secundario);
}

/* =============================
   Contacto
   ============================= */
.contacto-contenedor {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.contacto-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.info-item {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 2rem;
  min-height: 0;
  height: 100%;
  border-radius: 14px;
  text-align: center;
  border-left: 3px solid rgba(134, 191, 69, 0.5);
  transition: all 0.3s ease;
  color: var(--texto-primario);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  box-shadow: var(--sombra-suave);
  border: 1px solid var(--glass-border);
  border-left: 3px solid rgba(134, 191, 69, 0.5);
}

.info-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--sombra-verde-media);
  border-color: var(--glass-border-hover);
  border-left-color: var(--verde);
}

.info-icon {
  font-size: 2.5rem;
  color: var(--verde);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 12px rgba(134, 191, 69, 0.3));
}

.info-item h3 {
  color: var(--verde);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.info-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--texto-secundario);
}

.formulario-contacto {
  background: var(--glass-bg-medium);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 2.5rem;
  border-radius: 14px;
  box-shadow: var(--sombra-suave);
  color: var(--texto-primario);
  border: 1px solid var(--glass-border);
}

.formulario-contacto h2 {
  color: var(--verde);
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group + .form-group {
  margin-top: 0.45rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--texto-secundario);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--texto-primario);
  font-family: "Inter", "Segoe UI", sans-serif;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--texto-terciario);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(134, 191, 69, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-enviar {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(
    135deg,
    var(--verde) 0%,
    var(--verde-oscuro) 100%
  );
  color: var(--blanco);
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-enviar:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(134, 191, 69, 0.4);
}

.btn-enviar:active {
  transform: translateY(-1px);
}

.mensaje-respuesta {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  color: var(--texto-primario);
  box-shadow: var(--sombra-suave);
  border: 1px solid var(--glass-border);
}

.mensaje-respuesta.exito {
  background: rgba(134, 191, 69, 0.12);
  color: var(--verde);
  border: 1px solid rgba(134, 191, 69, 0.3);
}

.mensaje-respuesta.error {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Canales rápidos de atención */
.canales-rapidos {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.canales-box {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.5rem;
  position: relative;
}

.canales-box h2 {
  color: var(--verde);
  margin-bottom: 1rem;
}

.canales-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.canal-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.95rem;
  transition: all 0.3s ease;
}

.canal-item:hover {
  border-color: var(--glass-border-hover);
  background: rgba(134, 191, 69, 0.06);
}

.canal-item h3 {
  color: var(--verde);
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.canal-item p,
.canal-item a {
  color: var(--texto-secundario);
  font-size: 1rem;
  line-height: 1.75;
  text-decoration: none;
}

.canal-item a:hover {
  color: var(--verde);
}

/* FAQ de Contacto */
.faq-contacto {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.faq-contacto-box {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.6rem;
}

.faq-contacto-box h2 {
  color: var(--verde);
  margin-bottom: 1rem;
}

.faq-contacto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.8rem;
}

.faq-contacto-item {
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.85rem 0.95rem;
}

.faq-contacto-item summary {
  cursor: pointer;
  list-style: none;
  color: var(--verde);
  font-weight: 700;
  font-size: 1.02rem;
  position: relative;
  padding-right: 1.4rem;
  line-height: 1.45;
}

.faq-contacto-item summary::-webkit-details-marker {
  display: none;
}

.faq-contacto-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--verde);
  font-weight: 700;
  transition: transform 220ms ease;
}

.faq-contacto-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-contacto-item p {
  margin-top: 0.8rem;
  color: var(--texto-secundario);
  font-size: 1rem;
  line-height: 1.8;
}

.faq-contacto-item[open] p {
  animation: vf-fade-up-soft 240ms ease;
}

/* Mapa */
.mapa-contacto {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 4rem 2rem;
  text-align: center;
  color: var(--texto-primario);
  margin-top: 3rem;
  box-shadow: var(--sombra-suave);
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  position: relative;
  z-index: 1;
}

.mapa-contacto h2 {
  color: var(--verde);
  margin-bottom: 2rem;
  font-size: 2rem;
}

.mapa-contenedor {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.mapa-contenedor iframe {
  border-radius: 12px;
}

/* =============================
   Login
   ============================= */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0f1a 0%, #111827 40%, #0a0f1a 100%);
  padding: 3rem 1.5rem;
  color: var(--texto-primario);
  position: relative;
  overflow: hidden;
}

.login-page::before,
.login-page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  /* animation: loginOrb 8s ease-in-out infinite alternate; */
  pointer-events: none;
}

.login-page::before {
  width: 400px;
  height: 400px;
  background: var(--verde);
  top: -100px;
  left: -100px;
}

.login-page::after {
  width: 350px;
  height: 350px;
  background: #3b82f6;
  bottom: -80px;
  right: -80px;
  animation-delay: 4s;
}

.login-back {
  position: absolute;
  top: 2rem;
  left: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--texto-secundario);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  z-index: 2;
}

.login-back:hover {
  color: var(--verde);
  background: rgba(134, 191, 69, 0.1);
  border-color: rgba(134, 191, 69, 0.3);
}

.login-card {
  width: min(460px, 100%);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  border: 1px solid var(--glass-border);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
  animation: loginCardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.login-card-header {
  text-align: center;
  margin-bottom: 2.2rem;
}

/* Desactivar animación infinita del login logo */
.login-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin: 0 auto 0.75rem;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(134, 191, 69, 0.3));
  /* animation: loginLogoFloat 3s ease-in-out infinite alternate; */
}

.login-card-header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--texto-primario);
  font-weight: 700;
}

.login-card-header p {
  color: var(--texto-terciario);
  font-size: 0.95rem;
}

.login-form .form-group {
  margin-bottom: 1.2rem;
}

.login-form .form-group label {
  color: var(--texto-secundario);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
}

.login-form .form-group input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--texto-primario);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.login-form .form-group input::placeholder {
  color: #475569;
}

.login-form .form-group input:focus {
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(134, 191, 69, 0.15);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.toggle-password-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 32px;
  font-size: 1.2rem;
  color: var(--texto-terciario);
}

.toggle-password-btn:hover {
  color: var(--verde);
}

.toggle-password-btn:focus {
  outline: none;
  color: var(--verde);
}

.login-opciones {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}

.login-opciones label {
  color: var(--texto-secundario);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.login-opciones label input[type="checkbox"] {
  accent-color: var(--verde);
  width: 16px;
  height: 16px;
}

.login-opciones a {
  color: var(--verde);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.login-opciones a:hover {
  color: #a3d465;
}

.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(
    135deg,
    var(--verde) 0%,
    var(--verde-oscuro) 100%
  );
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn-login::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.5s;
}

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

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(134, 191, 69, 0.35);
}

.btn-login:active {
  transform: translateY(0);
}

.login-mensaje {
  margin-top: 1.5rem;
  padding: 12px 16px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.login-mensaje.exito {
  background: rgba(134, 191, 69, 0.12);
  color: var(--verde);
  border: 1px solid rgba(134, 191, 69, 0.25);
}

.login-mensaje.error {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.login-ayuda {
  margin-top: 1.3rem;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
}

.login-ayuda h3 {
  color: var(--verde);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.login-ayuda ul {
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.login-ayuda li {
  color: var(--texto-secundario);
  font-size: 0.9rem;
}

/* =============================
   Footer
   ============================= */
footer {
  background: var(--footer-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--texto-primario);
  margin-top: 4rem;
  padding: 3rem 2rem 1rem;
  border-top: 1px solid rgba(134, 191, 69, 0.15);
  position: relative;
  z-index: 1;
}

.footer-contenido {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-seccion h3 {
  color: var(--verde);
  margin-bottom: 1rem;
}

.footer-seccion p {
  color: var(--texto-secundario);
  line-height: 1.6;
}

.footer-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin-bottom: 0.6rem;
  filter: drop-shadow(0 6px 16px rgba(134, 191, 69, 0.3));
}

.footer-seccion:last-child {
  text-align: center;
}

.footer-seccion ul {
  list-style: none;
}

.footer-seccion ul li {
  margin-bottom: 0.7rem;
}

.footer-seccion ul li a {
  color: var(--texto-secundario);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-seccion ul li a:hover {
  color: var(--verde);
}

.redes-sociales {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
  align-items: center;
}

.redes-sociales a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--verde);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.redes-sociales a:hover {
  background: rgba(134, 191, 69, 0.2);
  border-color: var(--glass-border-hover);
  color: var(--verde);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(134, 191, 69, 0.3);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--texto-terciario);
}

/* =============================
   Loader y transiciones
   ============================= */
.page-loader {
  position: fixed;
  inset: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  pointer-events: all;
  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.page-fade > *:not(#page-loader) {
  filter: blur(4px);
  opacity: 1;
  pointer-events: none;
  transition:
    filter 220ms ease,
    opacity 220ms ease;
}

body > * {
  transition:
    opacity 300ms ease,
    transform 300ms ease,
    filter 300ms ease;
}

.page-enter > * {
  opacity: 0;
  transform: translateY(8px);
  filter: blur(6px);
}

.loader-inner {
  text-align: center;
  color: var(--texto-primario);
}

.spinner {
  display: none;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 8px solid var(--spinner-track);
  border-top-color: var(--verde);
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem auto;
}

.seccion-animada {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 350ms ease,
    transform 350ms ease;
}

.seccion-animada.prep {
  opacity: 0;
  transform: translateY(12px);
}

body.page-loading-apk .spinner {
  display: block;
}

body.page-loading-apk .loader-inner {
  color: var(--texto-primario);
}

body.page-loading-apk > *:not(#page-loader) {
  filter: blur(6px);
  opacity: 0.8;
  pointer-events: none;
  user-select: none;
  transition:
    filter 200ms ease,
    opacity 200ms ease;
}

body.page-loading > *:not(#page-loader) {
  filter: blur(4px);
  opacity: 1;
  pointer-events: none;
  user-select: none;
  transition:
    filter 220ms ease,
    opacity 220ms ease;
}

body.page-loading {
  scrollbar-gutter: stable;
}

body.menu-open {
  overflow: hidden;
}

/* =============================
   Theme Toggle Button
   ============================= */
.theme-toggle {
  background: var(--glass-bg-medium);
  border: 1px solid var(--glass-border);
  color: var(--texto-primario);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(134, 191, 69, 0.2);
  border-color: var(--glass-border-hover);
  color: var(--verde);
  transform: scale(1.08);
}

.theme-toggle .fa-sun {
  display: none;
}
.theme-toggle .fa-moon {
  display: inline-block;
}

[data-theme="light"] .theme-toggle .fa-sun {
  display: inline-block;
}
[data-theme="light"] .theme-toggle .fa-moon {
  display: none;
}

/* =============================
   Light theme extra overrides
   ============================= */
[data-theme="light"] .encabezado::before {
  background: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .encabezado-contacto {
  background: linear-gradient(
    135deg,
    rgba(134, 191, 69, 0.12) 0%,
    rgba(134, 191, 69, 0.08) 100%
  );
}

[data-theme="light"] .encabezado p {
  color: var(--texto-secundario);
}

[data-theme="light"] .redes-sociales a {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .login-page {
  background: linear-gradient(135deg, #f0f2f5 0%, #e8ecf1 100%);
}

[data-theme="light"] .login-page::before {
  background: var(--orb-1);
  opacity: 0.08;
}

[data-theme="light"] .login-page::after {
  background: var(--orb-2);
  opacity: 0.06;
}

[data-theme="light"] .login-card {
  background: var(--glass-bg-strong);
  border-color: var(--glass-border);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .loan-calc-grid input,
[data-theme="light"] .loan-calc-grid select {
  background-color: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--texto-primario);
}

[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
  color: #94a3b8;
}

[data-theme="light"] .loan-calculator {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .encabezado-servicios {
  background: linear-gradient(
    135deg,
    rgba(134, 191, 69, 0.08) 0%,
    rgba(47, 111, 53, 0.04) 100%
  );
}

/* =============================
   Botón scroll to top
   ============================= */
#scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  width: 50px;
  height: 50px;
  background: rgba(134, 191, 69, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(134, 191, 69, 0.3);
  color: var(--verde);
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(134, 191, 69, 0.25);
  transition: all 300ms ease;
}

#scroll-to-top.show {
  display: flex;
}

#scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 28px rgba(134, 191, 69, 0.45);
  background: rgba(134, 191, 69, 0.3);
}

#scroll-to-top:active {
  transform: translateY(0);
}

/* =============================
   Animaciones
   ============================= */
@keyframes ambientFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(60px, 40px) scale(1.2);
  }
}

@keyframes vf-bounce-down {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

@keyframes vf-float-soft {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes vf-float-blob {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-16px, 8px) scale(1.08);
  }
}

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

@keyframes vf-shimmer {
  0% {
    transform: translateX(-45%);
  }
  100% {
    transform: translateX(45%);
  }
}

@keyframes vf-pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(134, 191, 69, 0.36);
  }
  80% {
    box-shadow: 0 0 0 12px rgba(134, 191, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(134, 191, 69, 0);
  }
}

@keyframes vf-line-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes vf-card-hover-in {
  0% {
    transform: translateY(0) scale(1);
  }
  55% {
    transform: translateY(-6px) scale(1.012);
  }
  100% {
    transform: translateY(-7px) scale(1.01);
  }
}

@keyframes vf-card-sheen {
  0% {
    transform: translateX(-130%) skewX(-18deg);
    opacity: 0;
  }
  25% {
    opacity: 0.12;
  }
  100% {
    transform: translateX(170%) skewX(-18deg);
    opacity: 0;
  }
}

@keyframes loginOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(40px, 30px) scale(1.15);
  }
}

@keyframes loginCardIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loginLogoFloat {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-6px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =============================
   Scroll reveal
   ============================= */
body.has-motion .reveal-on-scroll {
  opacity: 0;
  transform: translateY(14px);
  transition:
    transform 480ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 480ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

body.has-motion .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

/* =============================
   Hovers mejorados
   ============================= */
@media (hover: hover) and (pointer: fine) {
  .servicio-card,
  .tarjeta-socio,
  .caracteristica,
  .paso-card,
  .info-item,
  .canal-item,
  .hoja-ruta-item,
  .descargas-qr,
  .cta-box {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition:
      transform 460ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 460ms ease,
      border-color 460ms ease,
      background-color 460ms ease;
  }

  .servicio-card::before,
  .tarjeta-socio::before,
  .caracteristica::before,
  .paso-card::before,
  .info-item::before,
  .canal-item::before,
  .hoja-ruta-item::before,
  .descargas-qr::before,
  .cta-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(
      110deg,
      transparent 0%,
      rgba(134, 191, 69, 0.06) 45%,
      rgba(134, 191, 69, 0.12) 55%,
      transparent 100%
    );
    transform: translateX(-130%) skewX(-18deg);
    pointer-events: none;
    opacity: 0;
    z-index: 0;
  }

  .servicio-card > *,
  .tarjeta-socio > *,
  .caracteristica > *,
  .paso-card > *,
  .info-item > *,
  .canal-item > *,
  .hoja-ruta-item > *,
  .descargas-qr > *,
  .cta-box > * {
    position: relative;
    z-index: 1;
  }

  .servicio-card:hover,
  .tarjeta-socio:hover,
  .caracteristica:hover,
  .paso-card:hover,
  .info-item:hover,
  .canal-item:hover,
  .hoja-ruta-item:hover,
  .descargas-qr:hover,
  .cta-box:hover {
    animation: vf-card-hover-in 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
    border-color: var(--glass-border-hover);
    box-shadow: var(--sombra-verde-media);
  }

  .servicio-card:hover::before,
  .tarjeta-socio:hover::before,
  .caracteristica:hover::before,
  .paso-card:hover::before,
  .info-item:hover::before,
  .canal-item:hover::before,
  .hoja-ruta-item:hover::before,
  .descargas-qr:hover::before,
  .cta-box:hover::before {
    animation: vf-card-sheen 900ms ease-out;
  }

  .btn-descarga,
  .download-link,
  .servicio-btn,
  .btn-enviar,
  .btn-login,
  #scroll-to-top {
    transition:
      transform 300ms ease,
      box-shadow 300ms ease,
      filter 300ms ease;
  }

  .btn-descarga:hover,
  .download-link:hover,
  .servicio-btn:hover,
  .btn-enviar:hover,
  .btn-login:hover,
  #scroll-to-top:hover {
    filter: saturate(1.1);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--sombra-verde-media);
  }
}

/* =============================
   Sombras globales
   ============================= */
.servicio-card,
.tarjeta-socio,
.paso-card,
.caracteristica,
.info-item,
.metrica-line,
.hoja-ruta-item,
.timeline-contenedor,
.canal-item,
.faq-rapida-item,
.faq-contacto-item {
  box-shadow: var(--sombra-suave);
}

.download-link,
.btn-descarga,
.servicio-btn,
.btn-enviar,
.btn-login,
#scroll-to-top,
.login-card,
.canales-box,
.descargas-qr,
.mapa-contacto {
  box-shadow: var(--sombra-suave);
}

.download-link:hover,
.btn-descarga:hover,
.servicio-btn:hover,
.btn-enviar:hover,
.btn-login:hover,
#scroll-to-top:hover,
.cuerpo article:hover,
.servicio-card:hover,
.tarjeta-socio:hover,
.paso-card:hover,
.caracteristica:hover,
.info-item:hover,
.metrica-line:hover,
.hoja-ruta-item:hover,
.timeline-contenedor:hover {
  box-shadow: var(--sombra-verde-media);
}

.servicio-card:hover,
.tarjeta-socio:hover,
.paso-card:hover,
.caracteristica:hover,
.info-item:hover,
.metrica-line:hover,
.hoja-ruta-item:hover,
.canal-item:hover,
.faq-rapida-item:hover,
.faq-contacto-item:hover {
  box-shadow: var(--sombra-verde-fuerte);
}

/* =============================
   Pulido global
   ============================= */
main {
  color: var(--texto-primario);
  position: relative;
  z-index: 1;
}

p {
  line-height: 1.85;
}

section {
  scroll-margin-top: 84px;
}

h1,
h2,
h3,
h4 {
  font-family: "Inter", "Segoe UI", sans-serif;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.cuerpo,
.socios,
.resumen-metricas,
.hoja-ruta,
.faq-rapida,
.cta-principal,
.servicios-grid,
.calculadora-prestamo-seccion,
.timeline-funcionamiento,
.caracteristicas,
.canales-rapidos,
.faq-contacto,
.mapa-contacto {
  padding-top: 3.6rem;
  padding-bottom: 3.6rem;
}

.metrica-line,
.faq-rapida-item,
.faq-contacto-item,
.canal-item,
.hoja-ruta-item,
.timeline-item-content {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.metrica-line,
.timeline-item,
.faq-rapida-item,
.faq-contacto-item,
.canal-item,
.hoja-ruta-item {
  margin-bottom: 0.35rem;
}

input,
textarea,
select,
button,
a {
  -webkit-tap-highlight-color: transparent;
}

.btn-descarga,
.servicio-btn,
.btn-enviar,
.btn-login,
.download-link {
  font-weight: 700;
}

/* =============================
   Reduced motion
   ============================= */
@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none !important;
  }

  .timeline-list::before,
  .timeline-step-num,
  .timeline-contenedor::after,
  .encabezado-servicios::before,
  .encabezado-servicios::after,
  .cta-box::after,
  .hoja-ruta-contenido::after,
  .calculadora-prestamo-card::after,
  .canales-box::after,
  .descargas-qr::after,
  .login-card::after {
    animation: none !important;
  }

  body.has-motion .reveal-on-scroll {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* =============================
   Responsive: 900px
   ============================= */
@media (max-width: 900px) {
  .descargas-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contenedor-descargas {
    padding: 1.8rem;
  }

  .descargas-pasos {
    padding: 1.8rem;
  }
}

/* =============================
   Responsive: 768px
   ============================= */
@media (max-width: 768px) {
  header {
    z-index: 1200;
  }

  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    backdrop-filter: blur(4px);
    z-index: 900;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(var(--verde-rgb), 0.35);
    background: rgba(var(--verde-rgb), 0.08);
    z-index: 1101;
    transition:
      transform 250ms ease,
      color 200ms ease,
      background-color 200ms ease,
      border-color 200ms ease,
      box-shadow 200ms ease;
    font-weight: 700;
    color: var(--texto-primario);
  }

  .menu-toggle.open {
    transform: rotate(90deg);
    color: var(--verde);
    background: rgba(var(--verde-rgb), 0.18);
    border-color: rgba(var(--verde-rgb), 0.5);
    box-shadow: 0 0 0 3px rgba(var(--verde-rgb), 0.15);
  }

  .navbar {
    align-items: center;
    padding: 0 1rem;
  }

  .nav-links {
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 1.8rem);
    left: 1rem;
    right: 1rem;
    background: var(--menu-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0;
    border-radius: 18px;
    border: 1px solid rgba(var(--verde-rgb), 0.2);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.15);
    z-index: 1100;
    transition:
      max-height 450ms cubic-bezier(0.2, 0.9, 0.2, 1),
      opacity 300ms ease,
      transform 300ms ease;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
  }

  .nav-links.active {
    max-height: 620px;
    opacity: 1;
    padding: 0.9rem 0.55rem;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links li {
    list-style: none;
    margin: 0;
    transform: translateY(12px);
    opacity: 0;
    transition:
      transform 300ms ease,
      opacity 300ms ease;
  }

  .nav-links.active li:nth-child(1) {
    transition-delay: 0.05s;
  }
  .nav-links.active li:nth-child(2) {
    transition-delay: 0.1s;
  }
  .nav-links.active li:nth-child(3) {
    transition-delay: 0.15s;
  }
  .nav-links.active li:nth-child(4) {
    transition-delay: 0.2s;
  }
  .nav-links.active li:nth-child(5) {
    transition-delay: 0.25s;
  }
  .nav-links.active li:nth-child(6) {
    transition-delay: 0.3s;
  }

  .nav-links.active li {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links a {
    color: var(--texto-primario);
    padding: 0.85rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 600;
    transition:
      background-color 220ms ease,
      border-color 220ms ease,
      color 220ms ease,
      transform 220ms ease;
  }

  .nav-links a:hover {
    background: rgba(var(--verde-rgb), 0.1);
    border-color: rgba(var(--verde-rgb), 0.25);
    color: var(--verde);
    transform: translateX(3px);
  }

  .nav-links a:active {
    transform: scale(0.99);
  }

  .nav-icon {
    font-size: 1.2rem;
    min-width: 1.5rem;
  }

  .nav-links i {
    min-width: 1.3rem;
    text-align: center;
    color: var(--verde);
  }

  .btn-descarga {
    display: none;
    width: 90%;
    margin: 0.75rem auto 1rem auto;
  }

  .navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0;
    margin-right: 0;
  }

  .navbar-actions .btn-descarga {
    display: none;
  }

  .loan-calculator {
    left: 1rem;
    right: 1rem;
    width: auto;
    top: calc(100% + 0.5rem);
  }

  .nav-download {
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--glass-border);
    padding: 0.8rem 0 !important;
    margin-top: 0.5rem;
  }

  .nav-download .download-link {
    width: auto !important;
    min-width: 220px;
    margin: 0 auto !important;
    display: inline-flex !important;
    justify-content: center;
    background: linear-gradient(
      135deg,
      var(--verde) 0%,
      var(--verde-oscuro) 100%
    ) !important;
    color: var(--blanco) !important;
    padding: 0.8rem 1rem !important;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(134, 191, 69, 0.3);
    transition: all 250ms ease;
    border-bottom: 0;
  }

  .nav-login {
    display: block;
  }

  .nav-calculator {
    display: block;
    padding: 0.5rem 1rem;
  }

  .nav-calc-btn {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(134, 191, 69, 0.3);
    color: var(--verde);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-weight: 700;
    cursor: pointer;
  }

  .titulo-principal {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .encabezado {
    background-attachment: scroll;
    padding: 5rem 1.5rem;
    min-height: 420px;
  }

  .encabezado-hero {
    min-height: 100vh;
  }

  .cuerpo {
    padding: 2.2rem 1rem;
  }

  article {
    padding: 1.5rem;
  }

  .encabezado-servicios {
    padding: 4rem 1.5rem;
    min-height: 350px;
  }

  .encabezado-servicios h1 {
    font-size: 2rem;
  }

  .contenedor-parrafos {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .titulo-socios {
    font-size: 2rem;
  }

  .grid-socios {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .metrica-line {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .timeline-item {
    grid-template-columns: 40px 1fr;
  }

  .timeline-list::before {
    left: 12px;
  }

  .timeline-funcionamiento,
  .faq-rapida,
  .canales-rapidos,
  .faq-contacto {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .resumen-metricas,
  .cta-principal,
  .hoja-ruta {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .contenedor-metricas h2,
  .cta-box h2 {
    font-size: 1.6rem;
  }

  .cta-box {
    padding: 1.5rem 1.2rem;
  }

  .hoja-ruta-contenido {
    padding: 1.4rem 1.1rem;
  }

  .contenedor-servicios {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .grid-caracteristicas {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .servicio-card,
  .tarjeta-socio,
  .caracteristica {
    padding: 1.8rem;
  }

  .contacto-contenedor {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem auto;
    padding: 0 1rem;
  }

  .contacto-info {
    grid-template-columns: 1fr;
  }

  .encabezado-contacto .titulo-principal {
    font-size: 2rem;
  }

  .mapa-contacto h2 {
    font-size: 1.5rem;
  }

  .formulario-contacto {
    padding: 1.5rem;
  }

  .mapa-contenedor {
    height: 350px;
  }

  .mapa-contenedor iframe {
    height: 100%;
  }

  .info-item {
    padding: 1.5rem;
  }

  .download-link:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 24px rgba(134, 191, 69, 0.35);
  }

  .servicios-grid {
    padding: 3rem 1.5rem;
  }

  .calculadora-prestamo-seccion {
    padding: 0 1.5rem 3rem;
  }

  .calculadora-prestamo-card {
    padding: 1.2rem;
  }

  .caracteristicas {
    padding: 3rem 1.5rem;
  }

  .contenedor-caracteristicas h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .footer-contenido {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .redes-sociales {
    justify-content: center;
  }

  #scroll-to-top {
    width: 46px;
    height: 46px;
    right: 1rem;
    bottom: 1rem;
    font-size: 1.3rem;
  }

  .login-page {
    justify-content: flex-start;
    padding: 5.5rem 1rem 2rem;
  }

  .login-back {
    position: static;
    align-self: flex-start;
    margin-bottom: 1rem;
  }

  .login-card {
    width: 100%;
    max-width: 460px;
    padding: 2rem 1.2rem;
  }

  .login-card-header h1 {
    font-size: 1.6rem;
  }

  .login-opciones {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .cuerpo,
  .socios,
  .resumen-metricas,
  .hoja-ruta,
  .faq-rapida,
  .cta-principal,
  .servicios-grid,
  .calculadora-prestamo-seccion,
  .timeline-funcionamiento,
  .caracteristicas,
  .canales-rapidos,
  .faq-contacto,
  .mapa-contacto {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .titulo-principal {
    font-size: 2.1rem;
  }

  .subtitulo {
    font-size: 1.05rem;
  }
}

/* =============================
   Responsive: 600px
   ============================= */
@media (max-width: 600px) {
  .login-page {
    padding-top: 5rem;
  }

  .login-card {
    border-radius: 14px;
    padding: 1.6rem 1rem;
  }

  .login-card-header h1 {
    font-size: 1.4rem;
  }

  .login-card-header p {
    font-size: 0.92rem;
  }

  .info-item {
    min-height: auto;
    padding: 1.5rem;
  }

  .servicio-modal__content {
    padding: 1.7rem 1.1rem 1.2rem;
  }

  .contenedor-descargas {
    padding: 1.5rem;
  }

  .descargas-title {
    font-size: 1.6rem;
  }

  .descargas-btn {
    justify-content: flex-start;
    padding: 0.9rem 1rem;
  }

  .descargas-pasos-grid {
    grid-template-columns: 1fr;
  }

  .paso-card {
    padding: 1.2rem;
  }

  .logo {
    font-size: 1.45rem;
    gap: 0.45rem;
  }

  .logo img {
    width: 36px;
    height: 36px;
  }

  .navbar {
    padding: 0 0.8rem;
  }

  .subtitulo {
    font-size: 1.05rem;
  }
}

/* ===================================================
   Dashboard
   =================================================== */

/* Layout principal */
.dashboard-page {
  background: linear-gradient(135deg, #0a0f1a 0%, #0d1526 50%, #0a0f1a 100%);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

[data-theme="light"] .dashboard-page {
  background: linear-gradient(135deg, #f0f2f5 0%, #e8ecf1 50%, #f0f2f5 100%);
}

/* Orbs decorativos del dashboard */
.dashboard-page::before,
.dashboard-page::before {
  content: "";
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  /* animation: dashOrb 14s ease-in-out infinite alternate; */
}

.dashboard-page::before {
  width: 500px;
  height: 500px;
  background: var(--verde);
  top: -180px;
  left: 200px;
  opacity: 0.06;
}

.dashboard-page::after {
  width: 400px;
  height: 400px;
  background: #3b82f6;
  bottom: -120px;
  right: -100px;
  animation-delay: 7s;
  opacity: 0.06;
}

[data-theme="light"] .dashboard-page::before {
  opacity: 0.08;
}
[data-theme="light"] .dashboard-page::after {
  opacity: 0.08;
}

@keyframes dashOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(40px, 30px) scale(1.1);
  }
}

/* Sidebar */
.dash-sidebar {
  width: 240px;
  min-width: 240px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 10;
  flex-shrink: 0;
}

[data-theme="light"] .dash-sidebar {
  background: rgba(255, 255, 255, 0.75);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.06);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.2rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 1rem;
}

[data-theme="light"] .sidebar-logo {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.sidebar-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.sidebar-logo h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--verde);
  line-height: 1.2;
}

.dash-sidebar nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 0.75rem;
}

.dash-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  color: var(--texto-secundario);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition:
    background 0.2s,
    color 0.2s;
}

.dash-sidebar nav a:hover,
.dash-sidebar nav a.active {
  background: rgba(134, 191, 69, 0.12);
  color: var(--verde);
}

[data-theme="light"] .dash-sidebar nav a:hover,
[data-theme="light"] .dash-sidebar nav a.active {
  background: rgba(134, 191, 69, 0.15);
  color: var(--verde-oscuro);
}

.dash-sidebar nav a i {
  width: 18px;
  text-align: center;
  font-size: 0.95rem;
}

.sidebar-footer {
  padding: 1rem 1.4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: auto;
  color: var(--texto-secundario);
  font-size: 0.85rem;
  line-height: 1.6;
}

[data-theme="light"] .sidebar-footer {
  border-top-color: rgba(0, 0, 0, 0.08);
}

.sidebar-rol {
  display: inline-block;
  background: rgba(134, 191, 69, 0.15);
  color: var(--verde);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.03em;
  margin-top: 2px;
}

/* Contenido principal */
.dash-main {
  flex: 1;
  padding: 2rem;
  position: relative;
  z-index: 1;
  min-width: 0;
}

/* Topbar */
.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.dash-topbar h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--texto-primario);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--texto-secundario);
  flex-wrap: wrap;
}

.logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  color: #f87171;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.45);
}

/* Theme Toggle Button for Dashboard */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--texto-secundario);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  flex-shrink: 0;
}

[data-theme="light"] .theme-toggle-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

.theme-toggle-btn:hover {
  background: rgba(134, 191, 69, 0.2);
  border-color: var(--glass-border-hover);
  color: var(--verde);
  transform: scale(1.08);
}

.theme-toggle-btn .fa-sun {
  display: none;
}

.theme-toggle-btn .fa-moon {
  display: inline-block;
}

[data-theme="light"] .theme-toggle-btn .fa-sun {
  display: inline-block;
}

[data-theme="light"] .theme-toggle-btn .fa-moon {
  display: none;
}

/* Toggle de tema en el topbar */
.dash-theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--texto-secundario);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.dash-theme-btn:hover {
  background: rgba(134, 191, 69, 0.12);
  border-color: rgba(134, 191, 69, 0.3);
  color: var(--verde);
}

[data-theme="light"] .dash-theme-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--texto-secundario);
}

[data-theme="light"] .dash-theme-btn:hover {
  background: rgba(134, 191, 69, 0.15);
  border-color: rgba(134, 191, 69, 0.4);
  color: var(--verde-oscuro);
}

/* Metricas */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.metric-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.4rem 1.2rem;
  text-align: center;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  border-color: rgba(134, 191, 69, 0.25);
}

[data-theme="light"] .metric-card {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .metric-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  border-color: rgba(134, 191, 69, 0.4);
}

.metric-icon {
  font-size: 1.6rem;
  color: var(--verde);
  margin-bottom: 0.6rem;
  opacity: 0.85;
}

.metric-card h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--texto-primario);
  line-height: 1.1;
}

.metric-card p {
  font-size: 0.82rem;
  color: var(--texto-secundario);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tarjetas de métricas por rol */
.metric-creditos {
  border-left: 4px solid #fb923c;
}

.metric-creditos .metric-icon {
  color: #fb923c;
}

.metric-cobros {
  border-left: 4px solid #f87171;
}

.metric-cobros .metric-icon {
  color: #f87171;
}

/* Encabezado de bienvenida del dashboard */
.dash-welcome-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .dash-welcome-header {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* Notificaciones en resumen */
.notif-resumen-lista {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.notif-item-resumen {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.notif-item-resumen:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

.notif-no-leida {
  background: rgba(34, 197, 94, 0.08);
  border-left: 3px solid #22c55e;
}

[data-theme="light"] .notif-no-leida {
  background: rgba(34, 197, 94, 0.05);
}

.notif-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-icon i {
  font-size: 1.1rem;
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-content strong {
  display: block;
  color: var(--texto-primario);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.notif-content p {
  color: var(--texto-secundario);
  font-size: 0.85rem;
  margin: 0 0 0.4rem 0;
  line-height: 1.4;
}

.notif-fecha {
  color: var(--texto-secundario);
  font-size: 0.75rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.notif-punto-nuevo {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  margin-left: 0.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.notif-marcar-leida {
  margin-left: auto;
}

.btn-marcar-leida {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-marcar-leida:hover {
  background: #22c55e;
  color: white;
}

[data-theme="light"] .notif-item-resumen {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .notif-item-resumen:hover {
  background: rgba(0, 0, 0, 0.04);
}

.dash-welcome-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--texto-primario);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dash-welcome-header h2 i {
  color: var(--verde);
}

.dash-welcome-header p {
  color: var(--texto-secundario);
  font-size: 0.95rem;
  margin: 0;
}

/* Secciones del dashboard */
.dash-section {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.8rem;
}

[data-theme="light"] .dash-section {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.dash-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--texto-primario);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dash-section h3 i {
  color: var(--verde);
}

/* Tablas */
.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.dash-table thead th {
  background: rgba(134, 191, 69, 0.08);
  color: var(--verde);
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(134, 191, 69, 0.15);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

[data-theme="light"] .dash-table thead th {
  background: rgba(134, 191, 69, 0.1);
  border-bottom-color: rgba(134, 191, 69, 0.25);
}

.dash-table tbody td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--texto-secundario);
  vertical-align: middle;
}

[data-theme="light"] .dash-table tbody td {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

.dash-table tbody tr:last-child td {
  border-bottom: none;
}

.dash-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .dash-table tbody tr:hover td {
  background: rgba(134, 191, 69, 0.04);
}

/* Badges de estado */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.03em;
}

.badge-activo,
.badge-admin {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.badge-pendiente,
.badge-empleado {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.25);
}

.badge-pagado,
.badge-gerente {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

/* Nuevos roles */
.badge-encargado_creditos {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.25);
}

.badge-encargado_cobros {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-contable {
  background: rgba(20, 184, 166, 0.15);
  color: #2dd4bf;
  border: 1px solid rgba(20, 184, 166, 0.25);
}

.badge-nuevo {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  margin-left: 0.5rem;
}

.badge-moroso,
.badge-vencido {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-cancelado,
.badge-rechazado {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.badge-en_revision,
.badge-en_proceso {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.badge-abierto {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.25);
}

.badge-cerrado,
.badge-resuelto {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-mora,
.badge-atrasado {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-aprobado {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.badge-inactivo {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.badge-desembolso {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.badge-pago {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.badge-ajuste {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.25);
}

.badge-ingreso {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.badge-egreso {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-comision {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.badge-transferencia {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.badge-condicionado {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.25);
}

/* Botones de accion */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border: none;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.15s;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}

.btn-success {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-info {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Formularios en el dashboard */
.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-width: 160px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--texto-secundario);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  color: var(--texto-primario);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(134, 191, 69, 0.15);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--texto-primario);
}

/* Alertas */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.alert-ok {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #22c55e;
}

.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
}

/* Mensaje vacio */
.empty-msg {
  color: var(--texto-terciario);
  font-size: 0.9rem;
  padding: 1rem 0;
  font-style: italic;
}

/* Select inline en tabla de empleados */
.dash-table select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 4px 8px;
  color: var(--texto-primario);
  font-size: 0.8rem;
}

/* =============================
   SELECT UNIFICADO - FIX DEFINITIVO
   ============================= */

/* Select base - reset completo de estilos del navegador */
select {
  background: var(--glass-bg-medium);
  color: var(--texto-primario);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 8px 32px 8px 12px; /* padding derecho para flecha */
  font-size: 0.9rem;
  cursor: pointer;
  /* Reset completo de appearance del navegador */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* Flecha personalizada */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  outline: none;
}

/* Select para tema claro */
[data-theme="light"] select {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--texto-primario);
  border-color: rgba(0, 0, 0, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

/* Options del select - colores sólidos obligatorios para dropdowns */
select option {
  background-color: #2d2d2d;
  color: #e2e8f0;
  padding: 8px 12px;
}

select option:checked,
select option[selected] {
  background-color: #86bf45 !important;
  color: #ffffff !important;
}

select option:hover {
  background-color: rgba(134, 191, 69, 0.3);
  color: #e2e8f0;
}

/* Options para tema claro */
[data-theme="light"] select option {
  background-color: #ffffff;
  color: #1a1a2e;
}

[data-theme="light"] select option:checked,
[data-theme="light"] select option[selected] {
  background-color: #5a9216 !important;
  color: #ffffff !important;
}

/* Select inline en tabla de empleados */
.dash-table select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 4px 32px 4px 8px;
  color: var(--texto-primario);
  font-size: 0.8rem;
}

/* Dash-table para tema claro */
[data-theme="light"] .dash-table select {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--texto-primario);
}

/* Select para loan calc */
.loan-calc-grid select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
}

.loan-calc-grid select option {
  background: var(--gris-oscuro-2, #2d2d2d);
  color: var(--texto-primario);
  padding: 0.5rem 0.65rem;
}

.loan-calc-grid select option:checked {
  background: linear-gradient(135deg, var(--verde), var(--verde-oscuro));
  color: var(--blanco);
}

.loan-calc-grid select option:hover {
  background: rgba(134, 191, 69, 0.2);
}

[data-theme="light"] .loan-calc-grid select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

[data-theme="light"] .loan-calc-grid select option {
  background: #ffffff;
  color: var(--texto-primario);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .loan-calc-grid select option:checked {
  background: linear-gradient(135deg, var(--verde), var(--verde-oscuro));
  color: var(--blanco);
}

/* ── Hamburger button (hidden on desktop) ── */
.dash-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 9px;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.dash-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--texto-secundario);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}

.dash-hamburger:hover {
  background: rgba(134, 191, 69, 0.12);
  border-color: rgba(134, 191, 69, 0.3);
}

.dash-hamburger:hover span {
  background: var(--verde);
}

[data-theme="light"] .dash-hamburger {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Hamburger → X animation when sidebar is open */
.dash-hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.dash-hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.dash-hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile sidebar overlay backdrop ── */
.dash-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.dash-sidebar-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
  .dash-hamburger {
    display: flex;
  }

  .dash-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    min-width: 280px;
    height: 100vh;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 15, 26, 0.98);
  }

  [data-theme="light"] .dash-sidebar {
    background: rgba(255, 255, 255, 0.98);
  }

  .dash-sidebar.sidebar-open {
    transform: translateX(0);
  }

  .dash-sidebar-overlay {
    display: block;
  }

  .dash-main {
    padding: 1rem;
  }

  .dash-topbar h1 {
    font-size: 1.15rem;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .form-row {
    flex-direction: column;
  }

  .form-group {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .dash-topbar {
    gap: 0.5rem;
  }

  .dash-search-wrap {
    max-width: 100%;
    order: 10;
  }

  .user-info {
    gap: 0.4rem;
  }

  .user-info > span {
    display: none;
  }
}

/* ── Utilidades de tabla y acciones (dashboard) ── */
.table-scroll {
  overflow-x: auto;
}

.dash-td-acciones {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.dash-form-inline {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.dash-form-delete {
  display: inline;
}

.dash-subsection-title {
  margin-top: 1.5rem;
}

.icon-check {
  color: #22c55e;
}
.icon-times {
  color: #ef4444;
}

/* ═══════════════════════════════════════
   Animación de cambio de tema
   ═══════════════════════════════════════ */
#vf-theme-flash {
  position: fixed;
  inset: 0;
  z-index: 999999;
  pointer-events: none;
  opacity: 0;
}

/* Icono del toggle de tema en el dashboard */
.dash-theme-btn .fa-sun {
  display: none;
}
.dash-theme-btn .fa-moon {
  display: inline-block;
}
[data-theme="light"] .dash-theme-btn .fa-sun {
  display: inline-block;
}
[data-theme="light"] .dash-theme-btn .fa-moon {
  display: none;
}

/* ═══════════════════════════════════════
   Buscador rápido del dashboard
   ═══════════════════════════════════════ */
.dash-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.4rem 0.85rem;
  flex: 0 1 200px;
  position: relative;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    flex-basis 0.3s ease;
}

.dash-search-wrap:focus-within {
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(134, 191, 69, 0.15);
  flex-basis: 400px;
}

.dash-search-wrap > i {
  color: var(--texto-terciario);
  font-size: 0.85rem;
}

.dash-search-wrap input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--texto-primario);
  font-size: 0.88rem;
  width: 100%;
  font-family: inherit;
}

.dash-search-wrap input::placeholder {
  color: var(--texto-terciario);
}

[data-theme="light"] .dash-search-wrap {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Dropdown de resultados de búsqueda */
.dash-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  z-index: 200;
  max-height: 320px;
  overflow-y: auto;
  padding: 0.35rem;
}

.dash-search-results.dash-search-open {
  display: block;
}

a.dash-search-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  color: var(--texto-secundario);
  text-decoration: none;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 500;
  transition:
    background 0.15s,
    color 0.15s;
}

a.dash-search-item span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.dash-search-item:hover {
  background: rgba(134, 191, 69, 0.12);
  color: var(--verde);
}

a.dash-search-item i {
  width: 18px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--verde);
  flex-shrink: 0;
}

.dash-search-item.dash-search-empty {
  padding: 0.75rem;
  color: var(--texto-terciario);
  font-size: 0.85rem;
  text-align: center;
  cursor: default;
}

[data-theme="light"] .dash-search-results {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] a.dash-search-item:hover {
  background: rgba(134, 191, 69, 0.1);
  color: var(--verde-oscuro);
}

/* ═══════════════════════════════════════
   Campana de Notificaciones
   ═══════════════════════════════════════ */
.notif-bell-wrap {
  position: relative;
}

.notif-bell-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  color: var(--texto-secundario);
  cursor: pointer;
  font-size: 1.05rem;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s,
    transform 0.3s;
}

.notif-bell-btn:hover {
  background: rgba(134, 191, 69, 0.2);
  border-color: var(--glass-border-hover);
  color: var(--verde);
  transform: scale(1.08);
}

[data-theme="light"] .notif-bell-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

.notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  animation: notifPulse 2s ease-in-out infinite;
}

@keyframes notifPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

/* Dropdown panel */
.notif-dropdown {
  position: fixed;
  width: 360px;
  max-height: 420px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 1200;
  display: none;
  overflow: hidden;
}

.notif-dropdown.notif-open {
  display: block;
  animation: notifSlideIn 0.2s ease-out;
}

@keyframes notifSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-theme="light"] .notif-dropdown {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.notif-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--texto-primario);
  font-size: 0.9rem;
}

[data-theme="light"] .notif-dropdown-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.notif-mark-all {
  background: none;
  border: none;
  color: var(--verde);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.notif-mark-all:hover {
  opacity: 0.75;
}

.notif-dropdown-body {
  overflow-y: auto;
  max-height: 340px;
  padding: 0.4rem 0;
}

.notif-empty {
  text-align: center;
  color: var(--texto-terciario);
  padding: 2rem 1rem;
  font-size: 0.88rem;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .notif-item {
  border-bottom-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .notif-item:hover {
  background: rgba(134, 191, 69, 0.05);
}

.notif-unread {
  background: rgba(134, 191, 69, 0.06);
  border-left: 3px solid var(--verde);
}

[data-theme="light"] .notif-unread {
  background: rgba(134, 191, 69, 0.08);
}

.notif-item-icon {
  color: var(--verde);
  font-size: 0.95rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.notif-item-content {
  flex: 1;
  min-width: 0;
}

.notif-item-content strong {
  display: block;
  font-size: 0.84rem;
  color: var(--texto-primario);
  margin-bottom: 2px;
}

.notif-item-content p {
  font-size: 0.8rem;
  color: var(--texto-secundario);
  margin: 0;
  line-height: 1.4;
}

.notif-item-content small {
  font-size: 0.72rem;
  color: var(--texto-terciario);
  margin-top: 3px;
  display: block;
}

.notif-mark-read {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 6px;
  color: #22c55e;
  padding: 4px 6px;
  cursor: pointer;
  font-size: 0.7rem;
  transition:
    background 0.2s,
    transform 0.15s;
  flex-shrink: 0;
  margin-top: 2px;
}

.notif-mark-read:hover {
  background: rgba(34, 197, 94, 0.25);
  transform: scale(1.1);
}

/* ═══════════════════════════════════════
   Score crediticio - barra de progreso
   ═══════════════════════════════════════ */
.score-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 110px;
}

.score-value {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--texto-primario);
  min-width: 30px;
}

.score-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  min-width: 60px;
}

[data-theme="light"] .score-bar {
  background: rgba(0, 0, 0, 0.08);
}

.score-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s ease-out;
}

/* ═══════════════════════════════════════
   Badges adicionales
   ═══════════════════════════════════════ */
.badge-riesgo-bajo {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.badge-riesgo-medio {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.25);
}

.badge-riesgo-alto {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-verificado {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.badge-verificado i,
.badge-no-verificado i {
  margin-right: 3px;
}

.badge-no-verificado {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.25);
}

/* ═══════════════════════════════════════
   Responsive extras
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  .dash-search-wrap {
    max-width: 100%;
    order: 10;
    width: 100%;
  }

  .notif-dropdown {
    width: calc(100vw - 1rem);
    max-width: 360px;
  }

  .dash-topbar {
    flex-wrap: wrap;
    gap: 0.6rem;
  }
}

/* ═══════════════════════════════════════
   Chatbot Styles
   ═══════════════════════════════════════ */
.chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: "Inter", "Segoe UI", sans-serif;
}

.chatbot-toggle {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--verde) 0%,
    var(--verde-oscuro) 100%
  );
  border: none;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(134, 191, 69, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
}

.chatbot-toggle.chatbot-visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.chatbot-toggle.chatbot-visible:hover {
  transform: translateY(-2px) scale(1);
  box-shadow: 0 6px 25px rgba(134, 191, 69, 0.6);
}

.chatbot-toggle:active {
  transform: scale(0.95);
}

.chatbot-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--admin-accent, #3b82f6);
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  height: 500px;
  background: var(--glass-bg-medium);
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--sombra-fuerte);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s ease;
  overflow: hidden;
}

.chatbot-window.chatbot-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  padding: 1rem 1.2rem;
  background: linear-gradient(
    135deg,
    var(--verde) 0%,
    var(--verde-oscuro) 100%
  );
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 16px 16px 0 0;
}

.chatbot-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.chatbot-info i {
  font-size: 1.5rem;
  opacity: 0.9;
}

.chatbot-info h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.chatbot-info p {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.9;
}

.chatbot-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.chatbot-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.chat-message {
  display: flex;
  gap: 0.8rem;
  max-width: 85%;
  animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bot-message {
  align-self: flex-start;
}

.user-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-message i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.bot-message i {
  background: linear-gradient(
    135deg,
    var(--verde) 0%,
    var(--verde-oscuro) 100%
  );
  color: white;
}

.user-message i {
  background: var(--glass-border);
  color: var(--texto-secundario);
}

.message-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  color: var(--texto-primario);
  font-size: 0.9rem;
  line-height: 1.5;
}

.user-message .message-content {
  background: rgba(134, 191, 69, 0.1);
  border-color: rgba(134, 191, 69, 0.2);
}

.message-content p {
  margin: 0;
}

.message-content p:last-child {
  margin-bottom: 0;
}

.chatbot-input {
  padding: 1rem;
  border-top: 1px solid var(--glass-border);
  background: var(--glass-bg);
}

.input-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.chatbot-input input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  color: var(--texto-primario);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.chatbot-input input:focus {
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(var(--verde-rgb), 0.2);
}

.chatbot-input input::placeholder {
  color: var(--texto-terciario);
}

.chatbot-input button {
  background: linear-gradient(
    135deg,
    var(--verde) 0%,
    var(--verde-oscuro) 100%
  );
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.chatbot-input button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(134, 191, 69, 0.4);
}

.chatbot-input button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.chatbot-status {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--texto-terciario);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.chatbot-status.active {
  opacity: 1;
}

.chatbot-status.active::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--verde);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Light theme adjustments */
[data-theme="light"] .chatbot-window {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .message-content {
  background: rgba(249, 250, 251, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .user-message .message-content {
  background: rgba(134, 191, 69, 0.1);
  border-color: rgba(134, 191, 69, 0.2);
}

[data-theme="light"] .chatbot-input {
  background: rgba(249, 250, 251, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .chatbot-input input {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--texto-primario);
}

/* Mobile responsive */
@media (max-width: 480px) {
  .chatbot-container {
    bottom: 15px;
    right: 15px;
  }

  .chatbot-toggle {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .chatbot-window {
    width: calc(100vw - 30px);
    height: 70vh;
    right: -15px;
    bottom: 70px;
  }

  .chatbot-header {
    padding: 0.8rem 1rem;
  }

  .chatbot-info h4 {
    font-size: 1rem;
  }

  .chatbot-info p {
    font-size: 0.7rem;
  }

  .chatbot-messages {
    padding: 0.8rem;
  }

  .message-content {
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
  }

  .chatbot-input {
    padding: 0.8rem;
  }
}
