/* DCS Consulting — hoja de estilos global */

@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/Geist-Variable.woff2") format("woff2-variations"),
       url("../assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0e27;
  --bg-alt: #10163f;
  --bg-card: #141a45;
  --border: #262c5c;
  --text: #f5f6fa;
  --text-muted: #a9adc7;
  --orange: #f2994a;
  --purple: #a866d8;
  --blue: #4a68f0;
  --gradient: linear-gradient(120deg, var(--orange), var(--purple) 55%, var(--blue));
  --radius: 14px;
  --max-width: 1160px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "IBM Plex Serif", Georgia, serif;
  --header-bg: rgba(10, 14, 39, 0.92);
  --card-shadow: rgba(10, 14, 39, 0.4);
  --danger: #ef5a5a;
  --warning: #f2994a;
  --success: #3ddc97;
}

:root[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-alt: #ebeef8;
  --bg-card: #ffffff;
  --border: #dde1f2;
  --text: #12173a;
  --text-muted: #5a5f82;
  --header-bg: rgba(246, 247, 251, 0.88);
  --card-shadow: rgba(30, 41, 90, 0.14);
}

:root[data-theme="light"] .hero-nebula { opacity: 0.32; }
:root[data-theme="light"] .hero-swarm { opacity: 0.35; }

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: "Geist", "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

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

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
}

.site-header::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--gradient);
  opacity: 0.7;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header .logo-img,
.site-footer .logo-img {
  height: 50px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
}

.site-footer .logo-img { height: 42px; }

.logo-on-light { display: none; }
:root[data-theme="light"] .logo-on-dark { display: none; }
:root[data-theme="light"] .logo-on-light { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav-links a {
  position: relative;
  color: var(--text-muted);
  padding-bottom: 3px;
  transition: color 0.2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a.btn::after { display: none; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.btn-primary {
  background: var(--gradient);
  color: #0a0e27;
  box-shadow: 0 4px 18px rgba(168, 102, 216, 0.25);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(168, 102, 216, 0.4); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover { border-color: var(--purple); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.theme-toggle:hover { border-color: var(--purple); color: var(--text); }

.theme-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 72px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: 0;
  background:
    radial-gradient(circle 480px at var(--mx, 20%) var(--my, 25%), rgba(242, 153, 74, 0.16), transparent 60%),
    radial-gradient(circle 520px at calc(100% - var(--mx, 20%)) calc(var(--my, 25%) - 10%), rgba(74, 104, 240, 0.18), transparent 60%);
  filter: blur(10px);
  transition: background 0.4s ease;
  pointer-events: none;
}

.hero > .container { position: relative; z-index: 1; }

.hero-nebula {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

.hero-nebula canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.founder-showcase {
  display: flex;
  align-items: center;
  gap: 56px;
}

.founder-portrait-frame {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 900 / 872;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.particle-swarm {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-swarm {
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

.founder-portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  -webkit-mask-image: radial-gradient(ellipse 62% 74% at 50% 40%, black 52%, transparent 92%);
  mask-image: radial-gradient(ellipse 62% 74% at 50% 40%, black 52%, transparent 92%);
}

.founder-showcase-text {
  flex: 1 1 320px;
}

@media (max-width: 780px) {
  .founder-showcase {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }
  .founder-portrait-frame { max-width: 280px; }
}

.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin: 0 0 20px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  max-width: 680px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */

section { padding: 72px 0; }

.section-alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 14px;
}

.section-head p { color: var(--text-muted); margin: 0; }

/* ---------- Cards / Grid ---------- */

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--purple);
  box-shadow: 0 12px 32px var(--card-shadow);
}

.card:hover::before { opacity: 1; }

.card:hover .icon { transform: scale(1.08) rotate(-4deg); }

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  transition: transform 0.4s var(--ease-out);
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.card .icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
}

.card h3 { margin: 0 0 10px; font-size: 1.15rem; }

.card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

.card ul { margin: 14px 0 0; padding-left: 18px; color: var(--text-muted); font-size: 0.92rem; }
.card ul li { margin-bottom: 6px; }

.pillar-card {
  position: relative;
  overflow: hidden;
}

.team-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 2px solid var(--border);
}

.pillar-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--purple);
  margin-bottom: 10px;
  font-weight: 700;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: step;
}

