/* Estilos para Screen 4 - Resultados (Basado en Mockup) */

#screen4 .section-title-results { /* Título común para secciones en resultados */
   
    font-weight: 300;
    margin-bottom: 1.5rem; /* Espaciado estándar */
}

/* 1. Panel Superior de Información del Usuario */
.results-info-panel-top {
    width: 100%;
}

.text-small {
    font-size: 0.7rem; /* Tamaño de texto pequeño */
}
.info-item-top {
    background-color: #f8f9fa; /* Un gris muy claro, como $gray-100 de Bootstrap */
    border: 1px solid #dee2e6; /* Un borde sutil, como $gray-300 de Bootstrap */
}

.info-item-top i {
    color: var(--naturgy-blue); /* Iconos en azul Naturgy */
}

.info-item-top .fw-bold {
    font-size: 0.8rem;
    color: var(--naturgy-blue);
}

/* 2. Sección de Costo Estimado y Categoría */
.cost-and-category-section {
    background-color: var(--light-gray); /* Fondo gris claro */
}

.cost-and-category-section .cost-label {
    font-size: 1.1rem;
    color: var(--naturgy-blue);
}

.cost-and-category-section .cost-value { /* Ya tiene display-3 fw-bold text-orange */
    /* Puedes añadir letter-spacing o text-shadow si quieres más impacto */
}

.category-display-N-R .n-category-badge {
    background-color: var(--naturgy-orange);
    color: white;
    width: 70px; /* Tamaño del círculo N */
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.r-subcategory-meter {
    background-color: #e9ecef; /* Fondo del medidor */
    border-radius: 25px; /* Bordes redondeados para el medidor */
    padding: 5px;
    border: 1px solid #ced4da;
    overflow: hidden; /* Para que los segmentos se ajusten bien */
}

.r-subcategory-meter .r-segment {
    padding: 8px 12px;
    margin: 0 2px; /* Pequeño espacio entre segmentos */
    font-size: 0.85rem;
    color: var(--text-muted-custom);
    border-radius: 20px; /* Segmentos redondeados */
    transition: all 0.3s ease;
    font-weight: 500;
}

.r-subcategory-meter .r-segment.active {
    background-color: var(--naturgy-orange);
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(243, 112, 33, 0.4);
}

#resultsCategoryTextDetail {
    font-size: 0.95rem;
}

.subsidy-indicator-results .badge { /* Para el badge de subsidio debajo de la categoría */
    font-size: 0.9rem;
    padding: 0.5em 0.75em;
}
.bg-success-soft { /* Necesitarás definir este color si lo usas */
    background-color: rgba(40, 167, 69, 0.1);
}

/* 3. Botón "Ver artefactos seleccionados" */
#btnResultsViewSelectedAppliances {
    padding: 0.75rem 1.5rem; /* Hacerlo un poco más grande */
    font-size: 1.1rem;
}



/* 4. Tabla Comparativa "Ahorro con Gas Natural" */


.marca::before {
        font-weight: 600;
        color: var(--naturgy-orange);
    }


.comparison-table-container {
    border: 1px solid #dee2e6; /* Borde exterior del contenedor de la tabla */
    border-radius: 0.375rem; /* Bootstrap $border-radius */
    overflow: hidden; /* Para que el borde redondeado afecte a la tabla */
}

.comparison-table-mockup {
    margin-bottom: 0; /* Bootstrap table tiene margin-bottom por defecto */
}

.comparison-table-mockup thead th {
    border-bottom-width: 2px; /* Línea más gruesa para la cabecera */
    font-size: 0.9rem;
    color: var(--naturgy-blue);
}
.comparison-table-mockup th[style*="#FFF3E0"] { /* Estilo para la celda "Gas Natural" en header */
    background-color:var(--light-gray) !important; /* Naranja muy claro */
    color: var(--naturgy-orange);
}

.comparison-table-mockup .gas-cell-mockup {
    background-color: var(--light-gray); /* Un gris aún más claro para las celdas de datos */
    font-weight: 500;
    text-align: center;
}
.comparison-table-mockup .fa-check-circle {
    color: var(--naturgy-orange); /* Check en naranja en lugar de verde */
}
.fw-medium {
    font-size: 13px;
    font-weight: 600 !important;;
    color: var(--naturgy-blue) !important;
}
#avgGasNatural, #maxGasNatural, #minGasNatural {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--naturgy-orange);
    letter-spacing: -0.04em; /* Espaciado entre letras */
}
/* Para responsividad de la tabla, Bootstrap .table-responsive ya ayuda. */
/* Si necesitas el estilo de tarjetas en móvil como en tu responsive.css original: */
@media (max-width: 768px) {
    .comparison-table-mockup thead {
        display: none; /* Ocultar cabecera en móvil si se convierte a tarjetas */
    }
    .comparison-table-mockup tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 0.375rem;
    }
    .comparison-table-mockup td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        text-align: right;
        border-bottom: 1px solid #eee;
    }
    .comparison-table-mockup td:last-child {
        border-bottom: none;
    }
    .comparison-table-mockup td::before {
        content: attr(data-label);
        font-weight: 200;
        text-align: left;
        margin-right: 10px;
        
    }
    .comparison-table-mockup td.gas-cell-mockup {
         background-color: #FFF3E0 !important; /* Naranja claro para la celda destacada */
    }
    .marca::before {
        font-weight: 600 !important;
        color: var(--naturgy-orange);
    }
}


