/* Variables globales */
:root {
  --primary-color: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #93C5FD;
  --secondary-color: #10B981;
  --accent-color: #F59E0B;
  --dark-blue: #1E3A8A;
  --medium-blue: #3B82F6;
  --light-blue: #DBEAFE;
  --white: #FFFFFF;
  --light-gray: #F3F4F6;
  --medium-gray: #9CA3AF;
  --dark-gray: #4B5563;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.75rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
  --border-radius-full: 9999px;
  --soft-yellow: #FFF3D6;
  --warm-gray: #D9D5CD;
}

.menu-toggle:checked ~ .page-overlay {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9997;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.header .navmenu ul li a {
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 10px 15px;
  transition: 0.3s;
}

.header .navmenu ul li a:hover,
.header .navmenu ul li a.active {
  color: #ffffff !important;
}

.header .navmenu .dropdown ul {
  background: rgba(27, 100, 207, 0.2) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(27, 100, 207, 0.1) !important;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.header .navmenu .dropdown ul li a {
  color: #ffffff !important;
  padding: 10px 20px;
}

.header .navmenu .dropdown ul li a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Contenedor del header: más ancho que el .container de Bootstrap. */
.header .header-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.btn-getstarted,
.header .btn-getstarted,
.header .btn-getstarted:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1B64CF !important;
  border: 2px solid white !important;
  transition: all 0.3s ease !important;
  padding: 0 20px;
  height: 38px;
  line-height: 1;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
  box-sizing: border-box;
  margin: 0;
}

.btn-getstarted:hover {
  background: #0d3575 !important;
  border-color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 100, 207, 0.3);
}

/* Botón del portal (Mi Cuenta / ingresar): fondo blanco sobre el header azul. */
.btn-portal {
  background-color: #ffffff !important;
  color: #2457e5 !important;
  transition: all 0.3s ease-in-out !important;
}

.btn-portal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(36, 87, 229, 0.25) !important;
  background-color: #ffffff !important;
  color: #1a3fb3 !important;
}

.menu-toggle {
  display: none;
}

