/* ===========================
   RESPIRABOT v2 — Design System
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg-deep:    #020e0d;
  --bg-dark:    #061412;
  --bg-mid:     #0c2220;
  --bg-card:    rgba(10, 32, 30, 0.75);
  --bg-card-hover: rgba(14, 42, 40, 0.88);

  --border:     rgba(52, 211, 153, 0.10);
  --border-md:  rgba(52, 211, 153, 0.20);
  --border-hi:  rgba(52, 211, 153, 0.40);

  --text:       #edfff9;
  --text-sub:   #9ecfbf;
  --text-mute:  #5f938a;

  --green:      #22d3a4;
  --green-dark: #16a37a;
  --green-glow: rgba(34, 211, 164, 0.20);
  --green-pale: #7ef5d1;

  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  22px;
  --radius-xl:  30px;

  --shadow-card: 0 20px 60px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 40px rgba(34, 211, 164, 0.12);

  --font-body: 'Sora', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --sidebar-w: 260px;
  --topbar-h:  64px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100svh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font-family: var(--font-body); border: none; cursor: pointer; }
input  { font-family: var(--font-body); }
h1,h2,h3,h4 { line-height: 1.1; letter-spacing: -0.02em; }
p { line-height: 1.65; }

/* ===== BACKGROUND ===== */
.bg-layer {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.orb {
  position: absolute; border-radius: 999px; filter: blur(90px); opacity: .18;
}
.orb-1 { width: 500px; height: 500px; background: #22d3a4; top: -120px; left: -180px; }
.orb-2 { width: 400px; height: 400px; background: #0ea5a3; bottom: -100px; right: -140px; }
.orb-3 { width: 260px; height: 260px; background: #14b8a6; top: 40%; left: 55%; opacity: .09; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(52,211,153,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52,211,153,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ===== SCREEN ===== */
.screen { position: relative; z-index: 2; }

/* ==================
   LOGIN
================== */
.login-screen {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.login-wrap {
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: center;
}

/* Left side */
.login-left { padding: 16px 0; }

.brand-mark {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.brand-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #22e0a8 0%, #0ea875 100%);
  display: flex; align-items: center; justify-content: center;
  color: #04211e;
  flex-shrink: 0;
  box-shadow: 0 10px 28px rgba(22, 211, 160, 0.30);
}
.brand-icon svg { width: 28px; height: 28px; }
.brand-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}
.brand-name span { color: var(--green); }
.brand-sub {
  font-size: .78rem;
  color: var(--text-mute);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.login-headline h2 {
  font-size: clamp(3rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--text) 0%, var(--green-pale) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 18px;
}
.login-headline p {
  font-size: 1.05rem;
  color: var(--text-sub);
  max-width: 380px;
  line-height: 1.7;
}

.login-features {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feat {
  display: flex; align-items: center; gap: 12px;
  font-size: .92rem; color: var(--text-sub);
}
.feat-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--green); flex-shrink: 0;
  box-shadow: 0 0 8px var(--green);
}

/* Login card */
.login-card {
  background: rgba(8, 28, 27, 0.82);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-xl);
  padding: 30px 28px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.card-tabs {
  display: flex; gap: 4px;
  background: rgba(0,0,0,.25);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 28px;
}
.tab {
  flex: 1; padding: 10px;
  border-radius: 8px;
  font-size: .9rem; font-weight: 600;
  background: transparent;
  color: var(--text-mute);
  transition: all .2s ease;
}
.tab.active {
  background: var(--green);
  color: #04211e;
}

.form-fields { display: grid; gap: 18px; margin-bottom: 22px; }

.form-group label {
  display: block;
  font-size: .8rem; font-weight: 600;
  color: var(--text-sub);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.input-wrap {
  position: relative;
}
.input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-mute); display: flex; align-items: center;
}
.input-icon svg { width: 16px; height: 16px; }
.input-wrap input {
  width: 100%;
  padding: 13px 14px 13px 42px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.input-wrap input::placeholder { color: var(--text-mute); }
.input-wrap input:focus {
  border-color: var(--green);
  background: rgba(34,211,164,.05);
  box-shadow: 0 0 0 3px rgba(34,211,164,.12);
}

.cta-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #22e0a8 0%, #14b87e 100%);
  color: #03201d;
  font-size: 1rem; font-weight: 700;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  box-shadow: 0 14px 34px rgba(22, 198, 138, 0.28);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
  margin-bottom: 18px;
}
.cta-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 18px 40px rgba(22, 198, 138, 0.34);
}
.cta-btn:active { transform: translateY(0); }
.btn-arrow { font-size: 1.2rem; font-family: var(--font-mono); }

.form-switch { font-size: .88rem; color: var(--text-mute); text-align: center; }
.form-switch a { color: var(--green); text-decoration: none; font-weight: 600; }
.form-switch a:hover { text-decoration: underline; }

.hidden { display: none !important; }

/* ==================
   APP SHELL
================== */
.app-screen {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* Topbar */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  background: rgba(4, 16, 15, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}
.burger {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; transition: background .2s ease;
}
.burger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--text); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.burger:hover { background: rgba(255,255,255,.10); }

.topbar-brand { display: flex; align-items: center; gap: 10px; }
.tb-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #22e0a8 0%, #0ea875 100%);
  display: flex; align-items: center; justify-content: center;
  color: #04211e;
}
.tb-icon svg { width: 18px; height: 18px; }
.tb-name { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; }

.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-greeting { font-size: .85rem; color: var(--text-sub); font-weight: 500; }
.avatar-sm {
  width: 34px; height: 34px; border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #04211e; font-weight: 700; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}

/* Sidebar */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 150;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(2px);
}
.sidebar-overlay.show { display: block; }

.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  z-index: 200;
  background: rgba(6, 22, 21, 0.97);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  padding: 0;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.25,.46,.45,.94);
}
.sidebar.open { transform: translateX(0); }

