/* ==========================================================================
   ESTILOS EXCLUSIVOS: PASO 3 (Which cabinet construction do you prefer?)
   ========================================================================== */

.cg-step[data-step="3"] h2 {
    font-size: 36px;
    font-weight: 700;
    color: #0c1a30;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.cg-step[data-step="3"] .cg-subtitle {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 25px;
}

/* Rejilla de 2 columnas para centrar y destacar ambas opciones */
.cg-grid-options-step3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
    max-width: 800px; /* Acota el ancho para que no se estiren demasiado */
}

/* Tarjetas */
.cg-step[data-step="3"] .cg-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 16px;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Imagen de la estructura */
.cg-step[data-step="3"] .cg-card-image-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 16px;
    background: #f1f5f9;
}

.cg-step[data-step="3"] .cg-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Títulos y textos internos ordenados en lista vertical */
.cg-step[data-step="3"] .cg-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    display: block;
    margin-bottom: 8px;
}

.cg-step[data-step="3"] .cg-card-subtitle-text {
    font-size: 13px;
    color: #475569;
    display: block;
    margin-bottom: 12px;
    line-height: 1.4;
}

.cg-step[data-step="3"] .cg-card-description {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* Estado Seleccionado */
.cg-step[data-step="3"] .cg-card.selected {
    border: 2px solid #0054a6;
    box-shadow: 0 0 0 1px #0054a6;
}

.cg-step[data-step="3"] .cg-check-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    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 inferior */
.cg-navigation-step3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
}

/* Imagen de la estructura modificada para mostrarse completa */
.cg-step[data-step="3"] .cg-card-image-wrapper {
    width: 100%;
    height: 220px;         /* Le damos un poco más de altura libre */
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 16px;
    background: #ffffff;   /* Fondo blanco limpio para que encaje con el render */
    display: flex;
    align-items: center;
    justify-content: center;
}

.cg-step[data-step="3"] .cg-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* ¡ESTA ES LA MAGIA! Hace que la imagen se reduzca proporcionalmente hasta verse completa sin cortes */
}