.mobile-nav-toggle {
  color: #ffffff !important;
  cursor: pointer;
  font-size: 28px;
  z-index: 9999;
  background: rgba(27, 100, 207, 0.6);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 15px;
  right: 15px;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav-toggle:hover {
  background: rgba(27, 100, 207, 0.8);
}

.menu-toggle:checked ~ .mobile-nav-toggle {
  background: #1B64CF;
}

.menu-toggle:checked ~ .mobile-nav-toggle::after {
  content: "×";
  font-size: 32px;
  position: absolute;
}

.menu-toggle:checked ~ .mobile-nav-toggle .bi-list {
  display: none;
}

/* Estilos para móvil */
@media (max-width: 1199px) {
  .page-overlay {
    display: none;
  }
  
  .navmenu > ul {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    z-index: 9998;
    padding: 80px 20px 30px;
    background: rgba(27, 100, 207, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow-y: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    margin: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  
  .menu-toggle:checked ~ .navmenu > ul {
    transform: translateX(0);
  }
  
  .navmenu ul li {
    width: 100%;
    margin: 0;
    padding: 0;
  }
  
  .navmenu ul li a {
    display: block;
    width: 100%;
    padding: 12px 20px;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 500;
    transition: 0.3s;
    border-radius: 6px;
    margin: 4px 0;
    box-sizing: border-box;
  }
  
  .navmenu ul li a:hover,
  .navmenu ul li a.active {
    background: rgba(255, 255, 255, 0.15);
  }
  
  .navmenu .dropdown > a {
    position: relative;
    padding-right: 35px !important;
  }
  
  .navmenu .dropdown .toggle-dropdown {
    color: transparent !important;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    transition: transform 0.3s;
    pointer-events: none;
  }
  
  .navmenu .dropdown ul {
    display: none;
    background: rgba(0, 0, 0, 0.15) !important;
    padding: 0;
    margin: 0 0 5px 15px;
    width: calc(100% - 15px);
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 6px 6px 0;
  }
  
  .navmenu .dropdown.active ul {
    display: block;
  }
  
  .navmenu .dropdown ul li a {
    padding: 10px 15px 10px 25px !important;
    font-size: 14px !important;
  }
  
  .navmenu .dropdown.active .toggle-dropdown {
    transform: translateY(-50%) rotate(-180deg);
  }
  
  @media (max-width: 767px) {
    .navmenu > ul {
      column-count: 1 !important;
    }
  }
  
  @media (max-width: 400px) {
    .navmenu > ul {
      width: 280px;
      padding: 70px 15px 20px;
    }
  }
}

/* Estilos para escritorio */
@media (min-width: 1200px) {
  .page-overlay {
    display: none !important;
  }
  
  .mobile-nav-toggle {
    display: none !important;
  }
  
  .navmenu {
    display: flex;
  }
  
  .navmenu > ul {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .navmenu .dropdown {
    position: relative;
  }
  
  .navmenu .dropdown ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
    transform: translateY(10px);
    z-index: 99;
  }
  
  .navmenu .dropdown:hover ul {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 576px) {
  .mobile-nav-toggle {
    right: 10px;
  }
  
  .btn-getstarted,
  .header .btn-getstarted {
    padding: 0 15px;
    font-size: 13px;
  }
  
  .navmenu > ul {
    width: 280px;
  }
}

/* ===== SECCIÓN MODELO ===== */
.modelo-section {
  padding: 90px 0 70px;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.modelo-section .about-bg-elements {
  pointer-events: none;
}

.modelo-lista-inline {
  color: #334155;
}

.modelo-lista-inline li::before {
  color: var(--primary-color);
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0L3.3 9.7a1 1 0 1 1 1.4-1.4l3.8 3.8 6.8-6.8a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0L3.3 9.7a1 1 0 1 1 1.4-1.4l3.8 3.8 6.8-6.8a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Imágenes dentro de cards del home */
.home-card-media {
  margin: -2.25rem -2rem 1.35rem;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  background: linear-gradient(145deg, #eef4ff 0%, #f8fafc 100%);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem 1.25rem;
}

.home-card-media-photo {
  aspect-ratio: 16 / 9;
  background: #e8eef8;
}

.home-card-media-photo img {
  object-fit: cover;
  padding: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.modern-card:hover .home-card-media img,
.servicio-card:hover .home-card-media-photo img {
  transform: scale(1.04);
}

/* Sin bordes: la tarjeta se distingue por el fondo y la sombra, igual que
   las de servicios. */
.modelo-card {
  height: 100%;
  padding: 2.25rem 2rem;
  border: 0;
  border-radius: 20px;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.modelo-etiqueta {
  display: inline-block;
  margin-bottom: 1.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.modelo-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.modelo-lista li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.97rem;
  line-height: 1.55;
}

.modelo-lista li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 16px;
  height: 16px;
  background-color: currentColor;
}

/* La columna del recaudador se deja apagada a propósito para que la
   comparación se lea de un vistazo, sin recurrir al rojo de error. */
.modelo-card-tradicional {
  background: #f4f5f7;
  color: #6b7280;
}

.modelo-card-tradicional .modelo-etiqueta {
  color: #9099a8;
}

.modelo-card-tradicional .modelo-lista li::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.5 4.5a1 1 0 0 1 0 1.4L11.4 10l4.1 4.1a1 1 0 1 1-1.4 1.4L10 11.4l-4.1 4.1a1 1 0 0 1-1.4-1.4L8.6 10 4.5 5.9a1 1 0 0 1 1.4-1.4L10 8.6l4.1-4.1a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.5 4.5a1 1 0 0 1 0 1.4L11.4 10l4.1 4.1a1 1 0 1 1-1.4 1.4L10 11.4l-4.1 4.1a1 1 0 0 1-1.4-1.4L8.6 10 4.5 5.9a1 1 0 0 1 1.4-1.4L10 8.6l4.1-4.1a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.modelo-card-todopago {
  background: #ffffff;
  color: #475467;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.05),
    0 6px 12px -6px rgba(26, 26, 46, 0.08),
    0 20px 40px -20px rgba(37, 99, 235, 0.32);
}

.modelo-card-todopago .modelo-etiqueta {
  color: var(--primary-color);
}

.modelo-card-todopago .modelo-lista li {
  color: #334155;
}

.modelo-card-todopago .modelo-lista li::before {
  color: var(--primary-color);
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0L3.3 9.7a1 1 0 1 1 1.4-1.4l3.8 3.8 6.8-6.8a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0L3.3 9.7a1 1 0 1 1 1.4-1.4l3.8 3.8 6.8-6.8a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.modelo-card-todopago:hover {
  transform: translateY(-6px);
  box-shadow:
    0 2px 4px rgba(16, 24, 40, 0.04),
    0 28px 50px -24px rgba(37, 99, 235, 0.45);
}

@media (max-width: 767.98px) {
  .modelo-section {
    padding: 60px 0 40px;
  }

  .modelo-card {
    padding: 1.75rem 1.5rem;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  padding: 120px 0 80px;
  background-color: var(--dark-blue);
  position: relative;
  overflow: hidden;
}

/* Hero corto para vistas internas (no Inicio) */
.hero.page-hero {
  min-height: auto;
  padding: 140px 0 72px;
}

.hero.page-hero .hero-title {
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.hero.page-hero .lead {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* Contacto sin hero: compensar header fixed */
.contacto-section.contacto-page {
  padding-top: 140px;
}

.hero-bg {
  top: 0;
  left: 0;
  z-index: 0;
}

.gradient-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--medium-blue) 100%);
  opacity: 0.9;
}

.particles-container {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.wave-animation {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-position: center bottom;
  z-index: 2;
}

/* Título con gradiente */
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(90deg, #7dd3fc 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.75);
}

.badge-wrapper {
  display: inline-block;
}

.badge {
  font-weight: 500;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.5s ease;
  z-index: -1;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover:before {
  width: 100%;
}

.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(84, 105, 212, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(84, 105, 212, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(84, 105, 212, 0);
  }
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  transition: all var(--transition-fast);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Estadísticas rápidas */
.stats-container {
  margin-top: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
  backdrop-filter: blur(5px);
  transition: all var(--transition-fast);
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Indicadores de confianza */
.trust-badge {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-full);
  transition: all var(--transition-fast);
}

.trust-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.trust-badge:hover .icon-circle {
  background: rgba(255, 255, 255, 0.2);
}

/* Imagen principal y elementos flotantes */
.image-glow-wrapper {
  position: relative;
  z-index: 1;
}

.image-glow-wrapper:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: var(--primary-color);
  filter: blur(60px);
  opacity: 0.15;
  z-index: -1;
  border-radius: 50%;
}

.floating-animation {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

.floating-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--border-radius-md);
  padding: 10px 15px;
  font-size: 14px;
  z-index: 2;
  cursor: default;
}

.floating-card > .d-flex {
  transform-origin: center center;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.45s ease;
  will-change: transform;
}

.floating-card span {
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  color: #fff;
  transition: letter-spacing 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.icon-success, 
.icon-chart i, 
.icon-security i,
.payment-icon i {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}

.floating-card:hover > .d-flex {
  transform: scale(1.08);
  filter: brightness(1.08);
}

.floating-card:hover span {
  letter-spacing: 0.01em;
}

.card-1 {
  top: 15%;
  right: -30px;
  animation: float 5s ease-in-out infinite;
}

.card-2 {
  bottom: 25%;
  left: -20px;
  animation: float 7s ease-in-out infinite;
}

.card-3 {
  top: 50%;
  right: -40px;
  animation: float 6s ease-in-out infinite;
}

.floating-card, .payment-icon {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.card-1 {
  background-color: rgba(40, 167, 69, 0.25) !important;
}

.card-2 {
  background-color: rgba(13, 110, 253, 0.25) !important;
}

.card-3 {
  background-color: rgba(108, 117, 125, 0.25) !important;
}

.payment-icon {
  background-color: rgba(255, 193, 7, 0.25) !important;
}

.floating-element {
  position: absolute;
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

.payment-icon {
  bottom: 10%;
  right: 10%;
  background: rgba(255, 255, 255, 0.9);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary-color);
  box-shadow: var(--shadow-md); 
  transition:
    background-color 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.payment-icon i {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.payment-icon:hover {
  background: var(--white);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.payment-icon:hover i {
  transform: scale(1.18);
}

.icon-success {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.pulse-dot:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 50%;
  background-color: var(--secondary-color);
  z-index: -1;
  animation: pulse-dot 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.2);
    opacity: 0;
  }
  100% {
    transform: scale(0.8);
    opacity: 0;
  }
}

.icon-chart {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.icon-security {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.decorative-circle {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.circle-1 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(123, 139, 228, 0.1) 0%, rgba(123, 139, 228, 0) 70%);
  top: -50px;
  right: -50px;
}

.circle-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0) 70%);
  bottom: -100px;
  left: -100px;
}

.payment-methods-bar {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.payment-icon-wrapper:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  position: relative;
  margin: 0 auto 10px;
}

.wheel {
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 4px;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
}

.scroll-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  letter-spacing: 1px;
}

.client-logos-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.client-logos-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.section-subtitle h5 {
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #3B82F6;
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-subtitle h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #2563eb);
  border-radius: 3px;
}

.sectores-lista {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 0 0;
  margin: 0;
}

.sectores-lista li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.05),
    0 8px 18px -12px rgba(26, 26, 46, 0.35);
  font-size: 0.925rem;
  font-weight: 500;
  color: #344054;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.sectores-lista li i {
  font-size: 1rem;
  color: var(--primary);
}

.sectores-lista li:hover {
  transform: translateY(-3px);
  box-shadow:
    0 2px 4px rgba(16, 24, 40, 0.04),
    0 16px 28px -16px rgba(67, 97, 238, 0.45);
}

@media (max-width: 575.98px) {
  .sectores-lista li {
    padding: 0.6rem 0.95rem;
    font-size: 0.85rem;
  }
}

.swiper-pagination {
  position: relative;
  bottom: auto;
  margin-top: 2rem;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #CBD5E1;
  opacity: 1;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: #3B82F6;
  width: 30px;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .client-logos-section {
    padding: 3rem 0;
  }
}

.clients {
  padding: 100px 0;
  background-color: var(--light-gray);
  position: relative;
}

.section-badge {
  display: inline-block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark-blue);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

.clients-wrapper {
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.counter-section {
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.counter-item {
  padding: 1.5rem;
  transition: all var(--transition-fast);
}

.counter-item:hover {
  transform: translateY(-5px);
}

.counter-icon {
  font-size: 2rem;
  color: var(--primary-color);
}

.counter-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 0.5rem;
}

.counter-title {
  font-size: 1rem;
  color: var(--medium-gray);
  margin-bottom: 0;
}

.client-logos-section {
  padding: 2rem 0;
}

.section-subtitle {
  margin-bottom: 2rem;
}

.testimonials-section {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card {
  position: relative;
  transition: all var(--transition-fast);
  overflow: hidden;
}

.testimonial-quote {
  position: absolute;
  top: 20px;
  right: 20px;
}

.testimonial-text {
  font-style: italic;
  color: var(--dark-gray);
  line-height: 1.8;
  font-size: 1.125rem;
  position: relative;
  z-index: 1;
}

.testimonial-avatar img {
  border: 3px solid var(--primary-color);
  object-fit: cover;
}

.rating {
  letter-spacing: 2px;
}

.testimonial-navigation {
  margin-top: 2rem;
}

.cta-section {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.cta-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  transition: all var(--transition-fast);
  overflow: hidden;
  position: relative;
}

.cta-card:before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 80%);
  z-index: 1;
}

.cta-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.cta-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.15);
  transition: all 0.5s ease-out;
  border: none;
  background: linear-gradient(145deg, #E0F2FE 0%, #BAE6FD 50%, #7DD3FC 100%);
  z-index: 1;
  color: #0C4A6E; /* Texto oscuro para contraste */
}

/* Animación de ondas suaves */
.cta-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(186, 230, 253, 0.8) 0%, transparent 25%),
    radial-gradient(circle at 80% 70%, rgba(125, 211, 252, 0.6) 0%, transparent 25%);
  z-index: -1;
  animation: waveAnimation 12s infinite alternate ease-in-out;
}

@keyframes waveAnimation {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
}

/* Efecto de burbujas flotantes */
.cta-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='3' fill='%237DD3FC' opacity='0.2'/%3E%3Ccircle cx='80' cy='70' r='2' fill='%23BAE6FD' opacity='0.2'/%3E%3Ccircle cx='150' cy='30' r='4' fill='%230EA5E9' opacity='0.1'/%3E%3C/svg%3E");
  z-index: -1;
  animation: bubbleMove 20s linear infinite;
}

@keyframes bubbleMove {
  from { background-position: 0 0; }
  to { background-position: 200px 200px; }
}

.cta-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.cta-card h3 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 12px;
  display: inline-block;
}

.cta-card h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #38BDF8;
  border-radius: 3px;
  transition: all 0.4s ease;
}

.cta-card:hover h3::after {
  width: 100px;
  background: #0EA5E9;
}

.cta-card p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Efecto de partículas suaves */
.particle {
  position: absolute;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 50%;
  animation: floatParticle 15s infinite ease-in-out;
}

@keyframes floatParticle {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(5px, -10px); }
  50% { transform: translate(10px, 5px); }
  75% { transform: translate(-5px, 10px); }
}

@media (max-width: 768px) {
  .cta-card {
    padding: 2rem !important;
  }
  .cta-card h3 {
    font-size: 1.6rem;
  }
  .cta-card p {
    font-size: 1rem;
  }
}

.cta-card h3,
.cta-card p {
  position: relative;
  z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
  .hero-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 991.98px) {
  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero.page-hero {
    padding: 110px 0 56px;
  }

  .contacto-section.contacto-page {
    padding-top: 110px;
  }

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

  .floating-card {
    display: none;
  }

  .hero-img {
    margin-bottom: 40px;
  }

  .counter-value {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .hero {
    padding: 80px 0 40px;
  }

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

  .section-title {
    font-size: 1.75rem;
  }

  .counter-section .col-6:nth-child(odd) {
    border-right: 1px solid rgba(0, 0, 0, 0.05);
  }

  .counter-section .col-6:nth-child(1),
  .counter-section .col-6:nth-child(2) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .counter-value {
    font-size: 1.75rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .trust-indicators {
    flex-direction: column;
    align-items: flex-start;
  }

  .trust-badge {
    margin-bottom: 0.5rem;
  }

  .counter-value {
    font-size: 1.5rem;
  }

  .testimonial-card {
    padding: 1.5rem !important;
  }
}

.about-section {
  padding: 100px 0;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Elementos decorativos de fondo */
.about-bg-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(84, 105, 212, 0.05) 0%, rgba(84, 105, 212, 0) 70%);
  top: -100px;
  right: -100px;
}

.shape-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0) 70%);
  bottom: -200px;
  left: -200px;
}

