/* ===== VARIABLES CSS REVOLUCIONARIAS ===== */
:root {
  /* Colores principales */
  --color-primario: #667eea;
  --color-secundario: #764ba2;
  --color-acento: #f093fb;
  --color-exito: #4ade80;
  --color-advertencia: #fbbf24;
  --color-peligro: #ef4444;
  --color-info: #3b82f6;
  
  /* Gradientes */
  --gradiente-principal: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradiente-acento: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradiente-exito: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  --gradiente-texto: linear-gradient(135deg, #667eea 0%, #f093fb 100%);
  
  /* Colores neutros */
  --color-blanco: #ffffff;
  --color-negro: #000000;
  --color-gris-100: #f8fafc;
  --color-gris-200: #e2e8f0;
  --color-gris-300: #cbd5e1;
  --color-gris-400: #94a3b8;
  --color-gris-500: #64748b;
  --color-gris-600: #475569;
  --color-gris-700: #334155;
  --color-gris-800: #1e293b;
  --color-gris-900: #0f172a;
  
  /* Espaciado */
  --espaciado-xs: 0.25rem;
  --espaciado-sm: 0.5rem;
  --espaciado-md: 1rem;
  --espaciado-lg: 1.5rem;
  --espaciado-xl: 2rem;
  --espaciado-2xl: 3rem;
  
  /* Bordes */
  --border-radius: 0.75rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
  
  /* Sombras */
  --sombra-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --sombra-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --sombra-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --sombra-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --sombra-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Transiciones */
  --transicion-rapida: 0.15s ease-in-out;
  --transicion-normal: 0.3s ease-in-out;
  --transicion-lenta: 0.5s ease-in-out;
  
  /* Tipografía */
  --fuente-principal: 'Poppins', system-ui, -apple-system, sans-serif;
  --peso-normal: 400;
  --peso-medio: 500;
  --peso-semi-bold: 600;
  --peso-bold: 700;
  --peso-extra-bold: 800;
}

/* ===== RESET Y BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--fuente-principal);
  line-height: 1.6;
  color: var(--color-gris-700);
  background: var(--color-gris-100);
  overflow-x: hidden;
}

.pagina-nueva {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  position: relative;
}

/* ===== NAVBAR MODERNO ===== */
.navbar-moderno {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 0;
  transition: all var(--transicion-normal);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-logo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  box-shadow: var(--sombra-md);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: var(--peso-bold);
  color: var(--color-gris-800);
  margin: 0;
}

.brand-subtitle {
  font-size: 0.875rem;
  color: var(--color-gris-500);
  font-weight: var(--peso-medio);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(74, 222, 128, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--color-exito);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-text {
  font-size: 0.875rem;
  color: var(--color-exito);
  font-weight: var(--peso-medio);
}

.btn-menu {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-gris-600);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: all var(--transicion-normal);
}

.btn-menu:hover {
  background: var(--color-gris-200);
  color: var(--color-gris-800);
}

/* ===== HERO SECTION RENOVADO ===== */
.hero-renovado {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.3)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.2)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.3)"/><circle cx="90" cy="10" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="90" r="1.5" fill="rgba(255,255,255,0.2)"/></svg>') repeat;
  animation: float 20s infinite linear;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.9) 0%, 
    rgba(118, 75, 162, 0.8) 50%, 
    rgba(240, 147, 251, 0.9) 100%
  );
}

@keyframes float {
  0% { transform: translateY(0px) translateX(0px); }
  33% { transform: translateY(-20px) translateX(10px); }
  66% { transform: translateY(10px) translateX(-5px); }
  100% { transform: translateY(0px) translateX(0px); }
}

.hero-content {
  color: var(--color-blanco);
  z-index: 2;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: var(--peso-semi-bold);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: slideInLeft 0.8s ease-out;
}

.hero-title-nuevo {
  font-size: 3.5rem;
  font-weight: var(--peso-extra-bold);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: slideInUp 1s ease-out 0.2s both;
}

.texto-gradiente {
  background: linear-gradient(45deg, #f093fb, #f5576c, #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease-in-out infinite;
}

.contador-animado {
  display: inline-block;
  background: var(--color-blanco);
  color: var(--color-primario);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius);
  font-weight: var(--peso-extra-bold);
  animation: bounce 2s infinite;
}

.hero-descripcion {
  color: var(--color-gris-800) !important;
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  max-width: 500px;
  animation: slideInUp 1s ease-out 0.4s both;
}

.stat-highlight {
  color: var(--color-acento);
  font-weight: var(--peso-bold);
  text-shadow: 0 0 10px rgba(240, 147, 251, 0.5);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  animation: slideInUp 1s ease-out 0.6s both;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transicion-normal);
}

.stat-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
  font-size: 1.5rem;
  color: var(--color-acento);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.125rem;
  font-weight: var(--peso-bold);
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  animation: slideInUp 1s ease-out 0.8s both;
}

.btn-principal {
  background: var(--gradiente-acento);
  color: var(--color-blanco);
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-lg);
  font-size: 1.125rem;
  font-weight: var(--peso-semi-bold);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transicion-normal);
  box-shadow: var(--sombra-lg);
}

.btn-principal:hover {
  transform: translateY(-3px);
  box-shadow: var(--sombra-2xl);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.btn-principal:hover .btn-shine {
  left: 100%;
}

.btn-secundario {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-blanco);
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 1rem 2rem;
  border-radius: var(--border-radius-lg);
  font-size: 1.125rem;
  font-weight: var(--peso-semi-bold);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  backdrop-filter: blur(10px);
  transition: all var(--transicion-normal);
}

.btn-secundario:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* ===== SIMULADOR LATERAL ===== */
.simulador-lateral {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--sombra-2xl);
  animation: slideInRight 1s ease-out;
  position: sticky;
  top: 6rem;
}

.simulador-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-gris-200);
}

.header-icon {
  width: 50px;
  height: 50px;
  background: var(--gradiente-principal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blanco);
  font-size: 1.5rem;
}

.header-text h3 {
  font-size: 1.25rem;
  font-weight: var(--peso-bold);
  color: var(--color-gris-800);
  margin: 0 0 0.25rem 0;
}

.header-text p {
  color: var(--color-gris-500);
  margin: 0;
  font-size: 0.875rem;
}

