﻿/* ==========================================================
   SECCIÓN PLAN DE NEGOCIO / CÓMO FUNCIONA
   ========================================================== */
.business-section {
    padding: 60px 0;
    position: relative;
    background: url('../img/products/fondo-producto.png') no-repeat center center / cover;
}

    .business-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.40);
        z-index: 1;
    }

    .business-section .container-xl {
        position: relative;
        z-index: 2;
    }

/* ----------------------------------------------------------
   GRID DE DOS COLUMNAS
   ---------------------------------------------------------- */
.how-it-works-grid {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
}

.steps-column {
    flex: 1 1 70%;
    display: flex;
    align-items: center;
}

/* Aumenta ligeramente el ancho de la columna del plan si es necesario */
.plan-column {
    flex: 0 0 290px; /* Cambiado de 280px a 290px para dar más margen */
    display: flex;
}

/* ----------------------------------------------------------
   PASOS: ¿CÓMO FUNCIONA?
   ---------------------------------------------------------- */
.steps-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
}

.step-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 16px 8px;
    flex: 1;
    min-width: 0;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .step-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    }

.step-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
}

.step-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
    font-size: 1.3rem;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8), 0 4px 12px rgba(0, 0, 0, 0.05);
}

.step-text {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0b2238;
    line-height: 1.2;
    margin: 0;
}

.step-arrow {
    font-size: 0.85rem;
    font-weight: 900;
    flex-shrink: 0;
}

/* Colores de los Pasos */
.step-1 .step-badge {
    background: #1d6cd8;
}

.step-1 .step-icon {
    background: #eef5ff;
    color: #1d6cd8;
    border: 2px solid #1d6cd8;
}

.step-arrow-1 {
    color: #1d6cd8;
}

.step-2 .step-badge {
    background: #16a34a;
}

.step-2 .step-icon {
    background: #f0fdf4;
    color: #16a34a;
    border: 2px solid #16a34a;
}

.step-arrow-2 {
    color: #d49e29;
}

.step-3 .step-badge {
    background: #d49e29;
}

.step-3 .step-icon {
    background: #fefce8;
    color: #d49e29;
    border: 2px solid #d49e29;
}

.step-arrow-3 {
    color: #ea580c;
}

.step-4 .step-badge {
    background: #ea580c;
}

.step-4 .step-icon {
    background: #fff7ed;
    color: #ea580c;
    border: 2px solid #ea580c;
}

.step-arrow-4 {
    color: #9333ea;
}

.step-5 .step-badge {
    background: #9333ea;
}

.step-5 .step-icon {
    background: #faf5ff;
    color: #9333ea;
    border: 2px solid #9333ea;
}

.step-arrow-5 {
    color: #2563eb;
}

.step-6 .step-badge {
    background: #2563eb;
}

.step-6 .step-icon {
    background: #eff6ff;
    color: #2563eb;
    border: 2px solid #2563eb;
}


/* ----------------------------------------------------------
   TARJETA DERECHA: PLAN COMPLETO (REDISEÑO LIGERO Y ELEGANTE)
   ---------------------------------------------------------- */
.plan-card-pro {
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(11, 34, 56, 0.08);
    border: 1.5px solid rgba(212, 158, 41, 0.35);
    position: relative;
    text-align: left;
    transition: all 0.3s ease;
}

    .plan-card-pro:hover {
        border-color: #d49e29;
        box-shadow: 0 14px 35px rgba(212, 158, 41, 0.15);
    }

.plan-tag {
    align-self: flex-start;
    font-size: 0.62rem;
    font-weight: 800;
    color: #b8831e;
    background: #fef8ec;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(212, 158, 41, 0.25);
    margin-bottom: 14px;
}

.plan-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.pdf-icon-badge {
    width: 48px;
    height: 48px;
    background: #fff5f5;
    border: 1.5px solid #ef4444;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.12);
}

.plan-header-text {
    display: flex;
    flex-direction: column;
}

.plan-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: #0b2238;
    margin: 0;
    line-height: 1.2;
}

.plan-subtitle-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: #d49e29;
}

.plan-desc {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0 0 18px 0;
    line-height: 1.45;
}

/* Ajustes al botón de descarga */
.btn-download-plan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Reduce la separación entre el icono y el texto */
    background: linear-gradient(135deg, #d49e29 0%, #b8831e 100%);
    color: #ffffff !important;
    padding: 10px 12px; /* Reduce el padding interno horizontal */
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.75rem; /* Ajuste sutil de fuente para encajar perfecto */
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: 0 5px 15px rgba(212, 158, 41, 0.3);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box; /* Asegura que el padding no incremente el ancho total */
    white-space: nowrap; /* Evita saltos de línea innecesarios */
}

    .btn-download-plan:hover {
        background: linear-gradient(135deg, #e5ab31 0%, #c89125 100%);
        box-shadow: 0 8px 22px rgba(212, 158, 41, 0.45);
        transform: translateY(-2px);
    }

    .btn-download-plan i {
        font-size: 0.9rem;
    }


/* ----------------------------------------------------------
   RESPONSIVO (TABLET Y MÓVIL)
   ---------------------------------------------------------- */
@media (max-width: 1199px) {
    .how-it-works-grid {
        flex-direction: column;
        gap: 25px;
    }

    .plan-column {
        flex: initial;
        width: 100%;
    }

    .plan-card-pro {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 20px 24px;
        gap: 20px;
    }

    .plan-tag {
        position: absolute;
        top: 12px;
        right: 20px;
        margin-bottom: 0;
    }

    .plan-desc {
        margin-bottom: 0;
        max-width: 320px;
    }

    .btn-download-plan {
        width: auto;
        padding: 12px 24px;
        flex-shrink: 0;
    }
}

@media (max-width: 991px) {
    .steps-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .step-arrow {
        display: none;
    }

    .step-card {
        flex: initial;
        width: calc(33.33% - 10px);
    }
}

@media (max-width: 768px) {
    .plan-card-pro {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .plan-tag {
        position: static;
        margin-bottom: 12px;
    }

    .plan-desc {
        max-width: 100%;
        margin-bottom: 16px;
    }

    .btn-download-plan {
        width: 100%;
    }
}

/* ==========================================================
   AJUSTE DE TARJETAS EN PANTALLAS MÓVILES (CORREGIDO)
   ========================================================== */
@media (max-width: 576px) {
    /* Reduce los márgenes laterales del contenedor general */
    .business-section .container,
    .business-section .container-fluid,
    .business-section .container-xl {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Ocultar las flechas indicadoras en móvil para no romper la retícula */
    .steps-container .step-arrow,
    .step-arrow {
        display: none !important;
    }

    /* Grid de 2 columnas con separación adecuada */
    .steps-container {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important; /* Fuerza columnas exactas de 50% */
        gap: 12px !important; /* Espacio uniforme entre filas y columnas */
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Ajustar las tarjetas para que no se desborden ni se junten */
    .step-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 8px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* Ajuste de íconos y textos dentro de las tarjetas */
    .step-icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
    }

    .step-badge {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.75rem !important;
        margin-bottom: 6px !important;
    }

    .step-text {
        font-size: 0.75rem !important;
        line-height: 1.25 !important;
    }
}