/* =========================================================================
   Universidad 1A1 · tema.css
   Tema claro opcional. Se activa con <html data-theme="light">.
   Solo se carga en las páginas públicas (no en la intro ni en el aula).
   ========================================================================= */

html[data-theme="light"] {
  --cream: #1b2434;
  --muted: #5a6377;
  --muted-2: #6f7789;
  --line: rgba(138, 106, 18, 0.28);
  --line-soft: rgba(27, 36, 52, 0.12);
  --ink: #f7f3ea;
  --ink-2: #f1ebdf;
  --paper: #ffffff;
  --shadow: 0 24px 50px -34px rgba(60, 45, 10, 0.35);
}

html[data-theme="light"] { background: #f7f3ea; color-scheme: light; }
html[data-theme="light"] body { color: #1b2434; }
html[data-theme="light"] a { color: #7a5c0f; }
html[data-theme="light"] a:hover { color: #5f470a; }
html[data-theme="light"] ::selection { background: rgba(201, 162, 39, 0.35); color: #1b2434; }

/* ------------------------------------------------------------------ cielo */
html[data-theme="light"] .cielo { background: #f7f3ea; }
html[data-theme="light"] .cielo::before {
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 255, 255, 0.95), rgba(247, 243, 234, 0) 62%),
    linear-gradient(180deg, #fbf7ee 0%, #f2ebdd 55%, #ece3d2 100%);
}
html[data-theme="light"] .cielo .estrella { display: none; }

/* ----------------------------------------------------------------- header */
html[data-theme="light"] .site-header {
  background: rgba(255, 252, 246, 0.86);
  border-color: rgba(27, 36, 52, 0.1);
  box-shadow: 0 24px 50px -34px rgba(60, 45, 10, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
html[data-theme="light"] .site-header.is-scrolled {
  background: rgba(255, 252, 246, 0.95);
  border-color: rgba(138, 106, 18, 0.35);
  box-shadow: 0 28px 60px -34px rgba(60, 45, 10, 0.55);
}
html[data-theme="light"] .brand { color: #1b2434; }
html[data-theme="light"] .brand__sub { color: #8a6a12; }
html[data-theme="light"] .nav__link { color: #2b3448; }
html[data-theme="light"] .nav__link:hover,
html[data-theme="light"] .nav__item.is-open .nav__link { color: #6f5410; background: rgba(201, 162, 39, 0.14); }
html[data-theme="light"] .nav__panel { background: #fffdf8; border-color: rgba(27, 36, 52, 0.12); }
html[data-theme="light"] .nav__panel a { color: #2b3448; }
html[data-theme="light"] .nav__panel a:hover { background: rgba(201, 162, 39, 0.14); color: #6f5410; }
html[data-theme="light"] .header__login { color: #2b3448; }
html[data-theme="light"] .header__login:hover { color: #6f5410; }
html[data-theme="light"] .burger { border-color: rgba(27, 36, 52, 0.2); color: #1b2434; }
html[data-theme="light"] .mobile-menu { background: #f7f3ea; }
html[data-theme="light"] .mobile-menu a { color: #1b2434; }
html[data-theme="light"] .mobile-menu a:hover { color: #6f5410; }

/* --------------------------------------------------------------- botón tema */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(243, 236, 221, 0.24);
  background: transparent; color: var(--gold-l);
  cursor: pointer; flex: 0 0 auto;
  transition: background var(--speed), border-color var(--speed), color var(--speed), transform var(--speed);
}
.theme-toggle:hover { border-color: var(--gold); background: rgba(201, 162, 39, 0.12); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
html[data-theme="light"] .theme-toggle { border-color: rgba(27, 36, 52, 0.22); color: #8a6a12; }
html[data-theme="light"] .theme-toggle:hover { background: rgba(201, 162, 39, 0.16); border-color: #8a6a12; }

/* ------------------------------------------------------------------- hero */
html[data-theme="light"] .hero::before {
  background:
    radial-gradient(58% 62% at 30% 50%, rgba(255, 255, 255, 0.78), rgba(247, 243, 234, 0.16) 64%, rgba(247, 243, 234, 0) 82%),
    linear-gradient(180deg, rgba(247, 243, 234, 0.4) 0%, rgba(247, 243, 234, 0.04) 34%, rgba(236, 227, 210, 0.7) 100%);
}
html[data-theme="light"] .hero h1 em { color: #8a6a12; }
html[data-theme="light"] .hero__sub { color: #3f4759; }
html[data-theme="light"] .hero__meta { border-top-color: rgba(27, 36, 52, 0.14); }
html[data-theme="light"] .hero__meta div strong { color: #8a6a12; }
html[data-theme="light"] .hero__meta > div:hover strong { color: #6f5410; text-shadow: none; }
html[data-theme="light"] .hero__meta div span { color: #5a6377; }
html[data-theme="light"] .hero-card { background: rgba(255, 253, 248, 0.92); border-color: rgba(27, 36, 52, 0.12); }

/* ------------------------------------------------------------- superficies */
html[data-theme="light"] .section--ink2 { background: rgba(27, 36, 52, 0.045); }
html[data-theme="light"] .card { background: #fffdf8; border-color: rgba(27, 36, 52, 0.1); box-shadow: 0 18px 40px -38px rgba(60, 45, 10, 0.5); }
html[data-theme="light"] .card--flat { background: #fff; }
html[data-theme="light"] .prog-card { background: #fffdf8; border-color: rgba(27, 36, 52, 0.1); }
html[data-theme="light"] .prog-card:hover { border-color: rgba(138, 106, 18, 0.42); }
html[data-theme="light"] .prog-card__icon { color: #8a6a12; background: rgba(201, 162, 39, 0.14); }
html[data-theme="light"] .pilar { background: #fff; border-color: rgba(27, 36, 52, 0.1); }
html[data-theme="light"] .paso { border-top-color: rgba(138, 106, 18, 0.35); }
html[data-theme="light"] .testimonio blockquote { color: #1b2434; }
html[data-theme="light"] .testimonio__avatar { color: #8a6a12; background: rgba(201, 162, 39, 0.16); }
html[data-theme="light"] .cta-final { background: linear-gradient(150deg, #fffdf8, #f2ead9); border-color: rgba(27, 36, 52, 0.12); }
html[data-theme="light"] .nota-legal { background: rgba(201, 162, 39, 0.1); border-color: rgba(138, 106, 18, 0.35); }
html[data-theme="light"] .nota-legal p { color: #3f4759; }

/* ---------------------------------------------------------- filtros y chips */
html[data-theme="light"] .filter { color: #2b3448; border-color: rgba(27, 36, 52, 0.18); background: #fffdf8; }
html[data-theme="light"] .filter:hover { border-color: #8a6a12; color: #6f5410; }
html[data-theme="light"] .filter.is-active { background: var(--gold); border-color: var(--gold); color: #171205; }
html[data-theme="light"] .chip { color: #6f5410; background: rgba(201, 162, 39, 0.12); border-color: rgba(138, 106, 18, 0.3); }
html[data-theme="light"] .chip--muted { color: #5a6377; border-color: rgba(27, 36, 52, 0.16); background: transparent; }

/* --------------------------------------------------------- páginas internas */
html[data-theme="light"] .page-hero { background: linear-gradient(180deg, #fffdf8, #f4eee1); border-bottom-color: rgba(27, 36, 52, 0.12); }
html[data-theme="light"] .page-hero p { color: #3f4759; }
html[data-theme="light"] .breadcrumb,
html[data-theme="light"] .breadcrumb a { color: #5a6377; }
html[data-theme="light"] .subnav .container {
  background: rgba(255, 252, 246, 0.9);
  border-color: rgba(27, 36, 52, 0.12);
  box-shadow: 0 18px 40px -34px rgba(60, 45, 10, 0.5);
}
html[data-theme="light"] .subnav a { color: #5a6377; }
html[data-theme="light"] .subnav a:hover,
html[data-theme="light"] .subnav a.is-active { color: #6f5410; }
html[data-theme="light"] .prog-body p,
html[data-theme="light"] .prog-body li { color: #3f4759; }
html[data-theme="light"] .prog-body h3 { color: #1b2434; }
html[data-theme="light"] .tabla td { color: #3f4759; }
html[data-theme="light"] .tabla tr:hover td { background: rgba(27, 36, 52, 0.03); }
html[data-theme="light"] .faq summary { color: #1b2434; }
html[data-theme="light"] .faq p { color: #5a6377; }
html[data-theme="light"] .plan-lista li { background: #fff; border-color: rgba(27, 36, 52, 0.08); }
html[data-theme="light"] .plan-lista code { color: #6f5410; }
html[data-theme="light"] .precio-card { background: #fffdf8; border-color: rgba(27, 36, 52, 0.12); }
html[data-theme="light"] .precio-card li b { color: #1b2434; }
html[data-theme="light"] .plan-ciclo__cred,
html[data-theme="light"] .timeline__item span { color: #8a6a12; }

/* ------------------------------------------------------------------ footer */
html[data-theme="light"] .site-footer { background: #efe7d6; border-top-color: rgba(27, 36, 52, 0.12); }
html[data-theme="light"] .footer-grid a,
html[data-theme="light"] .footer-grid p { color: #4b5468; }
html[data-theme="light"] .footer-grid a:hover { color: #6f5410; }
html[data-theme="light"] .footer-brand p { color: #5a6377; }
html[data-theme="light"] .footer-legal p,
html[data-theme="light"] .footer-bottom { color: #6a6355; }

/* ----------------------------------------------------------------- botones */
html[data-theme="light"] .btn--ghost { border-color: rgba(27, 36, 52, 0.28); color: #1b2434; }
html[data-theme="light"] .btn--ghost:hover { border-color: #8a6a12; color: #6f5410; }
html[data-theme="light"] .btn--soft { background: rgba(201, 162, 39, 0.16); color: #6f5410; border-color: rgba(138, 106, 18, 0.35); }
html[data-theme="light"] .btn--dark { background: #1b2434; color: #f7f3ea; }
html[data-theme="light"] .home-fab {
  background: rgba(255, 252, 246, 0.92);
  border-color: rgba(138, 106, 18, 0.45);
  color: #8a6a12;
  box-shadow: 0 18px 40px -30px rgba(60, 45, 10, 0.6);
}

/* ----------------------------------------------------- cursos e idiomas */
html[data-theme="light"] .curso-card { background: #fffdf8; border-color: rgba(27, 36, 52, 0.1); }
html[data-theme="light"] .curso-card__num { color: rgba(138, 106, 18, 0.55); }
html[data-theme="light"] .curso-card__sub,
html[data-theme="light"] .idioma-card__foco { color: #8a6a12; }
html[data-theme="light"] .curso-detalle summary { color: #6f5410; }
html[data-theme="light"] .idioma-card__code { background: rgba(201, 162, 39, 0.14); color: #6f5410; }
html[data-theme="light"] .idioma-mini { background: #fffdf8; border-color: rgba(27, 36, 52, 0.1); }
html[data-theme="light"] .idioma-mini:hover { border-color: rgba(138, 106, 18, 0.45); }
html[data-theme="light"] .precio-mini { background: #fff; border-color: rgba(27, 36, 52, 0.1); }

/* --------------------------------------------------------------- formularios */
html[data-theme="light"] .field > span { color: #3f4759; }
html[data-theme="light"] .input,
html[data-theme="light"] .select,
html[data-theme="light"] .textarea {
  background: #fff;
  border-color: rgba(27, 36, 52, 0.18);
  color: #1b2434;
}
html[data-theme="light"] .input::placeholder,
html[data-theme="light"] .textarea::placeholder { color: #8b93a5; }
html[data-theme="light"] .select option { background: #fff; color: #1b2434; }

/* ------------------------------------------------------------------ acceso */
html[data-theme="light"] body[data-page="acceso"] { background: #f7f3ea !important; }

/* --------------------------------------------------------- ajuste en móvil */
@media (max-width: 640px) {
  .theme-toggle { width: 36px; height: 36px; }
  .theme-toggle svg { width: 17px; height: 17px; }
}

/* ------------------------------------------------ ajustes de contraste */
html[data-theme="light"] .lead { color: #3f4759; }
html[data-theme="light"] .kicker,
html[data-theme="light"] .tabla th,
html[data-theme="light"] .footer-grid h4,
html[data-theme="light"] .pilar__num,
html[data-theme="light"] .paso::before,
html[data-theme="light"] .precio-card__label,
html[data-theme="light"] .precio-mini__label,
html[data-theme="light"] .idioma-mini__go,
html[data-theme="light"] .faq summary::after { color: #8a6a12; }

html[data-theme="light"] .prog-card h3,
html[data-theme="light"] .idioma-mini h3 { color: #1b2434; }
html[data-theme="light"] .prog-card__foot { color: #5a6377; }

html[data-theme="light"] .breadcrumb strong,
html[data-theme="light"] .breadcrumb b { color: #1b2434 !important; }