.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 700; }
.sb-icon {
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, #22e0a8 0%, #0ea875 100%);
  color: #04211e; display: flex; align-items: center; justify-content: center;
}
.sb-icon svg { width: 18px; height: 18px; }
.sidebar-close {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: var(--text-sub); font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.sidebar-close:hover { background: rgba(255,255,255,.12); }

.sidebar-user {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px;
  margin: 12px 12px 0;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.avatar {
  width: 40px; height: 40px; border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #04211e; font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.avatar-name { font-weight: 600; font-size: .9rem; margin-bottom: 2px; }
.avatar-age  { font-size: .78rem; color: var(--text-mute); font-family: var(--font-mono); }

.sidebar-nav {
  flex: 1; padding: 16px 12px;
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
}
.nav-item {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 600;
  color: var(--text-sub);
  background: transparent;
  transition: background .18s ease, color .18s ease;
  text-align: left;
}
.nav-item .nav-icon { font-size: 1rem; width: 20px; text-align: center; }
.nav-item:hover { background: rgba(255,255,255,.05); color: var(--text); }
.nav-item.active { background: rgba(34,211,164,.10); color: var(--green); }

.signout-btn {
  margin: 0 12px 20px;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 600;
  color: var(--text-mute);
  background: rgba(255,60,60,.06);
  border: 1px solid rgba(255,60,60,.10);
  transition: background .18s ease, color .18s ease;
}
.signout-btn:hover { background: rgba(255,60,60,.12); color: #ff8080; }

/* Main content */
.main-content {
  flex: 1;
  margin-top: var(--topbar-h);
  padding: 32px 24px 48px;
  max-width: 1100px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.view { display: none; animation: fadeUp .3s ease; }
.active-view { display: block; }

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

/* Page header */
.page-header {
  margin-bottom: 32px;
}
.page-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--text) 0%, var(--green-pale) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 6px;
}
.page-header p { font-size: 1rem; color: var(--text-sub); }

/* ==================
   INICIO
================== */
.page-inicio { padding: 8px 0; }

.inicio-hero { margin-bottom: 40px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green);
  background: rgba(34,211,164,.08);
  border: 1px solid rgba(34,211,164,.20);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--text) 0%, var(--green-pale) 70%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 12px;
}
.hero-subtitle { font-size: 1.1rem; color: var(--text-sub); margin-bottom: 6px; }
.hero-meta { font-size: .92rem; color: var(--text-mute); font-family: var(--font-mono); }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.quick-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: left;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
  cursor: pointer;
  overflow: hidden;
}
.quick-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
  opacity: 0; transition: opacity .22s ease;
}
.quick-card:hover { transform: translateY(-4px); border-color: var(--border-md); background: var(--bg-card-hover); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.quick-card:hover::before { opacity: 1; }
.qc-icon { font-size: 1.5rem; color: var(--green); margin-bottom: 14px; }
.quick-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.quick-card p  { font-size: .85rem; color: var(--text-sub); line-height: 1.5; }
.qc-arrow {
  position: absolute; bottom: 18px; right: 20px;
  font-size: 1.1rem; color: var(--green); opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}
.quick-card:hover .qc-arrow { opacity: 1; transform: translateX(2px); }

.stats-row {
  display: flex; align-items: center; gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 20px 16px;
}
.stat-num {
  font-size: 1.8rem; font-weight: 800;
  font-family: var(--font-mono); color: var(--green);
}
.stat-label { font-size: .78rem; color: var(--text-mute); text-align: center; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ==================
   CONTENIDO
================== */
.organs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.organ-card {
  display: flex; gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  transition: border-color .22s ease, transform .22s ease, background .22s ease;
  animation: fadeUp .4s ease both;
  animation-delay: var(--delay, 0s);
}
.organ-card:hover {
  border-color: var(--border-md);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}
.organ-num {
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 700;
  color: var(--green); opacity: .7;
  padding-top: 3px; flex-shrink: 0;
}
.organ-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.organ-body p  { font-size: .85rem; color: var(--text-sub); margin-bottom: 12px; }
.organ-tag {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green);
  background: rgba(34,211,164,.08);
  border: 1px solid rgba(34,211,164,.18);
  border-radius: 999px;
  padding: 4px 10px;
  font-family: var(--font-mono);
}

/* ==================
   SIMULACIÓN
================== */
.sim-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.sim-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 320px;
}
.breath-ring {
  position: absolute; border-radius: 999px;
  border: 1px solid rgba(34,211,164,.15);
  transition: transform .6s ease;
}
.ring-1 { width: 180px; height: 180px; }
.ring-2 { width: 260px; height: 260px; border-color: rgba(34,211,164,.08); }
.ring-3 { width: 340px; height: 340px; border-color: rgba(34,211,164,.04); }