.dots-pattern {
  position: absolute;
  width: 200px;
  height: 200px;
  background-image: radial-gradient(var(--medium-gray) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.1;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
}

/* Encabezado de sección */
.section-badge {
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark-blue);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

/* Estilos para la imagen y video */
.about-image-wrapper {
  position: relative;
  padding: 20px;
}

.image-border-effect {
  position: relative;
  z-index: 1;
}

.image-border-effect:before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  width: calc(100% + 30px);
  height: calc(100% + 30px);
  border: 2px dashed var(--primary-color);
  border-radius: var(--border-radius-lg);
  z-index: -1;
  opacity: 0.5;
}

.image-border-effect img {
  transition: all var(--transition-medium);
}

.image-border-effect:hover img {
  transform: scale(1.02);
}

/* Botón de reproducción de video */
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--transition-fast);
}

.play-btn-outer {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.play-btn-inner {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.play-btn-inner i {
  color: var(--white);
  font-size: 24px;
  margin-left: 4px;
}

.video-label {
  color: var(--white);
  font-weight: 600;
  margin-top: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px 15px;
  border-radius: var(--border-radius-full);
  font-size: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-fast);
}

.video-play-btn:hover .play-btn-outer {
  background-color: rgba(255, 255, 255, 0.3);
}

.video-play-btn:hover .play-btn-inner {
  background-color: var(--primary-dark);
  transform: scale(1.1);
}

.video-play-btn:hover .video-label {
  opacity: 1;
  transform: translateY(0);
}

/* Tarjeta de estadísticas */
.stats-card {
  position: absolute;
  bottom: 30px;
  right: -20px;
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  padding: 15px;
  display: flex;
  align-items: center;
  min-width: 200px;
  z-index: 3;
  transition: all var(--transition-fast);
}

.stats-card:hover {
  transform: translateY(-5px);
}

.stats-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.stats-icon i {
  color: var(--primary-color);
  font-size: 24px;
}

.stats-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 0;
}

.stats-content p {
  font-size: 0.875rem;
  color: var(--medium-gray);
  margin-bottom: 0;
}

/* Insignia de años de experiencia */
.experience-badge {
  position: absolute;
  top: 30px;
  left: -15px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: var(--border-radius-md);
  padding: 15px;
  display: flex;
  align-items: center;
  z-index: 3;
  transition: all var(--transition-fast);
}

.experience-badge:hover {
  transform: translateY(-5px);
}

.experience-badge .years {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-right: 10px;
}

.experience-badge .text {
  font-size: 0.875rem;
  line-height: 1.2;
}

/* Contenido y características */
.content h3 {
  color: var(--dark-blue);
  font-size: 2rem;
  position: relative;
  padding-bottom: 15px;
}

.content h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: var(--border-radius-full);
}

.content .lead {
  color: var(--dark-gray);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* Lista de características */
.features-list {
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  margin-bottom: 2rem;
  transition: all var(--transition-fast);
}

.feature-item:hover {
  transform: translateX(10px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.feature-item:hover .feature-icon {
  background-color: var(--primary-color);
}

.feature-icon i {
  color: var(--primary-color);
  font-size: 24px;
  transition: all var(--transition-fast);
}

.feature-item:hover .feature-icon i {
  color: var(--white);
}

.feature-content h5 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 0.5rem;
}

.feature-content p {
  font-size: 1rem;
  color: var(--medium-gray);
  margin-bottom: 0;
}

/* El subtítulo del hero ya lleva .text-white-75; forzamos blanco
   porque algunos navegadores heredan el gris del lead de Bootstrap. */
#hero .lead {
  color: #ffffff;
}

/* Sección de valores */
.values-section {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.values-section > .col-12 > p {
  max-width: 700px;
}

.value-card {
  background-color: var(--light-gray);
  border-radius: var(--border-radius-lg);
  padding: 30px 20px;
  text-align: center;
  height: 100%;
  transition: all var(--transition-fast);
  transform: translateY(0);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.1));
  will-change: transform; /* Optimización de rendimiento */
}

.value-card:hover {
  transform: translateY(-10px);
  background-color: var(--white);
  box-shadow: var(--shadow-md, 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05));
}

.value-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all var(--transition-fast);
}

.value-card:hover .value-icon {
  background-color: var(--primary-color);
}

.value-icon i {
  color: var(--primary-color);
  font-size: 30px;
  transition: all var(--transition-fast);
}

.value-card:hover .value-icon i {
  color: var(--white);
}

