/* ═══════════════════════════════════════════════════════════
   SASIM — Estilos principales (main.css)
   Importa variables.css para usar los design tokens.
   ═══════════════════════════════════════════════════════════ */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--fb);
  background: var(--bg);
  color: var(--tp);
  line-height: 1.6;
  overflow-x: hidden;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── Scrollbar personalizado ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-el); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--acc); }


/* ═══════════════════════════════════════════
   NAVEGACIÓN
   ═══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--fd);
  font-weight: 900;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  transition: var(--tr);
}
.nav-logo:hover { color: var(--acc); }

.logo-mark {
  width: 38px; height: 38px;
  border-radius: 9px;
  flex-shrink: 0;
  background: var(--acc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fd);
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--bg);
  letter-spacing: -0.05em;
  box-shadow: 0 4px 16px var(--acc-g);
}

.nav-links { display: flex; gap: 3px; }

.nav-link {
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--tm);
  transition: var(--tr);
}
.nav-link:hover { color: var(--tp); background: var(--bg-el); }
.nav-link.active { color: var(--acc); background: var(--acc-s); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-admin-link {
  display: none;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--danger);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.btn-auth {
  padding: 8px 20px;
  border-radius: 9px;
  background: var(--acc);
  color: var(--bg);
  font-weight: 800;
  font-size: 0.88rem;
  transition: var(--tr);
}
.btn-auth:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.nav-profile-photo {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--acc);
  cursor: pointer;
  transition: var(--tr);
  object-fit: cover;
}
.nav-profile-photo:hover {
  border-color: var(--tp);
  transform: scale(1.08);
}

.btn-logout-nav {
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--tm);
  transition: var(--tr);
}
.btn-logout-nav:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.btn-subscribe {
  display: none;
  padding: 8px 20px;
  border-radius: 9px;
  background: linear-gradient(135deg, #009ee3, #00b4d8);
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
}


/* ═══════════════════════════════════════════
   SISTEMA DE PÁGINAS (SPA)
   ═══════════════════════════════════════════ */
.page {
  display: none;
  min-height: 100vh;
  padding-top: var(--nav-h);
}
.page.active {
  display: block;
  animation: fadeUp 0.4s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}


/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 32px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% -5%, rgba(232, 168, 56, 0.09) 0%, transparent 70%),
    radial-gradient(ellipse 45% 45% at 85% 85%, rgba(59, 130, 246, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 45% 45% at 15% 85%, rgba(34, 197, 94, 0.05) 0%, transparent 60%);
}

/* Textura de grano sutil */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border: 1px solid var(--bglow);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 30px;
  background: var(--acc-s);
  animation: fadeUp 0.6s ease both;
}

.hero-title {
  font-family: var(--fd);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 6px;
  animation: fadeUp 0.5s 0.1s ease both;
}

.hero-title .grad {
  color: var(--acc);
}

.hero-tagline {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--tm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 28px;
  animation: fadeUp 0.5s 0.15s ease both;
}

/* Fila del acrónimo S-A-S-I-M */
.acro-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  animation: fadeUp 0.5s 0.2s ease both;
}

.aw {
  padding: 7px 15px;
  border-radius: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--tr);
  display: flex;
  align-items: center;
  gap: 6px;
}
.aw strong { color: var(--acc); font-size: 1rem; }
.aw:hover {
  border-color: var(--bglow);
  background: var(--acc-s);
  transform: translateY(-3px);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--tm);
  max-width: 540px;
  margin: 0 auto 44px;
  line-height: 1.75;
  animation: fadeUp 0.5s 0.25s ease both;
}
.hero-desc em {
  color: var(--tp);
  font-style: normal;
  font-weight: 700;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.5s 0.3s ease both;
}

.btn-p {
  padding: 14px 32px;
  background: var(--acc);
  color: var(--bg);
  border-radius: 9px;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px var(--acc-g);
  transition: var(--tr);
}
.btn-p:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--acc-g);
}