.breath-center {
  position: relative; z-index: 2;
  width: 140px; height: 140px; border-radius: 999px;
  background: radial-gradient(circle, rgba(34,211,164,.12) 0%, transparent 70%);
  display: flex; align-items: center; justify-content: center;
  transition: transform .6s ease;
}
.lungs-emoji {
  font-size: 4.5rem;
  transition: transform .6s cubic-bezier(.34,1.56,.64,1);
  display: block;
}

.sim-info {
  display: flex; flex-direction: column; gap: 20px;
}
.sim-status {
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); font-family: var(--font-mono);
}
.sim-phase { font-size: 1.4rem; font-weight: 700; color: var(--text); }

.breath-bar-wrap {
  height: 4px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden;
}
.breath-bar {
  height: 100%; width: 0%; border-radius: 2px;
  background: linear-gradient(90deg, var(--green), var(--green-pale));
  transition: width .5s ease;
}

.breath-btn {
  align-self: flex-start;
  padding: 14px 28px;
  background: linear-gradient(135deg, #22e0a8 0%, #14b87e 100%);
  color: #03201d;
  font-size: .95rem; font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(22, 198, 138, 0.25);
  transition: transform .2s ease, filter .2s ease;
}
.breath-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.breath-btn:active { transform: translateY(0); }
.breath-btn.animating { pointer-events: none; opacity: .8; }

.sim-facts {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.sim-fact { display: flex; justify-content: space-between; align-items: center; }
.fact-label { font-size: .82rem; color: var(--text-sub); }
.fact-val { font-size: .82rem; font-weight: 700; color: var(--green); font-family: var(--font-mono); }

/* ==================
   QUIZ
================== */
.quiz-container { max-width: 700px; }

.quiz-progress { margin-bottom: 24px; }
.progress-bar {
  height: 3px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden;
  margin-bottom: 8px;
}
.progress-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--green), var(--green-pale));
  transition: width .4s ease;
}
.progress-label { font-size: .78rem; font-family: var(--font-mono); color: var(--text-mute); }