.value-card h5 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.9375rem;
  color: var(--medium-gray);
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
  .content h3 {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 991.98px) {
  .about-section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .content h3 {
    font-size: 1.5rem;
  }

  .experience-badge {
    top: 20px;
    left: 20px;
  }

  .stats-card {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 767.98px) {
  .about-section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .about-image-wrapper {
    margin-bottom: 40px;
  }

  .feature-item {
    margin-bottom: 1.5rem;
  }

  .feature-icon {
    width: 50px;
    height: 50px;
  }

  .feature-icon i {
    font-size: 20px;
  }

  .value-card {
    margin-bottom: 20px;
  }
}

@media (max-width: 575.98px) {
  .about-section {
    padding: 50px 0;
  }

  .content h3 {
    font-size: 1.35rem;
  }

  .feature-item {
    flex-direction: column;
  }

  .feature-icon {
    margin-bottom: 15px;
    margin-right: 0;
  }

  .experience-badge,
  .stats-card {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 20px 0;
  }

  .experience-badge {
    display: inline-flex;
  }

  .stats-card {
    width: 100%;
  }

  .play-btn-outer {
    width: 60px;
    height: 60px;
  }

  .play-btn-inner {
    width: 45px;
    height: 45px;
  }

  .play-btn-inner i {
    font-size: 18px;
  }
}

.services-modern {
  --primary: #4361ee;
  --primary-light: #4895ef;
  --secondary: #3f37c9;
  --dark: #1a1a2e;
  --light: #f8f9fa;
  --accent: #4cc9f0;
  --gray: #6c757d;
  
  padding: 5rem 0;
  margin-top:-150px;
  background: transparent; /* Fondo eliminado */
  position: relative;
}

.modern-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}

.modern-header {
  margin-bottom: 4rem;
}

.modern-badge {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.modern-badge-text {
  background-color: var(--primary);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.modern-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.modern-title {
  letter-spacing: -0.03em;
}

/* El trazo se pinta como fondo del propio texto: así queda detrás de las
   letras sin depender de un z-index negativo, que lo dejaba invisible. */
.modern-title .highlight {
  color: var(--primary);
  background-image: linear-gradient(90deg, rgba(76, 201, 240, 0.55), rgba(67, 97, 238, 0.3));
  background-size: 100% 0.16em;
  background-position: 0 96%;
  background-repeat: no-repeat;
  border-radius: 999px;
}

.modern-subtitle {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Cuatro pilares: se fija el número de columnas en vez de usar auto-fit,
   porque con cuatro tarjetas el ajuste automático dejaba una huérfana en
   una segunda fila según el ancho. */
.modern-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

/* Tarjetas sin bordes ni franja lateral: la separación la da la sombra
   en capas, tintada con el azul de marca en vez de negro puro. */
.modern-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 2.25rem 2rem 2rem;
  border: 0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.05),
    0 6px 12px -6px rgba(26, 26, 46, 0.08),
    0 20px 40px -20px rgba(26, 26, 46, 0.28);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Velo de color que se enciende al pasar el ratón. */
.modern-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(
    120% 85% at 100% 0%,
    rgba(76, 201, 240, 0.16),
    rgba(67, 97, 238, 0.06) 45%,
    transparent 72%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.modern-card > * {
  position: relative;
  z-index: 1;
}

.modern-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 2px 4px rgba(16, 24, 40, 0.04),
    0 28px 50px -24px rgba(67, 97, 238, 0.42);
}

.modern-card:hover::after {
  opacity: 1;
}

/* Icono discreto en reposo que se rellena con el color de marca al hover,
   en lugar del clásico círculo con degradado saturado. */
.modern-card .card-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border-radius: 16px;
  background: rgba(67, 97, 238, 0.09);
  color: var(--primary);
  font-size: 1.3rem;
  box-shadow: none;
  transition:
    background-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.modern-card:hover .card-icon {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 22px -10px rgba(67, 97, 238, 0.65);
}

.modern-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 0.6rem;
}

.modern-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.modern-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: grid;
  gap: 0.65rem;
}

.modern-features li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0;
  font-size: 0.925rem;
  color: #475467;
}

/* Check vectorial enmascarado: se ve nítido en cualquier tamaño y hereda
   el color de marca, a diferencia del carácter "✓" que dependía de la
   tipografía del sistema. */
.modern-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.34em;
  width: 15px;
  height: 15px;
  background-color: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0L3.3 9.7a1 1 0 1 1 1.4-1.4l3.8 3.8 6.8-6.8a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0L3.3 9.7a1 1 0 1 1 1.4-1.4l3.8 3.8 6.8-6.8a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* margin-top:auto alinea el enlace al pie aunque las tarjetas tengan
   distinto número de líneas. */
.modern-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: 2px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition:
    background-size 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.3s ease;
}

.modern-link span {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.modern-link:hover {
  color: var(--secondary);
  background-size: 100% 1.5px;
}

.modern-link:hover span {
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
  .services-modern {
    padding: 3rem 0;
  }
  
  .modern-title {
    font-size: 2rem;
  }
  
  .modern-grid {
    grid-template-columns: 1fr;
  }
}

.services-section {
  padding: 100px 0;
  background-color: var(--light-gray);
  position: relative;
  overflow: hidden;
}

.services-section .services-bg-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
}

.services-section .shape {
  position: absolute;
  border-radius: 50%;
}

.services-section .shape-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(84, 105, 212, 0.05) 0%, rgba(84, 105, 212, 0) 70%);
  top: -150px;
  right: -150px;
}

.services-section .shape-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0) 70%);
  bottom: -200px;
  left: -200px;
}

.services-section .gradient-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.8) 100%);
  z-index: 1;
}

/* Encabezado específico para servicios */
.services-section .section-badge {
  display: inline-block;
  margin-bottom: 1rem;
}

.services-section .section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.services-section .section-description {
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

/* Filtros específicos para servicios */
.services-section .services-filter {
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}

.services-section .filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--border-radius-full);
  background-color: transparent;
  border: 1px solid var(--medium-gray);
  color: var(--dark-gray);
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.services-section .filter-btn:hover {
  background-color: rgba(84, 105, 212, 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.services-section .filter-btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

/* Tarjetas específicas de servicios */
.services-section .service-item-wrapper {
  transition: all var(--transition-medium);
}

.services-section .service-card {
  height: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  position: relative;
  z-index: 2;
}

.services-section .service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.services-section .service-card-inner {
  position: relative;
  height: 100%;
  overflow: hidden;
}

/* Imagen del servicio */
.services-section .service-img {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.services-section .service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-medium);
}

.services-section .service-card:hover .service-img img {
  transform: scale(1.1);
}

.services-section .service-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-full);
  box-shadow: var(--shadow-sm);
}

/* Contenido del servicio */
.services-section .service-content {
  padding: 2rem;
  position: relative;
}

.services-section .service-icon {
  position: absolute;
  top: -30px;
  left: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.services-section .service-card:hover .service-icon {
  transform: rotateY(180deg);
}

.services-section .service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 1rem;
}

.services-section .service-description {
  color: var(--medium-gray);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.services-section .service-features {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.services-section .service-features li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  color: var(--dark-gray);
  font-size: 0.875rem;
}

.services-section .service-features li i {
  color: var(--secondary-color);
  margin-right: 0.5rem;
  font-size: 1rem;
}

.services-section .service-link {
  display: flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.services-section .service-link span {
  margin-right: 0.5rem;
}

.services-section .service-link i {
  transition: all var(--transition-fast);
}

.services-section .service-link:hover {
  color: var(--primary-dark);
}

.services-section .service-link:hover i {
  transform: translateX(5px);
}

/* Contenido hover */
.services-section .service-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 37, 64, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
  z-index: 3;
  padding: 2rem;
}

.services-section .service-card:hover .service-hover {
  opacity: 1;
  visibility: visible;
}

.services-section .hover-content {
  color: var(--white);
  text-align: center;
  transform: translateY(20px);
  transition: all var(--transition-medium);
  transition-delay: 0.1s;
}

.services-section .service-card:hover .hover-content {
  transform: translateY(0);
}

.services-section .hover-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
}

.services-section .hover-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  text-align: left;
}

.services-section .hover-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.services-section .hover-content ul li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

/* CTA Banner específico para servicios */
.services-section .cta-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.services-section .cta-banner:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 1;
}

