/* Contenedor General Página 5 */
.kbp-page5-wrapper {
    background-color: #f8fafc;
    padding: 40px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.kbp-page5-container {
    max-width: 1150px; /* Un poco más amplio para las 6 columnas */
    margin: 0 auto;
}

/* Grid de 6 columnas para los estilos de encimera */
.kbp-countertop-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

/* Tarjeta del Estilo de Encimera */
.kbp-countertop-card {
    cursor: pointer;
    display: block;
}

.kbp-countertop-card input[type="radio"] {
    display: none;
}

.kbp-countertop-card-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    position: relative;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

/* Contenedor de la Imagen de la Encimera */
.kbp-countertop-image-holder {
    width: 100%;
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    background-color: #f1f5f9;
}

.kbp-countertop-image-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Muestra el detalle del patrón de la encimera */
}

/* Nombre del Estilo de Encimera */
.kbp-countertop-name {
    font-size: 13px;
    font-weight: 700;
    color: #0a1931;
    padding-top: 4px;
}

/* Badge del Check Circular en la esquina */
.kbp-countertop-check-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

/* Estilos cuando la tarjeta está seleccionada (Checked) */
.kbp-countertop-card input[type="radio"]:checked + .kbp-countertop-card-content {
    border-color: #0a1931;
    box-shadow: 0 0 0 1px #0a1931;
}

.kbp-countertop-card input[type="radio"]:checked + .kbp-countertop-card-content .kbp-countertop-check-badge {
    background-color: #0a1931;
    border-color: #0a1931;
}

/* Gancho blanco del check */
.kbp-countertop-card input[type="radio"]:checked + .kbp-countertop-card-content .kbp-countertop-check-badge::after {
    content: "";
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

/* Responsive: Ajustes fluidos de rejilla */
@media (max-width: 1024px) {
    .kbp-countertop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 650px) {
    .kbp-countertop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
    .kbp-countertop-grid { grid-template-columns: 1fr; }
}