/* ================================================
   TESTMA — styles.css
   Minimalista, mobile-first, sin frameworks
   ================================================ */

/* ------------------------------------------------
   1. CUSTOM PROPERTIES
------------------------------------------------- */
:root {
  --bg:           #F5F4F0;
  --surface:      #FFFFFF;
  --text:         #111110;
  --text-muted:   #6B6A65;
  --accent:       #1A6BFF;
  --accent-light: #EEF3FF;
  --border:       #E2E1DC;
  --green:        #18A558;
  --green-light:  #EDFAF3;
  --red:          #E53E3E;
  --red-light:    #FFF5F5;

  --font-base:  'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono:  'DM Mono', 'Fira Code', monospace;

  --radius-sm:  6px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);

  --transition: 200ms ease;

  --nav-h: 64px;
  --container: 1140px;
  --container-narrow: 740px;
}

/* ------------------------------------------------
   2. RESET & BASE
------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ------------------------------------------------
   3. TYPOGRAPHY SCALE
------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.2rem; font-weight: 500; }

p { max-width: 64ch; }

.font-mono { font-family: var(--font-mono); }

/* ------------------------------------------------
   4. LAYOUT UTILITIES
------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section-header {
  max-width: var(--container-narrow);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
  color: var(--text);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 300;
}

.text-accent { color: var(--accent); }

/* ------------------------------------------------
   5. BUTTONS
------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-base);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius-md);
  padding: 0.7rem 1.4rem;
  border: 1.5px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), opacity var(--transition);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover { opacity: 0.88; }

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn--ghost:hover { color: var(--text); background: rgba(0,0,0,.04); }

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

.btn--sm { font-size: 0.82rem; padding: 0.55rem 1.1rem; }
.btn--lg { font-size: 1rem; padding: 0.85rem 1.75rem; border-radius: var(--radius-lg); }
.btn--full { width: 100%; }

/* ------------------------------------------------
   6. NAVIGATION
------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 244, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__logo {
  flex-shrink: 0;
  margin-right: auto;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover {
  color: var(--text);
  background: rgba(0,0,0,.04);
}

.nav__actions { flex-shrink: 0; }


/* ------------------------------------------------
   7. BADGE
------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--green);
  background: var(--green-light);
  border: 1px solid rgba(24, 165, 88, 0.2);
  border-radius: 99px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1.5rem;
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

/* ------------------------------------------------
   8. HERO
------------------------------------------------- */
.hero {
  padding-block: clamp(4rem, 8vw, 6.5rem);
  overflow: hidden;
  position: relative;

  /* Base cálida tipo papel cuadriculado */
  background-color: #F7F5EC;

  /* Cuadrícula: líneas menores cada 20px + líneas mayores cada 100px (cada 5 cuadros) */
  background-image:
    linear-gradient(to right,  rgba(180,165,120,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(180,165,120,.07) 1px, transparent 1px),
    linear-gradient(to right,  rgba(160,145,100,.11) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(160,145,100,.11) 1px, transparent 1px);
  background-size:
    20px  20px,
    20px  20px,
    100px 100px,
    100px 100px;
}

/* Fade inferior: disuelve la cuadrícula antes del borde, sin afectar el contenido */
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent 0%, #F7F5EC 100%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content { max-width: 560px; }

.hero__headline {
  margin-bottom: 1.25rem;
}

.hero__description {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero__disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: none;
}

/* ------------------------------------------------
   9. HERO MOCKUP WINDOW
------------------------------------------------- */
.hero__visual { width: 100%; }

.mockup-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup-dot--red    { background: #FF5F57; }
.mockup-dot--yellow { background: #FEBC2E; }
.mockup-dot--green  { background: #28C840; }

.mockup-url {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.mockup-content { padding: 1.25rem; }

.mockup-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.mockup-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.15rem;
}

.mockup-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  max-width: none;
}

/* Live badge */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--red);
  background: var(--red-light);
  border: 1px solid rgba(229, 62, 62, 0.2);
  border-radius: 99px;
  padding: 0.25rem 0.65rem;
  flex-shrink: 0;
}

.live-dot {
  width: 5px;
  height: 5px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

/* Stats row */
.mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.75rem;
  text-align: center;
}

.stat-card--accent {
  background: var(--accent-light);
  border-color: rgba(26, 107, 255, 0.2);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
  max-width: none;
}

.stat-unit { font-size: 0.9rem; }

.stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  max-width: none;
}