.services-section .cta-banner h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.services-section .cta-banner p {
  font-size: 1.125rem;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

.services-section .cta-banner .btn {
  position: relative;
  z-index: 2;
  transition: all var(--transition-fast);
}

.services-section .cta-banner .btn:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Media Queries específicas para servicios */
@media (max-width: 1199.98px) {
  .services-section {
    padding: 80px 0;
  }

  .services-section .section-title {
    font-size: 2.25rem;
  }

  .services-section .cta-banner {
    padding: 2.5rem;
  }
}

@media (max-width: 991.98px) {
  .services-section .section-title {
    font-size: 2rem;
  }

  .services-section .service-img {
    height: 180px;
  }

  .services-section .service-content {
    padding: 1.75rem;
  }

  .services-section .cta-banner {
    padding: 2rem;
  }

  .services-section .cta-banner h3 {
    font-size: 1.5rem;
  }

  .services-section .cta-banner p {
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .services-section {
    padding: 60px 0;
  }

  .services-section .section-title {
    font-size: 1.75rem;
  }

  .services-section .filter-btn {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
  }

  .services-section .service-content {
    padding: 1.5rem;
  }

  .services-section .service-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
    top: -25px;
  }

  .services-section .service-title {
    font-size: 1.125rem;
  }

  .services-section .cta-banner {
    padding: 1.5rem;
    text-align: center;
  }

  .services-section .cta-banner .btn {
    margin-top: 1rem;
  }
}

@media (max-width: 575.98px) {
  .services-section {
    padding: 50px 0;
  }

  .services-section .section-title {
    font-size: 1.5rem;
  }

  .services-section .service-img {
    height: 160px;
  }

  .services-section .service-content {
    padding: 1.25rem;
  }

  .services-section .service-description {
    font-size: 0.875rem;
  }

  .services-section .service-features li {
    font-size: 0.8125rem;
  }

  .services-section .hover-content ul li {
    font-size: 0.875rem;
  }

  .services-section .cta-banner {
    padding: 1.25rem;
  }

  .services-section .cta-banner h3 {
    font-size: 1.25rem;
  }
}

/* Características Section */

.features-section {
  padding: 100px 0;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Elementos decorativos de fondo */
.features-bg-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(84, 105, 212, 0.03) 0%, rgba(84, 105, 212, 0) 70%);
  top: -200px;
  right: -200px;
}

.shape-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.03) 0%, rgba(16, 185, 129, 0) 70%);
  bottom: -250px;
  left: -250px;
}

.dots-pattern {
  position: absolute;
  width: 200px;
  height: 200px;
  background-image: radial-gradient(var(--medium-gray) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.05;
}

.dots-1 {
  top: 20%;
  right: 10%;
}

.dots-2 {
  bottom: 15%;
  left: 5%;
}

/* Encabezado de sección */
.section-badge {
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark-blue);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

/* Elementos de características */
.features-item {
  padding: 4rem 0;
  position: relative;
}

.features-item:not(:last-child):after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
}

/* Imagen de característica */
.features-image-wrapper {
  position: relative;
  padding: 20px;
  max-width: 450px;
  margin: 0 auto;
}

.features-image-wrapper img {
  position: relative;
  z-index: 2;
  transition: all var(--transition-medium);
}

.features-image-wrapper:hover img {
  transform: translateY(-10px);
}

.image-shape {
  position: absolute;
  width: 80%;
  height: 80%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--light-blue) 0%, rgba(224, 231, 255, 0.3) 100%);
  border-radius: var(--border-radius-xl);
  z-index: 1;
  opacity: 0.7;
  transition: all var(--transition-medium);
}

.features-image-wrapper:hover .image-shape {
  transform: translate(-50%, -50%) rotate(5deg) scale(1.05);
}

/* Badges flotantes */
.floating-badge {
  position: absolute;
  z-index: 3;
  background-color: var(--white);
  border-radius: var(--border-radius-full);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
}

.floating-badge i {
  margin-right: 0.5rem;
  font-size: 1.25rem;
}

.floating-badge span {
  font-weight: 600;
  font-size: 0.875rem;
}

.security-badge {
  top: 10%;
  right: 0;
  color: #2563eb;
}

.ease-badge {
  bottom: 15%;
  left: 0;
  color: #f59e0b;
}

.integration-badge {
  bottom: 10%;
  right: 5%;
  color: #8b5cf6;
}

.analytics-badge {
  top: 15%;
  left: 5%;
  color: #10b981;
}

.features-image-wrapper:hover .floating-badge {
  transform: scale(1.1) translateY(-5px);
}

/* Contenido de características */
.features-content {
  padding: 1rem;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  background-color: var(--light-blue);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-full);
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.feature-tag i {
  margin-right: 0.5rem;
  font-size: 1rem;
}

.features-content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.features-content .lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--dark-gray);
}

/* Lista de características */
.features-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-left: 0.5rem;
}