.btn-s {
  padding: 14px 32px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--tm);
  transition: var(--tr);
}
.btn-s:hover {
  border-color: var(--bglow);
  color: var(--tp);
  background: var(--bg-el);
}


/* ═══════════════════════════════════════════
   ESTADÍSTICAS
   ═══════════════════════════════════════════ */
.stats {
  display: flex;
  justify-content: center;
  padding: 40px 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 60px;
}

.stat {
  flex: 1;
  max-width: 200px;
  text-align: center;
  padding: 24px 16px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }

.stat-n {
  font-family: var(--fd);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--acc);
  letter-spacing: -0.03em;
}

.stat-l {
  font-size: 0.78rem;
  color: var(--tm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}


/* ═══════════════════════════════════════════
   GALERÍA / SLIDER
   ═══════════════════════════════════════════ */
.gal-section { padding: 80px 0 100px; }

.sec-header {
  padding: 0 40px;
  margin-bottom: 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.sec-title {
  font-family: var(--fd);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.sec-title span { color: var(--acc); }

.sec-link {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--acc);
  opacity: 0.8;
  transition: var(--tr);
}
.sec-link:hover { opacity: 1; }

.slider-wrap {
  position: relative;
  overflow: hidden;
  padding: 0 40px;
}

.slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Tarjeta de contenido (usada en slider y grid) ── */
.scard {
  flex: 0 0 310px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--tr);
  cursor: pointer;
}
.scard:hover {
  transform: translateY(-6px);
  border-color: var(--bglow);
  box-shadow: 0 0 40px var(--acc-g);
}

.sthumb {
  width: 100%; height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-el) 0%, #1a1a2e 100%);
}
.sthumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--bg-card) 100%);
}

.play-btn {
  position: absolute;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(232, 168, 56, 0.88);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: var(--tr);
}
.scard:hover .play-btn {
  background: var(--acc);
  transform: scale(1.1);
}

.sinfo { padding: 18px 20px; }

/* Tags de categoría */
.stag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 9px;
}
.t-d { background: var(--tag-dibujo-bg); color: var(--tag-dibujo-txt); }
.t-i { background: var(--tag-ia-bg);     color: var(--tag-ia-txt); }
.t-f { background: var(--tag-familia-bg); color: var(--tag-familia-txt); }
.t-t { background: var(--tag-tech-bg);    color: var(--tag-tech-txt); }

.stitle {
  font-family: var(--fd);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 7px;
  line-height: 1.3;
}

.sdesc {
  font-size: 0.8rem;
  color: var(--tm);
  line-height: 1.5;
  margin-bottom: 14px;
}

.smeta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--tf);
}

/* Controles del slider */
.sctrl {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 40px 0;
}

.sbtn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tm);
  transition: var(--tr);
  font-size: 1rem;
}
.sbtn:hover:not(:disabled) {
  border-color: var(--bglow);
  color: var(--acc);
  background: var(--acc-s);
}
.sbtn:disabled { opacity: 0.25; cursor: not-allowed; }

.dots { display: flex; gap: 5px; }
.dot {
  width: 6px; height: 6px;
  border-radius: 3px;
  background: var(--bg-el);
  transition: var(--tr);
  cursor: pointer;
}
.dot.on { width: 20px; background: var(--acc); }


/* ═══════════════════════════════════════════
   MODAL DE VIDEO
   ═══════════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: var(--tr);
}
.modal.open { opacity: 1; pointer-events: all; }

.mbox {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 820px;
  overflow: hidden;
  transform: scale(0.95);
  transition: var(--tr);
}
.modal.open .mbox { transform: scale(1); }

.mhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.mtitle {
  font-family: var(--fd);
  font-size: 1.05rem;
  font-weight: 700;
}

.mclose {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-el);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tm);
  font-size: 1.1rem;
  transition: var(--tr);
}
.mclose:hover { background: rgba(239, 68, 68, 0.2); color: var(--danger); }

.mvideo {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.minfo { padding: 18px 22px; }
.mdesc { font-size: 0.88rem; color: var(--tm); line-height: 1.6; }


/* ═══════════════════════════════════════════
   PÁGINA DE VIDEOS
   ═══════════════════════════════════════════ */
