
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  font-family: Inter, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

:root {
  --bg: #eef4ff;
  --muted: #64748b;
  --accent-1: #0f172a;
  --accent-2: #2563eb;
  --card: #ffffff;
  --grad: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0ea5a1 100%);
}

body {
  background:
    radial-gradient(circle at 50% 45%, rgba(8, 92, 168, 0.5), transparent 52%),
    linear-gradient(135deg, #02102a 0%, #05295a 48%, #02183a 100%);
  color: #e2e8f0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  filter: drop-shadow(0 0 3px rgba(0, 191, 255, 0.5));
  background:
    linear-gradient(90deg, #10c8ff, #10c8ff) 9% 0 / 2px 25% no-repeat,
    linear-gradient(135deg, transparent 0 48%, #10c8ff 49% 52%, transparent 53%) 9% 25% / 12% 11% no-repeat,
    linear-gradient(90deg, #10c8ff, #10c8ff) 15% 35% / 2px 23% no-repeat,
    linear-gradient(90deg, #10c8ff, #10c8ff) 15% 58% / 17% 2px no-repeat,
    linear-gradient(90deg, #10c8ff, #10c8ff) 26% 58% / 2px 22% no-repeat,
    linear-gradient(45deg, transparent 0 48%, #10c8ff 49% 52%, transparent 53%) 26% 80% / 12% 12% no-repeat,
    linear-gradient(90deg, #10c8ff, #10c8ff) 38% 91% / 16% 2px no-repeat,
    linear-gradient(90deg, #10c8ff, #10c8ff) 49% 0 / 2px 22% no-repeat,
    linear-gradient(45deg, transparent 0 48%, #10c8ff 49% 52%, transparent 53%) 49% 22% / 13% 13% no-repeat,
    linear-gradient(90deg, #10c8ff, #10c8ff) 60% 35% / 2px 32% no-repeat,
    linear-gradient(90deg, #10c8ff, #10c8ff) 60% 67% / 18% 2px no-repeat,
    linear-gradient(135deg, transparent 0 48%, #10c8ff 49% 52%, transparent 53%) 76% 67% / 12% 13% no-repeat,
    linear-gradient(90deg, #10c8ff, #10c8ff) 87% 80% / 2px 20% no-repeat,
    linear-gradient(90deg, #10c8ff, #10c8ff) 75% 80% / 12% 2px no-repeat,
    radial-gradient(circle at 9% 0%, #72e5ff 0 3px, #009ed8 3.5px 5px, transparent 5.5px),
    radial-gradient(circle at 21% 36%, #72e5ff 0 3px, #009ed8 3.5px 5px, transparent 5.5px),
    radial-gradient(circle at 15% 58%, #72e5ff 0 3px, #009ed8 3.5px 5px, transparent 5.5px),
    radial-gradient(circle at 26% 80%, #72e5ff 0 3px, #009ed8 3.5px 5px, transparent 5.5px),
    radial-gradient(circle at 49% 22%, #72e5ff 0 3px, #009ed8 3.5px 5px, transparent 5.5px),
    radial-gradient(circle at 60% 67%, #72e5ff 0 3px, #009ed8 3.5px 5px, transparent 5.5px),
    radial-gradient(circle at 87% 80%, #72e5ff 0 3px, #009ed8 3.5px 5px, transparent 5.5px);
  background-repeat: no-repeat;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("logo-sena-negro-jpg-2022-removebg-preview.png") center 54% / min(42vw, 420px) auto no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.1;
}

/* ── Splash Screen ── */
.splash-screen {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  animation: splashFadeIn 0.6s ease-out;
}

.splash-content { text-align: center; color: white; }

.splash-title {
  font-size: 3.5rem; font-weight: 800; margin-bottom: 12px;
  letter-spacing: 2px; animation: titleSlideDown 0.8s ease-out;
}

.splash-subtitle {
  font-size: 1.4rem; opacity: 0.9; margin-bottom: 30px;
  animation: subtitleSlideUp 0.8s ease-out 0.2s both;
}

.splash-loader {
  width: min(260px, 70vw); height: 8px;
  position: relative; overflow: hidden;
  background: rgba(255,255,255,0.2);
  border-radius: 999px; margin: 0 auto;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.18), 0 0 16px rgba(255,255,255,0.12);
}

.splash-loader::before {
  content: '';
  position: absolute; inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffffff, #a7f3d0);
  box-shadow: 0 0 12px rgba(255,255,255,0.75);
  animation: fillLoader 1.8s ease-in-out infinite;
}

.splash-screen.fade-out { animation: splashFadeOut 0.5s ease-in forwards; }

/* ── Header ── */
header {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: white; padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(2,6,23,0.18), inset 0 1px 0 rgba(255,255,255,0.08);
  position: sticky; top: 0; z-index: 1000;
  position: relative; overflow: visible;
  border-bottom: 1px solid rgba(148,163,184,0.18);
}

header::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 60%),
                    radial-gradient(circle at 80% 20%, rgba(14,165,161,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }

.page-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-brand .header-logo {
  flex: 0 0 auto;
}

.header-content {
  display: flex; justify-content: space-between;
  align-items: center; gap: 24px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.header-text {
  display: flex;
  flex-direction: column;
}

.header-left h1 {
  font-size: 1.4rem; letter-spacing: 0.6px;
  text-transform: uppercase;
  margin: 0 0 4px; font-weight: 900;
  color: #b9d8eb;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.header-left .subtitle { font-size: 0.9rem; opacity: 0.85; margin: 0; }

.header-right {
  display: flex; gap: 12px; align-items: center;
  flex: 1; max-width: 500px;
}

.search-container { position: relative; flex: 1; min-width: 200px; display: flex; align-items: center; }

.search-icon-3d {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none; z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  animation: searchPulse 2s ease-in-out infinite;
}

@keyframes searchPulse {
  0%, 100% {
    transform: translateY(-50%) scale(1);
  }
  50% {
    transform: translateY(-50%) scale(1.1);
  }
}

.search-box {
  width: 100%; padding: 10px 14px 10px 40px; border: none;
  border-radius: 10px; font-size: 0.9rem;
  background: rgba(255,255,255,0.95); color: var(--accent-1);
  outline: none; transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12), inset 0 1px 3px rgba(0,0,0,0.05);
}

.search-box:focus {
  background: white; box-shadow: 0 8px 28px rgba(0,0,0,0.18), inset 0 1px 3px rgba(0,0,0,0.05);
}

.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  width: 100%;
  background: white; border-radius: 10px;
  max-height: 350px; overflow-y: auto;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  z-index: 9999;
}

.search-result-item {
  display: block; padding: 12px 14px; color: var(--accent-1);
  text-decoration: none; border-bottom: 1px solid #e2e8f0;
  transition: background 0.2s ease; font-size: 0.9rem;
}

.search-result-item:hover { background: #f0f6ff; color: var(--accent-2); }
.search-result-item:last-child { border-bottom: none; }
.no-results { padding: 12px 14px; color: var(--muted); text-align: center; font-size: 0.9rem; }

.menu-toggle {
  background: rgba(255,255,255,0.18); color: white; border: 1px solid rgba(255,255,255,0.25);
  padding: 10px 16px; border-radius: 10px; font-weight: 600;
  cursor: pointer; transition: all 0.25s ease; font-size: 0.9rem; white-space: nowrap;
  backdrop-filter: blur(8px);
}

.menu-toggle:hover { background: rgba(255,255,255,0.28); transform: translateY(-2px); }

/* ── Side Menu ── */
.side-menu {
  position: fixed; left: 0; top: 0; width: 300px; height: 100vh;
  background: white; box-shadow: 8px 0 40px rgba(2,6,23,0.15);
  transform: translateX(-100%); transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  z-index: 9998; overflow-y: auto;
}

.side-menu.active { transform: translateX(0); }

.menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity 0.35s ease; z-index: 9997;
}

.menu-overlay.active { opacity: 1; pointer-events: all; }

.menu-close {
  position: absolute; top: 12px; right: 12px;
  background: none; border: none; font-size: 1.5rem; cursor: pointer;
  color: var(--accent-1); padding: 8px; border-radius: 8px;
  transition: background 0.2s ease;
}

.menu-close:hover { background: #f0f6ff; }

.menu-content { padding: 20px 0; }

.menu-content h3 {
  padding: 16px 16px 12px; color: var(--accent-2);
  font-size: 1.1rem; font-weight: 700;
  border-bottom: 2px solid var(--accent-2); margin-bottom: 8px;
}

.menu-category { border-bottom: 1px solid #e2e8f0; padding: 12px 0; }

.menu-category h4 {
  padding: 0 16px; color: var(--accent-1);
  font-size: 0.9rem; margin-bottom: 8px; font-weight: 700;
}

.menu-category ul { list-style: none; padding: 0; }

.menu-category a {
  display: block; padding: 7px 24px;
  color: var(--muted); text-decoration: none;
  transition: all 0.2s ease; font-size: 0.875rem;
}

.menu-category a:hover {
  background: #eef4ff; color: var(--accent-2);
  padding-left: 30px;
}

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sidebar { display: none; }
.content { flex: 1; padding: 8px 0 40px 0; display: flex; flex-direction: column; }

/* ── Cards (temas.html) ── */
.card {
  background: white;
  padding: 26px 28px; border-radius: 16px;
  box-shadow: 0 6px 24px rgba(2,6,23,0.07), 0 1px 4px rgba(37,99,235,0.04);
  margin-bottom: 16px;
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid rgba(37,99,235,0.07);
  position: relative; overflow: hidden;
}

.card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  border-radius: 4px 0 0 4px;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(2,6,23,0.09), 0 4px 16px rgba(37,99,235,0.07);
}

.card h2 { color: var(--accent-2); margin-bottom: 10px; font-weight: 700; }

.card p { line-height: 1.8; font-size: 0.97rem; color: var(--muted); }

/* ── Landing page ── */
.landing {
  max-width: 1200px;
  padding: 42px 20px 48px;
  margin: 0 auto;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  margin-bottom: 32px;
  background: linear-gradient(135deg, rgba(10,18,30,0.22), rgba(13,34,57,0.18));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(125,211,252,0.24);
  border-radius: 28px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(34,211,238,0.08), 0 28px 60px rgba(15,23,42,0.34), inset 0 1px 0 rgba(255,255,255,0.08);
}

.hero-panel::before {
  content: none;
}

.hero-copy, .hero-visual {
  position: relative; z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  background: rgba(27, 112, 145, 0.22);
  border: 1px solid rgba(111, 190, 215, 0.28);
  color: #a9cbd8;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
  margin: 0 0 18px;
  max-width: 620px;
  color: #d4e4ef;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.42);
}

.hero-copy p {
  color: rgba(226,232,240,0.86);
  font-size: 1.04rem;
  line-height: 1.75;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.primary-btn {
  background: linear-gradient(135deg, #38bdf8 0%, #22c55e 100%);
  color: #03131d;
  box-shadow: 0 15px 25px rgba(56,189,248,0.25);
}

.secondary-btn {
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1px solid rgba(255,255,255,0.18);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.metric {
  min-width: 120px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(15,118,110,0.18);
  border: 1px solid rgba(94,234,212,0.22);
  backdrop-filter: blur(8px);
}

.metric strong {
  display: block;
  color: #c8dce8;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.metric span {
  color: rgba(224,242,254,0.78);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.board {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 43 / 32;
  border-radius: 24px;
  container-type: inline-size;
  background: linear-gradient(145deg, #0f172a, #111827 40%, #0f172a);
  border: 1px solid rgba(96,165,250,0.25);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 28px 60px rgba(2,6,23,0.26);
  overflow: hidden;
}

.board::before {
  content: "";
  position: absolute;
  inset: 4.2cqw;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.22);
  background: repeating-linear-gradient(
    90deg,
    rgba(148,163,184,0.06),
    rgba(148,163,184,0.06) 1px,
    transparent 1px,
    transparent 25px
  );
}

.chip {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4.2cqw;
  color: #dbeafe;
  font-weight: 800;
  letter-spacing: 0.35cqw;
  text-transform: uppercase;
  z-index: 2;
}

.chip-primary {
  width: 41.9cqw;
  height: 27.9cqw;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, rgba(14,165,233,0.32), rgba(34,197,94,0.18));
  border: 1px solid rgba(125,211,252,0.45);
  box-shadow: 0 0 25px rgba(34,197,94,0.15);
}

.chip-small {
  width: 17.2cqw;
  height: 9.8cqw;
  background: rgba(15,118,110,0.22);
  border: 1px solid rgba(94,234,212,0.33);
  font-size: 2.5cqw;
}

.chip-left { left: 9.8cqw; top: 58%; }
.chip-right { right: 9.8cqw; top: 58%; }

.signal {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 0.7cqw;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  box-shadow: 0 0 8px rgba(56,189,248,0.7);
  z-index: 2;
}

.signal-top { top: 29.7%; width: 41.9cqw; }
.signal-mid { top: 47.5%; width: 51.2cqw; }
.signal-bottom { top: 66.3%; width: 46.5cqw; }

.node {
  position: absolute;
  width: 6.5cqw;
  height: 6.5cqw;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4cqw;
  font-weight: 800;
  color: #ecfeff;
  background: rgba(59,130,246,0.5);
  border: 1px solid rgba(125,211,252,0.7);
  box-shadow: 0 0 10px rgba(125,211,252,0.35);
  z-index: 3;
}

.node-1 { left: 25.6cqw; top: 13.1%; }
.node-2 { right: 25.6cqw; top: 13.1%; }
.node-3 { left: 16.3cqw; bottom: 13.1%; }
.node-4 { right: 16.3cqw; bottom: 13.1%; }

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  color: var(--accent-2);
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  font-weight: 800;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.single-layout {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.option-card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), rgba(10, 17, 30, 0.66));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 30px 26px;
  border-radius: 22px;
  text-decoration: none;
  color: #e2e8f0;
  box-shadow: 0 18px 40px rgba(15,23,42,0.18), inset 0 1px 0 rgba(255,255,255,0.08), 0 0 18px rgba(56,189,248,0.08);
  border: 1px solid rgba(125,211,252,0.2);
  transition: all .35s cubic-bezier(.4,0,.2,1);
  overflow: hidden; position: relative;
  animation: floatIn 0.5s ease both;
}

.option-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, #22d3ee, #3b82f6, #34d399);
  box-shadow: 0 0 18px rgba(34,211,238,0.35);
}

.option-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.04), rgba(14,165,161,0.04));
  opacity: 0; transition: opacity 0.35s ease;
}

.option-card:hover::after { opacity: 1; }

.card-icon {
  width: 72px;
  height: 72px;
  position: relative;
  margin-bottom: 14px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(15,23,42,0.08), rgba(59,130,246,0.14));
  border: 1px solid rgba(59,130,246,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 10px 18px rgba(15,23,42,0.08);
}

.icon-foundations {
  transform: perspective(100px) rotateX(12deg) rotateY(-12deg);
}

.cube {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  border: 2px solid rgba(14,116,144,0.8);
  box-shadow: 0 8px 14px rgba(14,165,233,0.25);
}

.cube-1 { transform: translate(-10px, -8px); }
.cube-2 { transform: translate(10px, 8px); background: linear-gradient(135deg, #86efac, #22c55e); }

.icon-circuit {
  position: relative;
}

.circuit-line {
  position: absolute;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #22c55e);
  box-shadow: 0 0 10px rgba(56,189,248,0.4);
}

.line-1 {
  width: 38px;
  top: 22px;
  left: 17px;
}

.line-2 {
  width: 28px;
  top: 42px;
  left: 26px;
}

.node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8fafc, #38bdf8);
  border: 2px solid rgba(14,165,233,0.8);
  box-shadow: 0 0 12px rgba(56,189,248,0.4);
}

.node-a { left: 14px; top: 18px; }
.node-b { right: 14px; top: 38px; }

.icon-components {
  position: relative;
}

.resistor {
  position: absolute;
  width: 34px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #facc15, #f59e0b);
  box-shadow: inset 0 0 0 2px rgba(146, 64, 14, 0.3), 0 4px 12px rgba(245,158,11,0.28);
}

.resistor::before,
.resistor::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: #dbeafe;
  border-radius: 50%;
  top: 2px;
}

.resistor::before { left: -4px; }
.resistor::after { right: -4px; }

.capacitor {
  position: absolute;
  width: 18px;
  height: 26px;
  border-radius: 8px;
  border: 3px solid #a78bfa;
  border-left: 0;
  border-right: 0;
  background: linear-gradient(180deg, rgba(167,139,250,0.2), rgba(99,102,241,0.2));
  transform: translateX(22px);
  box-shadow: 0 6px 14px rgba(139,92,246,0.2);
}

.icon-sensors {
  position: relative;
}

.sensor-box {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #a5f3fc, #22d3ee);
  border: 2px solid rgba(8,145,178,0.8);
  box-shadow: 0 8px 18px rgba(34,211,238,0.22);
}

.sensor-wave {
  position: absolute;
  width: 36px;
  height: 24px;
  border: 3px solid rgba(56,189,248,0.8);
  border-color: rgba(56,189,248,0.8) transparent transparent transparent;
  border-radius: 50%;
  transform: translateY(10px) translateX(-6px);
}

.option-card h2 { font-size: 1.45rem; margin-bottom: 8px; color: #dbeafe; z-index: 1; font-weight: 800; }

.option-card p { color: rgba(191,219,254,0.8); font-size: 0.96rem; line-height: 1.7; flex-grow: 1; margin-bottom: 14px; z-index: 1; }

.card-arrow { font-size: 1.3rem; color: var(--accent-2); opacity: 0; transition: all 0.35s ease; z-index: 1; }

.option-card:hover { transform: translateY(-10px) scale(1.01); box-shadow: 0 32px 64px rgba(15,23,42,0.13); }

.option-card:hover .card-arrow { opacity: 1; transform: translateX(6px); }

.option-card:nth-child(1) { animation-delay: .06s; }
.option-card:nth-child(2) { animation-delay: .14s; }

.feature-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.feature-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(241,245,249,0.9));
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: 0 12px 28px rgba(15,23,42,0.06);
}

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
  font-size: 1.7rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  color: var(--accent-1);
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.93rem;
}

.quick-access {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.74), rgba(10, 18, 30, 0.72));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 24px 26px;
  border-radius: 18px;
  border-left: 5px solid #38bdf8;
  box-shadow: 0 12px 30px rgba(15,23,42,0.12), inset 0 1px 0 rgba(255,255,255,0.08), 0 0 18px rgba(56,189,248,0.06);
  border: 1px solid rgba(125,211,252,0.18);
}

.quick-access h3 { color: #dbeafe; margin-bottom: 8px; font-size: 1.15rem; font-weight: 700; }
.quick-access p { color: rgba(191,219,254,0.8); font-size: 0.95rem; line-height: 1.7; margin: 0; }

@media (max-width: 760px) {
  .hero-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 24px 18px;
  }

  .hero-visual { min-width: 0; width: 100%; }

  .header-content {
    flex-direction: column;
    align-items: stretch;
  }

  .header-right {
    max-width: none;
    width: 100%;
  }

  .search-container {
    width: 100%;
  }

  .search-box {
    font-size: 1rem;
  }

  .search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    width: 100%;
  }

  .menu-toggle {
    width: 100%;
    justify-content: center;
  }
}

/* ── Buttons ── */
.btn {
  background: linear-gradient(90deg, var(--accent-2), #0ea5e9);
  color: white; padding: 9px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 700; font-size: 0.875rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,99,235,0.35); }

.temas-back {
  position: absolute;
  top: 32px;
  right: max(20px, calc((100% - 1200px) / 2));
  z-index: 2;
  border: 1px solid rgba(186, 230, 253, 0.42);
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(125,211,252,0.08));
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 8px 24px rgba(2,132,199,0.18);
}

.temas-back:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(125,211,252,0.16));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.38), 0 12px 30px rgba(2,132,199,0.28);
}

.temas-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.temas-header .hero { padding-right: 110px; }

/* ── Subtemas grid (temas.html) ── */
.subtemas-section {
  max-width: none; margin: 0;
  padding: 24px 20px;
  background: rgba(10, 18, 30, 0.58);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(2,6,23,0.18), inset 0 1px 0 rgba(255,255,255,0.08);
}

.subtemas-section h2 { color: #dbeafe; margin-bottom: 8px; font-weight: 700; }
.subtemas-section p { color: rgba(191,219,254,0.8); margin-bottom: 18px; line-height: 1.7; }

.subtemas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }

.subtema-group {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(10, 17, 30, 0.68));
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 14px;
  padding: 16px;
  transition: transform 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 14px rgba(56,189,248,0.06);
}

.subtema-group:hover { transform: translateY(-2px); }

.subtema-group h3 { color: #e0f2fe; margin-bottom: 8px; font-size: 0.95rem; font-weight: 700; }
.subtema-group ul { list-style: none; padding-left: 0; }
.subtema-group li { margin: 6px 0; }
.subtema-group a { color: #7dd3fc; text-decoration: none; font-size: 0.9rem; transition: color 0.2s ease; }
.subtema-group a:hover { color: #a5f3fc; text-decoration: underline; }

/* ── Footer ── */
footer { background: transparent; color: var(--muted); text-align: center; padding: 32px 12px; font-size: 0.875rem; }

/* ── Animations ── */
@keyframes floatIn {
  from { opacity: 0; transform: translateY(18px) scale(.995); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes splashFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes splashFadeOut { from { opacity: 1; } to { opacity: 0; } }

@keyframes titleSlideDown {
  from { opacity: 0; transform: translateY(-40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes subtitleSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spinLoader { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fillLoader {
  0% { width: 0; }
  100% { width: 100%; }
}

/* ── Scrollbar ── */
.side-menu::-webkit-scrollbar { width: 6px; }
.side-menu::-webkit-scrollbar-thumb { background: linear-gradient(#cbd5e1, #94a3b8); border-radius: 8px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .header-content { flex-direction: column; align-items: stretch; }
  .header-left h1 { font-size: 1.1rem; }
  .header-right { max-width: none; flex-wrap: wrap; }
  .menu-toggle { width: 100%; }
  .option-grid { grid-template-columns: 1fr; }
  .landing { padding: 32px 20px; }
  .temas-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}



@media (max-width: 700px) {
  header { padding: 12px 16px; }
  .temas-header .hero { padding-right: 96px; }
  .temas-back { top: 24px; right: 16px; }
  .header-left h1 { font-size: 1rem; }
  .header-left .subtitle { font-size: 0.8rem; }
  .option-grid { grid-template-columns: 1fr; }
  .landing { margin-top: -20px; }
  .subtemas-grid { grid-template-columns: 1fr; }
  .temas-content { grid-template-columns: 1fr; gap: 14px; }
  .subtemas-section { padding: 22px 18px; }
  .intro-card h2 { font-size: 1.3rem; }
  .option-card { padding: 24px 18px; }
  .side-menu { width: 100%; }
}