.features-list li i {
  color: var(--secondary-color);
  margin-right: 1rem;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.features-list li span {
  color: var(--dark-gray);
  line-height: 1.5;
}

/* Botón de aprender más */
.btn-learn-more {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-learn-more i {
  margin-left: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-learn-more:hover {
  color: var(--primary-dark);
}

.btn-learn-more:hover i {
  transform: translateX(5px);
}

/* Estadísticas */
.features-stats {
  margin: 2rem 0;
}

.stat-item:hover {
  background-color: var(--light-blue);
  transform: translateY(-5px);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-value span {
  font-size: 1rem;
  font-weight: 600;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--dark-gray);
}

/* Logos de integración */
.integration-logos {
  margin: 2rem 0;
}

.integration-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  background-color: var(--light-gray);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
}

.integration-logo i {
  font-size: 1.75rem;
  color: var(--medium-gray);
  transition: all var(--transition-fast);
}

.integration-logo:hover {
  background-color: var(--light-blue);
  transform: translateY(-5px);
}

.integration-logo:hover i {
  color: var(--primary-color);
}

/* Tabs de características */
.features-tabs {
  margin: 2rem 0;
}

.nav-pills .nav-link {
  color: var(--dark-gray);
  background-color: var(--light-gray);
  border-radius: var(--border-radius-full);
  padding: 0.5rem 1.25rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
}

.nav-pills .nav-link:hover {
  background-color: rgba(84, 105, 212, 0.1);
  color: var(--primary-color);
}

.nav-pills .nav-link.active {
  background-color: var(--primary-color);
  color: var(--white);
}

.tab-content {
  padding: 1.5rem;
  background-color: var(--light-gray);
  border-radius: var(--border-radius-md);
}

.tab-pane p {
  margin-bottom: 0;
}

/* CTA Banner */
.features-cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.features-cta:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 1;
}

.features-cta h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.features-cta p {
  font-size: 1.125rem;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

.features-cta .btn {
  position: relative;
  z-index: 2;
  transition: all var(--transition-fast);
}

.features-cta .btn:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
  .features-section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .features-content h3 {
    font-size: 1.75rem;
  }

  .features-cta {
    padding: 2.5rem;
  }
}

@media (max-width: 991.98px) {
  .features-item {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .features-content h3 {
    font-size: 1.5rem;
  }

  .stat-value {
    font-size: 1.75rem;
  }

  .features-cta {
    padding: 2rem;
  }

  .features-cta h3 {
    font-size: 1.5rem;
  }

  .features-cta p {
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .features-section {
    padding: 60px 0;
  }

  .features-item {
    padding: 2.5rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .features-image-wrapper {
    margin-bottom: 2rem;
  }

  .floating-badge {
    padding: 0.4rem 0.8rem;
  }

  .floating-badge i {
    font-size: 1rem;
  }

  .floating-badge span {
    font-size: 0.75rem;
  }

  .features-content h3 {
    font-size: 1.35rem;
  }

  .features-content .lead {
    font-size: 1rem;
  }

  .features-cta {
    padding: 1.5rem;
    text-align: center;
  }

  .features-cta .btn {
    margin-top: 1rem;
  }
}

@media (max-width: 575.98px) {
  .features-section {
    padding: 50px 0;
  }

  .features-item {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .features-content {
    padding: 0;
  }

  .features-content h3 {
    font-size: 1.25rem;
  }

  .features-list li {
    margin-bottom: 0.75rem;
  }

  .features-list li i {
    font-size: 1rem;
  }

  .stat-item {
    margin-bottom: 1rem;
  }

  .features-cta {
    padding: 1.25rem;
  }

  .features-cta h3 {
    font-size: 1.25rem;
  }
}

/* Servicios Section
   Los tres servicios del brief: órdenes recurrentes, órdenes únicas y
   gestión de pagos automáticos. Comparte el lenguaje sin bordes de las
   tarjetas de #soluciones para que ambas rejillas se lean como una familia.
   Mantiene la clase .services-section porque el banner CTA del pie de la
   sección cuelga de ella. */

/* #soluciones ya no termina en un banner, así que su relleno inferior
   original dejaba un hueco muy grande antes de Servicios. */
#soluciones {
  padding-bottom: 0;
}

/* La paleta de marca vive dentro de .services-modern, no en :root, así que
   hay que repetirla aquí para que las tarjetas hereden el mismo azul. */
.servicios-section {
  --primary: #4361ee;
  --primary-light: #4895ef;
  --secondary: #3f37c9;
  --dark: #1a1a2e;
  --accent: #4cc9f0;
  --gray: #6c757d;

  background-color: var(--white);
}

.servicio-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  padding: 2.25rem 2rem 2rem;
  border: 0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.05),
    0 6px 12px -6px rgba(26, 26, 46, 0.08),
    0 20px 40px -20px rgba(26, 26, 46, 0.28);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.servicio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(
    120% 85% at 100% 0%,
    rgba(76, 201, 240, 0.16),
    rgba(67, 97, 238, 0.06) 45%,
    transparent 72%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.servicio-card > * {
  position: relative;
  z-index: 1;
}

.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 2px 4px rgba(16, 24, 40, 0.04),
    0 28px 50px -24px rgba(67, 97, 238, 0.42);
}

.servicio-card:hover::after {
  opacity: 1;
}

.servicio-icono {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  background: rgba(67, 97, 238, 0.09);
  color: var(--primary);
  font-size: 1.35rem;
  transition:
    background-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.servicio-card:hover .servicio-icono {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 22px -10px rgba(67, 97, 238, 0.65);
}

.servicio-etiqueta {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.servicio-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 0.6rem;
}

.servicio-card > p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.4rem;
}

.servicio-lista {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  display: grid;
  gap: 0.65rem;
}

.servicio-lista li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.925rem;
  color: #475467;
}

.servicio-lista li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.34em;
  width: 15px;
  height: 15px;
  background-color: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0L3.3 9.7a1 1 0 1 1 1.4-1.4l3.8 3.8 6.8-6.8a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0L3.3 9.7a1 1 0 1 1 1.4-1.4l3.8 3.8 6.8-6.8a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* La línea fina separa "para quién es" de la lista de características,
   que de otro modo se leerían como un mismo bloque. */
.servicio-para {
  margin: 0 0 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
  font-size: 0.875rem;
  line-height: 1.6;
  color: #667085;
}

.servicio-enlace {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: 2px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition:
    background-size 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.3s ease;
}

.servicio-enlace span {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.servicio-enlace:hover {
  color: var(--secondary);
  background-size: 100% 1.5px;
}

.servicio-enlace:hover span {
  transform: translateX(4px);
}

@media (max-width: 575.98px) {
  .servicio-card {
    padding: 1.75rem 1.5rem;
  }
}

/* Precios Section */

.pricing-section {
  padding: 100px 0;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Elementos decorativos de fondo */
.pricing-bg-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(84, 105, 212, 0.03) 0%, rgba(84, 105, 212, 0) 70%);
  top: -200px;
  right: -200px;
}

.shape-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.03) 0%, rgba(16, 185, 129, 0) 70%);
  bottom: -250px;
  left: -250px;
}

.dots-pattern {
  position: absolute;
  width: 200px;
  height: 200px;
  background-image: radial-gradient(var(--medium-gray) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.05;
}

.dots-1 {
  top: 20%;
  right: 10%;
}

.dots-2 {
  bottom: 15%;
  left: 5%;
}

/* Encabezado de sección */
.section-badge {
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark-blue);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

/* Selector de facturación */
.billing-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
}

.billing-option {
  font-weight: 500;
  color: var(--dark-gray);
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0.5rem 1rem;
}

.billing-option.active {
  color: var(--primary-color);
  font-weight: 600;
}

.billing-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
  margin: 0 1rem;
}

.billing-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--light-gray);
  transition: var(--transition-fast);
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: var(--white);
  transition: var(--transition-fast);
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(30px);
}

.annual-discount {
  position: absolute;
  top: -15px;
  right: 20%;
  background-color: var(--accent-color);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-full);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

/* Tarjetas de precios */
.pricing-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border: 2px solid var(--primary-color);
  box-shadow: var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: 0;
  right: 2rem;
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0 0 0 var(--border-radius-md);
  z-index: 2;
}

/* Encabezado de la tarjeta */
.pricing-header {
  margin-bottom: 1.5rem;
}

.pricing-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 0.5rem;
}

.pricing-tag {
  font-size: 0.875rem;
  color: var(--medium-gray);
}

/* Precio */
.pricing-price {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.price {
  display: flex;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.pricing-header .text-muted {
  line-height: 1.4;
}

/* Visibilidad mensual/anual: el switch añade .is-annual a #precios. */
.annual-price,
.form-anual {
  display: none;
}

.monthly-price,
.form-mensual {
  display: block;
}

#precios.is-annual .monthly-price,
#precios.is-annual .form-mensual {
  display: none;
}

#precios.is-annual .annual-price,
#precios.is-annual .form-anual {
  display: block;
}

.currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin-right: 0.25rem;
}

.amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark-blue);
  line-height: 1;
}

.period {
  font-size: 1rem;
  color: var(--medium-gray);
  margin-left: 0.25rem;
}

.annual-label {
  font-size: 0.75rem;
  color: var(--medium-gray);
  margin-top: 0.25rem;
}

.transaction-fee {
  font-size: 0.875rem;
  color: var(--medium-gray);
  margin-top: 0.5rem;
}

/* Características */
.pricing-features {
  flex-grow: 1;
  margin-bottom: 2rem;
}

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

.pricing-features li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  position: relative;
}

.pricing-features li i {
  margin-right: 0.75rem;
  font-size: 1.125rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.feature-included i {
  color: var(--secondary-color);
}

.feature-excluded {
  color: var(--medium-gray);
}

.feature-excluded i {
  color: var(--medium-gray);
}

.feature-tooltip {
  position: relative;
  margin-left: 0.5rem;
  cursor: pointer;
}

.feature-tooltip i {
  font-size: 0.875rem;
  color: var(--medium-gray);
  margin: 0;
}

.tooltip-content {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--dark-blue);
  color: var(--white);
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-sm);
  width: 200px;
  visibility: hidden;
  opacity: 0;
  transition: all var(--transition-fast);
  z-index: 10;
  pointer-events: none;
}

.tooltip-content:after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: var(--dark-blue) transparent transparent transparent;
}

.feature-tooltip:hover .tooltip-content {
  visibility: visible;
  opacity: 1;
  bottom: 125%;
}

/* Footer de la tarjeta */
.pricing-footer {
  margin-top: auto;
}

.no-credit-card {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--medium-gray);
  margin-top: 1rem;
}

.no-credit-card i {
  margin-right: 0.25rem;
}

/* Tabla comparativa */
.features-comparison {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  margin-bottom: 0;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  vertical-align: middle;
  text-align: center;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
}

.comparison-table thead th {
  background-color: var(--light-gray);
  font-weight: 600;
  color: var(--dark-blue);
}

.comparison-table tbody tr:nth-child(even) {
  background-color: var(--light-gray);
}

