/* --- Estructura del paso --- */
.cg-step[data-step="1-5"] {
    display: none;
    text-align: center;
}

.cg-step[data-step="1-5"].active {
    display: block;
}

/* --- Grid de las Tarjetas --- */
.cg-grid-options-step1-5 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px auto;
    max-width: 850px;
    padding: 0 20px;
}

/* --- Estilo Base de las Tarjetas --- */
.cg-grid-options-step1-5 .cg-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Hover sutil */
.cg-grid-options-step1-5 .cg-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ◄--- ESTADO SELECCIONADO (Borde e iluminación azul/dorada) --- */
.cg-grid-options-step1-5 .cg-card.selected {
    border-color: #0054a6; /* Azul corporativo */
    background: #f8fafc;
    box-shadow: 0 10px 20px -5px rgba(0, 84, 166, 0.15);
    transform: translateY(-4px);
}

/* --- Contenedor e Imágenes --- */
.cg-grid-options-step1-5 .cg-card-image-wrapper {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #f1f5f9;
}

.cg-grid-options-step1-5 .cg-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cg-grid-options-step1-5 .cg-card:hover .cg-card-image-wrapper img {
    transform: scale(1.03);
}

/* --- Textos de la Tarjeta --- */
.cg-grid-options-step1-5 .cg-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    display: block;
}

.cg-grid-options-step1-5 .cg-card-subtitle-text {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.4;
    display: block;
    min-height: 40px; /* Alinea los textos aunque cambie el largo */
}

/* --- Lista de Características --- */
.cg-step1-5-features {
    list-style: none;
    padding: 15px 0 0 0;
    margin: 15px 0 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    text-align: left;
    font-size: 13px;
    width: 100%;
    border-top: 1px solid #f1f5f9;
}

.cg-step1-5-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
}

.cg-check-gold {
    color: #b8860b;
    font-weight: bold;
    font-size: 14px;
}

/* --- Badge / Check flotante superior derecho --- */
.cg-grid-options-step1-5 .cg-check-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #0054a6;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
    z-index: 2;
}

.cg-grid-options-step1-5 .cg-card.selected .cg-check-badge {
    opacity: 1;
    transform: scale(1);
}

/* --- Botones de Navegación --- */
.cg-navigation-step1-5 {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.cg-navigation-step1-5 button {
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cg-navigation-step1-5 .cg-btn-back {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.cg-navigation-step1-5 .cg-btn-back:hover {
    background-color: #e2e8f0;
}

.cg-navigation-step1-5 .cg-btn-next {
    background-color: #0054a6;
    color: #ffffff;
    border: none;
}

.cg-navigation-step1-5 .cg-btn-next:hover {
    background-color: #004080;
}


/* ============================================================
   REDISEÑO MÓVIL: PASO 2 - CUADRÍCULA DOBLE CON CARACTERÍSTICAS
   ============================================================ */
@media (max-width: 768px) {
    /* Forzamos a la grilla a comportarse en 2 columnas perfectas */
    .cg-grid-options-step1-5 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 !important;
        margin: 20px auto !important;
        width: 100% !important;
    }

    /* Redimensionamos la tarjeta para encajar en la cuadrícula doble */
    .cg-grid-options-step1-5 .cg-card {
        padding: 12px 8px !important;
        border-radius: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Reducimos la imagen de la caja de cartón / cocina armada */
    .cg-grid-options-step1-5 .cg-card-image-wrapper {
        height: 100px !important;
        margin-bottom: 10px !important;
        border-radius: 8px !important;
    }

    /* Títulos compactos */
    .cg-grid-options-step1-5 .cg-card-title {
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        margin-bottom: 4px !important;
        text-align: center !important;
    }

    /* Subtítulos pequeños */
    .cg-grid-options-step1-5 .cg-card-subtitle-text {
        font-size: 11px !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
        min-height: 0 !important; /* Quitamos la restricción de altura en móvil */
        text-align: center !important;
    }

    /* ◄--- LA MAGIA DE LAS CARACTERÍSTICAS EN MÓVIL --- */
    /* Pasamos la lista de 2 columnas a 1 sola columna vertical muy delgada */
    .cg-step1-5-features {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        padding-top: 8px !important;
        margin-top: 8px !important;
    }

    .cg-step1-5-features li {
        font-size: 10px !important; /* Letra compacta pero perfectamente legible */
        gap: 4px !important;
        line-height: 1.2 !important;
    }

    .cg-check-gold {
        font-size: 11px !important;
    }

    /* Ajuste del check flotante seleccionado */
    .cg-grid-options-step1-5 .cg-check-badge {
        top: 8px;
        right: 8px;
        width: 18px;
        height: 18px;
        font-size: 9px;
    }

    /* Botones inferiores de navegación (Atrás / Siguiente) */
    .cg-navigation-step1-5 {
        margin-top: 25px !important;
        gap: 10px !important;
    }

    .cg-navigation-step1-5 button {
        padding: 10px 20px !important;
        font-size: 14px !important;
        flex: 1 !important; /* Hace que ambos botones midan lo mismo */
    }
}