.step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  color: #0a0e27;
  font-weight: 800;
  margin-bottom: 16px;
}

/* ---------- Forms ---------- */

.form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

form .field { margin-bottom: 20px; }

form label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}

form input:focus-visible,
form select:focus-visible,
form textarea:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
  border-color: var(--purple);
}

/* ---------- Focus states (keyboard nav) ---------- */

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.skill-tag:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn:focus-visible { border-radius: 999px; }

form textarea { resize: vertical; min-height: 120px; }

.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.field-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--purple);
  flex-shrink: 0;
}

.field-checkbox label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.field-checkbox label a { color: var(--blue); font-weight: 600; }

.form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ---------- Banner / CTA ---------- */

.cta-banner {
  border-radius: 20px;
  padding: 56px;
  text-align: center;
  background: linear-gradient(120deg, rgba(242,153,74,0.15), rgba(168,102,216,0.15), rgba(74,104,240,0.15));
  background-size: 220% 220%;
  animation: ctaDrift 14s ease-in-out infinite;
  border: 1px solid var(--border);
}

@keyframes ctaDrift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.cta-banner h2 { margin: 0 0 14px; font-size: 1.8rem; }
.cta-banner p { color: var(--text-muted); margin: 0 0 28px; }

/* ---------- Ebook ---------- */

.ebook-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
}

.ebook-cover {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0e27;
  font-weight: 800;
  text-align: center;
  padding: 24px;
  font-size: 1.1rem;
}

.price-tag {
  font-size: 2rem;
  font-weight: 800;
  margin: 20px 0;
}

.price-tag .old {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-right: 10px;
}

/* ---------- Badge ---------- */

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(168, 102, 216, 0.15);
  color: var(--purple);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ---------- Skill groups ---------- */

.skill-group { margin-bottom: 28px; }
.skill-group:last-child { margin-bottom: 0; }

.skill-group h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--purple);
  margin: 0 0 14px;
  font-weight: 700;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.88rem;
  color: var(--text);
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.skill-tag:hover {
  border-color: var(--purple);
  transform: translateY(-2px);
}

/* ---------- RRSS strip ---------- */

.rrss-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 8px 4px 16px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.rrss-strip::-webkit-scrollbar { display: none; }

.rrss-strip img {
  flex: 0 0 auto;
  width: 200px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  scroll-snap-align: start;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.rrss-strip img:hover {
  transform: translateY(-4px);
  border-color: var(--purple);
}

@media (max-width: 600px) {
  .rrss-strip img { width: 150px; }
}

/* ---------- Social row ---------- */

.social-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}

.social-pill:hover { border-color: var(--purple); }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  padding: 56px 0 32px;
  background: var(--bg-alt);
}

.site-footer::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--gradient);
  opacity: 0.35;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.footer-grid a,
.footer-grid p {
  display: block;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.footer-grid a {
  position: relative;
  width: fit-content;
}

.footer-grid a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.footer-grid a:hover { color: var(--text); }
.footer-grid a:hover::after { transform: scaleX(1); }

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.list-check { list-style: none; padding: 0; margin: 24px 0; }
.list-check li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--text-muted);
}
.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 800;
}

.placeholder-note {
  border: 1px dashed var(--purple);
  background: rgba(168, 102, 216, 0.08);
  color: var(--text-muted);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.85rem;
  margin: 16px 0;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.reveal.is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Magnetic buttons ---------- */

.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }

.magnetic-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: inherit;
  will-change: transform;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; }
  .ebook-layout { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    gap: 18px;
    transform: translateY(-150%);
    transition: transform 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .nav-links .btn { text-align: center; }
}

/* ---------- Mobile: designed, not shrunk ---------- */
/* Card rows become swipeable horizontal carousels instead of a
   long stacked column — a layout decision specific to touch, not
   the desktop grid compressed into one narrow lane. */

