/* ===== VARIABLES ===== */
:root {
    --rojo: #e30613;
    --rojo-oscuro: #c00d0d;
    --rojo-claro: #ff4757;
    --azul: #1e3a8a;
    --gradient-primary: linear-gradient(135deg, #e30613 0%, #c00d0d 50%, #a00a0a 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    --shadow-glass: 0 25px 45px rgba(0,0,0,0.1), 0 0 0 1px rgba(255,255,255,0.05);
    --shadow-neumorphic: 8px 8px 16px rgba(0,0,0,0.1), -8px -8px 16px rgba(255,255,255,0.5);
  }
  
  /* ===== BASE ===== */
  * { box-sizing: border-box; }
  html, body { 
    height: 100%; 
    margin: 0; 
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
  }
  
  body {
    background: linear-gradient(-45deg, #f0f2f5 0%, #e2e8f0 50%, #cbd5e1 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
  }
  
  main { flex: 1; padding-bottom: 2rem; }
  
  /* ===== PARTICULAS FONDO ===== */
  .particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
  }
  
  /* ===== HEADER ===== */
  .header-glass {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow-glass);
  }
  
  .logo {
    height: 60px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  .logo:hover { transform: scale(1.05) rotate(5deg); }
  
  /* ===== HERO ===== */
  .hero {
    padding: 4rem 0 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
  }
  
  .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
    color: #64748b;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
  }
  
  /* ===== CALCULADORA ===== */
  .calculator-section { padding: 3rem 0; }
  .calculator-card {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-glass);
  }
  
  .form-label { 
    color: #1e293b; 
    font-weight: 600; 
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }
  
  .form-select-lg, .form-control-lg {
    border: none;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    font-weight: 500;
  }
  
  .form-select-lg:focus, .form-control-lg:focus {
    background: rgba(255,255,255,1);
    box-shadow: 0 0 0 0.25rem rgba(227,6,19,0.15), inset 0 1px 2px rgba(0,0,0,0.05);
    transform: translateY(-1px);
  }
  
  .btn-calculate {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    padding: 1.25rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(227,6,19,0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
  }
  
  .btn-calculate:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(227,6,19,0.5);
  }
  
  .btn-calculate:active { transform: translateY(-2px); }
  
  /* ===== RESULTADOS ===== */
  .result-card, .tabla-card {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-glass);
  }
  
  .result-card .cuota {
    font-size: clamp(3rem, 8vw, 5rem) !important;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 12px rgba(227,6,19,0.3);
  }
  
  .texto-resultado {
    color: #1e293b !important;
    font-size: 1.5rem !important;
    font-weight: 600;
  }
  
  /* ===== TABLA MEJORADA ===== */
  .table thead th {
    background: var(--gradient-primary) !important;
    color: white !important;
    font-weight: 600;
    border: none;
    padding: 1rem;
  }
  
  .table td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    font-weight: 500;
  }
  
  .table tbody tr:hover {
    background: rgba(227,6,19,0.05);
    transform: scale(1.01);
  }
  
  /* ===== BOTONES ===== */
  .btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(239,68,68,0.3);
    transition: all 0.3s ease;
  }
  
  .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(239,68,68,0.4);
  }
  
  /* ===== MODAL ===== */
  .modal-content {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 24px;
    box-shadow: var(--shadow-glass);
  }
  
  /* ===== FOOTER ===== */
  .footer-glass {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.2);
    padding: 2rem 0;
    color: #64748b;
    font-weight: 500;
  }
  
  /* ===== ANIMACIONES ===== */
  @keyframes slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  @keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  .animate-slide-up { animation: slide-up 0.8s ease-out forwards; }
  .animate-fade-in { animation: fade-in 1s ease-out forwards; }
  .delay-1 { animation-delay: 0.2s; }
  
  @keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(227,6,19,0.3); }
    50% { box-shadow: 0 0 40px rgba(227,6,19,0.6); }
  }
  
  /* ===== RESPONSIVE ===== */
  @media (max-width: 768px) {
    .calculator-card { padding: 2rem 1.5rem; }
    .result-card, .tabla-card { padding: 1.5rem; }
    .hero { padding: 2rem 0 1rem; }
    .table-responsive { font-size: 0.85rem; }
  }
  /* ===== PREMIUM DESIGN - AGREGAR AL FINAL ===== */
