/* Blanco esmeralda. Overrides are scoped; the existing dark design stays intact. */
.theme-switch { display:inline-flex; align-items:center; justify-content:center; gap:7px; flex-shrink:0; min-width:44px; min-height:44px; padding:8px 10px; border:1px solid #337254; border-radius:24px; background:#0c2319; color:#e4f5ec; font:600 12px/1.3 var(--font-body); }
.theme-switch__track { display:block; width:28px; height:16px; padding:3px; background:#47705a; border-radius:20px; }
.theme-switch__knob { display:block; width:10px; height:10px; border-radius:50%; background:#fff; transform:translateX(0); }
.theme-switch[aria-checked=true] .theme-switch__knob { transform:translateX(12px); }
.theme-switch[aria-checked=true] .theme-switch__track { background:#047857; }
.theme-switch [data-theme-icon] { font-size:18px; line-height:1; }
@media(max-width:639px) { .theme-switch { padding:8px; } .theme-switch__label,.theme-switch__track { display:none; } }
html[data-theme=light] {
  color-scheme:light;
  --bg-deep:#f7faf9; --bg-dark:#edf5f0; --bg-surface:#fff;
  --bg-card:rgba(255,255,255,.94); --bg-card-hover:#f4faf6;
  --border-subtle:#c8dfd0; --border-focus:#047857;
  --text-main:#142c23; --text-muted:#50675c; --text-highlight:#047857;
}
html[data-theme=light] body { background-color:#f7faf9; color:#142c23; background-image:radial-gradient(circle at 15% 15%,#10b98107,transparent 40%),radial-gradient(circle at 85% 85%,#22c55e06,transparent 40%); }
html[data-theme=light] body > header { background:rgba(255,255,255,.96); border-color:#d6e5dc; }
html[data-theme=light] body > footer { background:#edf5f0; border-color:#d6e5dc; }
html[data-theme=light] .theme-switch { color:#142c23; background:#fff; border-color:#c8dfd0; }
html[data-theme=light] [class*="bg-[#"],html[data-theme=light] [class*="bg-emerald-9"],html[data-theme=light] [class*="bg-green-9"] { background-color:#edf5f0; }
html[data-theme=light] :is(.text-white,.text-slate-100,.text-slate-200,.text-slate-300) { color:#142c23; }
html[data-theme=light] :is(.text-slate-400,.text-slate-500) { color:#50675c; }
html[data-theme=light] [class*="text-emerald-"],html[data-theme=light] [class*="text-green-"] { color:#047857; }
html[data-theme=light] [class*="text-lime-"] { color:#42700b; }
html[data-theme=light] [class*="text-blue-"],html[data-theme=light] [class*="text-cyan-"],html[data-theme=light] [class*="text-teal-"] { color:#145a80; }
html[data-theme=light] [class*="text-amber-"],html[data-theme=light] [class*="text-yellow-"] { color:#925500; }
html[data-theme=light] [class*="text-pink-"],html[data-theme=light] [class*="text-rose-"] { color:#a52b56; }
html[data-theme=light] .text-transparent { color:transparent; background-image:linear-gradient(100deg,#047857,#166534,#4d7c0f); }
html[data-theme=light] :is(h1,h2,h3,h4) { text-shadow:none; }
html[data-theme=light] .glass-panel { background:rgba(255,255,255,.94); border-color:#c8dfd0; box-shadow:0 8px 28px #123c240b; }
html[data-theme=light] .glass-panel:hover { background:#f4faf6; border-color:#75b492; box-shadow:0 10px 30px #123c2412; }
html[data-theme=light] :is(.btn-glow-channel,.btn-glow-whatsapp) { background:linear-gradient(135deg,#047857,#065f46); color:#fff; box-shadow:0 4px 16px #04785724; }
html[data-theme=light] .btn-glow-fb { background:linear-gradient(135deg,#1d4ed8,#1e40af); color:#fff; box-shadow:0 4px 16px #1d4ed824; }
html[data-theme=light] :is(.btn-glow-channel,.btn-glow-whatsapp,.btn-glow-fb) :is(span,.icon) { color:#fff; }
html[data-theme=light] a.bg-gradient-to-r { background:linear-gradient(135deg,#047857,#065f46); color:#fff; }
html[data-theme=light] :is(.bg-gradient-to-br,.bg-gradient-to-tr) > .icon { color:#fff; }
html[data-theme=light] #inicio [aria-label="Accesos principales"] a { background:#fff; color:#047857; border-color:#b6d4c3; }
html[data-theme=light] #inicio .animate-floating { background:#e9f5ee; color:#047857; border-color:#b6d4c3; }
html[data-theme=light] .avatar-glow-wrapper::before { opacity:.22; }
html[data-theme=light] .avatar-glow-wrapper img { box-shadow:0 6px 28px #04785720; }
html[data-theme=light] #chatbot-launcher-btn { color:#fff; background:linear-gradient(135deg,#047857,#166534); }
html[data-theme=light] #chatbot-launcher-btn .icon { color:#fff; }
html[data-theme=light] #chatbot-container { background:#fff; color:#142c23; border-color:#b6d4c3; }
html[data-theme=light] #chatbot-container > div { background-color:#f4faf6; }
html[data-theme=light] .chat-bubble-bot { background:#eef6f1; color:#142c23; border-color:#c8dfd0; }
html[data-theme=light] .chat-bubble-user { background:#047857; color:#fff; }
html[data-theme=light] .document-answer a { color:#046c4e; }
html[data-theme=light] .document-answer blockquote { color:#304d3c; }
html[data-theme=light] :is(input,select,textarea) { background-color:#fff !important; color:#142c23 !important; border-color:#abcdb9 !important; }
html[data-theme=light] input::placeholder,html[data-theme=light] textarea::placeholder { color:#61786b; }
html[data-theme=light] .seo-page { background:#f7faf9; color:#142c23; }
html[data-theme=light] :is(.seo-brand,.seo-content h1,.seo-content h2,.seo-content h3,.seo-readable h2) { color:#142c23; }
html[data-theme=light] :is(.seo-brand span,.seo-content a,.seo-readable a,.seo-notice a,.seo-breadcrumb a) { color:#046c4e; }
html[data-theme=light] :is(.seo-card,.seo-semester,.seo-step) { background:#fff; border-color:#c8dfd0; }
html[data-theme=light] :is(.seo-notice,.seo-step-note) { background:#e9f5ee; color:#304d3c; border-color:#6fae8b; }
html[data-theme=light] :is(.seo-review,.seo-breadcrumb,.seo-semester li span,.seo-footer) { color:#50675c; }
html[data-theme=light] :is(.video-zone,.video-zone__sticky) { background:#f7faf9; }
html[data-theme=light] .video-zone__wash { background:linear-gradient(180deg,rgba(247,250,249,.22),rgba(247,250,249,.03) 25%,rgba(247,250,249,.03) 75%,rgba(247,250,249,.24)); }
html[data-theme=light] .video-zone__vignette { box-shadow:inset 0 0 65px 12px rgba(247,250,249,.26); }
html[data-theme=light] .campus-depth__far { filter:saturate(.98) brightness(1); opacity:.84; }
html[data-theme=light] .campus-depth__near-image { filter:brightness(1) saturate(.98); opacity:.14; }
html[data-theme=light] .video-zone .glass-panel { background:linear-gradient(180deg,#fffffff0,#fffffffa) !important; box-shadow:0 8px 28px #123c240d; border-color:#c8dfd0; }
html[data-theme=light] .video-zone .video-header::before { display:none; }
html[data-theme=light] .video-zone .video-header :is(h2,p),html[data-theme=light] .video-zone .glass-panel :is(h3,p,li) { text-shadow:none; }
html[data-theme=light] .video-zone .video-header h2 span { filter:none; }
html[data-theme=light] .career-background .career-background__image { opacity:.84; filter:saturate(.98) brightness(1); -webkit-mask-image:none; mask-image:none; }
html[data-theme=light] .career-background .video-zone__wash { background:rgba(247,250,249,.03); }
html[data-theme=light] .career-background .seo-semester { background:#fffffff5; }
html[data-theme=light] :is(.curriculum-tools,.selection-summary) { background:#fff; border-color:#a4cdb5; box-shadow:0 4px 14px #123c240b; }
html[data-theme=light] :is(.curriculum-tools label,.curriculum-tools button,#filter-results,.subject-semester,.selection-summary-heading p) { color:#046c4e; }
html[data-theme=light] :is(.curriculum-hint,.curriculum-empty,.selection-summary summary,#selection-relations > p) { color:#50675c; }
html[data-theme=light] .subject-card { background:#fff; border-color:#c8dfd0; }
html[data-theme=light] #curriculum-container .subject-card.is-selected { background:#eff6ff !important; border-color:#2563eb !important; box-shadow:0 0 0 2px #2563eb; }
html[data-theme=light] #curriculum-container .subject-card.is-prereq { background:#fff1f2 !important; border-color:#d63862 !important; }
html[data-theme=light] #curriculum-container .subject-card.is-unlocks { background:#ecfdf5 !important; border-color:#059669 !important; }
html[data-theme=light] .connection-prerequisite { stroke:#d63862; }
html[data-theme=light] .connection-unlock { stroke:#047857; }
html[data-theme=light] .relation-prerequisite { color:#a52b56; }
html[data-theme=light] .relation-unlock { color:#046c4e; }
html[data-theme=light] .career-tab[aria-current=page] { background:#047857; color:#fff; }
html[data-theme=light] #visit-counter { background:#e9f5ee; color:#304d3c; border-color:#b6d4c3; box-shadow:none; }
html[data-theme=light] :focus-visible { outline-color:#047857; }
html[data-theme=light] ::-webkit-scrollbar-track { background:#edf5f0; }
html[data-theme=light] ::-webkit-scrollbar-thumb { background:#9bbfaa; }
/* Clear surfaces must win over legacy utility backgrounds and the hero's dark wash. */
html[data-theme=light] body { background-color:#f7faf9 !important; }
html[data-theme=light] body > header { background:rgba(255,255,255,.96) !important; }
html[data-theme=light] body > footer { background:#edf5f0 !important; }
html[data-theme=light] #inicio > .bg-gradient-to-b { background-image:linear-gradient(180deg,#f7faf985,#f7faf9c7,#f7faf9); }
html[data-theme=light] .career-tab[aria-current="page"] { background:#047857 !important; color:#fff !important; }
html[data-theme=light] :focus-visible { outline-color:#047857 !important; }
html[data-theme=light] #chatbot-container > div:first-child { background:#e9f5ee; }
html[data-theme=light] #chat-send-btn { background:#047857; color:#fff; }
html[data-theme=light] #chat-send-btn .icon { color:#fff; }
@media(max-width:639px) {
  .theme-switch [data-theme-icon] { display:none; }
  .theme-switch__track { display:block; }
}

/* More intense light backgrounds: local reading surfaces instead of a white veil. */
html[data-theme=light] .video-zone .video-header,
html[data-theme=light] .career-background main > .text-center,
html[data-theme=light] .plans-index-intro {
  background:rgba(255,255,255,.96); padding:24px; border-radius:16px;
  box-shadow:0 6px 22px rgba(18,60,36,.08);
}
html[data-theme=light] .career-background .seo-breadcrumb {
  width:fit-content; max-width:100%; padding:8px 12px;
  background:rgba(255,255,255,.96); border-radius:10px;
}
html[data-theme=light] .plans-index-intro h1 { margin-top:0; }
html[data-theme=light] .plans-index-intro p { margin-bottom:0; }
@media(max-width:767px) {
  html[data-theme=light] .video-zone .video-header,
  html[data-theme=light] .career-background main > .text-center,
  html[data-theme=light] .plans-index-intro { padding:20px 16px; }
}

/* Labels carry a complete foreground/surface pair instead of dark utility fills. */
html[data-theme=light] .ui-badge[data-badge-tone] {
  --badge-bg:#e8f5ed; --badge-fg:#065f46; --badge-border:#a7d4bb;
  background:var(--badge-bg); color:var(--badge-fg); border-color:var(--badge-border);
}
html[data-theme=light] .ui-badge[data-badge-tone=lime] { --badge-bg:#ecfccb; --badge-fg:#3f6212; --badge-border:#b8d88a; }
html[data-theme=light] .ui-badge[data-badge-tone=teal] { --badge-bg:#ccfbf1; --badge-fg:#115e59; --badge-border:#86cfc2; }
html[data-theme=light] .ui-badge[data-badge-tone=cyan] { --badge-bg:#cffafe; --badge-fg:#155e75; --badge-border:#8dcedb; }
html[data-theme=light] .ui-badge[data-badge-tone=blue] { --badge-bg:#dbeafe; --badge-fg:#1e40af; --badge-border:#a6bfee; }
html[data-theme=light] .ui-badge[data-badge-tone=amber],html[data-theme=light] .ui-badge[data-badge-tone=yellow] { --badge-bg:#fef3c7; --badge-fg:#92400e; --badge-border:#e0c486; }
html[data-theme=light] .ui-badge[data-badge-tone=pink] { --badge-bg:#fce7f3; --badge-fg:#9d174d; --badge-border:#dfa8c5; }
html[data-theme=light] .ui-badge[data-badge-tone=rose] { --badge-bg:#ffe4e6; --badge-fg:#9f1239; --badge-border:#e4acb8; }
html[data-theme=light] .ui-badge[data-badge-tone=slate] { --badge-bg:#f1f5f9; --badge-fg:#334155; --badge-border:#bdcbd9; }
html[data-theme=light] .quick-chip,
html[data-theme=light] .subject-card [data-approve] { background:#e8f5ed; color:#065f46; border-color:#a7d4bb; }
html[data-theme=light] .quick-chip:hover,
html[data-theme=light] .subject-card [data-approve]:hover { background:#d2ebdc; color:#064e3b; border-color:#6eaa88; }
html[data-theme=light] .chat-bubble-user :is(p,span,strong,a) { color:#fff; }
html[data-theme=light] .toast-item { background:#e8f5ed; color:#065f46; border-color:#a7d4bb; }
html[data-theme=light] .toast-item.border-rose-500 { background:#ffe4e6; color:#9f1239; border-color:#e4acb8; }

/* Imagen protagonista: full-presence images, solid reading surfaces. */
html[data-theme=light] .campus-depth__far { opacity:1; filter:saturate(1) brightness(1); }
html[data-theme=light] .campus-depth__near-image { opacity:.08; }
html[data-theme=light] .video-zone__wash { background:transparent; }
html[data-theme=light] .video-zone__vignette { box-shadow:none; }
html[data-theme=light] .video-zone .glass-panel,
html[data-theme=light] .video-zone .video-header,
html[data-theme=light] .career-background main > .text-center,
html[data-theme=light] .plans-index-intro,
html[data-theme=light] .career-background .seo-semester,
html[data-theme=light] .career-background .seo-breadcrumb { background:#fff !important; }
html[data-theme=light] .career-background .campus-depth__pointer { background:#f7faf9; }
html[data-theme=light] .career-background .career-background__image {
  opacity:1;
  /* Normalize near-white source backgrounds and blend them into the light canvas. */
  filter:brightness(1.1) contrast(1.04);
  mix-blend-mode:multiply;
  -webkit-mask-image:none; mask-image:none;
}
html[data-theme=light] .career-background .video-zone__wash { background:transparent; }
html[data-theme=light] [class*="text-sky-"] { color:#145a80; }
