@charset "UTF-8";
:root {
  --lavanda-suave: #EDE9FE;
  --gris-medio: #6B7280;
  --gris-oscuro: #1F2937;
  --azul-claro: #60A5FA;
  --rosa-pastel: #F472B6;
  --purpura: #7C3AED;
  --blanco: #FFFFFF;
  --fondo-principal: #F5F5FA;
  --max-width: 1280px;
  --site-px: 24px;
}

*, *::before, *::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/* =============================================
   CONTENEDOR GLOBAL UNICO
   Usar <div class="container"> en header y main
   ============================================= */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--site-px);
  padding-right: var(--site-px);
  width: 100%;
}

header {
  background-color: var(--gris-oscuro);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
header h1 a {
  font-size: 26px;
  font-family: "Bebas Neue", serif;
  color: white;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s;
}
header h1 a:hover {
  color: var(--purpura);
}
header nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
header nav a {
  font-size: 14px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 7px;
  transition: color 0.2s, background 0.2s;
}
header nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}
header nav a.nav-active {
  color: var(--purpura);
  font-weight: 600;
}
header {
  /* Auth links (no logueado) */
}
header .auth-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
header .auth-links a {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1;
}
header .auth-links a.btn-login {
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}
header .auth-links a.btn-login:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
}
header .auth-links a.btn-register {
  color: white;
  background: var(--purpura);
  border: 1.5px solid var(--purpura);
}
header .auth-links a.btn-register:hover {
  background: #6D28D9;
  border-color: #6D28D9;
  transform: translateY(-1px);
}
header {
  /* Dropdown usuario (controlado por JS con clase .open) */
}
header .user-dropdown {
  position: relative;
  display: inline-block;
}
header .user-dropdown .username {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  transition: background 0.2s;
  cursor: pointer;
  user-select: none;
}
header .user-dropdown .username:hover {
  background: rgba(255, 255, 255, 0.08);
}
header .user-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  background-color: #1e2433;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 185px;
  z-index: 1000;
  right: 0;
  top: calc(100% + 4px);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
header {
  /* Abrir con clase .open (controlada por JS) */
}
header .user-dropdown .dropdown-menu.open {
  display: block;
  animation: dropdownFadeIn 0.15s ease;
}
header .user-dropdown .dropdown-menu a {
  display: block;
  padding: 11px 16px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  border-radius: 0;
  border: none;
  background: transparent;
  transition: background 0.15s, color 0.15s;
}
header .user-dropdown .dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: white;
}
header .user-dropdown .dropdown-menu a:last-child {
  color: #f87171;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
header .user-dropdown .dropdown-menu a:last-child:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
main {
  padding-top: 40px;
  padding-bottom: 60px;
  background-color: var(--fondo-principal);
}
main a {
  text-decoration: none;
}
main h2 {
  font-size: 28px;
  padding-top: 30px;
  font-family: "Bebas Neue", serif;
}
main .barra-menu-main {
  background-color: var(--gris-oscuro);
  padding: 12px 0;
  margin-bottom: 24px;
}
main .barra-menu-main nav {
  display: flex;
  gap: 8px;
}
main .barra-menu-main a {
  font-size: 15px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 7px;
  transition: color 0.2s, background 0.2s;
}
main .barra-menu-main a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}
main .filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin-bottom: 24px;
}
main .filtros select, main .filtros input, main .filtros button {
  padding: 10px 14px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}
main #galeria, main #galeria-proxima {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 16px;
  padding: 8px 0;
}
main .seccion-titulo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  margin-top: 8px;
}
main .seccion-titulo h2 {
  padding-top: 0;
  margin: 0;
}
main .seccion-titulo a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--purpura);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 7px;
  background: var(--lavanda-suave);
  transition: background 0.2s;
}
main .seccion-titulo a:hover {
  background: #ddd6fe;
}
main .anime-card {
  position: relative;
  width: 140px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  font-family: "Overpass", sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
main .anime-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
main .anime-card img {
  width: 100%;
  display: block;
}
main .anime-card h3, main .anime-card .anime-title, main .anime-card p {
  font-size: 13px;
  font-family: "Overpass", sans-serif;
  color: var(--gris-oscuro);
  padding: 8px 6px 20px;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3em;
}
main .anime-card .visto-icon {
  position: absolute;
  bottom: 4px;
  right: 6px;
  font-size: 1.1rem;
  opacity: 0.7;
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease;
}
main .visto-icon.marcado {
  color: var(--purpura) !important;
  opacity: 1 !important;
}
main .fav-btn {
  margin-top: 15px;
  padding: 8px 12px;
  font-size: 14px;
  background-color: #e0e0ff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}
main .fav-btn:hover {
  background-color: #c2c2f7;
}
main #detalle {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: row;
  gap: 24px;
}
main #detalle img {
  width: 300px;
  border-radius: 8px;
  object-fit: cover;
}
main #detalle-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
main #detalle-info h2 {
  margin-top: 0;
  font-size: 1.8rem;
  color: #333;
}
main #detalle-info p {
  margin: 6px 0;
  line-height: 1.5;
  color: var(--gris-medio);
}
main #detalle-info strong {
  font-weight: bold;
  color: #222;
}
main #detalle-info .descripcion {
  margin-top: 16px;
  font-style: italic;
  color: #555;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: "Inter", sans-serif;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}