.header-premium {
    border-bottom: 5px solid #e30613 !important;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%) !important;
  }
  
  .logo-premium {
    height: 70px !important;
    filter: drop-shadow(0 4px 12px rgba(227,6,19,0.3));
    transition: all 0.4s ease;
  }
  
  .logo-premium:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 8px 20px rgba(227,6,19,0.5));
  }
  
  .gradient-bar {
    height: 6px;
    background: linear-gradient(90deg, #e30613, #ff4757, #e30613);
    box-shadow: 0 2px 10px rgba(227,6,19,0.4);
  }
  
  .main-premium {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding-bottom: 3rem;
  }
  
  .hero-title-premium {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e30613, #c00d0d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  .hero-subtitle-premium {
    font-size: 1.4rem;
    color: #64748b;
    font-weight: 500;
  }
  
  .premium-card {
    background: linear-gradient(145deg, #ffffff, #f1f5f9) !important;
    border-radius: 25px !important;
    border: 1px solid rgba(227,6,19,0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
  }
  
  .premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e30613, #ff4757, #e30613);
  }
  
  .premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(227,6,19,0.15) !important;
  }
  
  .premium-select, .premium-input {
    background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 20px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  }
  
  .premium-select:focus, .premium-input:focus {
    border-color: #e30613 !important;
    box-shadow: 0 0 0 0.3rem rgba(227,6,19,0.15), 0 8px 25px rgba(0,0,0,0.1) !important;
    transform: translateY(-2px);
  }
  
  .hero-btn {
    background: linear-gradient(135deg, #e30613, #c00d0d) !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    box-shadow: 0 12px 30px rgba(227,6,19,0.4) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  }
  
  .hero-btn:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 20px 40px rgba(227,6,19,0.6) !important;
  }
  
  .premium-result-card {
    background: linear-gradient(145deg, #ffffff, #f0f9ff) !important;
    border-radius: 25px !important;
    border-left: 6px solid #e30613 !important;
  }
  
  .premium-table-card {
    background: linear-gradient(145deg, #f8fafc, #ffffff) !important;
    border-radius: 20px !important;
    border-top: 4px solid #e30613 !important;
  }
  
  .icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .footer-premium {
    background: linear-gradient(135deg, #ffffff, #f8fafc) !important;
    border-top: 4px solid #e30613 !important;
    color: #475569 !important;
    font-weight: 600 !important;
    padding: 2.5rem 0 !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
  }
  
  .table tbody tr {
    transition: all 0.3s ease;
  }
  
  .table tbody tr:hover {
    background: linear-gradient(90deg, rgba(227,6,19,0.05), transparent) !important;
    transform: scale(1.02);
  }
  
  /* ANIMACIÓN CUOTA */
  .cuota {
    animation: pulse-glow 2s infinite;
  }
  
  @keyframes pulse-glow {
    0%, 100% { text-shadow: 0 0 20px rgba(227,6,19,0.3); }
    50% { text-shadow: 0 0 40px rgba(227,6,19,0.6), 0 0 60px rgba(227,6,19,0.3); }
  }
  

/* AJUSTES FINALES */
.premium-result-card {
    padding: 1.5rem !important;
    min-height: 300px !important;
    background: linear-gradient(145deg, #fefefe, #f0f7ff) !important;  /* ← MÁS FUERTE */
    border-left: 6px solid #e30613 !important;
  }
  
  .premium-result-card .cuota {
    font-size: 3.2rem !important;
    font-weight: 900 !important;         /* ← EXTRA BOLD */
    margin: 1rem 0 !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  }
  
  .premium-result-card p {
    font-weight: 600 !important;         /* ← Todo en bold */
    margin-bottom: 0.5rem !important;
  }
  
  .premium-result-card h5 {
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-bottom: 1.25rem !important;
  }
  
  .premium-table-card {
    padding: 2rem !important;
    min-height: 520px !important;
    background: linear-gradient(145deg, #fafbff, #ffffff) !important;
  }
  
  /* Tabla más legible */
  .table td {
    padding: 0.875rem 0.75rem !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
  }
  
  