/* Financiamiento - estilos (extraído de page-financiamiento.php) */
/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-emerald: #01a551;
    --primary-emerald-dark: #018a44;
    --dark-gray: #1F2937;
    --dark-green-subtle: #1a3a2e;
    --light-gray: #F3F4F6;
    --text-gray: #6B7280;
}

/* Intro Section */
.finance-intro {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}

.finance-intro h4 {
    color: var(--primary-emerald);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.finance-intro h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--dark-green-subtle);
    margin-bottom: 30px;
    line-height: 1.2;
}

.finance-intro p {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.75;
    margin-bottom: 18px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.finance-intro p strong {
    color: var(--dark-gray);
    font-weight: 700;
}

/* Cards Grid */
.finance-cards {
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center;
}

/* When there are 1-3 cards, limit max width */
.finance-cards[data-card-count="1"] {
    grid-template-columns: 1fr;
    max-width: 400px;
}

.finance-cards[data-card-count="2"] {

    max-width: 900px;
}

.finance-cards[data-card-count="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.finance-card {
    background: white;
    border: 1px solid #E5E7EB;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
}

.finance-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(1, 165, 81, 0.12);
    border-color: rgba(1, 165, 81, 0.4);
}

.finance-card-image-container {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
}

.finance-card-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.finance-card:hover .finance-card-image {
    transform: scale(1.07);
}

.finance-card-content {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.finance-card h3 {
    font-size: 21px;
    font-weight: 700;
    color: var(--dark-green-subtle);
    margin-bottom: 22px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.finance-card ul {
    list-style: none;
    margin-bottom: 24px;
}

.finance-card li {
    font-size: 15px;
    color: #374151;
    margin-bottom: 14px;
    padding-left: 32px;
    position: relative;
    line-height: 1.6;
}

.finance-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 1px;
    background: rgba(1, 165, 81, 0.12);
    color: var(--primary-emerald);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.finance-card-btn {
    display: block;
    background: var(--primary-emerald);
    color: white;
    text-align: center;
    padding: 13px 25px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    margin-top: auto;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease;
    pointer-events: none;
}

.finance-card:hover .finance-card-btn {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.finance-card-btn:hover {
    background: var(--primary-emerald-dark);
}

/* Two Column Sections */
.finance-two-col {
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.finance-two-col.reverse {
    direction: rtl;
}

.finance-two-col.reverse > * {
    direction: ltr;
}

.finance-two-col-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
}

.finance-two-col-content h2 {
    font-size: 38px;
    font-weight: 800;
    color: var(--dark-green-subtle);
    margin-bottom: 25px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.finance-two-col-content p {
    font-size: 17px;
    color: var(--text-gray);
    line-height: 1.75;
    margin-bottom: 28px;
}

.finance-two-col-content ul {
    list-style: none;
}

.finance-two-col-content li {
    font-size: 16px;
    color: var(--dark-gray);
    margin-bottom: 16px;
    padding-left: 36px;
    position: relative;
    line-height: 1.6;
}

.finance-two-col-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 1px;
    background: rgba(1, 165, 81, 0.12);
    color: var(--primary-emerald);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

/* CTA Section */
.finance-cta {
    background: var(--light-gray);
    padding: 60px 20px;
    text-align: center;
    margin: 80px 0;
}

.finance-cta h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark-green-subtle);
    margin-bottom: 30px;
    line-height: 1.3;
}

.finance-cta h2 span {
    color: var(--primary-emerald);
}

.finance-cta-btn {
    display: inline-block;
    background: var(--primary-emerald);
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: background 0.3s ease;
}

.finance-cta-btn:hover {
    background: var(--primary-emerald-dark);
}

/* FAQ Section */
.finance-faq {
    max-width: 1200px;
    margin: 80px auto 100px;
    padding: 0 20px;
}

.finance-faq h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark-green-subtle);
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.3;
}

.faq-item {
    border: 1px solid #E5E7EB;
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.open {
    border-color: rgba(1, 165, 81, 0.45);
    box-shadow: 0 8px 24px rgba(1, 165, 81, 0.07);
}

.faq-question {
    background: white;
    padding: 22px 26px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 17px;
    font-weight: 600;
    color: var(--dark-gray);
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-emerald);
}

.faq-item.open .faq-question {
    color: var(--primary-emerald);
}

.faq-question i {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    color: var(--primary-emerald);
    flex-shrink: 0;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: white;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 26px 24px;
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.75;
}

/* Responsive */
@media (max-width: 768px) {
    .finance-intro h4 {
        font-size: 14px;
    }
    
    .finance-intro h2 {
        font-size: 32px;
    }
    
    .finance-intro p {
        font-size: 16px;
    }
    
    .finance-cards {
        grid-template-columns: 1fr;
    }

    /* En táctil no hay hover: el botón siempre visible */
    .finance-card-btn {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .finance-card h3 {
        font-size: 20px;
    }
    
    .finance-two-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .finance-two-col.reverse {
        direction: ltr;
    }
    
    .finance-two-col-content h2 {
        font-size: 28px;
    }
    
    .finance-two-col-content p {
        font-size: 16px;
    }
    
    .finance-two-col-content li {
        font-size: 15px;
    }
    
    .finance-cta h2 {
        font-size: 28px;
    }
    
    .finance-faq h2 {
        font-size: 28px;
    }
    
    .faq-question {
        font-size: 16px;
    }
    
    .faq-answer-content {
        font-size: 15px;
    }
}
