/* ==== AJUSTES - ÁREA DE PESTAÑAS ==== */
.tabs-container {
  background: var(--color-sidebar);
  border-radius: var(--radio);
  box-shadow: var(--sombra-suave);
  overflow: hidden;
}

.tabs {
  display: flex;
  background: var(--color-header);
}

.tab-button {
  flex: 1;
  padding: 10px 0;             /* más delgada */
  text-align: center;
  font-size: 0.85rem;         /* letra más pequeña */
  font-weight: 300;           /* letra más ligera */
  color: var(--color-texto);
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--transicion), color var(--transicion);
}

.tab-button:hover {
  background: var(--color-acento);
  color: white;
}

.tab-button.active {
  background: var(--color-acento);
  color: white;
  font-weight: 400;
}

/* ==== SECCIONES DE CONTENIDO ==== */
.tab-content {
  display: none;
  padding: 24px;
  background: var(--color-fondo);
}

.tab-content.active {
  display: block;
}

/* ==== FORMULARIOS ==== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.95rem;
  border: 1px solid var(--color-borde);
  border-radius: var(--radio);
  background: #141414;
  color: var(--color-texto);
  transition: border-color var(--transicion);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-acento);
}

hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 24px 0;
}

/* ==== BOTONES DENTRO DE FORMULARIOS ==== */
.tab-content .btn {
  padding: 10px 18px;
  font-size: 0.95rem;
  border-radius: var(--radio);
  transition: background var(--transicion);
}

.tab-content .btn.registro {
  background: var(--color-acento);
  color: white;
  border: none;
}

.tab-content .btn.registro:hover {
  background: var(--color-acento-claro);
}

.tab-content .btn:not(.registro) {
  background: transparent;
  color: var(--color-texto);
  border: 1px solid var(--color-borde);
}

.tab-content .btn:not(.registro):hover {
  background: var(--color-acento);
  color: white;
}

/* ==== SECCIÓN PERFIL ==== */
#view-mode {
  text-align: center;
}

#perfil-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-acento);
  margin-bottom: 12px;
}

#perfil-nickname {
  font-size: 1.4rem;
  color: var(--color-acento);
  margin-bottom: 4px;
}

#perfil-email,
#perfil-bio {
  font-size: 0.95rem;
  color: var(--color-texto);
  margin-bottom: 8px;
}

/* ==== EDICIÓN DE PERFIL ==== */
#edit-mode .form-group:first-of-type {
  margin-top: 0;
}

#edit-mode .avatar-preview {
  display: block;
  margin: 0 auto 16px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px dashed var(--color-acento);
}

/* ==== ASIDE DERECHO (VACÍO POR AHORA) ==== */
.content-right {
  flex: 0 0 200px;
  margin-left: 40px;
}

/* ==== MEDIA QUERIES (MÓVIL) ==== */
@media (max-width: 768px) {
  .content-right {
    display: none;
  }
  .tab-button {
    font-size: 0.85rem;
    padding: 10px 0;
  }
  .tab-content {
    padding: 16px 0;
  }
}
/* Centrar el título de Ajustes */
.main-content h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.5rem;          /* más pequeño */
  font-weight: 500;           /* más ligero */
}
/* Primera pestaña con curvatura en esquinas izq */
.tabs .tab-button:first-child {
  border-top-left-radius: 5%;
  border-bottom-left-radius: 5%;
}

/* Última pestaña con curvatura en esquinas der */
.tabs .tab-button:last-child {
  border-top-right-radius: 5%;
  border-bottom-right-radius: 5%;
}
/* — OCULTAR EMAIL EN VISTA DE PERFIL — */
#view-mode #perfil-email {
  display: none !important;
}

/* — OCULTAR CAMPO EMAIL EN FORMULARIO DE EDICIÓN — */
#edit-mode label[for="cuenta-email"],
#edit-mode input#cuenta-email {
  display: none !important;
}
/* ==== MODALES ==== */
.modal {
  position: fixed;
  inset: 0;                                /* top/right/bottom/left = 0 */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal__window {
  position: relative;
  background: var(--color-fondo);
  border-radius: var(--radio);
  padding: 1rem;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  box-shadow: var(--sombra-suave);
  z-index: 1001;
  transition: transform var(--transicion) ease;
}

/* ==== BOTÓN CERRAR ==== */
.modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

/* ==== ÁREAS INTERNAS ==== */
.modal__field {
  margin: 1rem 0;
}

/* ==== ACCIONES (BOTONES) ==== */
.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* ==== OVERRIDE: MODAL DE CROPPER ==== */
#modal-cropper .modal__window {
  max-width: 600px;
  max-height: 600px;
  padding: 0.75rem;
}

