/* ============================================
   REDAÇÃO PRO — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ===== VARIÁVEIS ===== */
:root {
  --primary:      #2B4DA8;
  --primary-dark: #1e3a7e;
  --primary-light:#3d6bdb;
  --secondary:    #4E9FD1;
  --accent:       #F5821F;
  --accent-dark:  #d96e14;
  --success:      #16a34a;
  --success-bg:   #dcfce7;
  --error:        #dc2626;
  --error-bg:     #fee2e2;
  --warning:      #d97706;
  --warning-bg:   #fef3c7;
  --dark:         #0f172a;
  --text:         #1e293b;
  --text-mid:     #475569;
  --text-light:   #94a3b8;
  --border:       #e2e8f0;
  --border-mid:   #cbd5e1;
  --bg:           #f1f5f9;
  --bg-card:      #ffffff;
  --white:        #ffffff;
  --shadow:       0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:    0 4px 12px rgba(0,0,0,.1);
  --shadow-lg:    0 10px 30px rgba(0,0,0,.12);
  --radius:       14px;
  --radius-sm:    8px;
  --radius-lg:    20px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.35; }
p  { line-height: 1.7; }

/* ===== LAYOUT ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ===== BOTÕES ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm); font-size: .95rem;
  font-weight: 600; font-family: inherit; cursor: pointer;
  border: 2px solid transparent; transition: all .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-dark); color: var(--white); }

.btn--accent { background: var(--accent); color: var(--white); box-shadow: 0 4px 14px rgba(245,130,31,.35); }
.btn--accent:hover { background: var(--accent-dark); color: var(--white); box-shadow: 0 6px 20px rgba(245,130,31,.4); }

.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: var(--white); }

.btn--ghost { background: transparent; color: var(--text-mid); border-color: var(--border); }
.btn--ghost:hover { background: var(--bg); color: var(--text); }

.btn--white { background: var(--white); color: var(--primary); }
.btn--white:hover { background: #f0f4ff; color: var(--primary); }

.btn--lg { padding: 16px 32px; font-size: 1.05rem; border-radius: var(--radius); }
.btn--sm { padding: 8px 16px; font-size: .85rem; }
.btn--full { width: 100%; }

.btn--loading { position: relative; color: transparent !important; }
.btn--loading::after {
  content: ''; position: absolute; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  padding: 24px;
}
.card--elevated { box-shadow: var(--shadow-md); }
.card--hover { transition: box-shadow .2s, transform .2s; cursor: pointer; }
.card--hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

/* ===== FORMULÁRIOS ===== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .875rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-size: .95rem; font-family: inherit;
  color: var(--text); background: var(--white); transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(43,77,168,.12); }
.form-input::placeholder { color: var(--text-light); }
.form-input--error { border-color: var(--error); }
.form-textarea { resize: vertical; min-height: 280px; line-height: 1.8; font-size: .95rem; }
.form-hint { font-size: .8rem; color: var(--text-light); margin-top: 5px; }
.form-error { font-size: .8rem; color: var(--error); margin-top: 5px; font-weight: 500; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 99px; font-size: .75rem; font-weight: 600;
}
.badge--blue   { background: #dbeafe; color: #1d4ed8; }
.badge--green  { background: var(--success-bg); color: var(--success); }
.badge--orange { background: #ffedd5; color: #c2410c; }
.badge--gray   { background: #f1f5f9; color: var(--text-mid); }

/* ===== ALERTAS ===== */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm); font-size: .9rem;
  border-left: 4px solid; margin-bottom: 20px;
}
.alert--error   { background: var(--error-bg); border-color: var(--error); color: #7f1d1d; }
.alert--success { background: var(--success-bg); border-color: var(--success); color: #14532d; }
.alert--info    { background: #dbeafe; border-color: var(--primary); color: #1e3a8a; }
.alert--warning { background: var(--warning-bg); border-color: var(--warning); color: #78350f; }

/* ===== DIVIDER ===== */
.divider { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.divider--text {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-light); font-size: .85rem; margin: 28px 0;
}
.divider--text::before, .divider--text::after {
  content: ''; flex: 1; border-top: 1px solid var(--border);
}

/* ===== NAVEGAÇÃO (app) ===== */
.app-nav {
  background: var(--white); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow);
}
.app-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 20px;
}
.app-nav__logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--primary); text-decoration: none; }
.app-nav__logo-icon { width: 36px; height: 36px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.app-nav__links { display: flex; align-items: center; gap: 4px; }
.app-nav__link {
  padding: 8px 14px; border-radius: var(--radius-sm); font-size: .9rem;
  font-weight: 500; color: var(--text-mid); transition: all .15s;
}
.app-nav__link:hover, .app-nav__link.active { background: #eff6ff; color: var(--primary); text-decoration: none; }
.app-nav__user { display: flex; align-items: center; gap: 10px; }
.app-nav__avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
}

/* ===== HEADER PÚBLICO ===== */
.pub-header {
  background: var(--white); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.pub-header__inner {
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 60%, var(--primary) 100%);
  color: var(--white); padding: 90px 0 80px; overflow: hidden; position: relative;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: 6px 14px; border-radius: 99px; font-size: .8rem; font-weight: 600; margin-bottom: 22px; }
.hero__title { margin-bottom: 20px; }
.hero__title span { color: #fbbf24; }
.hero__sub { font-size: 1.1rem; color: rgba(255,255,255,.8); margin-bottom: 32px; line-height: 1.7; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero__proof { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero__proof-item { display: flex; align-items: center; gap: 7px; font-size: .85rem; color: rgba(255,255,255,.7); }
.hero__proof-item svg { color: #fbbf24; }

/* ===== SCORE CARD (hero visual) ===== */
.score-preview {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg); padding: 28px; backdrop-filter: blur(8px);
}
.score-preview__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.score-preview__title { font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.7); }
.score-preview__total { font-size: 2.5rem; font-weight: 900; color: #fbbf24; }
.score-preview__total span { font-size: 1rem; color: rgba(255,255,255,.5); font-weight: 400; }
.score-preview__bars { display: flex; flex-direction: column; gap: 10px; }
.score-bar { display: flex; align-items: center; gap: 10px; }
.score-bar__label { font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.6); width: 28px; }
.score-bar__track { flex: 1; height: 8px; background: rgba(255,255,255,.1); border-radius: 4px; overflow: hidden; }
.score-bar__fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #4ade80, #22c55e); transition: width 1s ease; }
.score-bar__val { font-size: .75rem; font-weight: 700; color: #fff; width: 32px; text-align: right; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section--gray { background: var(--bg); }
.section--white { background: var(--white); }
.section__header { text-align: center; margin-bottom: 52px; }
.section__eyebrow { font-size: .8rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.section__title { margin-bottom: 14px; }
.section__sub { font-size: 1.05rem; color: var(--text-mid); max-width: 560px; margin: 0 auto; }

/* ===== STEPS ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { text-align: center; }
.step__icon {
  width: 64px; height: 64px; border-radius: 16px; background: #eff6ff;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
  font-size: 1.6rem;
}
.step__num {
  width: 28px; height: 28px; background: var(--primary); color: #fff;
  border-radius: 50%; font-size: .8rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.step__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.step__desc { font-size: .9rem; color: var(--text-mid); line-height: 1.65; }

/* ===== FEATURES ===== */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.feature { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 28px; transition: box-shadow .2s; }
.feature:hover { box-shadow: var(--shadow-md); }
.feature__icon { font-size: 2rem; margin-bottom: 14px; }
.feature__title { font-weight: 700; margin-bottom: 8px; }
.feature__desc { font-size: .9rem; color: var(--text-mid); }

/* ===== PRICING ===== */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 800px; margin: 0 auto; }
.pricing-card { border-radius: var(--radius-lg); border: 2px solid var(--border); padding: 36px; background: var(--white); position: relative; }
.pricing-card--featured { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(43,77,168,.08); }
.pricing-card__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 16px; border-radius: 99px; white-space: nowrap; }
.pricing-card__name { font-size: .85rem; font-weight: 600; color: var(--text-mid); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.pricing-card__price { font-size: 3rem; font-weight: 900; color: var(--dark); line-height: 1; margin-bottom: 6px; }
.pricing-card__price sup { font-size: 1.4rem; font-weight: 700; vertical-align: super; }
.pricing-card__price sub { font-size: 1rem; font-weight: 400; color: var(--text-mid); }
.pricing-card__desc { font-size: .9rem; color: var(--text-mid); margin-bottom: 24px; }
.pricing-card__features { margin-bottom: 28px; }
.pricing-card__feature { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; margin-bottom: 10px; }
.pricing-card__feature::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }
.pricing-card__feature--muted { color: var(--text-light); }
.pricing-card__feature--muted::before { content: '–'; color: var(--text-light); }

/* ===== TESTEMUNHOS ===== */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 24px; }
.testimonial__stars { color: #fbbf24; font-size: 1rem; margin-bottom: 12px; }
.testimonial__text { font-size: .9rem; color: var(--text); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testimonial__author { display: flex; align-items: center; gap: 10px; }
.testimonial__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.testimonial__name { font-weight: 600; font-size: .9rem; }
.testimonial__role { font-size: .78rem; color: var(--text-light); }

/* ===== LOGIN PAGE ===== */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-page__aside {
  background: linear-gradient(135deg, var(--dark), var(--primary-dark));
  padding: 60px; display: flex; flex-direction: column; justify-content: center;
  color: #fff;
}
.login-page__aside-title { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.login-page__aside-sub { color: rgba(255,255,255,.7); font-size: 1rem; margin-bottom: 40px; line-height: 1.7; }
.login-page__bullets { display: flex; flex-direction: column; gap: 14px; }
.login-page__bullet { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: rgba(255,255,255,.85); }
.login-page__bullet-icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; }
.login-page__main { background: var(--white); display: flex; align-items: center; justify-content: center; padding: 60px 40px; }
.login-box { width: 100%; max-width: 400px; }
.login-box__logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--primary); margin-bottom: 36px; }
.login-box__logo-icon { width: 40px; height: 40px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.login-box__title { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.login-box__sub { color: var(--text-mid); font-size: .95rem; margin-bottom: 32px; }
.login-box__demo { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: var(--radius-sm); padding: 12px 16px; font-size: .82rem; color: #1e40af; margin-bottom: 24px; }

/* ===== DASHBOARD ===== */
.dash-page { padding: 32px 0 60px; }
.dash-greeting { margin-bottom: 32px; }
.dash-greeting__title { font-size: 1.6rem; font-weight: 800; }
.dash-greeting__sub { color: var(--text-mid); }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 22px 24px; }
.stat-card__label { font-size: .8rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.stat-card__value { font-size: 2rem; font-weight: 800; color: var(--dark); line-height: 1; margin-bottom: 4px; }
.stat-card__sub { font-size: .8rem; color: var(--text-light); }
.stat-card--accent .stat-card__value { color: var(--primary); }
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.dash-section__title { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.history-list { display: flex; flex-direction: column; gap: 12px; }
.history-item { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--white); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.history-item__score { font-size: 1.3rem; font-weight: 800; color: var(--primary); min-width: 56px; }
.history-item__info { flex: 1; }
.history-item__tema { font-size: .9rem; font-weight: 600; margin-bottom: 2px; }
.history-item__date { font-size: .78rem; color: var(--text-light); }
.upgrade-card { background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: var(--radius); padding: 28px; color: #fff; }
.upgrade-card__title { font-weight: 800; font-size: 1.1rem; margin-bottom: 8px; }
.upgrade-card__sub { font-size: .88rem; color: rgba(255,255,255,.8); margin-bottom: 20px; line-height: 1.6; }
.upgrade-card__features { margin-bottom: 22px; }
.upgrade-card__feat { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: rgba(255,255,255,.9); margin-bottom: 8px; }
.progress-bar { height: 8px; background: rgba(0,0,0,.08); border-radius: 4px; margin-top: 6px; overflow: hidden; }
.progress-bar__fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width .5s ease; }
.progress-bar--warning .progress-bar__fill { background: linear-gradient(90deg, var(--warning), #f59e0b); }
.progress-bar--danger .progress-bar__fill { background: linear-gradient(90deg, var(--error), #ef4444); }

/* ===== EDITOR PAGE ===== */
.editor-page { padding: 32px 0 80px; }
.editor-header { margin-bottom: 28px; }
.editor-header__title { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.editor-header__sub { color: var(--text-mid); }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.editor-panel {}
.editor-panel__title { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.char-counter { font-size: .8rem; color: var(--text-light); margin-left: auto; font-weight: 400; }
.char-counter--ok { color: var(--success); }
.char-counter--warn { color: var(--warning); }
.editor-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.editor-tips { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 14px; }
.editor-tips__title { font-size: .8rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.editor-tips__list { font-size: .82rem; color: #1e40af; display: flex; flex-direction: column; gap: 5px; }
.editor-tips__item::before { content: '→ '; }

/* ===== RESULTADO ===== */
.result-panel {}
.result-placeholder { background: var(--white); border: 2px dashed var(--border); border-radius: var(--radius); padding: 60px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.result-placeholder__icon { font-size: 3rem; }
.result-placeholder__title { font-weight: 700; color: var(--text); }
.result-placeholder__sub { font-size: .9rem; color: var(--text-light); max-width: 260px; }
.result-loading { text-align: center; padding: 80px 32px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); }
.result-loading__spinner {
  width: 52px; height: 52px; border: 4px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin .8s linear infinite; margin: 0 auto 20px;
}
.result-loading__text { font-weight: 600; color: var(--text); margin-bottom: 6px; }
.result-loading__sub { font-size: .85rem; color: var(--text-light); }
.result-box { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.result-box__scores { padding: 24px; border-bottom: 1px solid var(--border); background: linear-gradient(135deg, #f0f4ff, #fff); }
.result-box__score-main { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.result-box__score-number { font-size: 3rem; font-weight: 900; color: var(--primary); line-height: 1; }
.result-box__score-number span { font-size: 1rem; color: var(--text-light); font-weight: 400; }
.result-box__score-label { font-size: .85rem; color: var(--text-mid); font-weight: 500; }
.result-box__competencias { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.comp-card { background: var(--white); border-radius: var(--radius-sm); border: 1px solid var(--border); padding: 10px; text-align: center; }
.comp-card__label { font-size: .7rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; margin-bottom: 4px; }
.comp-card__score { font-size: 1.2rem; font-weight: 800; }
.comp-card--high .comp-card__score { color: var(--success); }
.comp-card--mid .comp-card__score  { color: var(--warning); }
.comp-card--low .comp-card__score  { color: var(--error); }
.result-box__report { padding: 28px; }
.result-box__actions { padding: 20px 28px; border-top: 1px solid var(--border); display: flex; gap: 12px; background: var(--bg); flex-wrap: wrap; }

/* ===== MARKDOWN RENDER ===== */
.md-content h2 { font-size: 1.2rem; font-weight: 800; color: var(--dark); margin: 24px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.md-content h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin: 18px 0 8px; }
.md-content p { font-size: .9rem; color: var(--text); line-height: 1.75; margin-bottom: 12px; }
.md-content strong { font-weight: 700; color: var(--dark); }
.md-content em { font-style: italic; }
.md-content ul, .md-content ol { padding-left: 20px; margin-bottom: 12px; }
.md-content li { font-size: .9rem; color: var(--text); line-height: 1.7; margin-bottom: 5px; }
.md-content table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .85rem; }
.md-content th { background: var(--bg); font-weight: 700; padding: 10px 12px; text-align: left; border: 1px solid var(--border); }
.md-content td { padding: 9px 12px; border: 1px solid var(--border); line-height: 1.5; vertical-align: top; }
.md-content td:first-child { font-style: italic; color: var(--error); font-size: .82rem; }
.md-content hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.md-content blockquote { border-left: 3px solid var(--secondary); padding-left: 14px; color: var(--text-mid); font-style: italic; margin: 12px 0; }

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: rgba(255,255,255,.6); text-align: center; padding: 32px; font-size: .85rem; }
.footer a { color: rgba(255,255,255,.5); }
.footer__brand { font-weight: 800; color: var(--white); font-size: 1rem; margin-bottom: 6px; }

/* ===== UTILIDADES ===== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-mid); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ===== RESPONSIVO ===== */
@media (max-width: 900px) {
  .hero__inner       { grid-template-columns: 1fr; }
  .score-preview     { display: none; }
  .steps             { grid-template-columns: 1fr; }
  .testimonials      { grid-template-columns: 1fr; }
  .pricing           { grid-template-columns: 1fr; }
  .editor-grid       { grid-template-columns: 1fr; }
  .dash-stats        { grid-template-columns: repeat(2,1fr); }
  .dash-grid         { grid-template-columns: 1fr; }
  .login-page        { grid-template-columns: 1fr; }
  .login-page__aside { display: none; }
  .result-box__competencias { grid-template-columns: repeat(3,1fr); }
  .app-nav__links    { display: none; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .hero { padding: 60px 0; }
}