/* FAQ de precios */
.pricing-faq {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.accordion-item {
  border: none;
  margin-bottom: 0.5rem;
}

.accordion-button {
  font-weight: 600;
  color: var(--dark-blue);
  background-color: var(--light-gray);
  border-radius: var(--border-radius-md) !important;
  padding: 1rem 1.5rem;
}

.accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: var(--light-blue);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-light);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%235469d4' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.accordion-body {
  padding: 1.5rem;
  color: var(--dark-gray);
}

/* CTA Banner */
.pricing-cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.pricing-cta:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 1;
}

.pricing-cta h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.pricing-cta p {
  font-size: 1.125rem;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

.pricing-cta .btn {
  position: relative;
  z-index: 2;
  transition: all var(--transition-fast);
}

.pricing-cta .btn:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
  .pricing-section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .pricing-cta {
    padding: 2.5rem;
  }
}

@media (max-width: 991.98px) {
  .section-title {
    font-size: 2rem;
  }

  .amount {
    font-size: 2.5rem;
  }

  .pricing-cta {
    padding: 2rem;
  }

  .pricing-cta h3 {
    font-size: 1.5rem;
  }

  .pricing-cta p {
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .pricing-section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .annual-discount {
    right: 10%;
  }

  .pricing-card {
    padding: 1.5rem;
  }

  .pricing-cta {
    padding: 1.5rem;
    text-align: center;
  }

  .pricing-cta .btn {
    margin-top: 1rem;
  }
}

@media (max-width: 575.98px) {
  .pricing-section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .billing-selector {
    flex-direction: column;
  }

  .billing-switch {
    margin: 1rem 0;
  }

  .annual-discount {
    position: static;
    display: block;
    width: fit-content;
    margin: 0.5rem auto 0;
  }

  .pricing-card {
    padding: 1.25rem;
  }

  .amount {
    font-size: 2rem;
  }

  .pricing-cta {
    padding: 1.25rem;
  }

  .pricing-cta h3 {
    font-size: 1.25rem;
  }
}

/* Estilos para la sección de FAQ */

.faq-section {
  padding: 100px 0;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Elementos decorativos de fondo */
.faq-bg-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(84, 105, 212, 0.03) 0%, rgba(84, 105, 212, 0) 70%);
  top: -200px;
  right: -200px;
}

.shape-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.03) 0%, rgba(16, 185, 129, 0) 70%);
  bottom: -250px;
  left: -250px;
}

.dots-pattern {
  position: absolute;
  width: 200px;
  height: 200px;
  background-image: radial-gradient(var(--medium-gray) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.05;
}

.dots-1 {
  top: 20%;
  right: 10%;
}

.dots-2 {
  bottom: 15%;
  left: 5%;
}

/* Encabezado de sección */
.section-badge {
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark-blue);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

/* Buscador de preguntas */
.faq-search {
  position: relative;
  margin-bottom: 2rem;
}

.faq-search .input-group {
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius-full);
  overflow: hidden;
}

.faq-search .input-group-text {
  border-radius: var(--border-radius-full) 0 0 var(--border-radius-full);
  border-right: none;
  color: var(--primary-color);
}

.faq-search .form-control {
  border-radius: 0 var(--border-radius-full) var(--border-radius-full) 0;
  border-left: none;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
}

.faq-search .form-control:focus {
  box-shadow: none;
  border-color: #ced4da;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  z-index: 10;
  max-height: 300px;
  overflow-y: auto;
  display: none;
}

.search-results.active {
  display: block;
}

.search-result-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--light-gray);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-result-item:hover {
  background-color: var(--light-gray);
}

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

.search-result-item .result-title {
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 0.25rem;
}

.search-result-item .result-category {
  font-size: 0.75rem;
  color: var(--medium-gray);
}

/* Filtros de categorías */
.faq-categories {
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}

.category-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--border-radius-full);
  background-color: transparent;
  border: 1px solid var(--medium-gray);
  color: var(--dark-gray);
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.category-btn:hover {
  background-color: rgba(84, 105, 212, 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.category-btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

/* Contenedor de preguntas */
.faq-container {
  position: relative;
  z-index: 2;
}

/* Categorías de preguntas */
.faq-category {
  margin-bottom: 3rem;
}

.category-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.category-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.category-icon i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.category-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 0;
}

/* Acordeón de preguntas */
.faq-accordion .accordion-item {
  border: none;
  background-color: transparent;
  margin-bottom: 1rem;
}

.faq-accordion .accordion-button {
  padding: 1.25rem 1.5rem;
  background-color: var(--white);
  color: var(--dark-blue);
  font-weight: 600;
  font-size: 1.125rem;
  border-radius: var(--border-radius-md) !important;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: var(--white);
  box-shadow: var(--shadow-md);
}

.faq-accordion .accordion-button:focus {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.faq-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%235469d4' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  transition: all var(--transition-fast);
}

.faq-accordion .accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg);
}

.faq-accordion .accordion-collapse {
  border: none;
}

.faq-accordion .accordion-body {
  padding: 1.5rem 1.5rem;
  background-color: var(--white);
  border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--dark-gray);
}

.faq-accordion .accordion-body p {
  margin-bottom: 1rem;
}

.faq-accordion .accordion-body p:last-child {
  margin-bottom: 0;
}

.faq-accordion .accordion-body ul,
.faq-accordion .accordion-body ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.faq-accordion .accordion-body li {
  margin-bottom: 0.5rem;
}

.faq-accordion .accordion-body table {
  margin-bottom: 1rem;
}

.faq-accordion .accordion-body .table-responsive {
  margin-bottom: 1rem;
}

/* CTA Banner */
.faq-cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.faq-cta:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 1;
}

.faq-cta h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.faq-cta p {
  font-size: 1.125rem;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

.faq-cta .btn {
  position: relative;
  z-index: 2;
  transition: all var(--transition-fast);
}

.faq-cta .btn:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
  .faq-section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .faq-cta {
    padding: 2.5rem;
  }
}

@media (max-width: 991.98px) {
  .section-title {
    font-size: 2rem;
  }

  .category-header h3 {
    font-size: 1.35rem;
  }

  .faq-accordion .accordion-button {
    font-size: 1rem;
    padding: 1rem 1.25rem;
  }

  .faq-cta {
    padding: 2rem;
  }

  .faq-cta h3 {
    font-size: 1.5rem;
  }

  .faq-cta p {
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .faq-section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .category-btn {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
  }

  .category-icon {
    width: 40px;
    height: 40px;
  }

  .category-icon i {
    font-size: 1.25rem;
  }

  .category-header h3 {
    font-size: 1.25rem;
  }

  .faq-cta {
    padding: 1.5rem;
    text-align: center;
  }

  .faq-cta .btn {
    margin-top: 1rem;
  }
}

@media (max-width: 575.98px) {
  .faq-section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .faq-accordion .accordion-button {
    font-size: 0.9375rem;
    padding: 0.875rem 1rem;
  }

  .faq-accordion .accordion-body {
    padding: 1.25rem 1rem;
  }

  .faq-cta {
    padding: 1.25rem;
  }

  .faq-cta h3 {
    font-size: 1.25rem;
  }
}

/* Estilos para la sección de Contacto */

.contacto-section {
  padding: 100px 0;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Elementos decorativos de fondo */
.contacto-bg-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(84, 105, 212, 0.03) 0%, rgba(84, 105, 212, 0) 70%);
  top: -200px;
  right: -200px;
}

.shape-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.03) 0%, rgba(16, 185, 129, 0) 70%);
  bottom: -250px;
  left: -250px;
}

.dots-pattern {
  position: absolute;
  width: 200px;
  height: 200px;
  background-image: radial-gradient(var(--medium-gray) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.05;
}

.dots-1 {
  top: 20%;
  right: 10%;
}

.dots-2 {
  bottom: 15%;
  left: 5%;
}

/* Encabezado de sección */
.section-badge {
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark-blue);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

/* Información de contacto */
.contacto-info-wrapper {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  height: 100%;
  position: relative;
  z-index: 1;
}

.contacto-info-header {
  margin-bottom: 2rem;
}

.contacto-info-header h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 0.5rem;
}

