/* responsive.css - Estilos para mejorar la responsividad de la aplicación */

/* ================= ESTILOS GLOBALES RESPONSIVOS ================= */
@media (max-width: 992px) {
    .content-container {
        padding: 15px 10px;
    }
    
    h1 {
        font-size: 1.8rem;
        margin: 30px;
    }
    
    h2 {
        font-size: 1.1rem;
    }
    
    .btn-continue, .btn-back {
        width: 80%;
        padding: 10px 0px;
        margin-top: 0px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .step {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    .step-label {
       
        top: 30px;
       
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.3rem;
        margin-bottom: 15px;
        margin-top: 15px;
    }
    
    .navbar {
        padding: 15px 0;
    }
    
    .navbar-brand img {
        height: 30px;
    }
    
    .step {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .progress-steps::before {
        height: 3px;
    }
    
    .progress-bar-indicator {
        height: 3px;
    }

    .progress-steps {
    margin: 30px auto 40px;
   
    }
    .actions-section {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-direction: column-reverse;
    align-items: center;
}
}

/* ================= PANTALLA 1: SELECCIÓN DE TIPO DE VIVIENDA ================= */
@media (max-width: 768px) {
    .option-card {
        padding: 0;
        margin-bottom: 0;
    }
    
    .option-card img, .option-card i {
        margin-bottom: 15px;
        font-size: 3em !important;
    }
    
    .option-title {
        font-size: 1.1rem;
    }
    
    .option-card p {
        font-size: 0.9rem;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .option-card {
        padding: 0;
    }
    
    .option-card img, .option-card i {
        margin-bottom: 10px;
        font-size: 2.5em !important;
    }
    
    .option-title {
        font-size: 1rem;
    }
    
    .option-card p {
        font-size: 0.8rem;
        margin-top: 8px;
    }

    
}

/* ================= PANTALLA 2: SELECCIÓN DE PERSONAS ================= */
@media (max-width: 768px) {
    .slider-container {
        max-width: 100%;
        margin: 30px auto;
    }
    
    .people-counter .number {
        font-size: 4em;
    }
    
    .people-counter .label {
        font-size: 1.1em;
    }
}

@media (max-width: 576px) {
    .slider-container {
        margin: 20px auto;
    }
    
    .slider {
        height: 6px;
    }
    
    .slider::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
    }
    
    .slider::-moz-range-thumb {
        width: 20px;
        height: 20px;
    }
    
    .people-counter .number {
        width: 85%;
        font-size: 3.5em;
    }
    
    .people-counter .label {
        font-size: 1em;
    }
}

/* ================= PANTALLA 3: SELECCIÓN DE ARTEFACTOS ================= */
@media (max-width: 992px) {
    .appliance-container {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .appliance-item {
        padding: 15px;
    }
    
    .appliance-item img, .appliance-item i {
        max-width: 120px;
        font-size: 3em !important;
    }
    
    .usage-options {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .usage-option {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .btn-add {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .appliance-container {
        flex-direction: column;
    }
    
    .appliance-selector, .appliance-list {
        padding: 15px 10px;
    }
    
    .appliance-list {
        border-left: none;
        border-top: 1px solid #eee;
        padding-top: 20px;
        margin-top: 10px;
    }
    
    .appliance-carousel {
        min-height: 350px;
    }
    
    .appliance-item img, .appliance-item i {
        max-width: 100px;
        font-size: 2.5em !important;
    }
    
    .usage-option {
        flex: 1;
        min-width: 80px;
        text-align: center;
        padding: 6px 8px;
        font-size: 0.85rem;
    }
    
    /* Ocultar tooltips en móvil para evitar problemas de espacio */
    .usage-option .tooltip {
        display: none;
    }
    
    .arrow-btn {
        width: 35px;
        height: 35px;
    }
    
    .consumption {
        flex: 0 0 100px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .appliance-selector, .appliance-list {
        padding: 10px 5px;
    }
    
    .appliance-item {
        padding: 12px 10px;
    }
    
    .appliance-item p {
        font-size: 0.9rem;
        margin: 5px 0;
    }
    
    .usage-option {
        padding: 5px 6px;
        font-size: 0.8rem;
        min-width: 70px;
    }
    
    .appliance-list-item {
        padding: 12px 10px;
        margin-bottom: 10px;
    }
    
    .appliance-name {
        font-size: 0.95rem;
    }
    
    .usage-tag {
        font-size: 0.75rem;
    }
    
    .consumption {
        flex: 0 0 85px;
        font-size: 0.85rem;
    }
    
    .remove-btn {
        font-size: 0.9rem;
    }
    
    .small.text-muted {
        font-size: 0.75rem;
    }
}

/* ================= PANTALLA 4: RESULTADOS ================= */
@media (max-width: 992px) {
    .results-container {
        gap: 20px;
    }
    
    .results-list, .results-summary {
        padding: 20px;
    }
    
    .cost-display, .consumption-display {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .cost-value {
        font-size: 3em;
    }
    
    .consumption-value {
        font-size: 1.1em;
    }
    
    .category-ranges {
        margin: 20px 0;
        padding: 12px 10px;
    }
    
    .category-label {
        font-size: 1em;
    }
    
    .category-range {
        font-size: 0.8em;
    }
    
    .consumption-chart {
        margin-top: 25px;
        padding: 15px;
    }
    
    .chart-bars {
        height: 180px;
    }
    
    .chart-bar {
        margin: 0 10px;
    }
}

@media (max-width: 768px) {
    .results-container {
        flex-direction: column;
    }
    
    .results-list, .results-summary {
        padding: 15px;
    }
    
    .cost-value {
        font-size: 2.5em;
    }
    
    .consumption-value {
        font-size: 2em;
    }
    
    .category {
        padding: 8px 5px;
    }
    
    .category-label {
        font-size: 0.9em;
        margin-bottom: 3px;
    }
    
    .category-range {
        font-size: 0.75em;
    }
    
    .chart-bars {
        height: 150px;
    }
    
    .chart-bar {
        margin: 0 8px;
    }
    
    .chart-label {
        font-size: 0.8em;
    }
    
    .percentage-item {
        margin-bottom: 8px;
        padding: 8px;
    }
    
    .percentage-value {
        min-width: 45px;
        padding: 4px 8px;
        font-size: 0.9em;
    }
}

@media (max-width: 576px) {
    .results-list, .results-summary {
        padding: 12px 10px;
    }
    
    .cost-display, .consumption-display {
        padding: 12px 10px;
        margin-bottom: 15px;
        border-radius: 10px;
    }
    
    .cost-label {
        font-size: 0.9em;
    }
    
    .cost-value {
        font-size: 2.2em;
        margin: 8px 0;
    }
    
    .consumption-value {
        font-size: 1.8em;
    }
    
    .consumption-unit {
        font-size: 1em;
    }
    
    .category-ranges {
        margin: 15px 0;
        padding: 10px 5px;
    }
    
    .category {
        padding: 6px 3px;
    }
    
    .category-label {
        font-size: 0.8em;
        margin-bottom: 2px;
    }
    
    .category-range {
        font-size: 0.7em;
    }
    
    .chart-title, .percentages-title {
        font-size: 0.9em;
        margin-bottom: 12px;
    }
    
    .chart-bars {
        height: 120px;
        margin-bottom: 10px;
    }
    
    .chart-bar {
        margin: 0 5px;
    }
    
    .chart-label {
        font-size: 0.75em;
    }
    
    .percentage-item {
        margin-bottom: 6px;
        padding: 6px;
    }
    
    .percentage-value {
        min-width: 40px;
        padding: 3px 6px;
        font-size: 0.85em;
    }
    
    .percentage-label {
        margin-left: 10px;
        font-size: 0.85em;
    }
}

/* ================= AJUSTES ESPECÍFICOS PARA DISPOSITIVOS MUY PEQUEÑOS ================= */
@media (max-width: 375px) {
     footer {
            margin-top: 10px;
        }
    h1 {
        font-size: 1.5rem;
    }
    
    .step {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }
    
    .progress-steps::before,
    .progress-bar-indicator {
        height: 2px;
    }
    
    .option-card img, .option-card i {
        font-size: 2em !important;
    }
    
    .appliance-item img, .appliance-item i {
        max-width: 80px;
        font-size: 2em !important;
    }
    
    .usage-option {
        padding: 4px 5px;
        font-size: 0.75rem;
        min-width: auto;
    }
    
    .consumption {
        flex: 0 0 80px;
        font-size: 0.8rem;
    }
    
    .cost-value {
        font-size: 2.7em;
    }
    
    .consumption-value {
        font-size: 1.5em;
    }
    
    .chart-bars {
        height: 100px;
    }
}

/* ================= AJUSTES PARA ORIENTACIÓN LANDSCAPE EN MÓVILES ================= */
@media (max-height: 500px) and (orientation: landscape) {
    .content-container {
        padding: 10px 5px;
    }
    
    h1, h2, h3 {
        margin-bottom: 10px;
    }
    
    .progress-steps {
        margin-bottom: 15px;
    }
    
    .people-counter .number {
        font-size: 2.5em;
    }
    
    .appliance-carousel {
        min-height: 250px;
    }
    
    .usage-options {
        margin-top: 8px;
    }
    
    .appliance-item p {
        margin: 2px 0;
    }
    
    .btn-continue {
        margin-top: 10px;
    }
    
    .chart-bars {
        height: 100px;
    }
}

/* ================= OPTIMIZACIÓN DE INTERACCIÓN TÁCTIL ================= */
@media (max-width: 992px) {
    /* Aumentar el área de toque para elementos interactivos */
    .btn, 
    .usage-option, 
    .remove-btn, 
    .arrow-btn {
        min-height: 44px; /* Tamaño mínimo recomendado para áreas táctiles */
        min-width: 70px;
    }
    
    /* Espacio adicional para áreas de toque en la lista */
    .appliance-list-item {
        padding-top: 12px;
        padding-bottom: 12px;
    }
    
    /* Aumentar tamaño del slider para mejor manejo táctil */
    .slider::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }
    
    .slider::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }
}





/* Estilos específicos para la pantalla de artefactos */
.main-content {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

.section-title {
    color: var(--naturgy-blue);
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
}

.appliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.appliance-card {
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.appliance-card:hover {
    transform: translateY(-5px);
    /*box-shadow: 0 8px 20px rgba(0,0,0,0.1);*/
}

.appliance-card .add-button {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background-color: var(--naturgy-orange);
    color: white;
    border: none;
    padding: 8px 0;
    transition: bottom 0.3s ease;
    font-weight: 600;
}

.appliance-card:hover .add-button {
    bottom: 0;
}

.appliance-icon {
    font-size: 36px;
    color: var(--naturgy-blue);
    margin-bottom: 10px;
}

.appliance-name {
    color: var(--naturgy-blue);
    font-weight: 600;
    margin-bottom: 5px;
}

.appliance-items-container {
    background-color: white;
    border-radius: 15px;
    padding: 25px;
    /*box-shadow: 0 3px 10px rgba(0,0,0,0.05);*/
    margin-top: 30px;
}

.appliance-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.appliance-list-item:hover {
    background-color: var(--light-gray);
}

.appliance-list-item:last-child {
    border-bottom: none;
}

.appliance-info {
    flex: 1;
}

.appliance-list-name {
    color: var(--naturgy-blue);
    font-weight: 600;
    margin-bottom: 3px;
}

.appliance-list-detail {
    color: #777;
    font-size: 0.85rem;
}

.appliance-list-badges {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.badge-item {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    background-color: #e9ecef;
    color: #495057;
}

.consumption-value {
    color: var(--naturgy-orange);
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 20px;
    background-color: rgba(243, 112, 33, 0.1);
    margin: 0 15px;
    white-space: nowrap;
}

.remove-btn {
    color: var(--naturgy-blue);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    padding: 5px;
}

.remove-btn:hover {
    transform: scale(1.2);
}

.empty-list {
    text-align: center;
    padding: 30px;
    color: #777;
}

.empty-list i {
    font-size: 40px;
    color: #ddd;
    margin-bottom: 15px;
}

.people-info {
    display: flex;
    align-items: center;
    color: var(--naturgy-blue);
    font-weight: 600;
}

.people-info i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.action-button {
    background-color: var(--naturgy-orange);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-button:hover {
    background-color: #e56012;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.action-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Modal de configuración */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background-color: var(--naturgy-blue);
    color: white;
    padding: 15px 25px;
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: none;
    padding: 10px 10px 25px;
    justify-content: center;
}



.slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #666;
    font-size: 0.85rem;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--naturgy-orange);
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.selected-value {
    color: var(--naturgy-blue);
    font-size: 1.5rem;
    text-align: center;
    font-weight: bold;
    margin: 15px 0;
}

.usage-options {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.usage-button {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background-color: white;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.usage-button:hover {
    background-color: #f5f5f5;
    transform: translateY(-3px);
}

.usage-button.active {
    background-color: var(--naturgy-orange);
    color: white;
    border-color: var(--naturgy-orange);
    box-shadow: 0 4px 10px rgba(243, 112, 33, 0.2);
}

.purpose-options {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.purpose-button {
    flex: 1;
    padding: 15px 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background-color: white;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.purpose-button:hover {
    background-color: #f5f5f5;
}

.purpose-button.active {
    background-color: var(--naturgy-blue);
    color: white;
    border-color: var(--naturgy-blue);
}

.purpose-button i {
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
}

.form-section {
    margin-bottom: 25px;
}

.form-section h5 {
    color: var(--naturgy-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

/* Responsive para dispositivos móviles */
@media (max-width: 768px) {
    .main-content {
        padding: 0 15px;
    }
    
    .appliance-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .appliance-icon {
        font-size: 30px;
    }
    
    .appliance-items-container {
        padding: 15px;
    }
    
    .usage-options {
        flex-wrap: wrap;
    }
    
    .usage-button {
        flex: 1 0 45%;
        margin-bottom: 10px;
    }
    
    .purpose-options {
        flex-direction: column;
    }
    
    .purpose-button {
        margin-bottom: 10px;
    }
    
    .appliance-list-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .consumption-value {
        margin: 10px 0;
    }
    
    .remove-btn {
        align-self: flex-end;
        margin-top: -30px;
    }
}

/* Estilos específicos para pantalla de subsidio */
.option-card[data-option="subsidio-si"] {
  /*  border-color: #e7efe9;*/
  fill: var(--naturgy-accept);
}

.option-card[data-option="subsidio-si"]:hover,
.option-card[data-option="subsidio-si"].active svg {
   /* box-shadow: 0 8px 20px rgba(40, 167, 69, 0.2);
    border-color: #28a745;*/
    fill: var(--naturgy-accept) !important;
}

.option-card[data-option="subsidio-no"] {
   /* border-color: #ede6e7;*/
   fill: var(--naturgy-danger) !important;
}

.option-card[data-option="subsidio-no"]:hover,
.option-card[data-option="subsidio-no"].active svg {
    /*box-shadow: 0 8px 20px rgba(220, 53, 69, 0.2);
    border-color: #dc3545;*/
    fill: var(--naturgy-danger) !important;
}

/* Indicador de subsidio */
.indicator-badge {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 10px;
    font-weight: 500;
    margin-bottom: 15px;
}

.subsidy-badge {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}



/* Estilos para vista móvil - Añadir al archivo responsive.css */

/* Carrusel móvil */
.mobile-carousel {
    max-width: 280px;
    margin: 0 auto 20px;
}

.carousel-container {
    border-radius: 15px;
    padding: 20px 10px;
}

#appliancesMobileCarousel .carousel-item {
    text-align: center;
    padding: 0 15px;
}

#appliancesMobileCarousel .appliance-card {
    display: inline-block;
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    padding: 10px;
    height: auto;
    transform: none;
    transition: all 0.3s ease;
}

#appliancesMobileCarousel .appliance-card:hover {
    transform: translateY(-5px);
}

#appliancesMobileCarousel .image-artefacto {
    max-width: 155px;
    margin-bottom: 15px;
}

#appliancesMobileCarousel .carousel-control-prev,
#appliancesMobileCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    opacity: 1;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#appliancesMobileCarousel .carousel-control-prev {
    left: -15px;
}

#appliancesMobileCarousel .carousel-control-next {
    right: -15px;
}

#appliancesMobileCarousel .carousel-control-prev-icon,
#appliancesMobileCarousel .carousel-control-next-icon {
    filter: invert(1) brightness(0.4);
    width: 20px;
    height: 20px;
}

#appliancesMobileCarousel .carousel-indicators {
    position: relative;
    margin-top: 15px;
    margin-bottom: 0;
}

#appliancesMobileCarousel .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ddd;
    opacity: 1;
}

#appliancesMobileCarousel .carousel-indicators button.active {
    background-color: var(--naturgy-orange);
    transform: scale(1.2);
}

/* Botón para ver artefactos */
.btn-view-cart {
    background-color: var(--naturgy-blue);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn-view-cart:hover {
    background-color: #003a6a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* Panel lateral tipo carrito */
.side-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background-color: white;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.side-panel.open {
    right: 0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: var(--naturgy-blue);
    color: white;
}

.panel-header h5 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

.panel-body {
    background-color: var(--light-gray);
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.panel-people-info {
    display: flex;
    align-items: center;
    color: var(--naturgy-blue);
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.panel-people-info i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.panel-item {
    padding: 12px;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: relative;
    margin-bottom: 10px;
    border-radius: 15px;
}

.panel-item:last-child {
    margin-bottom: 0;
}

.panel-item-name {
    color: var(--naturgy-blue);
    font-weight: 600;
    margin-bottom: 5px;
    padding-right: 25px;
}

.panel-item-usage {
    font-size: 0.85rem;
    margin-right: 10px;
    color: #666;
    margin-bottom: 5px;
    display: inline-block;
}

.panel-item-badges {
    display: flex;
    float: left;
    flex-wrap: wrap;
    gap: 5px;
    margin: 3px 7px;
}

.panel-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    background-color: #e9ecef;
    color: #495057;
}

.panel-item-consumption {
    display: inline-block;
    padding: 4px 10px;
    background-color: rgba(243, 112, 33, 0.1);
    color: var(--naturgy-orange);
    font-weight: 600;
    border-radius: 15px;
    font-size: 0.85rem;
}

.panel-item-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--naturgy-blue);
    cursor: pointer;
    padding: 5px;
    font-size: 1rem;
}

.panel-item-remove:hover {
    transform: scale(1.2);
}

.panel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #777;
    text-align: center;
    padding: 30px 0;
}

.panel-empty i {
    font-size: 40px;
    color: #ddd;
    margin-bottom: 15px;
}

.panel-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    text-align: center;
    box-shadow: 5px -9px 20px 2px rgb(0 0 0 / 12%);
}

.side-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 1040;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s; /* El visibility se retrasa */

}

.side-panel-overlay.open {
    display: block;
     opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;

}

/* Ajustes responsivos */
@media (max-width: 576px) {
    .side-panel {
        width: 360px;
    }
    
    .mobile-carousel {
        max-width: 260px;
    }
    
    #appliancesMobileCarousel .carousel-control-prev {
        left: -40px;
    }
    
    #appliancesMobileCarousel .carousel-control-next {
        right: -40px;
    }
}

@media (max-width: 375px) {
    .mobile-carousel {
        max-width: 290px;
    }
    
    .side-panel {
        width: 350px;
    }
}