#modal-cropper .modal__title {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

#cropper-profile-img {
  display: block;
  max-width: 100%;
  max-height: calc(100% - 3rem);
  margin: 0 auto;
  border-radius: var(--radio);
  background: #000;
}
/* ==== Colores y glow según el rol de usuario ==== */
.user-info-role {
  margin: 0.2rem auto;        /* vertical + auto para centrar */
  padding: 0 1rem;             /* opcional, para no pegarse a los bordes */
  font-size: 1.2rem;
  color: var(--color-texto);
  display: inline-flex;        /* inline-flex para que auto margin funcione */
  align-items: center;
  justify-content: center;     /* centra el contenido dentro */
  gap: 0.2rem;
  background: var(--color-sidebar); /* opcional: fondo para destacar */
  border-radius: var(--radio);      /* opcional: bordes redondeados */
}

.user-info-role strong {
  font-weight: 600;
}

/* Glow según rol */
.role-usuario {
  color: gray;
  font-weight: 600;
  text-shadow: 0 0 4px rgba(128, 128, 128, 0.6);
}
.role-asistidor {
  color: #00cfff;
  font-weight: 600;
  text-shadow:
    0 0 6px rgba(0, 207, 255, 0.8),
    0 0 12px rgba(0, 207, 255, 0.5);
}
.role-contribuidor {
  color: #ff9100;
  font-weight: 600;
  text-shadow:
    0 0 6px rgba(255, 145, 0, 0.8),
    0 0 12px rgba(255, 145, 0, 0.5);
}
.role-importante {
  color: #ffd700;
  font-weight: 700;
  text-shadow:
    0 0 6px rgba(255, 215, 0, 0.9),
    0 0 12px rgba(255, 215, 0, 0.6);
}
.role-colaborador {
  color: #00ffc8;
  font-weight: 600;
  text-shadow:
    0 0 6px rgba(0, 255, 200, 0.8),
    0 0 12px rgba(0, 255, 200, 0.5);
}
.role-administrador {
  color: #a100ff;
  font-weight: 700;
  text-shadow:
    0 0 6px rgba(161, 0, 255, 0.9),
    0 0 12px rgba(161, 0, 255, 0.6);
}
.role-creador {
  color: #ff2f2f;
  font-weight: 700;
  text-shadow:
    0 0 8px rgba(255, 47, 47, 0.9),
    0 0 16px rgba(255, 47, 47, 0.6);
}
/* Estilo del form-group */
#preferencias .form-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* Ocultar el checkbox original */
#showSensitive {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 40px;
  height: 22px;
  background: #ccc;
  border-radius: 11px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

/* Fondo cuando está activo */
#showSensitive:checked {
  background: #860606;
}

/* El círculo interior */
#showSensitive::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease-in-out;
}

/* Movimiento del círculo cuando se activa */
#showSensitive:checked::before {
  transform: translateX(18px);
}

/* Label con cursor pointer */
#showSensitive + label,
label[for="showSensitive"] {
  cursor: pointer;
  user-select: none;
  font-size: 1rem;
  color: #ff0000a8;
}
/* ===========================
   MODALES ESTILO BYETICH
   =========================== */

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

/* Contenedor modal full-screen */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

/* Fondo semitransparente oscuro */
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

/* Ventana modal */
.modal__window {
  position: relative;
  background: var(--color-sidebar);
  color: var(--color-texto);
  padding: 1.5rem;
  border-radius: var(--radio);
  width: 320px;
  max-width: 90%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  text-align: left;
  z-index: 2001;
  font-family: var(--fuente-principal);
}

/* Título */
.modal__window h2 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
  color: var(--color-acento);
}

/* Texto */
.modal__window p {
  margin-bottom: 1.25rem;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Botonera */
.modal__actions {
  display: flex;
  gap: 0.5rem;
}

/* Botones */
.modal__actions .btn {
  flex: 1;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  border-radius: var(--radio);
  transition: background var(--transicion), color var(--transicion);
}

/* Botón “Registro” (acción principal) */
.modal__actions .btn.registro {
  background: var(--color-acento);
  color: #fff;
}
.modal__actions .btn.registro:hover {
  background: var(--color-acento-claro);
}

/* Botón secundario */
.modal__actions .btn:not(.registro) {
  background: var(--color-header);
  color: var(--color-texto);
}
.modal__actions .btn:not(.registro):hover {
  background: var(--color-borde);
}
