/* ==========================================================================
   1. RESET & NORMALIZACIÓN (Afecta a toda la aplicación)
   ========================================================================== */
html,
body,
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ==========================================================================
   2. ESTILOS BASE Y CUERPO (El valor por defecto de la App Interna)
   ========================================================================== */
body {
  font-family:
    "Segoe UI",
    -apple-system,
    BlinkMacSystemFont,
    Roboto,
    sans-serif;
  background: #f4f6f9; /* Nota: La parte pública pisa esto con blanco (.public-layout) */
  margin: 0;
  color: #222;
}

/* ==========================================================================
   3. FORMULARIOS Y BOTONES (Compartidos o para vistas de Login/Registro)
   ========================================================================== */
form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

input:disabled {
  background: #e9e9ed;
  color: #333;
  cursor: not-allowed;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="tel"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #ccd0d5;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: border-color 0.15s ease-in-out;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus {
  border-color: #0056b3;
  outline: none;
}

button,
.btn-primary {
  width: 100%;
  padding: 0.75rem;
  background: #0056b3;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

button:hover,
.btn-primary:hover {
  background: #004494;
}

/* ==========================================================================
   4. COMPONENTES DE FEEDBACK (Alertas comunes)
   ========================================================================== */
.error-box {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 1500px) {
  .only-wide-desktop {
    display: none;
  }
}
@media (max-width: 768px) {
  .only-desktop {
    display: none;
  }
}
@media (min-width: 768px) {
  .only-mobile {
    display: none;
  }
}