.vpage {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 32px 100px;
}

.vgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.vgrid .scard { flex: none; width: auto; }

/* Barra de búsqueda y filtros */
.video-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  align-items: center;
}

.video-search {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #333;
  background: var(--bg-el);
  color: var(--tp);
  font-family: var(--fb);
  font-size: 0.9rem;
  outline: none;
  transition: var(--tr);
}
.video-search:focus {
  border-color: var(--bglow);
  box-shadow: 0 0 0 3px var(--acc-s);
}

.filter-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #333;
  background: transparent;
  color: #ccc;
  font-size: 0.85rem;
  font-weight: 400;
  cursor: pointer;
  transition: var(--tr);
}
.filter-btn:hover { border-color: var(--bglow); color: var(--tp); }
.filter-btn.active {
  border-color: var(--acc);
  background: var(--acc);
  color: var(--bg);
  font-weight: 700;
}


/* ═══════════════════════════════════════════
   BLOG / POSTS
   ═══════════════════════════════════════════ */
.bpage {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.bhead {
  text-align: center;
  margin-bottom: 44px;
}
.bhead h2 {
  font-family: var(--fd);
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.bhead p { color: var(--tm); }

/* Compositor de posts */
.composer {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 28px;
  transition: var(--tr);
}
.composer:focus-within {
  border-color: var(--bglow);
  box-shadow: 0 0 0 3px var(--acc-s);
}

.ctop { display: flex; gap: 13px; align-items: flex-start; }

.cav {
  width: 42px; height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--acc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--bg);
}

.cta {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--tp);
  font-family: var(--fb);
  font-size: 0.97rem;
  line-height: 1.6;
  resize: none;
  outline: none;
  min-height: 72px;
}
.cta::placeholder { color: var(--tf); }

.cbottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.ctags { display: flex; gap: 6px; flex-wrap: wrap; }

.tbtn {
  padding: 4px 11px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--tm);
  transition: var(--tr);
}
.tbtn:hover,
.tbtn.on {
  border-color: var(--bglow);
  color: var(--acc);
  background: var(--acc-s);
}

.btn-post {
  padding: 8px 20px;
  background: var(--acc);
  color: var(--bg);
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.83rem;
  transition: var(--tr);
}
.btn-post:hover:not(:disabled) {
  filter: brightness(1.15);
  transform: translateY(-1px);
}
.btn-post:disabled { opacity: 0.35; cursor: not-allowed; }

/* Feed de posts */
.feed { display: flex; flex-direction: column; gap: 2px; }

.pcard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 22px;
  transition: var(--tr);
  animation: fadeUp 0.35s ease both;
}
.pcard:hover {
  border-color: rgba(255, 255, 255, 0.11);
  background: var(--bg-el);
}

.phead {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
}

.pav {
  width: 38px; height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--acc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--bg);
}

.pmeta { flex: 1; }
.pauthor {
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.vbadge {
  width: 15px; height: 15px;
  background: var(--acc);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  color: var(--bg);
}

.ptime { font-size: 0.74rem; color: var(--tf); margin-top: 1px; }

.ptag {
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.pbody {
  font-size: 0.93rem;
  line-height: 1.72;
  color: var(--tp);
  margin-bottom: 14px;
  white-space: pre-wrap;
}
.pbody.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pmore {
  font-size: 0.8rem;
  color: var(--acc);
  font-weight: 700;
  cursor: pointer;
  display: none;
}
.pmore.show { display: inline; }

.pacts { display: flex; gap: 16px; }

.act {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.77rem;
  color: var(--tf);
  padding: 4px 8px;
  border-radius: 7px;
  transition: var(--tr);
}
.act:hover { color: var(--acc); background: var(--acc-s); }
.act.liked { color: var(--danger); }

/* Estado vacío */
.empty {
  text-align: center;
  padding: 70px 24px;
  color: var(--tf);
}
.empty .ei { font-size: 2.8rem; margin-bottom: 14px; }
.empty h3 {
  font-family: var(--fd);
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--tm);
}
.empty p { font-size: 0.88rem; }

/* Premium badge en thumbnails */
.premium-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0, 0, 0, 0.7);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  z-index: 2;
}


