/* ===== TIPOGRAFÍA (guardada en nuestra propia web) ===== */
@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("fuentes/PlusJakartaSans-VariableFont_wght.ttf") format("truetype");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}
/* ===== GENERAL ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    background-color: #f1f5f9;
    color: #0f172a;
}

/* ===== CABECERA ===== */
.cabecera {
    background: linear-gradient(135deg, #1e3a8a, #4f46e5);
    color: white;
    text-align: center;
    padding: 56px 20px 130px;
}

.etiqueta {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

.cabecera h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    margin: 20px 0 12px;
}

.cabecera p {
    font-size: 18px;
    color: #c7d2fe;
    max-width: 560px;
    margin: 0 auto;
}

/* ===== TARJETA DE LA CALCULADORA ===== */
main {
    max-width: 520px;
    margin: -90px auto 40px;
    background-color: white;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

label {
    display: block;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
}

label:first-child {
    margin-top: 0;
}

input,
select {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-family: inherit;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background-color: #f8fafc;
    transition: border-color 0.2s, background-color 0.2s;
}

input:focus,
select:focus {
    outline: none;
    border-color: #4f46e5;
    background-color: white;
}

button {
    width: 100%;
    margin-top: 28px;
    padding: 16px;
    font-size: 18px;
    font-weight: 800;
    font-family: inherit;
    color: white;
    background: linear-gradient(135deg, #4f46e5, #2563eb);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(79, 70, 229, 0.45);
}

/* ===== OPCIONES AVANZADAS ===== */
.avanzado {
    margin-top: 24px;
    border: 2px dashed #c7d2fe;
    border-radius: 12px;
    padding: 14px 16px;
    background-color: #f8faff;
}

.avanzado summary {
    cursor: pointer;
    font-weight: 600;
    color: #4338ca;
}

.ayuda {
    font-size: 14px;
    color: #64748b;
    margin: 8px 0 0;
}

/* ===== RESULTADO ===== */
#resultado {
    margin-top: 28px;
}

.neto {
    background-color: #f0fdf4;
    border: 2px solid #bbf7d0;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.neto span,
.neto small {
    display: block;
    color: #166534;
    font-weight: 600;
}

.neto strong {
    display: block;
    font-size: 44px;
    font-weight: 800;
    color: #15803d;
    margin: 6px 0;
}

.desglose {
    margin-top: 16px;
}

.desglose p {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.desglose p:last-child {
    border-bottom: none;
    font-weight: 800;
}

.aviso {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    border-radius: 10px;
    padding: 12px;
    margin: 0 0 16px 0;
}

/* ===== PIE DE PÁGINA ===== */
.pie {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    padding: 0 20px 40px;
}

/* ===== MÓVIL (pantallas de menos de 600 px) ===== */
@media (max-width: 600px) {
    .cabecera h1 {
        font-size: 30px;
    }

    main {
        padding: 24px;
        margin-left: 12px;
        margin-right: 12px;
    }

    .neto strong {
        font-size: 36px;
    }
}
/* ===== CONTENIDO PARA LEER ===== */
.contenido {
    max-width: 720px;
    margin: 0 auto 40px;
    padding: 0 20px;
    line-height: 1.7;
}

.contenido h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 48px 0 16px;
}

.contenido p,
.contenido li {
    font-size: 17px;
    color: #334155;
}

.contenido li {
    margin-bottom: 10px;
}

.pregunta {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.pregunta summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 17px;
}

.pregunta p {
    margin: 12px 0 0;
}

.actualizado {
    font-size: 14px;
    color: #64748b;
}
/* ===== PÁGINAS LEGALES ===== */
.cabecera-simple {
    padding: 40px 20px 120px;
}

.volver {
    color: #c7d2fe;
    text-decoration: none;
    font-weight: 600;
}

.volver:hover {
    color: white;
}

.legal {
    max-width: 760px;
    line-height: 1.7;
}

.legal h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 32px 0 12px;
}

.legal h2:first-child {
    margin-top: 0;
}

.legal p,
.legal li {
    color: #334155;
}

.pie a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}

.pie a:hover {
    text-decoration: underline;
}
/* ===== DATO DESTACADO (calculadora de subida) ===== */
.dato-clave {
    background-color: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #3730a3;
    border-radius: 10px;
    padding: 12px;
    margin: 16px 0 0;
    text-align: center;
    font-weight: 600;
}
/* ===== MENÚ DE NAVEGACIÓN ===== */
.menu {
    max-width: 960px;
    margin: 0 auto 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.marca {
    color: white;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
}

.menu-enlaces {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.menu-enlaces a {
    color: #c7d2fe;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
}

.menu-enlaces a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.12);
}

.menu-enlaces a.activo {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
    .menu {
        justify-content: center;
    }
}
.contenido a {
    color: #4f46e5;
    font-weight: 600;
}
/* ===== COMPARADOR DE OFERTAS ===== */
main.ancho {
    max-width: 760px;
}

.ofertas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.oferta {
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 8px 16px 16px;
    margin: 0;
}

.oferta legend {
    font-weight: 800;
    color: #4338ca;
    padding: 0 8px;
}

@media (max-width: 600px) {
    .ofertas {
        grid-template-columns: 1fr;
    }
}
/* ===== TABLA DE COMPARACIÓN ===== */
.tabla-comparacion {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.tabla-comparacion th,
.tabla-comparacion td {
    padding: 12px 8px;
    border-bottom: 1px solid #e2e8f0;
    text-align: right;
}

.tabla-comparacion th:first-child,
.tabla-comparacion td:first-child {
    text-align: left;
    color: #334155;
}

.tabla-comparacion th {
    color: #4338ca;
    font-weight: 800;
}

.tabla-comparacion .total td {
    font-weight: 800;
    border-bottom: none;
}

.nota {
    font-size: 14px;
    color: #64748b;
    margin-top: 8px;
}