/* RESET DE ESTILOS */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f9;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 15px;
}

/* CONTENEDOR PRINCIPAL */
.main-wrapper {
    width: 100%;
    max-width: 480px;
}

/* TARJETAS (CARDS) */
.card {
    background: #ffffff;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    animation: fadeIn 0.4s ease-out;
}

h2 {
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    font-size: 1.5rem;
}

hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

/* GRUPOS DE ENTRADA */
.input-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
}

input[type="text"],
input[type="number"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="time"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d9e0;
    border-radius: 10px;
    font-size: 16px; /* Evita zoom automático en iOS */
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:disabled {
    background-color: #f8f9fa;
    color: #888;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

textarea {
    height: 100px;
    resize: none;
}

/* ESTILO DEL CHECKBOX (A LA IZQUIERDA) */
.check-container {
    display: flex;
    align-items: center;
    margin-top: 8px;
    cursor: pointer;
    font-weight: normal;
    color: #444;
    font-size: 0.9rem;
    user-select: none;
}

.check-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px; /* Espacio entre el check y el texto */
    margin-bottom: 0;
    cursor: pointer;
    accent-color: #007bff; /* Color del check en navegadores modernos */
}

/* BOTONES */
button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 10px;
}

.btn-confirm {
    background-color: #007bff;
    color: white;
}

.btn-confirm:hover {
    background-color: #0056b3;
}

.btn-confirm:active {
    transform: scale(0.98);
}

.btn-edit {
    background-color: #6c757d;
    color: white;
}

/* UTILIDADES */
.hidden {
    display: none !important;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

#loading {
    padding: 10px;
    color: #007bff;
    font-weight: 500;
    font-style: italic;
}

/* ANIMACIONES */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Safari a veces ignora el display:none en opciones, 
   usar [hidden] es más compatible */
option.hidden-opt {
    display: none !important;
    visibility: hidden;
    appearance: none;
}
/* AJUSTES PARA MÓVILES */
@media (max-width: 480px) {
    .card {
        padding: 1.5rem 1rem;
    }
}