.contacto-info-header p {
  color: var(--medium-gray);
  font-size: 1rem;
}

/* Tarjetas de información */
.contacto-info-cards {
  margin-bottom: 2rem;
}

.info-card {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background-color: var(--light-gray);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
  background-color: var(--light-blue);
}

.info-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  color: var(--primary-color);
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

.info-card:hover .info-card-icon {
  background-color: var(--primary-color);
  color: var(--white);
  transform: rotateY(180deg);
}

.info-card-content {
  flex-grow: 1;
}

.info-card-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 0.5rem;
}

.info-card-content p {
  font-size: 0.9375rem;
  color: var(--dark-gray);
  margin-bottom: 0.75rem;
}

.info-link {
  display: flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.info-link span {
  margin-right: 0.5rem;
}

.info-link i {
  transition: all var(--transition-fast);
}

.info-link:hover {
  color: var(--primary-dark);
}

.info-link:hover i {
  transform: translateX(5px);
}

/* Redes sociales */
.contacto-social {
  margin-bottom: 2rem;
}

.contacto-social h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-gray);
  font-size: 1.125rem;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-5px);
}

/* Mapa */
.contacto-map {
  margin-top: 2rem;
}

.map-container {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-container iframe {
  border: 0;
  width: 100%;
  height: 200px;
}

/* Formulario de contacto */
.contacto-form-wrapper {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  height: 100%;
  position: relative;
  z-index: 1;
}

.contacto-form-header {
  margin-bottom: 2rem;
}

.contacto-form-header h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 0.5rem;
}

.contacto-form-header p {
  color: var(--medium-gray);
  font-size: 1rem;
}

/* Selector de tipo de consulta */
.consulta-selector {
  margin-bottom: 2rem;
}

.selector-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 1rem;
}

.selector-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.selector-option {
  flex: 1;
  min-width: 100px;
  padding: 1rem;
  background-color: var(--light-gray);
  border-radius: var(--border-radius-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.selector-option:hover {
  background-color: var(--light-blue);
  transform: translateY(-5px);
}

.selector-option.active {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.option-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.option-text {
  font-size: 0.875rem;
  font-weight: 600;
}

/* Formulario */
.contacto-form .form-floating {
  margin-bottom: 0;
}

.contacto-form .form-control {
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1rem;
  height: calc(3.5rem + 2px);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.contacto-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(84, 105, 212, 0.25);
}

.contacto-form textarea.form-control {
  height: auto;
  min-height: 150px;
  resize: vertical;
}

.contacto-form .form-floating > label {
  padding: 1rem;
}

.contacto-form .form-check {
  margin-top: 1rem;
}

.contacto-form .form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
}

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

.contacto-form .form-check-label {
  margin-left: 0.5rem;
  font-size: 0.9375rem;
}

.contacto-form button[type="submit"] {
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.contacto-form button[type="submit"]:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Mensajes de estado del formulario */
.form-messages {
  text-align: center;
  margin-top: 1.5rem;
}

.loading,
.error-message,
.success-message {
  display: none;
  padding: 1rem;
  border-radius: var(--border-radius-md);
  font-weight: 600;
}

.loading {
  background-color: var(--light-blue);
  color: var(--primary-color);
}

.error-message {
  background-color: #fee2e2;
  color: #dc2626;
}

.success-message {
  background-color: #d1fae5;
  color: #059669;
}

/* El enlace de respaldo hereda el color del panel para no desentonar con él. */
.form-messages a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-messages a:hover {
  opacity: 0.75;
}

/* Preguntas frecuentes rápidas */
.quick-faq {
  background-color: var(--light-gray);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  position: relative;
  z-index: 1;
}

.quick-faq-header {
  margin-bottom: 2rem;
}

.quick-faq-header h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 0.5rem;
}

.quick-faq-header p {
  color: var(--medium-gray);
  font-size: 1rem;
}

.faq-item {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.faq-question i {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-right: 0.75rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.faq-question h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 0;
  line-height: 1.4;
}

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--dark-gray);
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
  .contacto-section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .contacto-info-header h3,
  .contacto-form-header h3,
  .quick-faq-header h3 {
    font-size: 1.5rem;
  }

  .selector-option {
    padding: 0.75rem;
  }
}

@media (max-width: 991.98px) {
  .section-title {
    font-size: 2rem;
  }

  .contacto-info-wrapper,
  .contacto-form-wrapper {
    padding: 1.5rem;
  }

  .info-card {
    padding: 1rem;
  }

  .info-card-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .quick-faq {
    padding: 2rem;
  }
}

@media (max-width: 767.98px) {
  .contacto-section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .contacto-info-wrapper {
    margin-bottom: 2rem;
  }

  .selector-options {
    flex-wrap: wrap;
  }

  .selector-option {
    flex: 1 0 calc(50% - 0.5rem);
    min-width: auto;
  }

  .quick-faq {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .contacto-section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .contacto-info-header h3,
  .contacto-form-header h3,
  .quick-faq-header h3 {
    font-size: 1.35rem;
  }

  .info-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .info-card-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }

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

  .selector-option {
    flex: 1 0 100%;
  }
}

/*FOOTER*/

/* Estilos base */
.footer-area {
    position: relative;
    background: linear-gradient(135deg, #0b2d5a 0%, #0f4c81 100%);
    color: #fff;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

/* Onda decorativa superior */
.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    overflow: hidden;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* Contenido principal */
.footer-content {
    position: relative;
    padding: 100px 0 50px;
    z-index: 1;
}

/* Logo y descripción */
.footer-logo {
    margin-bottom: 20px;
}

.logo-text {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 153, 255, 0.5);
}

.logo-text span {
    color: #0099ff;
    font-weight: 800;
}

.logo-text .dot {
    color: #00d9ff;
    font-size: 40px;
}

.brand-description {
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.6;
}

/* Divisor decorativo */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
}

.divider-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(0, 153, 255, 0), rgba(0, 153, 255, 0.5), rgba(0, 153, 255, 0));
}

.divider-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 153, 255, 0.2);
    border-radius: 50%;
    margin: 0 15px;
    color: #0099ff;
    font-size: 20px;
    box-shadow: 0 0 15px rgba(0, 153, 255, 0.5);
}

/* Widgets */
.footer-widgets {
    margin-bottom: 40px;
}

.footer-widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #fff;
    display: flex;
    align-items: center;
}

.icon-title {
    color: #0099ff;
    margin-right: 10px;
    font-size: 22px;
}

/* Enlaces */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
    text-align: left;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a i {
    color: #0099ff;
    margin-right: 10px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-links a:hover i {
    color: #fff;
}

/* Información de contacto */
.contact-info {
    margin-top: 20px;
    display: inline-block;
}

.contact-item {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
    text-align: left;
}

.icon-box {
    width: 40px;
    height: 40px;
    background: rgba(0, 153, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #0099ff;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 153, 255, 0.3);
}

.contact-item:hover .icon-box {
    background: rgba(0, 153, 255, 0.4);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 153, 255, 0.5);
}

.contact-item .content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Sección de redes sociales */
.social-section {
    margin: 30px 0;
}

.social-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(0, 153, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 153, 255, 0.3);
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0099ff 0%, #0066cc 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-icon i {
    position: relative;
    z-index: 1;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 153, 255, 0.4);
    color: #fff;
}

.social-icon:hover i {
    color: #fff;
}

.social-icon:hover::before {
    opacity: 1;
}

/* Footer inferior */
.footer-bottom {
    padding: 20px 0;
    position: relative;
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.credits {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.credits a {
    color: #0099ff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.credits a:hover {
    color: #fff;
}

/* Efecto de brillo en el fondo */
.footer-area::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 153, 255, 0.1) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .footer-content {
        padding: 80px 0 30px;
    }
    
    .footer-wave svg {
        height: 50px;
    }
    
    .logo-text {
        font-size: 30px;
    }
    
    .footer-bottom .credits {
        text-align: center !important;
        margin-top: 10px;
    }
    
    .copyright {
        text-align: center;
    }
}
