:root {
    --blue-primary: #0056b3;
    --blue-light: #e7f1ff;
    --white: #ffffff;
    --gray: #f4f7f6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--gray);
    background-image: url('img/fondo2.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    padding: 20px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    backdrop-filter: blur(5px);
    z-index: -1;
}

.container {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 100%;
}

h2, h3 { color: var(--blue-primary); }

input, select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box; /* Asegura que el padding no rompa el ancho */
}

.total-box {
    background: var(--blue-light);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: bold;
    color: var(--blue-primary);
}

button {
    width: 100%;
    background: var(--blue-primary);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
}

button:hover { background: #004494; }

/* Responsive */
@media (max-width: 480px) {
    .container { padding: 15px; }
}

/* ... (mantiene lo anterior y añade esto) ... */

.grid-checkbox {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas en web */
    gap: 10px;
    margin-top: 10px;
}

.checkbox-item {
    font-size: 14px;
    background: #eeeeee;
    padding: 8px;
    border-radius: 4px;
}

@media (max-width: 480px) {
    .grid-checkbox {
        grid-template-columns: 1fr; /* Una columna en móvil */
    }
}

input[type="number"] {
    width: 100%;
}

/* Estilos del Switch */
.switch-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.locked { background: #f9f9f9; color: #888; }

.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider { background-color: var(--blue-primary); }
input:checked + .slider:before { transform: translateX(22px); }

.instruction { font-size: 0.85rem; color: #666; margin-bottom: 10px; }

.warning-card {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
    padding: 10px;
    border-radius: 5px;
    margin-top: 20px;
}

.titleXS {
    color: #ffffff;
    background: #0056b3;
    padding: 4px;
    border-radius: 4px;
    display: inline-block;
    margin-top: -10px;
}
