/* =================== BASE =================== */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f2f3f7;
}

/* =================== CONTENEDOR =================== */
.perfil-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 20px;
}

/* =================== CAJA DEL FORMULARIO =================== */
.perfil-box {
  background: #ffffff;
  padding: 35px 25px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  width: 350px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: center;
  transition: transform 0.3s;
}

.perfil-box:hover {
  transform: translateY(-3px);
}

/* =================== TITULO =================== */
.perfil-box h2 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #1e1e2f;
}

/* =================== FOTO DE PERFIL =================== */
.profile-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
}

.profile-photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 3px solid #5a67d8;
}

/* =================== INPUTS =================== */
.perfil-box input[type="text"],
.perfil-box input[type="number"],
.perfil-box input[type="file"] {
  width: 100%;
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.perfil-box input:focus {
  border-color: #5a67d8;
  box-shadow: 0 0 8px rgba(90, 103, 216, 0.3);
  outline: none;
}

/* =================== BOTONES =================== */
.perfil-box button {
  padding: 12px;
  width: 100%;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

#guardarBtn {
  background-color: #5a67d8;
  color: white;
}

#guardarBtn:hover {
  background-color: #434bb5;
  transform: translateY(-2px);
}

#inicioBtn {
  background-color: #888;
  color: white;
}

#inicioBtn:hover {
  background-color: #666;
  transform: translateY(-2px);
}
/* =========================================
   SISTEMA DE CARGA Y TRANSICIONES - ACTUSMX
   ========================================= */

/* 1. EL LOADER (Siempre arriba de todo) */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100000; /* Prioridad máxima */
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Animación del Spinner */
.spinner-actus {
    width: 45px;
    height: 45px;
    border: 4px solid #f1f5f9;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spinActus 0.8s linear infinite;
}

@keyframes spinActus {
    to { transform: rotate(360deg); }
}

/* Estilo del texto del Loader */
#loaderText {
    color: #1e293b;
    font-size: 1.1rem;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

/* 2. CLASES DE CONTROL DE VISIBILIDAD */

/* Oculta suavemente el Loader */
.fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}

/* Oculta de golpe los contenedores (Login o App) */
.hidden {
    display: none !important;
}

/* =========================================
   ESTILOS DE LOS CONTENEDORES
   ========================================= */

/* Contenedor del Login (Ocupa toda la pantalla cuando está activo) */
.login-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
}

/* El bloque blanco donde está el botón */
.login-box {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: center;
    width: 100%;
    max-width: 380px;
}

/* Botón de Google */
.google-btn {
    background-color: #4285F4;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.google-btn:hover {
    background-color: #3367d6;
}