@media (max-width: 700px) {
  .grid:not(.grid-2),
  .steps {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x proximity;
    scroll-padding-left: 4px;
    gap: 14px;
    margin: 0 -24px;
    padding: 4px 24px 20px;
    scrollbar-width: none;
  }

  .grid:not(.grid-2)::-webkit-scrollbar,
  .steps::-webkit-scrollbar {
    display: none;
  }

  .grid:not(.grid-2) > * { flex: 0 0 78%; scroll-snap-align: start; }
  .steps > * { flex: 0 0 72%; scroll-snap-align: start; }

  .hero h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  section { padding: 52px 0; }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn { text-align: center; }
}

/* ---------- Radar App (quiz interactivo) ---------- */

.quiz-shell {
  max-width: 560px;
  margin: 0 auto;
}

.quiz-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.quiz-progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-alt);
  overflow: hidden;
  margin-bottom: 40px;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 999px;
  transition: width 0.4s var(--ease-out);
}

.quiz-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  animation: quizIn 0.35s var(--ease-out);
}

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

@media (prefers-reduced-motion: reduce) {
  .quiz-card { animation: none; }
}

.quiz-card .tag { display: inline-block; margin-bottom: 18px; }

.quiz-card h3 {
  font-size: 1.3rem;
  margin: 0 0 14px;
  line-height: 1.35;
}

.quiz-card .quiz-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 32px;
}

.quiz-answers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-answer-btn {
  display: block;
  width: 100%;
  padding: 18px 24px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.quiz-answer-btn:hover { transform: translateY(-2px); border-color: var(--purple); }

.quiz-answer-btn.is-risk:hover { border-color: var(--danger); }
.quiz-answer-btn.is-safe:hover { border-color: var(--success); }

.quiz-nav-row {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.quiz-back-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  cursor: pointer;
  padding: 8px;
}

.quiz-back-btn:hover { color: var(--text); }

.quiz-start, .quiz-results { text-align: center; }

.quiz-semaphore {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

.quiz-semaphore.level-alto { background: rgba(239, 90, 90, 0.15); }
.quiz-semaphore.level-medio { background: rgba(242, 153, 74, 0.15); }
.quiz-semaphore.level-controlado { background: rgba(61, 220, 151, 0.15); }

.quiz-results h2.level-alto { color: var(--danger); }
.quiz-results h2.level-medio { color: var(--warning); }
.quiz-results h2.level-controlado { color: var(--success); }

.quiz-stats-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 28px 0;
  flex-wrap: wrap;
}

.quiz-stat {
  flex: 1 1 100px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 12px;
}

.quiz-stat .num { font-size: 1.6rem; font-weight: 800; display: block; }
.quiz-stat.stat-alta .num { color: var(--danger); }
.quiz-stat.stat-media .num { color: var(--warning); }
.quiz-stat.stat-baja .num { color: var(--success); }
.quiz-stat .label { font-size: 0.78rem; color: var(--text-muted); }

.quiz-action-list {
  text-align: left;
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-action-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
}

.quiz-action-item .priority-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  margin-bottom: 6px;
  display: inline-block;
}

.quiz-action-item.priority-alta .priority-tag { color: var(--danger); }
.quiz-action-item.priority-media .priority-tag { color: var(--warning); }
.quiz-action-item.priority-baja .priority-tag { color: var(--success); }

.quiz-action-item h4 { margin: 0 0 6px; font-size: 0.98rem; }
.quiz-action-item p { margin: 0; color: var(--text-muted); font-size: 0.88rem; }

.quiz-alerts-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  padding: 10px 18px;
  font-size: 0.85rem;
  cursor: pointer;
  margin: 8px 0 0;
}

.quiz-alerts-toggle:hover { border-color: var(--purple); color: var(--text); }

.quiz-alerts-table {
  text-align: left;
  margin-top: 20px;
  display: none;
  flex-direction: column;
  gap: 10px;
}

.quiz-alerts-table.is-open { display: flex; }

.quiz-alerts-row {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.85rem;
}

.quiz-alerts-row .platform { color: var(--purple); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }
.quiz-alerts-row .where { color: var(--text-muted); margin-top: 4px; }

@media (max-width: 600px) {
  .quiz-card { padding: 32px 22px; }
  .quiz-stat { flex: 1 1 40%; }
}