/* Responses list */
.mockup-responses { display: flex; flex-direction: column; gap: 0.35rem; }

.response-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}

.response-row--pass { background: var(--green-light); border-color: rgba(24,165,88,.12); }
.response-row--fail { background: var(--red-light); border-color: rgba(229,62,62,.12); }

.response-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

.response-info { flex: 1; min-width: 0; }

.response-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  max-width: none;
  line-height: 1.2;
}

.response-time {
  font-size: 0.68rem;
  color: var(--text-muted);
  max-width: none;
}

.response-score {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 500;
  flex-shrink: 0;
}
.response-score--pass { color: var(--green); }
.response-score--fail { color: var(--red); }

/* ------------------------------------------------
   10. PROBLEM SECTION
------------------------------------------------- */
.problem {
  background: var(--surface);
  border-block: 1px solid var(--border);
  padding-block: 3.5rem;
}

.problem__inner {
  max-width: var(--container-narrow);
}

.problem__label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: none;
}

.problem__quote {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--text);
  font-style: italic;
  border-left: 3px solid var(--border);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  max-width: 60ch;
}

.problem__attribution {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-left: 1.5rem;
  max-width: none;
}

/* ------------------------------------------------
   11. HOW IT WORKS — STEPS
------------------------------------------------- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: steps;
}

.step {
  display: grid;
  grid-template-columns: 48px 44px 1fr;
  gap: 0 1.25rem;
  align-items: start;
  padding-block: 2.25rem;
  border-top: 1px solid var(--border);
  position: relative;
}

.step:last-child { border-bottom: 1px solid var(--border); }

.step__number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  padding-top: 2px;
  letter-spacing: 0.04em;
}

.step__icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border: 1px solid rgba(26,107,255,.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.step__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.step__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.65;
  max-width: 54ch;
}

/* ------------------------------------------------
   12. INTERFACE MOCKUP (UI Panel)
------------------------------------------------- */
.interface__mockup {
  display: grid;
  grid-template-columns: 180px 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 440px;
}

/* Sidebar */
.ui-sidebar {
  background: #FAFAF8;
  border-right: 1px solid var(--border);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ui-logo {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  padding: 0 0.25rem;
}

.ui-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ui-nav__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted);
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.ui-nav__item:hover { background: var(--bg); color: var(--text); }
.ui-nav__item--active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 500;
}

/* Main panel */
.ui-main {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-x: auto;
}

.ui-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.ui-course-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.15rem;
  max-width: none;
}

.ui-course-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  max-width: none;
}

.ui-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.ui-btn {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  background: var(--surface);
  cursor: pointer;
  transition: background var(--transition);
}
.ui-btn:hover { background: var(--bg); }

/* Stats */
.ui-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.ui-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem;
}

.ui-stat--green { background: var(--green-light); border-color: rgba(24,165,88,.2); }

.ui-stat__value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
  color: var(--text);
  max-width: none;
}

.ui-stat__unit { font-size: 1rem; }

.ui-stat__label {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  max-width: none;
}

/* Progress */
.ui-progress-section {}

.ui-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  max-width: none;
}

.ui-progress-bar {
  height: 5px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.ui-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 1s ease;
}

/* Table */
.ui-table { font-size: 0.82rem; }

.ui-table-head {
  display: grid;
  grid-template-columns: 1fr 60px 55px 90px;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}

.ui-table-row {
  display: grid;
  grid-template-columns: 1fr 60px 55px 90px;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid rgba(226,225,220,.5);
  transition: background var(--transition);
}
.ui-table-row:hover { background: var(--bg); }
.ui-table-row--highlight { background: rgba(229,62,62,.04); }
.ui-table-row--pending { opacity: 0.7; }

.ui-worker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
}

