/* ==========================================================================
   DISEÑO PREMIUM SIMULADOR DE DEUDAS (ESTILO VIOLET-INDIGO)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #fcfcfd;
    color: #334155;
    line-height: 1.6;
    padding: 3rem 1rem;
}

.container {
    max-width: 1050px;
    margin: 0 auto;
}

/* ENLACE VOLVER AL PORTAL */
.back-link {
    display: inline-block;
    font-size: 0.85rem;
    color: #6366f1; /* Tono índigo corporativo */
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: #4338ca;
}

/* CABECERA */
header {
    margin-bottom: 3rem;
    border-left: 4px solid #6366f1;
    padding-left: 1.5rem;
}

header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
}

header p {
    color: #64748b;
    font-size: 1.05rem;
    max-width: 850px;
}

/* LAYOUT DOBLE COLUMNA */
.calculator-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .calculator-layout {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

/* INPUT PANEL (IZQUIERDA) */
.input-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.01);
}

.input-panel h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 1.5rem 0 1rem 0;
    letter-spacing: -0.02em;
}

.input-panel h2:first-of-type {
    margin-top: 0;
}

.input-group {
    margin-bottom: 1.25rem;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

.input-help {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 0.4rem;
}

.input-panel input[type="number"] {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #0f172a;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s;
}

.input-panel input[type="number"]:focus {
    border-color: #6366f1;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* BLOQUES CONTENEDORES DE DEUDA INDIVIDUAL */
.debt-box {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #cbd5e1;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.debt-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.debt-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
}

.debt-row label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.25rem;
    display: block;
}

.debt-row input {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.9rem !important;
}

/* PANEL RESULTADOS (DERECHA) */
.results-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.02);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ESTILOS DE TARJETAS DE RESULTADO DE ESTRATEGIA */
.strategy-result-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
}

.avalanche-theme {
    background-color: #faf5ff;
    border-color: #e9d5ff;
}

.snowball-theme {
    background-color: #f0fdfa;
    border-color: #ccfbf1;
}

.badge-method {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.avalanche-theme .badge-method { background-color: #f3e8ff; color: #7c3aed; }
.snowball-theme .badge-method { background-color: #e6fffa; color: #0d9488; }

.strategy-result-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.strategy-desc {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 1.25rem;
}

.strategy-stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px dashed #cbd5e1;
    padding-top: 1rem;
}

.strategy-stats span {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    text-transform: uppercase;
}

.strategy-stats strong {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
}

/* CAJA DE VEREDICTO FINAL */
.comparison-verdict-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
}

.comparison-verdict-box h3 {
    font-size: 0.95rem;
    color: #334155;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.comparison-verdict-box p {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.5;
}

/* SECCIÓN SEO TEXTO LARGO */
.seo-content {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid #e2e8f0;
}

.seo-content h2 {
    font-size: 1.5rem;
    color: #0f172a;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    font-weight: 800;
}

.seo-content h3 {
    font-size: 1.15rem;
    color: #0f172a;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.seo-content p {
    color: #475569;
    font-size: 0.98rem;
    margin-bottom: 1.25rem;
    text-align: justify;
}

.seo-content strong {
    color: #0f172a;
}

/* PIE DE PÁGINA */
footer {
    margin-top: 5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    border-top: 1px solid #e2e8f0;
    padding-top: 2rem;
}

/* Efecto hover suave para el botón de Buy Me a Coffee */
.support-section a:hover img, .privacy-box a:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}