/* ====================================
   ESTILOS PÁGINA COSTOS Y PENSIONES
   ==================================== */

/* Hero Costos */
.hero-costos {
    height: 55vh;
    min-height: 450px;
    background: linear-gradient(135deg, #193660 0%, #2D4A73 50%, #4A6FA5 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 120px;
    overflow: hidden;
}

.hero-costos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

.hero-content-costos {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.badge-year {
    display: inline-block;
    background: var(--primary-yellow);
    color: var(--primary-blue);
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.hero-content-costos h1 {
    font-size: 3.2em;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--primary-yellow);
    font-weight: 600;
}

.hero-description {
    font-size: 1.2em;
    opacity: 0.95;
}

/* Costos Principales */
.costos-principales {
    padding: 80px 0;
    background: white;
}

.costos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 40px;
}

.costo-card {
    background: white;
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 5px solid;
    position: relative;
    overflow: hidden;
}

.costo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.costo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.costo-card:hover::before {
    opacity: 1;
}

.cuota-ingreso-card {
    border-top-color: #4A6FA5;
}

.matricula-card {
    border-top-color: #FFD700;
}

.pension-card {
    border-top-color: #E2161F;
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.cuota-ingreso-card .card-icon {
    background: linear-gradient(135deg, #4A6FA5, #193660);
    color: white;
}

.matricula-card .card-icon {
    background: linear-gradient(135deg, #FFD700, #FFA000);
    color: #193660;
}

.pension-card .card-icon {
    background: linear-gradient(135deg, #E2161F, #B5141A);
    color: white;
}

.card-icon svg {
    width: 36px;
    height: 36px;
}

.costo-card h3 {
    color: var(--primary-blue);
    font-size: 1.6em;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle-card {
    color: var(--light-blue);
    font-size: 0.95em;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Precios Lista */
.precios-lista {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.precio-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--accent-blue);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.precio-item:hover {
    background: var(--light-blue);
    color: white;
    transform: translateX(5px);
}

.precio-item .label {
    font-size: 0.95em;
    flex: 1;
}

.precio-item .precio {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary-blue);
}

.precio-item:hover .precio {
    color: white;
}

/* Precio Destacado */
.precio-destacado {
    text-align: center;
    margin: 30px 0 15px;
    padding: 25px;
    background: linear-gradient(135deg, var(--accent-blue), white);
    border-radius: 15px;
}

.precio-destacado .moneda {
    font-size: 1.5em;
    color: var(--light-blue);
    font-weight: 600;
    margin-right: 5px;
}

.precio-destacado .cantidad {
    font-size: 3em;
    color: var(--primary-blue);
    font-weight: 700;
}

.nota-mensual {
    text-align: center;
    color: var(--light-blue);
    font-size: 0.9em;
    font-style: italic;
}

/* Nota Importante */
.nota-importante {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #FFF8E1;
    border-left: 5px solid var(--primary-yellow);
    padding: 20px 25px;
    border-radius: 10px;
    margin-top: 20px;
}

.nota-importante svg {
    flex-shrink: 0;
    color: var(--primary-blue);
}

.nota-importante p {
    margin: 0;
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Evolución Histórica */
.evolucion-historica {
    padding: 80px 0;
    background: var(--light-gray);
}

.tabla-container {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.tabla-evolucion {
    width: 100%;
    border-collapse: collapse;
}

.tabla-evolucion thead {
    background: var(--primary-blue);
    color: white;
}

.tabla-evolucion th {
    padding: 20px;
    font-size: 1.1em;
    font-weight: 700;
    text-align: center;
}

.tabla-evolucion tbody tr {
    border-bottom: 1px solid #E0E0E0;
    transition: all 0.3s ease;
}

.tabla-evolucion tbody tr:hover {
    background: var(--accent-blue);
}

.tabla-evolucion td {
    padding: 18px;
    text-align: center;
    font-size: 1.05em;
    color: var(--dark-gray);
}

.fila-actual {
    background: linear-gradient(135deg, #E8F4FD, #FFF8E1);
}

.fila-actual td {
    color: var(--primary-blue);
    font-weight: 700;
}

/* Gráfico Visual */
.grafico-visual {
    max-width: 900px;
    margin: 60px auto 0;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.grafico-visual h3 {
    text-align: center;
    color: var(--primary-blue);
    font-size: 1.6em;
    margin-bottom: 40px;
    font-weight: 700;
}

.barras-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    height: 350px;
    padding: 20px 0;
}

.barra-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.barra {
    width: 100%;
    max-width: 120px;
    background: linear-gradient(180deg, var(--light-blue), var(--primary-blue));
    border-radius: 10px 10px 0 0;
    position: relative;
    transition: all 0.5s ease;
    animation: growBar 1s ease-out;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15px;
}

@keyframes growBar {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.barra:hover {
    background: linear-gradient(180deg, var(--primary-yellow), var(--primary-blue));
    transform: scale(1.05);
}

.valor-barra {
    font-size: 1em;
    font-weight: 700;
    color: white;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.barra-item.destacada .barra {
    background: linear-gradient(180deg, var(--primary-red), var(--dark-red));
    box-shadow: 0 0 20px rgba(226, 22, 31, 0.4);
}

.label-barra {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-blue);
}

.barra-item.destacada .label-barra {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 1.2em;
}

/* Resumen Anual */
.resumen-anual {
    padding: 80px 0;
    background: white;
}

.calculadora-container {
    max-width: 700px;
    margin: 40px auto;
    background: linear-gradient(135deg, var(--accent-blue), white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.calculadora-container.secundaria {
    background: linear-gradient(135deg, #FFF8E1, white);
}

.calculadora-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-blue);
}

.calculadora-header svg {
    color: var(--primary-blue);
    flex-shrink: 0;
}

.calculadora-header h3 {
    color: var(--primary-blue);
    font-size: 1.5em;
    font-weight: 700;
    margin: 0;
}

.calculadora-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.calc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.calc-label {
    font-size: 1.05em;
    color: var(--dark-gray);
    font-weight: 500;
}

.calc-valor {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary-blue);
}

.calc-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--light-blue), transparent);
    margin: 10px 0;
}

.calc-item.calc-total {
    background: var(--primary-blue);
    color: white;
    padding: 20px;
}

.calc-item.calc-total .calc-label {
    color: white;
    font-size: 1.1em;
}

.calc-valor-total {
    font-size: 2em;
    font-weight: 700;
    color: var(--primary-yellow);
}

.calc-nota {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    font-size: 0.9em;
    color: var(--light-blue);
    font-style: italic;
    line-height: 1.6;
}

.calc-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid var(--primary-yellow);
}

.calc-info svg {
    color: var(--primary-blue);
    flex-shrink: 0;
}

.calc-info span {
    color: var(--dark-gray);
    font-size: 0.95em;
    line-height: 1.5;
}

/* CTA Costos */
.cta-costos {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
}

.cta-content-costos {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content-costos h2 {
    font-size: 2.3em;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content-costos p {
    font-size: 1.2em;
    margin-bottom: 35px;
    opacity: 0.95;
}

.cta-buttons-costos {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta,
.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta {
    background: var(--primary-yellow);
    color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-cta:hover {
    background: #FFC700;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.btn-cta-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-cta-outline:hover {
    background: white;
    color: var(--primary-blue);
}

/* Responsive Design */
@media (max-width: 968px) {
    .costos-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .barras-container {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-costos {
        margin-top: 90px;
        height: 45vh;
        min-height: 350px;
    }

    .hero-content-costos h1 {
        font-size: 2.3em;
    }

    .hero-subtitle {
        font-size: 1.3em;
    }

    .hero-description {
        font-size: 1.05em;
    }

    .badge-year {
        font-size: 1.2em;
        padding: 6px 20px;
    }

    .costo-card {
        padding: 30px 25px;
    }

    .precio-destacado .cantidad {
        font-size: 2.5em;
    }

    .tabla-evolucion th,
    .tabla-evolucion td {
        padding: 12px 8px;
        font-size: 0.95em;
    }

    .grafico-visual {
        padding: 30px 20px;
    }

    .grafico-visual h3 {
        font-size: 1.3em;
    }

    .barras-container {
        height: 250px;
        gap: 10px;
    }

    .barra {
        max-width: 60px;
    }

    .valor-barra {
        font-size: 0.85em;
    }

    .calculadora-container {
        padding: 30px 20px;
    }

    .calculadora-header h3 {
        font-size: 1.2em;
    }

    .calc-valor-total {
        font-size: 1.6em;
    }

    .cta-content-costos h2 {
        font-size: 1.8em;
    }

    .cta-buttons-costos {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta,
    .btn-cta-outline {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content-costos h1 {
        font-size: 2em;
    }

    .precio-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .precio-item .precio {
        font-size: 1.5em;
    }

    .tabla-evolucion th,
    .tabla-evolucion td {
        padding: 10px 5px;
        font-size: 0.85em;
    }

    .barras-container {
        height: 200px;
        gap: 8px;
    }

    .barra {
        max-width: 50px;
    }

    .valor-barra {
        font-size: 0.75em;
    }

    .label-barra {
        font-size: 0.9em;
    }

    .calculadora-header {
        flex-direction: column;
        text-align: center;
    }

    .calc-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .calc-valor {
        font-size: 1.5em;
    }
}