.ui-avatar {
  width: 24px;
  height: 24px;
  background: var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

.ui-time { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.78rem; }

.ui-grade {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.ui-grade--muted { color: var(--text-muted); }

.ui-status {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  width: fit-content;
}
.ui-status--pass    { background: var(--green-light); color: var(--green); }
.ui-status--fail    { background: var(--red-light); color: var(--red); }
.ui-status--pending { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }

/* ------------------------------------------------
   13. FEATURES CARDS
------------------------------------------------- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--border);
}

.feature-card {
  background: var(--surface);
  padding: 2rem;
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.feature-card__icon--accent {
  background: var(--accent-light);
  border-color: rgba(26,107,255,.15);
  color: var(--accent);
}

.feature-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.feature-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 1rem;
  max-width: 42ch;
}

.feature-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.feature-card__list li {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-card__list li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ------------------------------------------------
   13b. LOGO IMAGE (nav & footer)
------------------------------------------------- */
.logo-img {
  height: 42px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
  border-radius: var(--radius-md);
}

/* ------------------------------------------------
   13c. BRAND VISUAL
------------------------------------------------- */
.brand-visual {
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

.brand-visual__inner {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.brand-visual__img {
  width: 100%;
  height: clamp(200px, 35vw, 480px);
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ------------------------------------------------
   14. PRICING SUMMARY (index)
------------------------------------------------- */
.pricing {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.pricing-summary {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.pricing-summary__factors {
  display: flex;
  flex-direction: column;
  divide-color: var(--border);
}

.pricing-factor {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}

.pricing-factor__icon {
  width: 36px;
  height: 36px;
  background: var(--accent-light);
  border: 1px solid rgba(26,107,255,.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-factor__title {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  max-width: none;
}

.pricing-factor__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: none;
}

.pricing-summary__cta {
  background: var(--bg);
  padding: 1.75rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.pricing-summary__note {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: none;
}

.pricing-summary__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ------------------------------------------------
   15. FAQ
------------------------------------------------- */
.faq__list {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.25rem;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  gap: 1rem;
}

.faq__question::-webkit-details-marker { display: none; }

.faq__question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

details[open] .faq__question::after {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 1.25rem 1.1rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ------------------------------------------------
   16. CTA FINAL
------------------------------------------------- */
.cta-final {
  background: var(--text);
  color: #fff;
}

.cta-final__inner {
  max-width: var(--container-narrow);
  text-align: center;
  margin-inline: auto;
}

.cta-final__eyebrow {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 1rem;
  max-width: none;
}

.cta-final__title {
  color: #fff;
  margin-bottom: 1.25rem;
}

.cta-final__desc {
  font-size: 1rem;
  color: rgba(255,255,255,.6);
  font-weight: 300;
  margin-bottom: 2rem;
  max-width: 54ch;
  margin-inline: auto;
}

.cta-final__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.cta-final__note {
  font-size: 0.78rem;
  color: rgba(255,255,255,.4);
  max-width: none;
}

/* CTA section button overrides */
.cta-final .btn--primary {
  background: #fff;
  color: var(--text);
  border-color: #fff;
}
.cta-final .btn--primary:hover { opacity: 0.9; }

/* ------------------------------------------------
   16. FOOTER
------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 3rem;
  background: var(--bg);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 4rem;
  align-items: flex-start;
}

.footer__brand { flex: 1; min-width: 200px; }

.footer__logo { display: inline-block; margin-bottom: 0.75rem; }

.footer__tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 0.6rem;
  max-width: 30ch;
}

.footer__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: none;
}

.footer__nav {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer__col-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  max-width: none;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer__link {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer__link:hover { color: var(--text); }

/* ------------------------------------------------
   17. ANIMATIONS
------------------------------------------------- */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.animate-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-in--delay { transition-delay: 0.15s; }

/* ------------------------------------------------
   18. RESPONSIVE — TABLET (≥ 768px)
------------------------------------------------- */
@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .hero__content { max-width: none; }

  .hero__cta { flex-wrap: nowrap; }

  .step {
    grid-template-columns: 60px 44px 1fr;
    gap: 0 1.5rem;
  }

  .cta-final__actions { flex-direction: row; justify-content: center; }
}

/* ------------------------------------------------
   19. RESPONSIVE — NAV MOBILE
   En móvil: sólo logo + botón, links ocultos
------------------------------------------------- */
@media (max-width: 767px) {
  .nav__links { display: none; }
}

@media (min-width: 768px) {
  .nav__links { display: flex; }
}

/* ------------------------------------------------
   21. RESPONSIVE — SMALL MOBILE (< 480px)
------------------------------------------------- */
@media (max-width: 479px) {
  .mockup-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .interface__mockup {
    grid-template-columns: 1fr;
  }

  .ui-sidebar { display: none; }

  .ui-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .ui-table-head,
  .ui-table-row {
    grid-template-columns: 1fr 55px 70px;
  }

  /* Hide "hora" column on very small screens */
  .ui-table-head span:nth-child(2),
  .ui-table-row .ui-time { display: none; }
}

/* ------------------------------------------------
   22. ACCESSIBILITY
------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .animate-in {
    opacity: 1;
    transform: none;
  }
}