/* 5. Distribución del Consumo (Barras Horizontales) */
.distribution-section .progress-item span:first-child { /* Para el texto "Calefacción", etc. */
    color: var(--text-muted-custom);
    font-weight: 500;
}
.distribution-section .progress {
    background-color:rgb(233 236 239 / 52%); /* Fondo de la barra de progreso */
}
/* Los colores .bg-orange-naturgy, .bg-blue-naturgy, .bg-secondary ya están definidos arriba */


/* 6. Recomendaciones */
.recommendation-slider-container {
    padding: 60px;
    /* .bg-light p-4 rounded-3 shadow-sm ya están en el HTML */
}

.recommendation-card-new  {
    max-width: 95%; /* Ajustar según necesidad */
    margin: 0 auto; /* Centrar imagen en móvil si es necesario */
    display: flex;
    align-items: center;
    justify-items: center;
    justify-content: center;

}

.recommendation-card-new .recommendation-title {
    /* .text-blue-naturgy ya está en el HTML */
    font-weight: 600;
}
.recommendation-container {
    --bs-gutter-x: 0;
    width: 70%;
}
.slider-nav-new {
    position: absolute;
    top: 40%;
    width: 50px;
    height: 50px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transform: translateY(-5%);
    z-index: 10;
    font-size: 0.8rem;
    color: #666;
    border: 1px solid #ddd;
}
.slider-nav-new:hover {
    background-color: var(--naturgy-orange);
    color: white;
}
.slider-nav-new.prev {
    left: 11px; /* Ajustar para que quede fuera del card */
}
.slider-nav-new.next {
    right: 10px; /* Ajustar para que quede fuera del card */
}

@media (max-width: 767px) { /* En móvil, los botones pueden estar más cerca */
    .slider-nav-new.prev {
        left: 5px; 
    }
    .slider-nav-new.next {
        right: 5px;
    }
    .recommendation-card-new .recommendation-image {
        max-width: 120px; 
        margin-bottom: 1rem;
    }
}

/* 7. Botones de Acción Finales */
.actions-section {
    /* Bootstrap text-center ya centra los botones si son inline-block o dentro de un flex container */
}
/* Los estilos de .btn-primary, .btn-secondary, .btn-info ya deberían estar definidos globalmente o por Bootstrap */

/* Estilos para los contenedores de la pantalla de resultados si se necesita */
#screen4 .results-list {
    /* Si necesitas estilos específicos para esta columna */
    background-color: #f8f9fa; /* Ejemplo de fondo */
    padding: 1.5rem;
    border-radius: 0.375rem;
}
#screen4 .results-summary {
    /* Si necesitas estilos específicos para esta columna */
    padding: 1.5rem;
}
#screen4 .info-panel-results .info-item-result { /* Para los items de Zona, Personas, Subsidio en el resumen */
    padding: 0.5rem 0;
    border-bottom: 1px dashed #eee;
}
#screen4 .info-panel-results .info-item-result:last-child {
    border-bottom: none;
}

/* Estilos para la lista de artefactos en la pantalla de resultados */
#screen4AppliancesListDisplay .appliance-row {
    background-color: #fff;
    border: 1px solid #dee2e6;
    margin-bottom: 0.75rem;
}
#screen4AppliancesListDisplay .appliance-icon img {
    max-height: 50px; /* Ajustar tamaño de íconos en la lista de resultados */
}
#screen4AppliancesListDisplay .appliance-details h3 {
    font-size: 1.1rem; /* Ajustar tamaño de título de artefacto */
}
#screen4AppliancesListDisplay .usage-badge {
    font-size: 0.8rem;
    padding: 0.25em 0.5em;
}
#screen4AppliancesListDisplay .appliance-consumption {
    font-size: 1rem;
}


/* Si los spinners de categoría se eliminan visualmente de la pantalla de resultados, */
/* puedes comentar o eliminar sus estilos de `category-spinners.css` o del CSS global */
/* para evitar que ocupen espacio o interfieran. */
/* Si se mantienen pero ocultos (display:none), no necesitas cambiar su CSS. */
/* Para el nuevo diseño estático, los estilos ya están arriba (.n-category-badge, .r-subcategory-meter) */