body {
    font-family: 'Inter', Arial, sans-serif;
    background: #0A192F;
    color: #CBD2D9;
    margin: 0;
    padding: 0;
    /* Bloquear la selección de texto */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
    user-select: none;         /* Estándar */
}
.container {
    max-width: 600px;
    margin: 2.5rem auto 0 auto;
    padding: 2rem 1.2rem 2.5rem 1.2rem;
    background: rgba(16, 35, 47, 0.8);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #109FFF, #64C1FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 4px 20px rgba(16, 159, 255, 0.3);
}
.slider-container {
    margin: 2rem 0 1.5rem 0;
    text-align: center;
}
#dBm-slider {
    width: 100%;
    margin-bottom: 1rem;
}
#power-display {
    font-size: 1.2rem;
    color: #B9E2FF;
    font-weight: 600;
}
.usage-info-box {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(16, 159, 255, 0.05);
    border: 1px solid rgba(16, 159, 255, 0.15);
    border-radius: 12px;
    text-align: left;
    transition: all 0.3s ease;
}
.usage-info-box .usage-main-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #64C1FF;
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.usage-info-box .usage-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #B9E2FF;
    margin: 0 0 0.5rem 0;
    min-height: 1.2em; /* Evita que el cuadro salte de tamaño */
    line-height: 1.5;
}
.usage-info-box p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #CBD2D9;
    margin: 0;
}
.switch-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider-switch {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #374151;
    border-radius: 28px;
    transition: .4s;
}
.slider-switch:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: #109FFF;
    border-radius: 50%;
    transition: .4s;
}
input:checked + .slider-switch {
    background: #109FFF;
}
input:checked + .slider-switch:before {
    transform: translateX(22px);
    background: #fff;
}
#scale-label {
    color: #B9E2FF;
    font-weight: 500;
}
.chart-container {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(16, 159, 255, 0.08);
    margin-bottom: 2rem;
}

.info-btn {
    display: block;
    margin: -1rem auto 1.5rem auto;
    padding: 0.5rem 1rem;
    background: rgba(16, 159, 255, 0.15);
    color: #B9E2FF;
    border: 1px solid rgba(16, 159, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
}

.info-btn:hover {
    background: rgba(16, 159, 255, 0.3);
    color: #fff;
}

/* Estilos del Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #0A192F;
    padding: 2rem;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(16, 159, 255, 0.2);
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #CBD2D9;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #64C1FF;
    margin-top: 0;
    margin-bottom: 1rem;
}

.modal-content p, .modal-content ul {
    font-size: 1rem;
    line-height: 1.6;
    color: #CBD2D9;
    margin-bottom: 1rem;
}

.modal-content ul {
    list-style: none;
    padding-left: 0;
}

.modal-content li {
    margin-bottom: 0.75rem;
}

.modal-content strong {
    color: #B9E2FF;
    font-weight: 600;
}

.info-separator {
    height: 1px;
    background: rgba(100, 193, 255, 0.2);
    margin: 1.5rem 0;
}

.formula-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #B9E2FF;
    margin-bottom: 0.75rem;
}

.formula-box {
    background: rgba(10, 25, 47, 0.7);
    border: 1px solid rgba(100, 193, 255, 0.15);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    text-align: center;
    overflow-x: auto;
}

.formula-box code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    color: #E4E7EB;
    white-space: nowrap;
}

.hidden {
    display: none;
}
