﻿/* =========================================================
   FINANCIACIÓN - UNIFORMIDAD PERFECTA
   ========================================================= */

#financiacion {
    background: linear-gradient(135deg, #F5F1E8 0%, #EDE8DC 100%);
    padding: 120px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

.finance-inner {
    width: min(1400px, 94%);
    margin: 0 auto;
}

/* ==================== CABECERA ==================== */
.finance-heading {
    text-align: center;
    margin-bottom: 80px;
}

.finance-kicker-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.finance-kicker-dash {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #E8A361, transparent);
}

.finance-kicker-text {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #E8A361;
}

.finance-title {
    font-size: 3rem;
    color: #2C2416;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.2;
}

    .finance-title strong {
        font-weight: 800;
        background: linear-gradient(135deg, #E8A361, #D89451);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.finance-subtitle {
    font-size: 1.05rem;
    color: #6B6555;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==================== GRID ==================== */
.finance-accordion {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    align-items: stretch;
}

/* ==================== TARJETAS ==================== */
.accordion-card {
    position: relative;
    background: #FFFFFF;
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    box-shadow: 0 10px 40px rgba(44, 36, 22, 0.08), 0 2px 8px rgba(44, 36, 22, 0.04);
    display: grid;
    grid-template-rows: 8px 1fr;
}

    .accordion-card:hover {
        transform: translateY(-20px) rotateX(2deg);
        box-shadow: 0 30px 80px rgba(44, 36, 22, 0.15), 0 10px 30px rgba(44, 36, 22, 0.1);
    }

/* Gradientes */
.card-gradient {
    height: 8px;
    z-index: 1;
}

.card-gradient-blue {
    background: linear-gradient(90deg, #5B9BD5, #4A88C7);
}

.card-gradient-gold {
    background: linear-gradient(90deg, #E8A361, #D89451);
}

.card-gradient-green {
    background: linear-gradient(90deg, #7CB342, #689F38);
}

/* ==================== TARJETA DESTACADA ==================== */
.card-featured {
    border: 3px solid #E8A361;
}

.featured-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #E8A361 0%, #D89451 100%);
    color: #FFFFFF;
    padding: 9px 24px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    box-shadow: 0 6px 20px rgba(232, 163, 97, 0.4);
    z-index: 10;
    white-space: nowrap;
}

/* ==================== CONTENIDO ==================== */
.card-content {
    padding: 50px 35px 40px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    gap: 0;
}

.card-featured .card-content {
    padding-top: 60px;
}

/* ==================== HEADER ==================== */
.card-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 35px;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #F5F1E8, #EDE8DC);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5B9BD5;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.accordion-card:hover .card-icon {
    transform: rotateY(180deg);
}

.icon-featured {
    background: linear-gradient(135deg, #E8A361, #D89451);
    color: #FFFFFF;
}

.card-icon svg {
    width: 26px;
    height: 26px;
}

.card-header-text {
    flex: 1;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2C2416;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.card-subtitle {
    font-size: 0.9rem;
    color: #6B6555;
    margin: 0;
    line-height: 1.4;
}

/* ==================== BODY ==================== */
.card-body {
    margin-bottom: 30px;
}

.plan-box {
    background: linear-gradient(135deg, #FAFAF8, #F5F1E8);
    padding: 24px;
    border-radius: 18px;
    border: 2px solid #EDE8DC;
    text-align: center;
    transition: all 0.4s ease;
    min-height: 155px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .plan-box:hover {
        border-color: #E8A361;
        background: #FFFFFF;
        transform: translateY(-5px);
    }

.plan-box-featured {
    background: linear-gradient(135deg, #FFFBF5, #FFF9F0);
    border-color: #E8A361;
}

.plan-box-special {
    background: linear-gradient(135deg, #F0F9FF, #E6F4F1);
    border-color: #7CB342;
    min-height: 140px;
}

.plan-separator {
    height: 20px;
}

/* ==================== TEXTOS UNIFORMES ==================== */
.plan-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #E8A361;
    margin-bottom: 10px;
}

.plan-value {
    font-size: 1.75rem;
    font-weight: 900;
    color: #2C2416;
    letter-spacing: -1px;
    margin: 8px 0;
    line-height: 1.1;
}

.plan-text {
    font-size: 0.9rem;
    color: #6B6555;
    margin: 6px 0 0 0;
    line-height: 1.4;
}

.plan-detail {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(232, 163, 97, 0.3);
}

.detail-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2C2416;
}

/* ==================== OPCIONES DE CUOTAS ==================== */
.card-options {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.option-tag {
    font-size: 0.75rem;
    font-weight: 800;
    background: #FFFFFF;
    color: #2C2416;
    padding: 8px 18px;
    border-radius: 50px;
    border: 2px solid #7CB342;
    transition: all 0.3s ease;
}

    .option-tag:hover {
        background: #7CB342;
        color: #FFFFFF;
        transform: scale(1.05);
    }

/* ==================== BOTONES ==================== */
.card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 56px;
    background: linear-gradient(135deg, #2C2416, #1A150D);
    color: #FFFFFF;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

    .card-btn svg {
        width: 18px;
        height: 18px;
        transition: transform 0.4s ease;
    }

    .card-btn:hover {
        transform: translateX(5px);
        box-shadow: 0 10px 30px rgba(44, 36, 22, 0.3);
    }

        .card-btn:hover svg {
            transform: translateX(5px);
        }

.btn-featured {
    background: linear-gradient(135deg, #E8A361, #D89451);
}

    .btn-featured:hover {
        background: linear-gradient(135deg, #D89451, #C88441);
        box-shadow: 0 10px 30px rgba(232, 163, 97, 0.4);
    }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .finance-accordion {
        grid-template-columns: 1fr;
        max-width: 550px;
        margin: 0 auto;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    #financiacion {
        padding: 80px 0;
    }

    .finance-title {
        font-size: 2.2rem;
    }

    .card-content {
        padding: 40px 25px 30px;
    }

    .card-featured .card-content {
        padding-top: 50px;
    }

    .plan-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .finance-title {
        font-size: 1.8rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .plan-value {
        font-size: 1.4rem;
    }

    .featured-badge {
        font-size: 0.65rem;
        padding: 7px 18px;
    }

    .card-btn {
        font-size: 0.75rem;
    }
}