.header-badge {
  background: var(--gradiente-exito);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.badge-live {
  color: var(--color-blanco);
  font-weight: var(--peso-bold);
  font-size: 0.75rem;
  position: relative;
  z-index: 2;
}

.header-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shine 2s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ===== FORMULARIO NUEVO ===== */
.form-group-nuevo {
  margin-bottom: 2rem;
}

.label-moderno {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: var(--peso-semi-bold);
  color: var(--color-gris-700);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.input-wrapper {
  position: relative;
}

.input-moderno {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--color-gris-300);
  border-radius: var(--border-radius-lg);
  font-size: 1rem;
  transition: all var(--transicion-normal);
  background: var(--color-blanco);
}

.input-moderno:focus {
  outline: none;
  border-color: var(--color-primario);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-focus-border {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradiente-principal);
  transition: all var(--transicion-normal);
  transform: translateX(-50%);
}

.input-moderno:focus + .input-focus-border {
  width: 100%;
}

/* ===== DISPLAY DE MONTO NUEVO ===== */
.monto-display-nuevo {
  background: var(--gradiente-principal);
  color: var(--color-blanco);
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.monto-valor-container {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.monto-simbolo {
  font-size: 1.5rem;
  font-weight: var(--peso-bold);
  opacity: 0.9;
}

.monto-numero {
  font-size: 2.5rem;
  font-weight: var(--peso-extra-bold);
  line-height: 1;
}

.monto-moneda {
  font-size: 1rem;
  opacity: 0.8;
  font-weight: var(--peso-semi-bold);
}

.monto-info {
  text-align: center;
}

.monto-cuota-estimada {
  font-size: 0.9rem;
  opacity: 0.9;
}

#cuota-rapida {
  font-weight: var(--peso-bold);
  color: var(--color-acento);
}

/* ===== TIEMPO DISPLAY NUEVO ===== */
.tiempo-display-nuevo {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-gris-100);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  border: 2px solid var(--color-gris-200);
}

.tiempo-numero {
  font-size: 2rem;
  font-weight: var(--peso-extra-bold);
  color: var(--color-gris-800) !important;
}

.tiempo-unidad {
  font-size: 1.125rem;
  color: var(--color-gris-600);
  font-weight: var(--peso-semi-bold);
}

/* ===== RANGE CONTAINER NUEVO ===== */
.range-container-nuevo {
  position: relative;
  margin-bottom: 1rem;
}

.range-moderno {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--color-gris-300);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.range-moderno::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradiente-principal);
  cursor: pointer;
  box-shadow: var(--sombra-md);
  transition: all var(--transicion-normal);
}

.range-moderno::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: var(--sombra-lg);
}

.range-moderno::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradiente-principal);
  cursor: pointer;
  border: none;
  box-shadow: var(--sombra-md);
}

.range-track-fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 8px;
  background: var(--gradiente-principal);
  border-radius: 4px;
  transform: translateY(-50%);
  pointer-events: none;
  transition: width var(--transicion-normal);
}

.range-labels-nuevo {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-gris-500);
  font-weight: var(--peso-medio);
}

/* ===== BOTONES DE ACCIÓN ===== */
.acciones-simulador {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-calcular-nuevo {
  background: var(--gradiente-principal);
  color: var(--color-blanco);
  border: none;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-lg);
  font-size: 1.125rem;
  font-weight: var(--peso-semi-bold);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transicion-normal);
  box-shadow: var(--sombra-lg);
}

.btn-calcular-nuevo:hover {
  transform: translateY(-2px);
  box-shadow: var(--sombra-xl);
}

.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
}

.btn-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

.btn-calcular-nuevo:active .btn-ripple {
  width: 300px;
  height: 300px;
}

.btn-solicitar-nuevo {
  background: var(--color-blanco);
  color: var(--color-gris-900) !important;
  border: 2px solid var(--color-primario);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-lg);
  font-size: 1.125rem;
  font-weight: var(--peso-semi-bold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all var(--transicion-normal);
}

.btn-solicitar-nuevo:hover {
  background: var(--color-primario);
  color: var(--color-blanco);
  transform: translateY(-2px);
  box-shadow: var(--sombra-lg);
}

/* ===== ANIMACIONES Y EFECTOS ADICIONALES ===== */

/* Animación para el logo del footer */
@keyframes pulse {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efectos de aparición para elementos del footer */
.contact-item {
  animation: slideInUp 0.6s ease-out forwards;
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation-delay: 0.3s; }
.contact-item:nth-child(4) { animation-delay: 0.4s; }

.cert-badge {
  animation: slideInUp 0.6s ease-out forwards;
}

.cert-badge:nth-child(1) { animation-delay: 0.5s; }
.cert-badge:nth-child(2) { animation-delay: 0.6s; }
.cert-badge:nth-child(3) { animation-delay: 0.7s; }

/* Efecto hover mejorado para el logo */
.footer-logo-nuevo:hover {
  transform: rotate(360deg) scale(1.1);
  border-color: rgba(102, 126, 234, 0.8);
}

/* Efecto de texto parpadeante para el status en vivo */
.badge-live {
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.5; }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .contact-item,
  .cert-badge,
  .logo-glow,
  .badge-live {
    animation: none;
  }
  
  .footer-logo-nuevo:hover {
    transform: none;
  }
}

/* Efecto de partículas de fondo para el footer */
.footer-revolucionario::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(240, 147, 251, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* ===== FOOTER REVOLUCIONARIO COMPLETO ===== */
.footer-revolucionario {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  color: var(--color-blanco);
  position: relative;
  overflow: hidden;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-waves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  overflow: hidden;
  line-height: 0;
}

.footer-waves svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 120px;
  fill: #ffffff;
}