.quiz-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 16px;
}
.q-text {
  font-size: 1.15rem; font-weight: 600;
  line-height: 1.5; margin-bottom: 24px;
}
.q-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .92rem; font-weight: 500;
  text-align: left;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.quiz-option:hover:not(:disabled) { background: rgba(255,255,255,.08); border-color: var(--border-md); transform: translateX(3px); }
.quiz-option.correct { background: rgba(34,211,164,.12); border-color: rgba(34,211,164,.4); color: var(--green-pale); }
.quiz-option.wrong   { background: rgba(255,80,80,.10);  border-color: rgba(255,80,80,.3);   color: #ff9a9a; }
.quiz-option:disabled { cursor: default; }

.quiz-feedback {
  min-height: 44px;
  display: flex; align-items: center; gap: 10px;
  font-size: .92rem; font-weight: 600;
  color: var(--green);
}
.quiz-feedback.wrong { color: #ff9a9a; }

.next-btn {
  padding: 13px 22px;
  background: rgba(34,211,164,.10);
  border: 1px solid var(--border-md);
  color: var(--green);
  font-size: .9rem; font-weight: 700;
  border-radius: var(--radius-md);
  transition: background .18s ease, transform .18s ease;
}
.next-btn:hover { background: rgba(34,211,164,.16); transform: translateY(-1px); }

/* ==================
   FAQ
================== */
.faq-list { max-width: 800px; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .2s ease;
  cursor: pointer;
}
.faq-item:hover { border-color: var(--border-md); }
.faq-item.open   { border-color: rgba(34,211,164,.22); }

.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  font-size: .95rem; font-weight: 600;
  gap: 16px;
}
.faq-arrow {
  font-size: 1.2rem; color: var(--green); flex-shrink: 0;
  transition: transform .25s ease;
}
.faq-item.open .faq-arrow { transform: rotate(45deg); }

.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 20px;
}
.faq-a p { font-size: .88rem; color: var(--text-sub); line-height: 1.7; }
.faq-item.open .faq-a { max-height: 200px; padding: 0 20px 18px; }

/* ==================
   CONFIGURACIÓN
================== */
.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  align-items: start;
}
.config-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  transition: border-color .2s ease;
}
.config-card:hover { border-color: var(--border-md); }
.config-icon {
  font-size: 1.3rem; color: var(--green);
  margin-bottom: 12px;
}
.config-card h4 { font-size: .88rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.config-card p  { font-size: .83rem; color: var(--text-sub); }

.profile-card {
  grid-row: span 2;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 10px;
  padding: 30px 20px;
}
.profile-avatar-big {
  width: 72px; height: 72px; border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #04211e; font-weight: 800; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
  box-shadow: 0 10px 28px rgba(22, 198, 138, 0.25);
}
.profile-card h3 { font-size: 1.2rem; font-weight: 700; }
.profile-card p  { font-size: .85rem; color: var(--text-sub); font-family: var(--font-mono); }
.profile-badge {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green);
  background: rgba(34,211,164,.08);
  border: 1px solid rgba(34,211,164,.20);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  margin-top: 4px;
}

/* ==================
   RESPONSIVE
================== */
@media (max-width: 860px) {
  .login-wrap {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .login-left { display: none; }

  .sim-container {
    grid-template-columns: 1fr;
  }
  .sim-visual { min-height: 240px; }
  .ring-1 { width: 140px; height: 140px; }
  .ring-2 { width: 200px; height: 200px; }
  .ring-3 { width: 260px; height: 260px; }
}

@media (max-width: 600px) {
  .main-content { padding: 24px 16px 40px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { flex-direction: column; }
  .stat-divider { width: 40px; height: 1px; }
  .organs-grid { grid-template-columns: 1fr; }
  .config-grid { grid-template-columns: 1fr 1fr; }
  .profile-card { grid-row: span 1; }
  .login-card { padding: 22px 18px; }
}

@media (max-width: 380px) {
  .quick-grid { grid-template-columns: 1fr; }
  .config-grid { grid-template-columns: 1fr; }
}
