/* ==========================================================================
   ESTILOS EXCLUSIVOS: PASO 5 (Design Help)
   ========================================================================== */

.cg-step[data-step="5"] h2 {
    font-size: 34px;
    font-weight: 700;
    color: #0c1a30;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.cg-step[data-step="5"] .cg-subtitle {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 30px;
}

/* Grilla equilibrada de 2 columnas */
.cg-grid-options-step5 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

/* Tarjetas Informativas Grandes */
.cg-step[data-step="5"] .cg-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

/* Imagen de cabecera interna */
.cg-card-image-wrapper-step5 {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #f1f5f9;
    position: relative;
}

.cg-card-image-wrapper-step5 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Icono redondo flotante en medio de la imagen */
.cg-step5-icon-circle {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.cg-card-title-step5 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 16px;
    display: block;
}

/* Listado de características */
.cg-step5-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    flex-grow: 1; /* Empuja el botón inferior para que se alineen perfectamente */
}

.cg-step5-features li {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.cg-check-green {
    color: #16a34a;
    font-weight: bold;
    margin-right: 8px;
}

/* Botones de acción internos de las tarjetas */
.cg-step5-inner-btn {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s;
}

.cg-step5-inner-btn.btn-blue-filled {
    background: #0054a6;
    color: #ffffff;
}

.cg-step5-inner-btn.btn-blue-filled:hover {
    background: #004080;
}

.cg-step5-inner-btn.btn-outline {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #475569;
}

.cg-step5-inner-btn.btn-outline:hover {
    background: #f8fafc;
    color: #0f172a;
}

/* Estado Seleccionado */
.cg-step[data-step="5"] .cg-card.selected {
    border: 2px solid #0054a6;
    box-shadow: 0 0 0 1px #0054a6;
}

.cg-step[data-step="5"] .cg-check-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #0054a6;
    color: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Botonera de Envío */
.cg-navigation-step5 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
}

.cg-btn-submit {
    background: #0054a6;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.cg-btn-submit:hover {
    background: #004080;
}


/* ============================================================
   REDISEÑO MÓVIL: PASO 7 - OPTIMIZACIÓN DE ASISTENCIA DE DISEÑO
   ============================================================ */
@media (max-width: 768px) {
    /* Forzamos una grilla limpia de 1 columna para que las listas no se rompan */
    .cg-grid-options-step5 {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        margin-bottom: 20px !important;
        width: 100% !important;
    }

    /* Reducción de márgenes y paddings en la tarjeta */
    .cg-step[data-step="5"] .cg-card {
        padding: 14px !important;
        border-radius: 12px !important;
        width: 100% !important;
    }

    /* Imagen optimizada para no ocupar toda la pantalla vertical */
    .cg-card-image-wrapper-step5 {
        height: 110px !important; /* Altura perfecta y compacta en móvil */
        margin-bottom: 16px !important;
    }

    /* Redimensionamos levemente el círculo flotante */
    .cg-step5-icon-circle {
        width: 36px !important;
        height: 36px !important;
        bottom: -12px !important;
    }
    .cg-step5-icon-circle svg, 
    .cg-step5-icon-circle i {
        transform: scale(0.85); /* Encoge un poco el icono interno */
    }

    /* Títulos centrados e integrados */
    .cg-card-title-step5 {
        font-size: 16px !important;
        margin-top: 6px !important;
        margin-bottom: 12px !important;
    }

    /* Lista de beneficios compacta y legible de borde a borde */
    .cg-step5-features {
        margin-bottom: 16px !important;
    }

    .cg-step5-features li {
        font-size: 12px !important;
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
    }

    .cg-check-green {
        font-size: 12px !important;
        margin-right: 6px !important;
    }

    /* El botón interno de la tarjeta */
    .cg-step5-inner-btn {
        padding: 10px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
    }

    /* Mini check-badge de selección en la esquina */
    .cg-step[data-step="5"] .cg-check-badge {
        top: 10px !important;
        right: 10px !important;
        width: 18px !important;
        height: 18px !important;
        font-size: 10px !important;
    }

    /* Botones de navegación del paso final */
    .cg-navigation-step5 {
        margin-top: 20px !important;
        padding-top: 15px !important;
    }
}