/* =========================================
   PERFIL DE USUARIO - ESTILOS PRINCIPALES
   ========================================= */
main {
  flex: 1;
}
main .profile-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  main .profile-container {
    grid-template-columns: 1fr;
  }
}
main .profile-info-aside {
  background: var(--blanco, #fff);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
main .profile-info-aside .profile-image {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.2rem auto;
  display: block;
  border: 4px solid var(--lavanda-suave, #EDE9FE);
}
main .profile-info-aside h2 {
  margin-bottom: 0.2rem;
  color: var(--gris-oscuro, #1F2937);
  font-size: 1.5rem;
}
main .profile-info-aside #email {
  color: var(--gris-medio, #6B7280);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
main .profile-info-aside .extended-profile {
  text-align: left;
  margin: 1.5rem 0;
  background: var(--fondo-principal, #f5f5f5);
  padding: 1rem;
  border-radius: 12px;
}
main .profile-info-aside .extended-profile p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--gris-oscuro, #333);
}
main .profile-info-aside .extended-profile p span {
  font-weight: normal;
  color: var(--gris-medio, #555);
}
main .profile-info-aside .edit-profile-action-btn {
  background: var(--purpura, #6200ea);
  color: white;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
main .profile-info-aside .edit-profile-action-btn:hover {
  background-color: #5b21b6;
  transform: translateY(-2px);
}
main .profile-lists-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
main .profile-lists-content .anime-section {
  background: var(--blanco, #fff);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
main .profile-lists-content .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.8rem;
}
main .profile-lists-content .section-header h3 {
  margin: 0;
  color: var(--gris-oscuro, #1F2937);
  font-size: 1.2rem;
}
main {
  /* Listas de Animes / Amigos */
}
main .anime-list, main #favoritos, main #vistos, main #amigos-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
  width: 100%;
}
main .ver-todos-link {
  font-size: 14px;
  font-weight: bold;
  color: var(--purpura, #7C3AED);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--lavanda-suave, #EDE9FE);
  transition: background 0.2s;
  margin-top: 1rem;
  display: inline-block;
}
main .ver-todos-link:hover {
  background: #ddd6fe;
}
main {
  /* Cards */
}
main .anime-card, main .amigo-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
main .anime-card:hover, main .amigo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
main .anime-card a, main .amigo-card a {
  text-decoration: none;
  color: #333;
}
main .anime-card a img, main .amigo-card a img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
main .anime-card a p, main .amigo-card a p {
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}
main .anime-card .mark-visto-btn, main .amigo-card .mark-visto-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
main .amigo-card a img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 1rem auto 0;
}
main .tabs-seguidores {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
}
main .tabs-seguidores .tab-btn {
  background: transparent;
  border: none;
  font-weight: bold;
  cursor: pointer;
  color: var(--gris-medio, #6B7280);
  border-bottom: 3px solid transparent;
  padding: 8px 12px;
}
main .tabs-seguidores .tab-btn.active {
  border-bottom: 3px solid var(--purpura, #7C3AED);
  color: var(--purpura, #7C3AED);
}

/* =========================================
   SIDE DRAWER: EDICION DE PERFIL (PREMIUM)
   ========================================= */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.edit-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 420px;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.edit-drawer.open {
  transform: translateX(-450px);
}
@media (max-width: 500px) {
  .edit-drawer {
    width: 100%;
    right: -100%;
  }
  .edit-drawer.open {
    transform: translateX(-100%);
  }
}
.edit-drawer .drawer-header {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.edit-drawer .drawer-header h3 {
  font-weight: 700;
  margin: 0;
  color: #1F2937;
}
.edit-drawer .drawer-header .drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6B7280;
}
.edit-drawer .drawer-header .drawer-close:hover {
  color: #ef4444;
}
.edit-drawer .drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}
.edit-drawer .drawer-avatar-preview {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
}
.edit-drawer .drawer-avatar-preview img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}
.edit-drawer .drawer-avatar-preview .drawer-avatar-label {
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0;
}
.edit-drawer .drawer-avatar-preview .drawer-avatar-hint {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
}
.edit-drawer .drawer-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.edit-drawer .drawer-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.edit-drawer .drawer-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.edit-drawer .drawer-field label i {
  color: #7C3AED;
}
.edit-drawer .drawer-field input, .edit-drawer .drawer-field textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  width: 100%;
}
.edit-drawer .drawer-field input:focus, .edit-drawer .drawer-field textarea:focus {
  outline: none;
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}
.edit-drawer .drawer-input-prefix {
  position: relative;
  display: flex;
  align-items: center;
}
.edit-drawer .drawer-input-prefix span {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-weight: 600;
}
.edit-drawer .drawer-input-prefix input {
  padding-left: 32px;
}
.edit-drawer .drawer-actions {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}
.edit-drawer .drawer-actions button {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}
.edit-drawer .drawer-actions .drawer-btn-cancel {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
}
.edit-drawer .drawer-actions .drawer-btn-save {
  background: #7C3AED;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.edit-drawer .drawer-actions .drawer-btn-save:hover {
  background: #6d28d9;
}

.section-top100 {
  padding: 2rem;
  text-align: center;
}

.section-header {
  margin-bottom: 2rem;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--texto-principal, #1f2937);
}

.top100-anime-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
  width: 100%;
}
.top100-anime-list .top100-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #f1f5f9;
  text-align: center;
}
.top100-anime-list .top100-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.top100-anime-list .top100-card .ranking-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 0.9rem;
  z-index: 5;
  backdrop-filter: blur(4px);
}
.top100-anime-list .top100-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.top100-anime-list .top100-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.top100-anime-list .top100-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 12px 8px 4px;
  line-height: 1.3;
  min-height: 2.47rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--texto-principal, #1f2937);
}
.top100-anime-list .top100-card p {
  font-size: 0.85rem;
  margin: auto 0 12px;
  color: #64748b;
}
.top100-anime-list .top100-card p .star {
  color: #fbbf24;
  font-size: 0.9rem;
}
.top100-anime-list .top100-card .visto-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.9);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  color: #64748b;
  transition: all 0.2s;
}
.top100-anime-list .top100-card .visto-icon:hover {
  background: white;
  color: var(--texto-principal);
}
.top100-anime-list .top100-card .visto-icon.marcado {
  color: var(--purpura);
  background: white;
}

.paginacion {
  margin: 40px auto;
  padding-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  width: 100%;
}
.paginacion .btn-pag-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 2px solid var(--purpura, #8b5cf6);
  background-color: transparent;
  color: var(--purpura, #8b5cf6);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.paginacion .btn-pag-nav:hover:not(:disabled) {
  background-color: var(--purpura, #8b5cf6);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}
.paginacion .btn-pag-nav:disabled {
  border-color: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  background-color: #f1f5f9;
}
.paginacion .btn-pag-nav i {
  font-size: 0.9rem;
}
.paginacion .pag-info {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: #475569;
  padding: 0 10px;
}
.paginacion .pag-info strong {
  color: var(--texto-principal, #1e293b);
  font-weight: 700;
}
@media (max-width: 600px) {
  .paginacion {
    gap: 10px;
  }
  .paginacion .btn-pag-nav {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
  .paginacion .pag-info {
    font-size: 0.9rem;
  }
}

:root {
  --lavanda-suave: #EDE9FE;
  --gris-medio: #6B7280;
  --gris-oscuro: #1F2937;
  --azul-claro: #60A5FA;
  --rosa-pastel: #F472B6;
  --purpura: #7C3AED;
  --blanco: var(--fondo-tarjetas);
  --fondo-principal: #F5F5FA;
}

footer {
  background-color: black;
  color: #F4EAE0;
  text-align: center;
  padding: 30px 0;
  box-shadow: 0 0 20px white;
  font-family: "Bebas Neue", serif;
  text-transform: uppercase;
}

.main-ver-mas {
  background-color: var(--fondo-principal, #F5F5FA);
  padding: 2rem 0;
  min-height: calc(100vh - 100px);
}
.main-ver-mas .ver-mas-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.main-ver-mas .ver-mas-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.main-ver-mas .ver-mas-header h2 {
  font-size: 1.8rem;
  color: var(--gris-oscuro, #1F2937);
  margin: 0;
}
.main-ver-mas .ver-mas-header .volver-btn {
  text-decoration: none;
  color: var(--purpura, #7C3AED);
  font-weight: bold;
  background: var(--blanco, #fff);
  padding: 8px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.main-ver-mas .ver-mas-header .volver-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.main-ver-mas #galeria-lista {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
}
.main-ver-mas .anime-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.main-ver-mas .anime-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.main-ver-mas .anime-card a {
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.main-ver-mas .anime-card a img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.main-ver-mas .anime-card a p {
  padding: 12px 10px;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===================================
  AUTH PAGES (Login / Registro)
  =================================== */
body.auth-page {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1F2937 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header simplificado en páginas de auth — solo logo, sin nav links */
header.auth-header {
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
header.auth-header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 16px;
  padding-bottom: 16px;
  /* Ocultar cualquier nav que quede en páginas auth */
}
header.auth-header .container nav {
  display: none;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem var(--site-px, 24px);
}

/* Split Layout */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 900px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}
@media (max-width: 700px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
}

/* Panel izquierdo: Branding */
.auth-brand {
  background: linear-gradient(160deg, #7C3AED 0%, #4f46e5 100%);
  padding: 3rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 700px) {
  .auth-brand {
    padding: 2rem 1.5rem;
  }
}

.auth-brand-inner {
  color: white;
}

.auth-brand-title {
  font-family: "Bebas Neue", serif;
  font-size: 3rem;
  line-height: 1.1;
  margin: 0 0 1rem 0;
  padding-top: 0;
}
.auth-brand-title span {
  font-size: 4rem;
  letter-spacing: 2px;
  opacity: 0.9;
}

.auth-brand-desc {
  font-size: 0.93rem;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 2rem;
}

.auth-brand-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}
.auth-feature-item i {
  font-size: 0.9rem;
  width: 16px;
  text-align: center;
}

/* Panel derecho: Formulario */
.auth-card {
  background: #fff;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 700px) {
  .auth-card {
    padding: 2rem 1.5rem;
  }
}
.auth-card h2 {
  margin: 0 0 0.3rem 0;
  font-size: 1.8rem;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  color: var(--gris-oscuro, #1F2937);
  padding-top: 0;
}

.auth-subtitle {
  color: var(--gris-medio, #6B7280);
  font-size: 0.88rem;
  margin: 0 0 1.8rem 0;
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.auth-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
}
.auth-field label i {
  color: var(--purpura, #7C3AED);
  margin-right: 4px;
  font-size: 0.78rem;
}
.auth-field input {
  padding: 11px 13px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.93rem;
  font-family: "Inter", sans-serif;
  color: #1F2937;
  background: #f9fafb;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  width: 100%;
}
.auth-field input::placeholder {
  color: #9ca3af;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--purpura, #7C3AED);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.password-wrapper {
  position: relative;
  display: flex;
}
.password-wrapper input {
  flex: 1;
  padding-right: 40px;
}
.password-wrapper .toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  font-size: 0.88rem;
  padding: 4px;
  transition: color 0.2s;
}
.password-wrapper .toggle-password:hover {
  color: var(--purpura, #7C3AED);
}

.auth-submit-btn {
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--purpura, #7C3AED);
  color: white;
  padding: 13px;
  border: none;
  border-radius: 8px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-family: "Inter", sans-serif;
}
.auth-submit-btn:hover {
  background: #6D28D9;
  transform: translateY(-1px);
}
.auth-submit-btn:active {
  transform: translateY(0);
}
.auth-submit-btn i {
  transition: transform 0.2s;
}
.auth-submit-btn:hover i {
  transform: translateX(4px);
}

.auth-link {
  text-align: center;
  margin-top: 1.4rem;
  font-size: 0.88rem;
  color: #6B7280;
}
.auth-link a {
  color: var(--purpura, #7C3AED);
  font-weight: 600;
  text-decoration: none;
}
.auth-link a:hover {
  text-decoration: underline;
}

.search-user-header {
  text-align: center;
  margin-bottom: 2rem;
}
.search-user-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--texto-principal, #1f2937);
  margin-bottom: 0.5rem;
}
.search-user-header p {
  color: #64748b;
  font-size: 1.1rem;
}

.search-user-bar {
  display: flex;
  align-items: center;
  background: white;
  padding: 0.5rem;
  border-radius: 9999px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  max-width: 600px;
  margin: 0 auto 3rem auto;
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.search-user-bar:focus-within {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: var(--purpura, #7c3aed);
}
.search-user-bar i {
  color: #94a3b8;
  font-size: 1.2rem;
  padding: 0 1rem;
}
.search-user-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.1rem;
  background: transparent;
  color: #334155;
  padding: 0.5rem 0;
}
.search-user-bar input::placeholder {
  color: #94a3b8;
}
.search-user-bar button {
  background: var(--purpura, #7c3aed);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.1s ease;
}
.search-user-bar button:hover {
  background: #6d28d9;
}
.search-user-bar button:active {
  transform: scale(0.98);
}

.user-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
  width: 100%;
}
.user-results-grid .no-results {
  grid-column: 1/-1;
  text-align: center;
  color: #64748b;
  font-size: 1.1rem;
  padding: 3rem 0;
}

.search-user-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding-bottom: 1rem;
  text-decoration: none;
  border: 1px solid #f1f5f9;
}
.search-user-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.search-user-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.search-user-card img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  margin: 1.5rem auto 1rem;
  border: 3px solid #f8fafc;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.search-user-card p {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--texto-principal, #1f2937);
  margin: 0;
}

.filtros-anime {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  border: 1px solid #f1f5f9;
}
.filtros-anime .search-input-wrapper {
  display: flex;
  align-items: center;
  background: #f8fafc;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}
.filtros-anime .search-input-wrapper:focus-within {
  background: white;
  border-color: var(--purpura, #7c3aed);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}
.filtros-anime .search-input-wrapper i {
  color: #94a3b8;
  font-size: 1.2rem;
  margin-right: 1rem;
}
.filtros-anime .search-input-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 1.1rem;
  color: #334155;
}
.filtros-anime .search-input-wrapper input::placeholder {
  color: #94a3b8;
}
.filtros-anime .filtros-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.filtros-anime .filtros-selects select {
  flex: 1;
  min-width: 150px;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background-color: white;
  color: #475569;
  font-size: 0.95rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}
.filtros-anime .filtros-selects select:focus {
  border-color: var(--purpura, #7c3aed);
}
.filtros-anime .filtros-selects button {
  flex: 0 0 auto;
  padding: 0.75rem 2rem;
}

#galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.admin-main {
  background-color: var(--fondo-principal, #f8fafc);
  flex: 1 0 auto;
}

.admin-layout {
  display: flex;
  gap: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  min-height: 500px;
}

.admin-sidebar {
  width: 250px;
  background: var(--gris-oscuro, #1e293b);
  color: white;
  padding: 2rem 0;
}
.admin-sidebar .admin-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.admin-sidebar .admin-menu li {
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  border-left: 4px solid transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-sidebar .admin-menu li:hover {
  background: rgba(255, 255, 255, 0.1);
}
.admin-sidebar .admin-menu li.active {
  background: var(--purpura, #8b5cf6);
  border-left-color: white;
  color: white;
}

.admin-content {
  flex: 1;
  padding: 2rem;
}
.admin-content h3 {
  font-family: "Inter", sans-serif;
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--texto-principal, #1f2937);
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 10px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Inter", sans-serif;
}
.admin-table th, .admin-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}
.admin-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.admin-table td {
  color: #334155;
  font-size: 0.95rem;
}
.admin-table tbody tr:hover {
  background: #f1f5f9;
}

.badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
}
.badge.admin-badge {
  background: #dbeafe;
  color: #1e3a8a;
}
.badge.user-badge {
  background: #f1f5f9;
  color: #475569;
}

.btn-action {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 5px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}
.btn-action.edit-pass {
  color: #3b82f6;
}
.btn-action.delete-user {
  color: #ef4444;
}
.btn-action:hover {
  background: #e2e8f0;
}
.btn-action:disabled {
  color: #cbd5e1;
  cursor: not-allowed;
}

.genres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
}
.genres-grid .genre-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  background: #f8fafc;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  transition: background 0.2s;
}
.genres-grid .genre-label:hover {
  background: #f1f5f9;
}
.genres-grid .genre-label input[type=checkbox] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.mt-20 {
  margin-top: 20px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.modal-content {
  background: white;
  width: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.modal-content .modal-header {
  background: var(--gris-oscuro, #1e293b);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-content .modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  border: none;
  padding: 0;
}
.modal-content .modal-header .close-modal {
  cursor: pointer;
  color: #94a3b8;
  transition: color 0.2s;
}
.modal-content .modal-header .close-modal:hover {
  color: white;
}
.modal-content .modal-body {
  padding: 20px;
  font-family: "Inter", sans-serif;
}
.modal-content .modal-body p {
  margin-top: 0;
  color: #475569;
}
.modal-content .modal-body .form-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
  margin-top: 10px;
  box-sizing: border-box;
}
.modal-content .modal-footer {
  padding: 15px 20px;
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
