        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        }
        
        body {
            background-color: #f5f5f5;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 20px;
        }
        
        .app-container {
            width: 800px;
            height: auto;
            margin: 0 auto;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            display: flex;
            flex-direction: column;
            background-color: white;
        }
        
        .calculator-container {
            padding: 30px 30px 15px 30px;
            background-color: white;
            flex: 1;
            position: relative;
            color: #336633;
        }
        
        .button-container {
            padding: 0 30px;
            margin-bottom: 10px;
            display: flex;
            justify-content: flex-end;
        }
        
        .footer-container {
            background-color: #f7f6f0;
            padding: 15px 30px;
        }
        
        .footer-content {
            background-color: white;
            border-radius: 8px;
            padding: 15px;
            display: flex;
            align-items: center;
        }
        
        .footer-icon {
            width: 40px;
            height: 40px;
            background-color: #D6EB9B;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 10px;
        }
        
        .footer-icon span {
            font-size: 20px;
            color: #336633;
        }
        
        .footer-text {
            flex: 1;
        }
        
        .footer-title {
            color: #336633;
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 3px;
        }
        
        .footer-desc {
            color: #666;
            font-size: 12px;
            margin-bottom: 2px;
        }
        
        .footer-note {
            color: #999;
            font-size: 10px;
        }
        
        .close-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            background-color: #f0f0f0;
            border: none;
            width: 25px;
            height: 25px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            color: #333;
            cursor: pointer;
        }
        
        h1 {
            font-size: 20px;
            margin-bottom: 6px;
            font-weight: 600;
        }
        
        .subtitle {
            font-size: 12px;
            margin-bottom: 20px;
        }
        
        .section-title {
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 10px;
        }
        
        .housing-types {
            display: flex;
            gap: 10px;
            margin-bottom: 25px;
        }
        
        .housing-option {
            flex: 1;
            border: 1px solid #ddd;
            border-radius: 6px;
            height: 80px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: border-color 0.3s;
        }

        .housing-option.selected {
            border-color: #336633;
            background-color: #f7f6f0;
        }
        
        .housing-option img {
            width: 24px;
            height: 24px;
            margin-bottom: 5px;
        }
        
        .housing-option div {
            font-size: 12px;
            font-weight: 500;
        }
        
        .two-columns {
            display: flex;
            gap: 15px;
            margin-bottom: 10px;
        }
        
        .left-column {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .right-columns {
            flex: 2;
            display: flex;
            gap: 15px;
        }
        
        .energy-column, .power-column {
            flex: 1;
        }
        
        .select-container {
            position: relative;
        }
        
        .select-dropdown {
            width: 100%;
            height: 35px;
            padding: 0 10px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 12px;
            background-color: white;
            -webkit-appearance: none;
            appearance: none;
        }
        
        .select-arrow {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            pointer-events: none;
            font-size: 10px;
        }
        
        .days-input {
            width: 100%;
            height: 35px;
            padding: 0 10px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 12px;
        }
        
        .energy-grid {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        
        .energy-row {
            display: flex;
            width: 100%;
            height: 35px;
            border: 1px solid #ddd;
            border-radius: 6px;
        }
        
        .energy-label {
            flex-grow: 1;
            padding: 0 0px 0px 10px;
            border: none;
            font-size: 12px;
            display: flex;
            align-items: center;
        }
        
        .period-code {
            font-size: 10px;
            margin-left: 4px;
            font-weight: normal;
        }
        
        .energy-value {
            min-width: 80px;
            padding: 0 10px 0 0;
            border: none;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: flex-end;
        }
        
        .energy-number {
            font-size: 12px;
            font-weight: 600;
            margin-right: 4px;
        }
        
        .energy-unit {
            font-size: 10px;
        }
        
        .compare-btn, .reset-btn {
            font-weight: 600;
            font-size: 12px;
            padding: 10px 15px;
            border: none;
            border-radius: 20px;
            display: flex;
            align-items: center;
        }

        .compare-btn {
            background-color: #D6EB9B;
        }

        .reset-btn {
            background-color: #f0f0f0;
            color: #333;
        }
        
        .compare-arrow {
            margin-left: 6px;
            font-size: 14px;
        }

        /* Bootstrap Overrides and Mobile Adjustments */
        @media (max-width: 768px) {
            .app-container {
                width: 100%;
                border-radius: 0;
                box-shadow: none;
            }

            .calculator-container {
                padding: 20px;
            }

            .housing-types {
                flex-direction: row;
                gap: 10px;
            }

            .housing-option {
                height: 60px;
            }

            .housing-option img {
                width: 20px;
                height: 20px;
            }

            .housing-option div {
                font-size: 10px;
            }

            .two-columns {
                flex-direction: column;
            }

            .left-column {
                flex-direction: row;
                gap: 10px;
                flex: none;
                width: 100%;
            }

            .left-column > div {
                flex: 1;
            }

            .right-columns {
                flex: none;
                width: 100%;
                flex-direction: column;
                gap: 15px;
            }

            .energy-column, .power-column {
                flex: none;
                width: 100%;
            }

            .button-container {
                padding: 0 20px;
                margin-bottom: 20px;
                flex-direction: column;
                gap: 10px;
            }

            .button-container .compare-btn,
            .button-container .reset-btn {
                width: 100%;
                justify-content: center;
            }

            .footer-container {
                padding: 15px 20px;
                display: none; /* Hidden by default in mobile */
            }

            .footer-container.show {
                display: block; /* Shown when "Comparar tarifas" is clicked */
            }
        }


/* Estilos para los inputs y select en los valores de energía */
.energy-value input,
.energy-value select {
    border: none;
    background: transparent;
    font-weight: bold;
    color: #256333;
    width: auto;
    max-width: 80px;
    font-size: 16px;
    -webkit-appearance: none;
    margin: 0;
    padding: 0;
    text-align: right;
}

/* Ocultar las flechas de los inputs number */
.energy-value input::-webkit-outer-spin-button,
.energy-value input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.energy-value input[type=number] {
    -moz-appearance: textfield;
}

/* Mantener el estilo original del desplegable pero ajustar el color */
.energy-value select {
    padding-right: 12px;
}

/* Ajustes para mantener la alineación */
.energy-number {
    display: inline-block;
}

.energy-unit {
    margin-left: 4px;
    color: #666;
    font-size: 14px;
}