/* ═══════════════════════════════════════════
   PÁGINA DE PERFIL
   ═══════════════════════════════════════════ */
.profile-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid var(--acc);
  object-fit: cover;
  flex-shrink: 0;
}

.profile-info { flex: 1; }

.profile-name {
  font-family: var(--fd);
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.profile-email {
  font-size: 0.85rem;
  color: var(--tm);
  margin-bottom: 8px;
}

.profile-role {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.role-admin-badge { background: rgba(232, 168, 56, 0.2); color: var(--acc); }
.role-sub-badge   { background: rgba(34, 197, 94, 0.15); color: var(--acc3); }
.role-visitor-badge { background: var(--bg-el); color: var(--tm); }

/* Secciones del perfil */
.profile-section {
  margin-bottom: 32px;
}

.profile-section-title {
  font-family: var(--fd);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-section-title span { color: var(--acc); }

/* Grid de tarjetas de progreso */
.progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.progress-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: var(--tr);
}
.progress-card:hover { border-color: var(--bglow); }

.progress-card-title {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.progress-bar-wrap {
  height: 6px;
  background: var(--bg-el);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--acc);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.progress-label {
  font-size: 0.75rem;
  color: var(--tm);
  display: flex;
  justify-content: space-between;
}

.progress-completed {
  color: var(--acc3);
  font-weight: 700;
}

/* Configuración */
.settings-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.setting-row:last-child { border-bottom: none; }

.setting-label {
  font-weight: 700;
  font-size: 0.92rem;
}

.setting-desc {
  font-size: 0.8rem;
  color: var(--tm);
  margin-top: 2px;
}

/* Toggle switch para el tema */
.theme-toggle {
  width: 52px; height: 28px;
  background: var(--bg-el);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  transition: var(--tr);
  flex-shrink: 0;
}
.theme-toggle::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: var(--acc);
  border-radius: 50%;
  transition: var(--tr);
}
.theme-toggle.light::after {
  left: 27px;
}
.theme-toggle.light {
  background: var(--acc-s);
  border-color: var(--acc);
}

/* Empty state para perfil */
.profile-empty {
  text-align: center;
  padding: 40px;
  color: var(--tf);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.profile-empty-icon { font-size: 2rem; margin-bottom: 10px; }
.profile-empty-text { font-size: 0.88rem; color: var(--tm); }

/* Botón de acción en perfil */
.profile-action {
  padding: 8px 20px;
  background: var(--acc);
  color: var(--bg);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--tr);
  display: inline-block;
  margin-top: 12px;
}
.profile-action:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 700px) {
  .nav { padding: 0 14px; }
  .nav-links .nav-link { padding: 6px 10px; font-size: 0.78rem; }

  .hero { padding: 50px 18px 40px; }

  .stats { flex-wrap: wrap; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }

  .sec-header,
  .slider-wrap,
  .sctrl { padding-left: 18px; padding-right: 18px; }

  .scard { flex: 0 0 270px; }

  .vpage { padding: 50px 18px 80px; }

  .bpage { padding: 40px 14px 80px; }

  .profile-header { flex-direction: column; text-align: center; gap: 16px; }
  .profile-page { padding: 40px 14px 80px; }
  .progress-grid { grid-template-columns: 1fr; }
  .setting-row { flex-direction: column; gap: 12px; align-items: flex-start; }
}
