/* =========================================
VARIABLES LOCALES
========================================= */

:root {
--dark-card: rgba(10,25,41,0.7);
--card-shadow: 0 15px 40px rgba(0,0,0,.15);
}

/* =========================================
   HERO PYME (VERSIÓN CORTA Y LUMINOSA)
========================================= */
.hero-pyme-light {
    position: relative;
    width: 100%;
    min-height: 55vh; /* Altura mucho más corta y ejecutiva */
    display: flex;
    align-items: center;
    /* Degradado blanco que se desvanece hacia la derecha para mostrar la imagen */
    background:
        linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0.85) 50%, rgba(255, 255, 255, 0) 100%),
        url('img/oficinasheadpyme1.webp') center/cover no-repeat;
    border-bottom: 1px solid #e2e8f0;
}

.hero-pyme-container {
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;
    padding: 0 5%;
}

.hero-pyme-content {
    max-width: 600px; /* Contenedor de texto acotado a la izquierda */
    padding: 4rem 0;
}

.hero-pyme-content .eyebrow {
    color: var(--accent-premium, #2563eb);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.hero-pyme-content h1 {
    font-family: var(--font-headers);
    font-size: 3.6rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text-main, #1e293b);
}

.hero-pyme-content h1 .text-accent {
    color: var(--accent-premium, #2563eb);
}

.hero-pyme-content p {
    font-size: 1.15rem;
    color: var(--text-muted, #64748b);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-pyme-content .hero-actions {
    display: flex;
    gap: 20px;
}

/* =========================================
   RESPONSIVO PARA EL HERO PYME
========================================= */
@media (max-width: 992px) {
    .hero-pyme-light {
        /* En tablets y móviles, cubrimos la imagen con un blanco translúcido parejo para que el texto se lea bien */
        background:
            linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.95)),
            url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
        text-align: center;
    }
    .hero-pyme-content {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .hero-pyme-content h1 {
        font-size: 2.5rem;
    }
    .hero-pyme-content .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-pyme-content .hero-actions a {
        width: 100%;
        text-align: center;
    }
}

/* =========================================
   SECCIÓN FINTECH / CORPORATIVO (REEMPLAZO DE TARJETAS)
========================================= */

.fintech-features {
    padding: 8rem 5%;
    background-color: var(--bg-main, #ffffff);
}

.fintech-container {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    gap: 6rem;
    align-items: center;
}

.fintech-text-column {
    flex: 1.1;
}

.fintech-visual-column {
    flex: 0.9;
    position: relative;
}

/* Títulos y descripción */
.fintech-text-column h2 {
    font-size: 2.8rem;
    color: var(--text-main, #1e293b);
    font-family: var(--font-headers);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.fintech-desc {
    font-size: 1.15rem;
    color: var(--text-muted, #64748b);
    margin-bottom: 3rem;
    line-height: 1.7;
}

/* Lista de beneficios limpia */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px); /* Pequeña interacción sutil */
}

.feature-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.feature-icon {
    width: 55px;
    height: 55px;
    background: rgba(37, 99, 235, 0.08); /* Azul muy suave */
    color: var(--accent-premium, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 1.3rem;
    color: var(--text-main, #1e293b);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.feature-content p {
    color: var(--text-muted, #64748b);
    font-size: 1rem;
    line-height: 1.6;
}

/* Imagen y bloque de datos superpuesto */
.visual-card {
    position: relative;
    border-radius: 20px;
    z-index: 1;
}

.visual-card img {
    width: 100%;
    height: 650px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.visual-stats {
    position: absolute;
    bottom: 40px;
    left: -50px; /* Efecto Overlap hacia la izquierda */
    background: var(--body-deep-blue, #0f172a);
    color: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    border-left: 5px solid var(--accent-premium, #2563eb);
    z-index: 2;
}

.visual-stats h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 3rem;
    font-family: var(--font-headers);
    color: white;
    margin: 0 0 10px 0;
    line-height: 1;
}

.stat-subtext {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin: 0;
}

.stat-subtext i {
    color: #10b981; /* Verde positivo */
    margin-right: 5px;
}

/* Responsivo */
@media(max-width: 1024px) {
    .visual-stats {
        left: -20px;
        padding: 2rem;
    }
}

@media(max-width: 992px) {
    .fintech-container {
        flex-direction: column;
        gap: 4rem;
    }
    .fintech-visual-column {
        width: 100%;
    }
    .visual-card img {
        height: 400px;
    }
    .visual-stats {
        left: 20px;
        right: 20px;
        bottom: -30px;
        text-align: center;
    }
}

/* =========================================
NUEVA SECCIÓN: FORMULARIO CORPORATIVO
========================================= */

.pyme-form-section {
    padding: 6rem 5%;
    background-color: #f0f4f8; /* Color de fondo suave para contrastar con las secciones blancas */
}

.pyme-form-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

.form-wrapper {
    background: #ffffff;
    border-radius: 20px;
    padding: 4rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-top: 5px solid var(--body-deep-blue);
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-header h2 {
    font-family: var(--font-headers);
    color: var(--body-deep-blue);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.form-header p {
    color: #666;
    font-size: 1.1rem;
}

.form-section-title {
    margin-bottom: 2rem;
}

.form-section-title h3 {
    color: var(--accent-premium);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.form-section-title hr {
    border: 0;
    height: 1px;
    background: #e0e0e0;
}

.mt-4 {
    margin-top: 3rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--montserrat);
    font-size: 1rem;
    color: #333;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-premium);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    background-color: #ffffff;
}

/* Ocultar las flechas de los input type number (si se usaran en el futuro) */
.form-group input[type=number]::-webkit-inner-spin-button, 
.form-group input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
.form-group input[type=number] {
    -moz-appearance: textfield; /* Para Firefox */
    appearance: textfield;      /* Estándar moderno (Quita la advertencia) */
}

.form-actions {
    margin-top: 4rem;
    text-align: center;
}

.btn-submit-form {
    width: 100%;
    max-width: 400px;
    font-size: 1.1rem;
    padding: 18px;
    margin-bottom: 2rem;
    cursor: pointer;
}

.alternative-action {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border: 1px dashed #ccc;
}

.alternative-action p {
    color: #555;
    margin-bottom: 15px;
    font-weight: 500;
}

.btn-outline-dark {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--body-deep-blue);
    color: var(--body-deep-blue);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-outline-dark:hover {
    background-color: var(--body-deep-blue);
    color: #ffffff;
}

/* =========================================
   METODOLOGÍA DE APROBACIÓN (TIMELINE PREMIUM)
========================================= */

.pyme-steps-premium {
    padding: 7rem 5%;
    background-color: #ffffff; /* Fondo blanco limpio */
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

.steps-header {
    text-align: center;
    margin-bottom: 5rem;
}

.pyme-steps-premium .section-title {
    color: var(--text-main, #1e293b);
    margin-bottom: 1rem;
    font-size: 2.6rem;
}

.pyme-steps-premium .section-subtitle {
    color: var(--text-muted, #64748b);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Contenedor del Timeline */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

/* Línea conectora horizontal (Desktop) */
.step-connector {
    position: absolute;
    top: 35px; /* Alineado exactamente con el centro de los círculos */
    left: 16%;
    right: 16%;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

/* Tarjetas de pasos (Limpias, sin caja) */
.step-card {
    text-align: center;
    position: relative;
    z-index: 2; /* Se coloca sobre la línea conectora */
    background: #ffffff; /* Fondo blanco para enmascarar la línea detrás del texto */
    padding: 0 1rem;
}

/* Círculo del número */
.step-icon-wrapper {
    width: 70px;
    height: 70px;
    background: #ffffff;
    border: 2px solid var(--accent-premium, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.1); /* Resplandor azul suave */
    transition: transform 0.3s ease;
}

.step-card:hover .step-icon-wrapper {
    transform: translateY(-5px);
    background: var(--accent-premium, #2563eb);
}

.step-card:hover .step-number-premium {
    color: #ffffff;
}

.step-number-premium {
    font-family: var(--font-headers);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-premium, #2563eb);
    transition: color 0.3s ease;
}

.step-card h4 {
    font-size: 1.3rem;
    color: var(--text-main, #1e293b);
    margin-bottom: 1rem;
    font-weight: 700;
}

.step-card p {
    color: var(--text-muted, #64748b);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* =========================================
   RESPONSIVO PARA TIMELINE
========================================= */
@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    /* La línea conectora horizontal pasa a ser vertical en móviles */
    .step-connector {
        top: 0;
        bottom: 0;
        left: 50%;
        right: auto;
        width: 2px;
        height: 100%;
        transform: translateX(-50%);
    }

    .step-card {
        padding: 0 1.5rem;
    }
    
    .pyme-steps-premium .section-title {
        font-size: 2.2rem;
    }
}
/* =========================================
RESPONSIVO
========================================= */

@media (max-width:768px){

.hero-v2-content h1{
font-size:2.5rem;
}

.hero-actions{
flex-direction:column;
}

.steps-timeline{
flex-direction:column;
}

.cta-box{
padding:3rem 1.5rem;
}

/* Ajustes Responsivos para el Formulario */
.form-wrapper {
    padding: 2rem 1.5rem;
}

.form-grid {
    grid-template-columns: 1fr; /* Una sola columna en móviles */
    gap: 15px;
}

}