.footer-content-nuevo {
  position: relative;
  z-index: 2;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  margin: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-main {
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer-brand-nuevo {
  text-align: left;
  max-width: none;
  margin: 0;
}

.brand-logo-container {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.footer-logo-nuevo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  transition: all var(--transicion-normal);
}

.logo-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 3s infinite;
}

.footer-brand-title {
  font-size: 2rem;
  font-weight: var(--peso-extra-bold);
  color: #ffffff !important;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-brand-slogan {
  font-size: 1.125rem;
  color: #e2e8f0 !important;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.footer-contact-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin-left: auto;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  transition: all var(--transicion-normal);
  backdrop-filter: blur(10px);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.contact-item i {
  font-size: 1.25rem;
  color: #60a5fa !important;
  min-width: 24px;
  text-align: center;
}

.contact-item span {
  color: #ffffff !important;
  font-weight: var(--peso-medio);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 2rem;
}

.copyright-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.copyright-content p {
  color: var(--color-gris-800) !important;
  margin: 0;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(5px);
  font-weight: var(--peso-medium);
}

.certifications {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--border-radius);
  color: var(--color-gris-800) !important;
  font-size: 0.875rem;
  font-weight: var(--peso-semi-bold);
  transition: all var(--transicion-normal);
  backdrop-filter: blur(5px);
}

.cert-badge:hover {
  background: rgba(255, 255, 255, 1) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cert-badge i {
  color: #22c55e !important;
  font-weight: var(--peso-bold);
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-revolucionario {
    padding: 3rem 0 1.5rem;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-brand-nuevo {
    text-align: center;
  }
  
  .footer-contact-section {
    align-items: center;
  }
  
  .contact-info {
    margin: 0 auto;
    max-width: 100%;
  }
  
  .footer-brand-title {
    font-size: 1.75rem;
  }
  
  .contact-item {
    justify-content: center;
    text-align: center;
  }
  
  .certifications {
    gap: 0.5rem;
  }
  
  .cert-badge {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .copyright-content {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .detalles-grid-nuevo {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin: 1rem 0;
  }
  
  .detalle-card {
    padding: 0.75rem;
    min-height: auto;
  }
  
  .detalle-icono {
    width: 40px;
    height: 40px;
  }
  
  .detalle-icono i {
    font-size: 1rem;
  }
  
  .detalle-label {
    font-size: 0.75rem;
  }
  
  .detalle-valor {
    font-size: 0.875rem;
    word-break: break-word;
  }
  
  .cuota-principal-nueva {
    padding: 1rem;
    margin: 1rem 0;
  }
  
  .cuota-numero-grande {
    font-size: 2.5rem;
  }
}

/* ===== MEJORAS FINALES DE FOOTER ===== */

/* Asegurar que todos los textos del footer sean visibles */
.footer-revolucionario .contact-item span,
.footer-revolucionario .footer-brand-title,
.footer-revolucionario .footer-brand-slogan {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Mejorar los íconos del footer */
.footer-revolucionario .contact-item i {
  background: rgba(96, 165, 250, 0.2);
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Efecto de hover mejorado para items de contacto */
.contact-item:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(96, 165, 250, 0.5);
}

/* Asegurar que las ondas se vean bien en todos los dispositivos */
.footer-waves svg {
  filter: drop-shadow(0 -4px 8px rgba(0, 0, 0, 0.1));
}

/* Mejorar la visibilidad de las certificaciones */
.cert-badge {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 2px solid rgba(34, 197, 94, 0.4) !important;
  color: var(--color-gris-800) !important;
  text-shadow: none !important;
  font-weight: var(--peso-semi-bold) !important;
}

/* Responsive adicional para el footer */
@media (max-width: 480px) {
  .contact-info {
    padding: 0 1rem;
  }
  
  .contact-item {
    padding: 1rem;
    font-size: 0.875rem;
  }
  
  .contact-item i {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .footer-brand-title {
    font-size: 1.5rem;
  }
  
  .footer-brand-slogan {
    font-size: 1rem;
  }
}

/* ===== MEJORAS DE CONTRASTE Y VISIBILIDAD ===== */

/* Asegurar visibilidad de textos en el hero */
.hero-content h1,
.hero-content p,
.hero-content .stat-number,
.hero-content .stat-label {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Mejorar contraste en el simulador */
.simulador-header h3,
.simulador-header p,
.label-moderno {
  color: var(--color-gris-800) !important;
  text-shadow: none;
}

/* Asegurar que los placeholders sean visibles */
.input-moderno::placeholder {
  color: var(--color-gris-500) !important;
}

/* Mejorar visibilidad de los labels de rango */
.range-labels-nuevo span {
  color: var(--color-gris-600) !important;
  font-weight: var(--peso-medio);
  text-shadow: none;
}

/* Mejorar botones */
.btn-calcular-nuevo,
.btn-solicitar-nuevo {
  color: var(--color-blanco) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Asegurar visibilidad en beneficios */
.beneficio span {
  color: var(--color-gris-700) !important;
  font-weight: var(--peso-medio);
}

/* Mejorar navbar en caso de conflictos */
.brand-name {
  color: var(--color-gris-800) !important;
}

.brand-subtitle {
  color: var(--color-gris-600) !important;
}

/* Fortalcer textos del footer */
.footer-revolucionario * {
  color: inherit;
}

.footer-revolucionario h3,
.footer-revolucionario h4,
.footer-revolucionario h5,
.footer-revolucionario h6 {
  color: #ffffff !important;
}

.footer-revolucionario p,
.footer-revolucionario span:not(.cert-badge span) {
  color: #e2e8f0 !important;
}

/* Responsive text visibility */
@media (max-width: 768px) {
  .hero-content h1,
  .hero-content p {
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
  }
  
  .footer-brand-title,
  .footer-brand-slogan,
  .contact-item {
    text-align: center;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .hero-title-nuevo {
    font-size: 3rem;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-bottom-nuevo {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links-nuevo {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-renovado {
    padding-top: 4rem;
  }
  
  .hero-title-nuevo {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .simulador-lateral {
    margin-top: 3rem;
    position: static;
  }
}

@media (max-width: 768px) {
  .navbar-brand .brand-text {
    display: none;
  }
  
  .hero-title-nuevo {
    font-size: 2rem;
  }
  
  .hero-descripcion {
    font-size: 1rem;
  }
  
  .stat-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-header h2 {
    font-size: 2rem;
  }
  
  .footer-links-nuevo {
    grid-template-columns: 1fr;
  }
  
  .copyright-content {
    flex-direction: column;
    text-align: center;
  }
  
  .certifications {
    justify-content: center;
  }
  
  .floating-actions {
    bottom: 1rem;
    right: 1rem;
  }
}

@media (max-width: 576px) {
  .simulador-lateral {
    padding: 1.5rem;
  }
  
  .simulador-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .monto-numero {
    font-size: 2rem;
  }
  
  .tiempo-numero {
    font-size: 1.5rem;
  }
  
  .fab-option::before {
    display: none;
  }
}

/* ===== RESPONSIVE PARA PANTALLAS MUY PEQUEÑAS ===== */
@media (max-width: 480px) {
  .detalles-grid-nuevo {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin: 1rem 0;
  }
  
  .detalle-card {
    padding: 0.75rem;
    min-height: auto;
  }
  
  .detalle-icono {
    width: 40px;
    height: 40px;
  }
  
  .detalle-icono i {
    font-size: 1rem;
  }
  
  .detalle-label {
    font-size: 0.75rem;
  }
  
  .detalle-valor {
    font-size: 0.875rem;
    word-break: break-word;
  }
  
  .cuota-principal-nueva {
    padding: 1rem;
    margin: 1rem 0;
  }
  
  .cuota-numero-grande {
    font-size: 2.5rem;
  }
}

/* ===== MEJORAS DE TEXTO BLANCO/CLARO ===== */

/* Mejorar visibilidad en monto-valor-container */
.monto-valor-container {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.monto-valor-container .monto-simbolo,
.monto-valor-container .monto-numero,
.monto-valor-container .monto-moneda {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.monto-simbolo {
  color: #e2e8f0 !important;
  font-weight: var(--peso-bold);
}

.monto-numero {
  color: #ffffff !important;
  font-weight: var(--peso-extra-bold);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.monto-moneda {
  color: #cbd5e1 !important;
  font-weight: var(--peso-medio);
}

/* Mejorar visibilidad en btn-content */
.btn-content {
  color: #ffffff !important;
}

.btn-content i,
.btn-content span {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  font-weight: var(--peso-semi-bold);
}

/* Asegurar que el botón calcular tenga buen contraste */
.btn-calcular-nuevo .btn-content {
  color: #ffffff !important;
}

.btn-calcular-nuevo .btn-content i,
.btn-calcular-nuevo .btn-content span {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Mejorar también otros elementos relacionados */
.monto-info {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.75rem;
  border-radius: var(--border-radius);
  margin-top: 0.5rem;
  backdrop-filter: blur(5px);
}

.monto-cuota-estimada {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  font-weight: var(--peso-medio);
}

.monto-cuota-estimada span {
  color: #4ade80 !important;
  font-weight: var(--peso-bold);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Tiempo display similar al monto */
.tiempo-display-nuevo {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  margin-bottom: 1rem;
}

.tiempo-numero {
  color: #ffffff !important;
  font-size: 2.5rem;
  font-weight: var(--peso-extra-bold);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.tiempo-unidad {
  color: #cbd5e1 !important;
  font-size: 1.125rem;
  font-weight: var(--peso-medio);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  margin-left: 0.5rem;
}

/* Responsive para elementos con texto blanco */
@media (max-width: 768px) {
  .monto-valor-container,
  .tiempo-display-nuevo {
    padding: 0.75rem;
  }
  
  .monto-numero,
  .tiempo-numero {
    font-size: 2rem;
  }
  
  .monto-simbolo {
    font-size: 1.25rem;
  }
}

/* ===== MEJORAS ESPECÍFICAS PARA CERT-BADGE Y COPYRIGHT ===== */

/* Asegurar contraste óptimo para badges de certificación */
.certifications .cert-badge {
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--color-gris-900) !important;
  border: 2px solid rgba(34, 197, 94, 0.6) !important;
  font-weight: var(--peso-semi-bold) !important;
  text-shadow: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.certifications .cert-badge:hover {
  background: #ffffff !important;
  color: var(--color-gris-900) !important;
  border-color: #22c55e !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.certifications .cert-badge i {
  color: #16a34a !important;
  text-shadow: none !important;
}

/* Mejorar copyright con fondo más claro */
.footer-copyright .copyright-content p {
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--color-gris-900) !important;
  padding: 1rem 2rem !important;
  border-radius: var(--border-radius-lg) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  font-weight: var(--peso-medium) !important;
  text-shadow: none !important;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Responsive para elementos con texto oscuro */
@media (max-width: 768px) {
  .certifications .cert-badge {
    background: rgba(255, 255, 255, 0.98) !important;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  .footer-copyright .copyright-content p {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .certifications .cert-badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    gap: 0.375rem;
  }
  
  .certifications .cert-badge i {
    font-size: 0.875rem;
  }
  
  .footer-copyright .copyright-content p {
    padding: 0.625rem 1rem !important;
    font-size: 0.75rem;
  }
}

/* ===== ESTILOS PARA DESGLOSE DE CUOTA MEJORADO ===== */

.desglose-cuota-nuevo {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--border-radius-xl);
  padding: 2.5rem;
  margin: 2rem 0;
  backdrop-filter: blur(25px);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.15),
    0 4px 20px rgba(102, 126, 234, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all var(--transicion-normal);
  position: relative;
  overflow: hidden;
}

.desglose-cuota-nuevo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradiente-principal);
  opacity: 0.8;
}

.desglose-cuota-nuevo:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.2),
    0 8px 30px rgba(102, 126, 234, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.desglose-cuota-nuevo h4 {
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: var(--peso-bold);
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  /* Fallback para navegadores que no soporten background-clip */
  color: #ffffff;
}

.desglose-cuota-nuevo h4::before {
  content: '📊';
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.desglose-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.desglose-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transicion-normal);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}

.desglose-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, rgba(102, 126, 234, 0.8), rgba(240, 147, 251, 0.8));
  transform: scaleY(0);
  transition: transform var(--transicion-normal);
}

.desglose-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(8px);
  border-color: rgba(255, 255, 255, 0.25);
}

.desglose-item:hover::before {
  transform: scaleY(1);
}

.desglose-label {
  color: #1e293b;
  font-size: 1rem;
  font-weight: var(--peso-medium);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  backdrop-filter: blur(10px);
}

.desglose-label::before {
  content: '•';
  color: #3b82f6;
  font-weight: bold;
  font-size: 1.2rem;
}

.desglose-valor {
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: var(--peso-bold);
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.025em;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  backdrop-filter: blur(10px);
}

.desglose-total {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.25), rgba(118, 75, 162, 0.25));
  border: 2px solid rgba(96, 165, 250, 0.4);
  margin-top: 1.5rem;
  padding: 2rem;
  border-radius: var(--border-radius-xl);
  position: relative;
  overflow: hidden;
}

.desglose-total::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: shimmer 3s infinite;
}

.desglose-total::after {
  content: '💰';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  opacity: 0.7;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.desglose-total .desglose-label {
  color: #1e293b;
  font-size: 1.25rem;
  font-weight: var(--peso-bold);
  background: rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.desglose-total .desglose-label::before {
  content: '🎯';
  font-size: 1.2rem;
}

.desglose-total .desglose-valor {
  font-size: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  color: #0f172a;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.desglose-total .desglose-valor {
  color: #60a5fa;
  font-size: 1.5rem;
  font-weight: var(--peso-extra-bold);
}

/* Responsive para desglose */
@media (max-width: 768px) {
  .desglose-cuota-nuevo {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }
  
  .desglose-cuota-nuevo h4 {
    font-size: 1.25rem;
  }
  
  .desglose-item {
    padding: 0.875rem 1rem;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .desglose-label {
    font-size: 0.875rem;
  }
  
  .desglose-valor {
    font-size: 1rem;
  }
  
  .desglose-total {
    padding: 1.25rem;
  }
  
  .desglose-total .desglose-label {
    font-size: 1rem;
  }
  
  .desglose-total .desglose-valor {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .desglose-cuota-nuevo {
    padding: 1rem;
    margin: 1rem 0;
  }
  
  .desglose-cuota-nuevo h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
  }
  
  .desglose-item {
    padding: 0.75rem;
  }
  
  .desglose-label {
    font-size: 0.8rem;
  }
  
  .desglose-valor {
    font-size: 0.9rem;
  }
  
  .desglose-total {
    padding: 1rem;
  }
  
  .desglose-total .desglose-valor {
    font-size: 1.125rem;
  }
}

/* ===== SISTEMA DE NOTIFICACIONES ULTRA MODERNAS ===== */

.notificacion-moderna {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  min-width: 320px;
  max-width: 450px;
  padding: 0;
  border-radius: var(--border-radius-xl);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.2),
    0 15px 35px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(25px);
  animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transform-origin: top right;
}

.notificacion-moderna::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: topGlow 2s infinite;
}

@keyframes topGlow {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

.notificacion-moderna.notificacion-success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(21, 128, 61, 0.95));
  border-left: 4px solid #10b981;
  color: #ffffff;
}

.notificacion-moderna.notificacion-success .notificacion-content span {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.notificacion-moderna.notificacion-success::before {
  background: linear-gradient(90deg, transparent, #10b981, transparent);
}

.notificacion-moderna.notificacion-warning {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.95), rgba(245, 158, 11, 0.95));
  border-left: 4px solid #f59e0b;
  color: #1e293b;
}

.notificacion-moderna.notificacion-warning .notificacion-content span {
  color: #1e293b;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.notificacion-moderna.notificacion-warning .notificacion-content i {
  color: #1e293b;
}

.notificacion-moderna.notificacion-warning .notificacion-close {
  color: #1e293b;
}

.notificacion-moderna.notificacion-warning::before {
  background: linear-gradient(90deg, transparent, #f59e0b, transparent);
}

.notificacion-moderna.notificacion-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.95));
  border-left: 4px solid #dc2626;
  color: #ffffff;
}

.notificacion-moderna.notificacion-error .notificacion-content span {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.notificacion-moderna.notificacion-error::before {
  background: linear-gradient(90deg, transparent, #dc2626, transparent);
}

.notificacion-moderna.notificacion-info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(37, 99, 235, 0.95));
  border-left: 4px solid #2563eb;
  color: #ffffff;
}

.notificacion-moderna.notificacion-info .notificacion-content span {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.notificacion-moderna.notificacion-info::before {
  background: linear-gradient(90deg, transparent, #2563eb, transparent);
}

.notificacion-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.notificacion-content i {
  font-size: 1.5rem;
  color: #ffffff;
  min-width: 24px;
  text-align: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.notificacion-content span {
  flex: 1;
  font-size: 0.9rem;
  font-weight: var(--peso-medium);
  line-height: 1.5;
  letter-spacing: 0.025em;
  /* El color se define específicamente para cada tipo de notificación */
}

.notificacion-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.25s ease;
  opacity: 0.8;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.notificacion-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1) rotate(90deg);
  border-color: rgba(255, 255, 255, 0.4);
}

.notificacion-close:active {
  transform: scale(0.95) rotate(90deg);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateX(100%) scale(0.9);
    opacity: 0;
  }
}

.notificacion-moderna.removing {
  animation: slideOutRight 0.3s ease-in forwards;
}

/* Progreso de auto-cierre */
.notificacion-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 0 0 var(--border-radius-xl) var(--border-radius-xl);
  animation: progressBar 5s linear forwards;
}

@keyframes progressBar {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* Responsive para notificaciones */
@media (max-width: 768px) {
  .notificacion-moderna {
    left: 15px;
    right: 15px;
    min-width: auto;
    max-width: none;
    top: 15px;
  }
  
  .notificacion-content {
    padding: 1.25rem;
  }
  
  .notificacion-content span {
    font-size: 0.875rem;
  }
  
  .notificacion-content i {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .notificacion-moderna {
    top: 10px;
    left: 10px;
    right: 10px;
  }
  
  .notificacion-content {
    padding: 1rem;
    gap: 0.875rem;
  }
  
  .notificacion-content i {
    font-size: 1.125rem;
  }
  
  .notificacion-content span {
    font-size: 0.8125rem;
  }
  
  .notificacion-close {
    min-width: 28px;
    height: 28px;
    font-size: 0.875rem;
  }
}

/* Estilos para múltiples notificaciones */
.notificacion-moderna:nth-child(2) {
  top: 100px;
  animation-delay: 0.1s;
}

.notificacion-moderna:nth-child(3) {
  top: 180px;
  animation-delay: 0.2s;
}

.notificacion-moderna:nth-child(4) {
  top: 260px;
  animation-delay: 0.3s;
}

.notificacion-moderna:nth-child(5) {
  top: 340px;
  animation-delay: 0.4s;
}

/* Efecto de entrada con rebote */
.notificacion-moderna.bounce-in {
  animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
  0% {
    transform: translateX(100%) scale(0.3);
    opacity: 0;
  }
  50% {
    transform: translateX(-10px) scale(1.05);
    opacity: 0.8;
  }
  70% {
    transform: translateX(5px) scale(0.98);
    opacity: 0.9;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

/* ===== MEJORAS ADICIONALES PARA INTEGRACIÓN VISUAL ===== */

/* Contenedor de notificaciones personalizado */
#notificaciones-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Efectos de glassmorphism mejorados */
.glassmorphism-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-xl);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Animaciones de entrada mejoradas para el desglose */
.desglose-cuota-nuevo.animate-in {
  animation: fadeInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Estilos para el total destacado */
.desglose-total.destacado {
  animation: highlightPulse 2s infinite alternate;
}

@keyframes highlightPulse {
  0% {
    box-shadow: 
      0 0 20px rgba(96, 165, 250, 0.3),
      0 0 40px rgba(96, 165, 250, 0.2),
      0 0 60px rgba(96, 165, 250, 0.1);
  }
  100% {
    box-shadow: 
      0 0 30px rgba(96, 165, 250, 0.5),
      0 0 60px rgba(96, 165, 250, 0.3),
      0 0 90px rgba(96, 165, 250, 0.2);
  }
}

/* Responsive mejorado para desglose */
@media (max-width: 768px) {
  .desglose-cuota-nuevo {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }
  
  .desglose-cuota-nuevo h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
  }
  
  .desglose-item {
    padding: 1rem 1.25rem;
  }
  
  .desglose-label {
    font-size: 0.875rem;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.15);
  }
  
  .desglose-valor {
    font-size: 1.125rem;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.2);
  }
  
  .desglose-total {
    padding: 1.5rem;
  }
  
  .desglose-total .desglose-label {
    font-size: 1rem;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.25);
  }
  
  .desglose-total .desglose-valor {
    font-size: 1.25rem;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.3);
  }
}

@media (max-width: 480px) {
  .desglose-cuota-nuevo {
    padding: 1rem;
    margin: 1rem 0;
  }
  
  .desglose-cuota-nuevo h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #ffffff;
  }
  
  .desglose-item {
    padding: 0.875rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .desglose-item:hover {
    transform: translateY(-2px);
  }
  
  .desglose-label {
    font-size: 0.8125rem;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.125rem 0.5rem;
  }
  
  .desglose-valor {
    font-size: 1rem;
    align-self: flex-end;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.25);
    padding: 0.125rem 0.5rem;
  }
  
  .desglose-total {
    padding: 1rem;
  }
  
  .desglose-total .desglose-item {
    flex-direction: row;
    align-items: center;
  }
  
  .desglose-total .desglose-label {
    color: #1e293b;
    background: rgba(255, 255, 255, 0.3);
  }
  
  .desglose-total .desglose-valor {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.35);
  }
}

/* Tema de alto contraste y mejoras de legibilidad */
.desglose-cuota-nuevo {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--border-radius-xl);
  padding: 2.5rem;
  margin: 2rem 0;
  backdrop-filter: blur(25px);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.15),
    0 4px 20px rgba(102, 126, 234, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all var(--transicion-normal);
  position: relative;
  overflow: hidden;
}

/* Mejora para dispositivos con preferencia de alto contraste */
@media (prefers-contrast: high) {
  .desglose-cuota-nuevo {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #000000;
  }
  
  .desglose-cuota-nuevo h4 {
    color: #000000;
    text-shadow: none;
  }
  
  .desglose-item {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #000000;
  }
  
  .desglose-label {
    color: #000000;
    background: rgba(255, 255, 255, 0.8);
    text-shadow: none;
  }
  
  .desglose-valor {
    color: #000000;
    background: rgba(255, 255, 255, 0.9);
    text-shadow: none;
  }
  
  .desglose-total {
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid #2563eb;
  }
  
  .desglose-total .desglose-label,
  .desglose-total .desglose-valor {
    color: #000000;
    background: rgba(255, 255, 255, 0.9);
  }
}

/* Mejor contraste para tema oscuro */
@media (prefers-color-scheme: dark) {
  .desglose-cuota-nuevo {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    border-color: rgba(255, 255, 255, 0.3);
  }
  
  .desglose-cuota-nuevo h4 {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  }
  
  .desglose-item {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
  }
  
  .desglose-item:hover {
    background: rgba(0, 0, 0, 0.6);
  }
  
  .desglose-label {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  }
  
  .desglose-valor {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  }
  
  .desglose-total .desglose-label,
  .desglose-total .desglose-valor {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
  }
}

/* Efectos de micro-interacciones */
.desglose-item {
  transform-origin: left center;
}

.desglose-item:active {
  transform: scale(0.98);
}

.desglose-valor {
  transition: all 0.3s ease;
}

.desglose-item:hover .desglose-valor {
  transform: scale(1.05);
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

/* Indicadores visuales mejorados */
.desglose-item.nuevo-calculo {
  animation: newCalculation 0.8s ease-out;
}

@keyframes newCalculation {
  0% {
    background: rgba(96, 165, 250, 0.3);
    transform: translateX(10px);
  }
  50% {
    background: rgba(96, 165, 250, 0.2);
    transform: translateX(-5px);
  }
  100% {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(0);
  }
}

/* Mejoras de accesibilidad */
.desglose-cuota-nuevo:focus-within {
  outline: 2px solid rgba(96, 165, 250, 0.5);
  outline-offset: 2px;
}

.notificacion-close:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Efectos de hover mejorados para el desglose */
.desglose-cuota-nuevo:hover h4::before {
  animation: iconRotate 0.6s ease-in-out;
}

@keyframes iconRotate {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(10deg);
  }
}

/* Estilos para estados de carga */
.desglose-cuota-nuevo.loading {
  position: relative;
  overflow: hidden;
}

.desglose-cuota-nuevo.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 1.5s infinite;
}

.desglose-cuota-nuevo.loading .desglose-item {
  opacity: 0.6;
  pointer-events: none;
}

/* ===== TEMAS PERSONALIZADOS PARA MEJOR LEGIBILIDAD ===== */

/* Tema de alto contraste */
.tema-alto-contraste .desglose-cuota-nuevo {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #000000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.tema-alto-contraste .desglose-cuota-nuevo h4 {
  color: #000000;
  text-shadow: none;
  background: none;
  -webkit-text-fill-color: #000000;
}

.tema-alto-contraste .desglose-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #000000;
}

.tema-alto-contraste .desglose-label {
  color: #000000;
  background: rgba(255, 255, 255, 0.8);
  text-shadow: none;
}

.tema-alto-contraste .desglose-valor {
  color: #000000;
  background: rgba(255, 255, 255, 0.9);
  text-shadow: none;
  font-weight: var(--peso-extra-bold);
}

.tema-alto-contraste .desglose-total {
  background: rgba(59, 130, 246, 0.15);
  border: 2px solid #2563eb;
}

.tema-alto-contraste .desglose-total .desglose-label,
.tema-alto-contraste .desglose-total .desglose-valor {
  color: #000000;
  background: rgba(255, 255, 255, 0.9);
}

/* Tema claro optimizado */
.tema-claro .desglose-cuota-nuevo {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.tema-claro .desglose-cuota-nuevo h4 {
  color: #1e293b;
  text-shadow: none;
  background: linear-gradient(135deg, #1e293b, #334155);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tema-claro .desglose-item {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.tema-claro .desglose-label {
  color: #334155;
  background: rgba(248, 250, 252, 0.8);
  text-shadow: none;
}

.tema-claro .desglose-valor {
  color: #0f172a;
  background: rgba(248, 250, 252, 0.9);
  text-shadow: none;
}

.tema-claro .desglose-total {
  background: rgba(59, 130, 246, 0.1);
  border: 2px solid rgba(59, 130, 246, 0.3);
}

.tema-claro .desglose-total .desglose-label,
.tema-claro .desglose-total .desglose-valor {
  color: #0f172a;
  background: rgba(248, 250, 252, 0.9);
}

/* Tema oscuro optimizado */
.tema-oscuro .desglose-cuota-nuevo {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.tema-oscuro .desglose-cuota-nuevo h4 {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tema-oscuro .desglose-item {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tema-oscuro .desglose-label {
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.6);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.tema-oscuro .desglose-valor {
  color: #ffffff;
  background: rgba(30, 41, 59, 0.8);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.tema-oscuro .desglose-total {
  background: rgba(59, 130, 246, 0.2);
  border: 2px solid rgba(59, 130, 246, 0.4);
}

.tema-oscuro .desglose-total .desglose-label,
.tema-oscuro .desglose-total .desglose-valor {
  color: #ffffff;
  background: rgba(30, 41, 59, 0.9);
}

/* Aplicar temas a las notificaciones también */
.tema-alto-contraste .notificacion-moderna {
  border: 2px solid #000000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.tema-alto-contraste .notificacion-moderna.notificacion-warning {
  background: rgba(255, 255, 255, 0.95);
  color: #000000;
}

.tema-alto-contraste .notificacion-moderna.notificacion-warning .notificacion-content span,
.tema-alto-contraste .notificacion-moderna.notificacion-warning .notificacion-content i,
.tema-alto-contraste .notificacion-moderna.notificacion-warning .notificacion-close {
  color: #000000;
  text-shadow: none;
}

/* ===== ESTILOS PARA BOTONES DE ACCIÓN ===== */

.acciones-resultado {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-solicitar-ya {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-lg);
  font-size: 1.125rem;
  font-weight: var(--peso-bold);
  cursor: pointer;
  transition: all var(--transicion-normal);
  box-shadow: 
    0 4px 15px rgba(16, 185, 129, 0.3),
    0 2px 8px rgba(16, 185, 129, 0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 200px;
  justify-content: center;
}

.btn-solicitar-ya::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-solicitar-ya:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(16, 185, 129, 0.4),
    0 4px 15px rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-solicitar-ya:hover::before {
  left: 100%;
}

.btn-solicitar-ya:active {
  transform: translateY(0);
  box-shadow: 
    0 4px 15px rgba(16, 185, 129, 0.3),
    0 2px 8px rgba(16, 185, 129, 0.2);
}

.btn-solicitar-ya i {
  font-size: 1.25rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.btn-nueva-simulacion {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-lg);
  font-size: 1.125rem;
  font-weight: var(--peso-semi-bold);
  cursor: pointer;
  transition: all var(--transicion-normal);
  box-shadow: 
    0 4px 15px rgba(99, 102, 241, 0.3),
    0 2px 8px rgba(99, 102, 241, 0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 200px;
  justify-content: center;
}

.btn-nueva-simulacion::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-nueva-simulacion:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(99, 102, 241, 0.4),
    0 4px 15px rgba(99, 102, 241, 0.3);
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

.btn-nueva-simulacion:hover::before {
  left: 100%;
}

.btn-nueva-simulacion:active {
  transform: translateY(0);
  box-shadow: 
    0 4px 15px rgba(99, 102, 241, 0.3),
    0 2px 8px rgba(99, 102, 241, 0.2);
}

.btn-nueva-simulacion i {
  font-size: 1.25rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  animation: rotateIcon 2s ease-in-out infinite;
}

@keyframes rotateIcon {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
}

.btn-nueva-simulacion:hover i {
  animation: rotateIcon 0.6s ease-in-out;
}

/* Versiones alternativas para estados especiales */
.btn-solicitar-ya.procesando {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  cursor: not-allowed;
  pointer-events: none;
}

.btn-solicitar-ya.procesando::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #ffffff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive para botones */
@media (max-width: 768px) {
  .acciones-resultado {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .btn-solicitar-ya,
  .btn-nueva-simulacion {
    width: 100%;
    max-width: 300px;
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .btn-solicitar-ya,
  .btn-nueva-simulacion {
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    min-width: auto;
  }
  
  .btn-solicitar-ya span,
  .btn-nueva-simulacion span {
    display: none;
  }
  
  .btn-solicitar-ya::after {
    content: 'Solicitar';
  }
  
  .btn-nueva-simulacion::after {
    content: 'Nuevo';
  }
}

/* Estilos para los temas personalizados */
.tema-alto-contraste .btn-solicitar-ya {
  background: #000000;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.tema-alto-contraste .btn-solicitar-ya:hover {
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
}

.tema-alto-contraste .btn-nueva-simulacion {
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.tema-alto-contraste .btn-nueva-simulacion:hover {
  background: #000000;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.tema-claro .btn-solicitar-ya {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.tema-claro .btn-nueva-simulacion {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.tema-oscuro .btn-solicitar-ya {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.tema-oscuro .btn-nueva-simulacion {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Efectos especiales de hover */
.btn-solicitar-ya:hover {
  animation: pulse 0.6s ease-in-out;
}

.btn-nueva-simulacion:hover {
  animation: wobble 0.6s ease-in-out;
}

@keyframes pulse {
  0%, 100% {
    transform: translateY(-2px) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.05);
  }
}

@keyframes wobble {
  0%, 100% {
    transform: translateY(-2px) rotate(0deg);
  }
  25% {
    transform: translateY(-2px) rotate(1deg);
  }
  75% {
    transform: translateY(-2px) rotate(-1deg);
  }
}

/* Botones con efectos de glassmorphism */
.btn-solicitar-ya.glassmorphism {
  background: rgba(16, 185, 129, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-nueva-simulacion.glassmorphism {
  background: rgba(99, 102, 241, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Estados de focus para accesibilidad */
.btn-solicitar-ya:focus,
.btn-nueva-simulacion:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.tema-alto-contraste .btn-solicitar-ya:focus,
.tema-alto-contraste .btn-nueva-simulacion:focus {
  outline: 3px solid #000000;
  outline-offset: 2px;
}

/* ===== ESTILOS PARA DESGLOSE INTEGRADO ===== */

/* Header del desglose integrado */
.desglose-header-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.desglose-saludo {
    text-align: center;
}

.desglose-saludo h4 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
    text-align: center;
}

.desglose-cuota-principal {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    text-align: center;
}

.desglose-simbolo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #28a745;
    text-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.desglose-numero-grande {
    font-size: 2.5rem;
    font-weight: 800;
    color: #28a745;
    text-shadow: 0 3px 6px rgba(40, 167, 69, 0.4);
}

.desglose-descripcion {
    font-size: 1rem;
    color: #495057;
    font-weight: 500;
    margin-left: 10px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.desglose-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #ffc107, #ff8c00);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    margin: 0 auto;
    width: fit-content;
}

.desglose-badge i {
    font-size: 0.875rem;
}

/* Resumen básico */
.desglose-resumen-basico {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.resumen-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.resumen-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 5px;
}

.resumen-valor {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Separador */
.desglose-separador {
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    margin: 25px 0;
    border-radius: 1px;
}

/* Título del desglose detallado */
.desglose-cuota-nuevo h5 {
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

.desglose-cuota-nuevo h5::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #00ff88, #00d4ff);
    border-radius: 1px;
}

/* Responsive para el desglose integrado */
@media (max-width: 768px) {
    .desglose-header-info {
        gap: 15px;
    }
    
    .desglose-numero-grande {
        font-size: 2rem;
    }
    
    .desglose-resumen-basico {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .desglose-numero-grande {
        font-size: 1.8rem;
    }
    
    .desglose-resumen-basico {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* ===== ESTILOS PARA SOLICITUD DE CRÉDITO ===== */

/* Loading de solicitud */
.solicitud-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.loading-spinner-solicitud {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 123, 255, 0.1);
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.solicitud-loading p {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.loading-steps-solicitud {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step-solicitud {
    padding: 8px 16px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.step-solicitud.active {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    transform: scale(1.05);
}

/* Solicitud exitosa */
.solicitud-exitosa {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, 
        rgba(40, 167, 69, 0.1) 0%, 
        rgba(255, 255, 255, 0.95) 100%);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(40, 167, 69, 0.2);
    text-align: center;
    border: 2px solid rgba(40, 167, 69, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.solicitud-exitosa.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.exito-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.solicitud-exitosa h4 {
    color: #28a745;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.numero-solicitud {
    background: rgba(40, 167, 69, 0.1);
    padding: 15px 25px;
    border-radius: 15px;
    border: 1px solid rgba(40, 167, 69, 0.2);
    margin-bottom: 20px;
}

.numero-solicitud strong {
    color: #2c3e50;
    font-size: 1rem;
    display: block;
    margin-bottom: 5px;
}

.numero-solicitud .numero {
    color: #28a745;
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'Courier New', monospace;
}

.solicitud-exitosa p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.acciones-post-solicitud {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-compartir {
    background: linear-gradient(135deg, #6f42c1, #5a379a);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-compartir:hover {
    background: linear-gradient(135deg, #5a379a, #4a2c7a);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(111, 66, 193, 0.3);
}

/* Solicitud con error */
.solicitud-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, 
        rgba(220, 53, 69, 0.1) 0%, 
        rgba(255, 255, 255, 0.95) 100%);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(220, 53, 69, 0.2);
    text-align: center;
    border: 2px solid rgba(220, 53, 69, 0.2);
}

.error-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.solicitud-error h4 {
    color: #dc3545;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.solicitud-error p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.acciones-error {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-reintentar {
    background: linear-gradient(135deg, #fd7e14, #e8590c);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-reintentar:hover {
    background: linear-gradient(135deg, #e8590c, #d24809);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(253, 126, 20, 0.3);
}

/* Animaciones */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive para solicitudes */
@media (max-width: 768px) {
    .solicitud-loading,
    .solicitud-exitosa,
    .solicitud-error {
        padding: 30px 15px;
    }
    
    .exito-icon,
    .error-icon {
        font-size: 3rem;
    }
    
    .solicitud-exitosa h4,
    .solicitud-error h4 {
        font-size: 1.5rem;
    }
    
    .numero-solicitud .numero {
        font-size: 1.2rem;
    }
    
    .acciones-post-solicitud,
    .acciones-error {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-compartir,
    .btn-reintentar {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .loading-steps-solicitud {
        gap: 8px;
    }
    
    .step-solicitud {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .solicitud-exitosa p,
    .solicitud-error p {
        font-size: 1rem;
    }
}

/* Estilos para la previsualización de archivos */
.archivo-preview-container {
    margin-top: 0.75rem;
}

.archivo-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 0.75rem;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.archivo-preview:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.archivo-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.archivo-info i {
    font-size: 1.5rem;
    color: #dc3545;
}

.archivo-detalles {
    display: flex;
    flex-direction: column;
}

.archivo-nombre {
    font-weight: 600;
    color: #212529;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.archivo-tamano {
    font-size: 0.8rem;
    color: #6c757d;
}

.btn-remover-archivo {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    transition: all 0.3s ease;
}

.btn-remover-archivo:hover {
    background-color: #dc3545;
    color: white;
    transform: scale(1.1);
}

.btn-remover-archivo i {
    font-size: 1.2rem;
}
