:root{
  --bg: #07111f;
  --bg-soft: #0d1828;
  --panel: rgba(13, 24, 40, 0.55);
  --panel-strong: rgba(16, 30, 49, 0.76);
  --line: rgba(115, 147, 189, 0.12);
  --line-strong: rgba(138, 176, 235, 0.22);
  --text: #edf4ff;
  --muted: #93a3b8;
  --primary: #67a4ff;
  --primary-2: #95c0ff;
  --green: #57d879;
  --orange: #ff9e45;
  --purple: #a889ff;
  --blue: #67d3ff;
  --danger: #ff7a7a;
  --success: #7ef0c8;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.24);
  --nav-bg: rgba(7, 17, 31, 0.72);
  --tilt-x: 0deg;
  --tilt-y: 0deg;

  --header-height: 84px;
  --header-height-mobile: 70px;
  --container-padding: 20px;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 32px;
}

html[data-theme="light"]{
  --bg: #f6efe5;
  --bg-soft: #fff9f1;
  --panel: rgba(255,255,255,0.55);
  --panel-strong: rgba(255,255,255,0.74);
  --line: rgba(128, 102, 77, 0.12);
  --line-strong: rgba(144, 106, 66, 0.18);
  --text: #241a14;
  --muted: #746559;
  --primary: #a26b43;
  --primary-2: #c78858;
  --green: #6ea348;
  --orange: #d68532;
  --purple: #8463d3;
  --blue: #5592f3;
  --danger: #ff6b6b;
  --success: #57d879;
  --shadow: 0 24px 70px rgba(72, 46, 20, 0.12);
  --shadow-soft: 0 12px 36px rgba(72, 46, 20, 0.08);
  --nav-bg: rgba(246, 239, 229, 0.8);
}

*,
*::before,
*::after{
  box-sizing: border-box;
}

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

body{
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body::before{
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    linear-gradient(var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
  z-index: -2;
}

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

a,
button{
  -webkit-tap-highlight-color: transparent;
}

button,
input{
  font: inherit;
}

button{
  border: none;
  cursor: pointer;
}

input{
  outline: none;
}

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

.grid-overlay{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle at center, transparent 0%, transparent 45%, rgba(0,0,0,0.03) 100%);
}

.bg-orb{
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
}

.orb-1{
  width: 340px;
  height: 340px;
  top: 80px;
  left: -80px;
  background: var(--primary);
}

.orb-2{
  width: 340px;
  height: 340px;
  top: 260px;
  right: -80px;
  background: var(--blue);
}

.orb-3{
  width: 260px;
  height: 260px;
  bottom: 40px;
  left: 32%;
  background: var(--purple);
}

/* =========================
   NAVBAR
========================= */
.navbar{
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
}

.nav-pro-inner{
  min-height: var(--header-height);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
}

.brand{
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 8px 0;
}

.brand-mark{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}

.brand-text{
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong{
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.brand-text small{
  color: var(--muted);
  font-size: 0.76rem;
}

.menu-toggle{
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-strong);
  color: var(--text);
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.menu-toggle i{
  font-size: 1.35rem;
}

.nav-pro-links{
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
}

.nav-pro-item{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 0.95rem;
  border-right: 1px solid var(--line);
  white-space: nowrap;
  transition: background 0.25s ease, transform 0.2s ease;
}

.nav-pro-item:hover{
  background: rgba(255,255,255,0.06);
}

.nav-pro-icon{
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.nav-pro-green{ background: linear-gradient(135deg, #47b35c, #7ee38f); }
.nav-pro-orange{ background: linear-gradient(135deg, #d9772d, #f3a65b); }
.nav-pro-purple{ background: linear-gradient(135deg, #7b5cff, #a889ff); }

.nav-pro-item-disabled{
  opacity: 0.6;
  cursor: not-allowed;
}

.nav-pro-item-disabled:hover{
  background: transparent;
}

.theme-toggle{
  background: transparent;
  padding: 0 10px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--line);
  min-height: 44px;
}

.theme-toggle-track{
  width: 86px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0.22));
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 5px;
  box-shadow: inset 0 0 12px rgba(255,255,255,0.08), var(--shadow-soft);
  transform: scale(0.92);
  transition: background 0.3s ease;
}

html[data-theme="dark"] .theme-toggle-track{
  background: linear-gradient(135deg, rgba(24,44,70,0.9), rgba(12,24,40,0.9));
}

.theme-toggle-thumb{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd34d, #ff9f1a);
  display: grid;
  place-items: center;
  position: relative;
  transform: translateX(0);
  transition: transform 0.45s cubic-bezier(.22,.9,.22,1.2), background 0.35s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

html[data-theme="dark"] .theme-toggle-thumb{
  transform: translateX(40px);
  background: linear-gradient(135deg, #8bb6ff, #5c7cff);
}

.theme-toggle-thumb i{
  position: absolute;
  font-size: 0.95rem;
  color: #fff;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.icon-sun{ opacity: 1; transform: scale(1); }
.icon-moon{ opacity: 0; transform: scale(0.6); }

html[data-theme="dark"] .icon-sun{ opacity: 0; transform: scale(0.6); }
html[data-theme="dark"] .icon-moon{ opacity: 1; transform: scale(1); }

/* =========================
   MAIN / HERO
========================= */
main{
  position: relative;
  z-index: 1;
}

.hero{
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: 42px 0 70px;
}

.hero-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 34px;
  align-items: center;
}

.hero-chip{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  margin-bottom: 18px;
  font-weight: 700;
  font-size: 0.92rem;
  backdrop-filter: blur(10px);
}

.hero-chip-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(110,163,72,0.14);
  flex-shrink: 0;
}

.hero-copy h1{
  margin: 0 0 18px;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.09em;
  font-weight: 900;
  word-break: break-word;
}

.hero-copy h1 span{
  display: block;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc{
  max-width: 740px;
  color: var(--muted);
  margin: 0 0 22px;
  font-size: 1.08rem;
  line-height: 1.65;
}

.typing-box{
  margin: 24px 0 26px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(8, 14, 23, 0.94);
  color: #ecf6ff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.06);
  max-width: 680px;
  width: 100%;
}

.typing-top{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.typing-top small{
  margin-left: 8px;
  color: rgba(255,255,255,0.72);
  font-family: "JetBrains Mono", monospace;
}

.typing-light{
  width: 11px;
  height: 11px;
  border-radius: 999px;
  display: inline-block;
}

.typing-light.red{ background: #ff605c; }
.typing-light.yellow{ background: #ffbd44; }
.typing-light.green{ background: #00ca4e; }

.typing-body{
  padding: 18px 16px 20px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.98rem;
  min-height: 66px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.prompt{
  color: #7ee787;
  margin-right: 10px;
}

.typed-text{
  color: #e6edf3;
}

.cursor{
  width: 10px;
  height: 1.15em;
  background: #ffffff;
  display: inline-block;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
}

@keyframes blink{
  50%{ opacity: 0; }
}

.hero-actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-btn{
  text-decoration: none;
  padding: 15px 22px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
  min-width: 44px;
  min-height: 44px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary-custom{
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
}

.btn-secondary-custom{
  background: var(--panel-strong);
  color: var(--text);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.hero-btn:hover{
  transform: translateY(-3px);
}

.preview-window{
  border-radius: 28px;
  overflow: hidden;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform: perspective(1200px) rotateY(var(--tilt-x)) rotateX(var(--tilt-y));
  transition: transform 0.25s ease;
  will-change: transform;
}

.preview-window:hover{
  transform: perspective(1200px) rotateY(var(--tilt-x)) rotateX(var(--tilt-y)) translateY(-4px);
}

.preview-topbar{
  height: 58px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.08);
}

.window-lights{
  display: flex;
  gap: 8px;
}

.w-light{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.w-light.red{ background: #ff605c; }
.w-light.yellow{ background: #ffbd44; }
.w-light.green{ background: #00ca4e; }

.window-title{
  font-family: "JetBrains Mono", monospace;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window-actions{
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.preview-body{
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 440px;
}

.preview-sidebar{
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  padding: 22px 18px;
}

.preview-logo{
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.preview-logo-mark{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}

.preview-logo strong{
  display: block;
  font-size: 0.95rem;
}

.preview-logo small{
  color: var(--muted);
  font-size: 0.78rem;
}

.preview-menu{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-menu span{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.preview-menu span.active{
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
}

.preview-main{
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.preview-banner{
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(103,164,255,0.16), rgba(103,211,255,0.1));
  border: 1px solid rgba(255,255,255,0.08);
}

.preview-banner small{
  display: inline-block;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.preview-banner h3{
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.1;
}

.preview-banner p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.preview-cards{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.preview-card{
  border-radius: 20px;
  padding: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 140px;
}

.preview-card i{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1rem;
}

.preview-card strong{
  font-size: 1rem;
}

.preview-card small{
  color: var(--muted);
  line-height: 1.5;
}

.p-green i{ background: linear-gradient(135deg, #47b35c, #7ee38f); }
.p-orange i{ background: linear-gradient(135deg, #d9772d, #f3a65b); }
.p-purple i{ background: linear-gradient(135deg, #7b5cff, #a889ff); }
.p-blue i{ background: linear-gradient(135deg, #43b4ff, #67d3ff); }

/* =========================
   SECTIONS / CARDS
========================= */
.section{
  padding: 40px 0 68px;
}

.section-alt{
  padding-top: 14px;
}

.section-head{
  margin-bottom: 24px;
}

.section-label{
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head h2,
.access-copy h2{
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.section-head p,
.access-copy p{
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.courses-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.course-card{
  text-decoration: none;
  color: var(--text);
  border-radius: 28px;
  padding: 18px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 280px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.course-card:hover{
  transform: translateY(-5px);
  border-color: var(--line-strong);
}

.course-card-disabled{
  opacity: 0.88;
}

.course-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.course-icon{
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ci-green{ background: linear-gradient(135deg, #47b35c, #7ee38f); }
.ci-orange{ background: linear-gradient(135deg, #d9772d, #f3a65b); }
.ci-purple{ background: linear-gradient(135deg, #7b5cff, #a889ff); }

.course-tag{
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  white-space: nowrap;
}

.course-body{
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.course-body h3{
  margin: 0;
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.course-body p{
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.course-bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  font-weight: 800;
}

.course-bottom i{
  color: var(--muted);
  font-size: 1rem;
}

/* =========================
   ACCESS SECTION
========================= */
.access-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.access-points{
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.access-points article{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.access-points i{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.06);
  color: var(--primary);
  flex-shrink: 0;
}

.access-points strong{
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.access-points span{
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.96rem;
}

.access-panel{
  border-radius: 28px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.mini-console{
  border-radius: 20px;
  overflow: hidden;
  background: rgba(5, 11, 21, 0.96);
  border: 1px solid rgba(255,255,255,0.07);
}

.mini-console-top{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
}

.mini-console-top span{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.mini-console-top span:nth-child(1){ background: #ff605c; }
.mini-console-top span:nth-child(2){ background: #ffbd44; }
.mini-console-top span:nth-child(3){ background: #00ca4e; }

.mini-console-body{
  padding: 18px 16px;
  font-family: "JetBrains Mono", monospace;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-console-body p{
  margin: 0;
  line-height: 1.6;
  color: #d8e7ff;
  font-size: 0.96rem;
}

.mini-console-body .cmd{
  color: #ffd38a;
  margin-right: 6px;
}

.mini-console-body .ok{
  color: #7ef0c8;
  margin-right: 6px;
}

/* =========================
   MODAL
========================= */
.modal-acceso{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.modal-acceso.active{
  opacity: 1;
  pointer-events: auto;
}

.modal-acceso-backdrop{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(91, 140, 255, 0.18), transparent 26%),
    radial-gradient(circle at bottom left, rgba(126, 240, 200, 0.12), transparent 28%),
    rgba(3, 7, 18, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-acceso-dialog{
  position: relative;
  width: min(1080px, 100%);
  max-width: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(12, 19, 34, 0.92), rgba(8, 14, 27, 0.97));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
  max-height: min(92dvh, 100%);
}

.cerrar-modal-acceso{
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.04);
  color: #eaf2ff;
  display: grid;
  place-items: center;
  transition: 0.25s ease;
}

.cerrar-modal-acceso:hover{
  background: rgba(255,255,255,0.09);
  transform: translateY(-2px);
}

.modal-acceso-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.98fr);
  min-height: auto;
}

.modal-panel{
  min-width: 0;
}

.modal-panel-main{
  padding: 46px 34px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-panel-side{
  padding: 32px;
  border-left: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255,255,255,0.02);
}

.modal-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(126, 240, 200, 0.08);
  border: 1px solid rgba(126, 240, 200, 0.18);
  color: #7ef0c8;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  width: fit-content;
}

.modal-chip-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7ef0c8;
}

#tituloAcceso{
  margin: 0 0 12px;
  color: #edf4ff;
  font-size: clamp(2.3rem, 4vw, 3.7rem);
  line-height: 0.94;
  letter-spacing: -0.08em;
}

#subtituloAcceso{
  margin: 0 0 28px;
  color: #99aac7;
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 520px;
}

.terminal-box{
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(10,18,33,0.95), rgba(4,10,22,0.98));
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
  margin-bottom: 24px;
}

.terminal-top{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal-lights{
  display: flex;
  gap: 8px;
}

.terminal-lights .red,
.terminal-lights .yellow,
.terminal-lights .green{
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-lights .red{ background: #ff5f57; }
.terminal-lights .yellow{ background: #febc2e; }
.terminal-lights .green{ background: #28c840; }

.terminal-top small{
  margin-left: 8px;
  color: #91a2c2;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  font-family: "JetBrains Mono", monospace;
}

.terminal-body{
  min-height: 320px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.terminal-body p{
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  line-height: 1.7;
  color: #d8ecff;
}

.terminal-progress{
  margin-top: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.terminal-progress-bar{
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
  margin-bottom: 10px;
}

.terminal-progress-fill{
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #57c4ff, #7ef0c8);
  box-shadow: 0 0 18px rgba(87,196,255,0.35);
  transition: width 0.35s ease;
}

#progressText{
  color: #a9bbd8;
  font-size: 0.95rem;
  font-family: "JetBrains Mono", monospace;
}

.form-acceso{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-label{
  display: block;
  margin-bottom: 10px;
  color: #edf4ff;
  font-weight: 700;
  font-size: 1.02rem;
}

.password-wrap{
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrap input{
  width: 100%;
  height: 64px;
  padding: 0 56px 0 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.025));
  color: #edf4ff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
  font-size: 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.password-wrap input::placeholder{
  color: rgba(234,242,255,0.34);
}

.password-wrap input:focus{
  border-color: rgba(95, 153, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(91,140,255,0.12), 0 0 0 1px rgba(91,140,255,0.18) inset;
}

.toggle-password{
  position: absolute;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: transparent;
  color: #93a4c3;
  display: grid;
  place-items: center;
  transition: 0.2s ease;
}

.toggle-password:hover{
  color: #edf4ff;
  background: rgba(255,255,255,0.06);
}

.clave-error{
  margin: -4px 0 0;
  color: #ff7a7a;
  font-size: 0.98rem;
  font-weight: 700;
}

.remember-check{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #93a4c3;
  cursor: pointer;
  user-select: none;
  font-size: 0.98rem;
  padding: 8px 0;
}

.remember-check input{
  width: 18px;
  height: 18px;
  accent-color: #67a4ff;
}

.modal-actions{
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.avatar-secure{
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.avatar-core{
  width: 100px;
  height: 100px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #57c4ff, #6f72ff);
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 12px 30px rgba(86, 138, 255, 0.24);
}

.side-copy small{
  display: inline-block;
  color: #7ef0c8;
  margin-bottom: 10px;
  font-weight: 700;
}

.side-copy strong{
  display: block;
  color: #edf4ff;
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.side-copy p{
  margin: 0 0 18px;
  color: #99aac7;
  line-height: 1.6;
}

.side-card{
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.06);
}

.side-card span{
  display: block;
  color: #9cb0ce;
  margin-bottom: 8px;
}

.side-card strong{
  color: #eaf2ff;
}

/* =========================
   REVEAL
========================= */
.reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible{
  opacity: 1;
  transform: translateY(0);
}

.delay-1{ transition-delay: 0.08s; }
.delay-2{ transition-delay: 0.16s; }

/* =========================
   FOCUS
========================= */
a:focus-visible,
button:focus-visible,
input:focus-visible{
  outline: 3px solid rgba(103,164,255,0.4);
  outline-offset: 2px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1200px){
  .hero-grid{
    grid-template-columns: 1fr;
  }

  .hero-copy{
    max-width: 860px;
  }

  .preview-window{
    max-width: 920px;
    margin: 0 auto;
  }

  .courses-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 980px){
  .navbar{
    height: var(--header-height-mobile);
  }

  .nav-pro-inner{
    min-height: var(--header-height-mobile);
  }

  .menu-toggle{
    display: inline-flex;
    flex-shrink: 0;
  }

  .nav-pro-links{
    position: absolute;
    top: calc(100% + 12px);
    left: var(--container-padding);
    right: var(--container-padding);
    width: auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    border-radius: 22px;
    overflow: hidden;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px;
  }

  .nav-pro-links.open{
    display: flex;
  }

  .nav-pro-item{
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
    border-radius: 14px;
  }

  .nav-pro-item:last-of-type{
    border-bottom: 0;
  }

  .theme-toggle{
    border-left: 0;
    padding: 12px 8px 4px;
    justify-content: flex-start;
    height: auto;
  }

  .hero{
    min-height: calc(100vh - var(--header-height-mobile));
    padding: 28px 0 42px;
  }

  .preview-body{
    grid-template-columns: 1fr;
  }

  .preview-sidebar{
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .modal-acceso{
    padding: 12px;
  }

  .modal-acceso-dialog{
    max-height: 94dvh;
    border-radius: 24px;
    overflow-y: auto;
  }

  .modal-acceso-grid{
    grid-template-columns: 1fr;
  }

  .modal-panel-side{
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
}

@media (max-width: 768px){
  :root{
    --container-padding: 16px;
  }

  .orb-1{
    width: 200px;
    height: 200px;
    top: 40px;
    left: -40px;
    filter: blur(60px);
    opacity: 0.18;
  }

  .orb-2{
    width: 200px;
    height: 200px;
    top: 180px;
    right: -40px;
    filter: blur(60px);
    opacity: 0.18;
  }

  .orb-3{
    width: 160px;
    height: 160px;
    bottom: 20px;
    left: 20%;
    filter: blur(60px);
    opacity: 0.18;
  }

  .brand-mark{
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .brand-text strong{
    font-size: 0.92rem;
  }

  .brand-text small{
    font-size: 0.7rem;
  }

  .hero-desc,
  .section-head p,
  .access-copy p{
    font-size: 1rem;
  }

  .typing-box{
    border-radius: 18px;
  }

  .typing-body{
    font-size: 0.9rem;
    padding: 16px 14px;
  }

  .hero-actions{
    flex-direction: column;
    width: 100%;
  }

  .hero-btn{
    width: 100%;
  }

  .preview-window{
    border-radius: 22px;
  }

  .preview-topbar{
    height: 50px;
    padding: 0 14px;
    gap: 10px;
  }

  .window-title{
    font-size: 0.8rem;
  }

  .preview-main{
    padding: 18px;
  }

  .preview-banner{
    padding: 18px;
  }

  .preview-banner h3{
    font-size: 1.15rem;
  }

  .preview-cards{
    grid-template-columns: 1fr;
  }

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

  .course-card{
    min-height: auto;
    border-radius: 24px;
  }

  .access-panel{
    border-radius: 24px;
  }

  .modal-panel-main,
  .modal-panel-side{
    padding: 22px 18px;
  }

  #tituloAcceso{
    font-size: 2rem;
    line-height: 1;
  }

  #subtituloAcceso{
    font-size: 0.96rem;
    margin-bottom: 22px;
  }

  .terminal-body{
    min-height: auto;
    padding: 20px 16px;
  }

  .terminal-body p{
    font-size: 0.85rem;
  }

  .password-wrap input{
    height: 56px;
    border-radius: 16px;
  }

  .modal-actions{
    flex-direction: column;
  }

  .modal-actions .hero-btn{
    width: 100%;
  }

  .avatar-core{
    width: 84px;
    height: 84px;
    border-radius: 20px;
    font-size: 1.7rem;
  }
}

@media (max-width: 480px){
  :root{
    --container-padding: 14px;
  }

  .brand{
    gap: 10px;
  }

  .brand-mark{
    width: 38px;
    height: 38px;
    font-size: 0.88rem;
  }

  .brand-text strong{
    font-size: 0.86rem;
  }

  .brand-text small{
    font-size: 0.66rem;
  }

  .typing-top{
    padding: 10px 12px;
  }

  .typing-top small{
    font-size: 0.74rem;
  }

  .typing-body{
    font-size: 0.82rem;
    min-height: 58px;
  }

  .prompt{
    margin-right: 6px;
  }

  .hero-chip{
    font-size: 0.82rem;
    padding: 9px 12px;
  }

  .section{
    padding: 28px 0 46px;
  }

  .section-head{
    margin-bottom: 18px;
  }

  .section-head h2,
  .access-copy h2{
    font-size: 2rem;
  }

  .course-icon{
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .course-body h3{
    font-size: 1.45rem;
  }

  .course-body p{
    font-size: 0.95rem;
  }

  .access-points article{
    padding: 14px;
    border-radius: 18px;
  }

  .access-points i{
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .mini-console-body p{
    font-size: 0.84rem;
  }

  .modal-acceso-dialog{
    border-radius: 20px;
  }

  .cerrar-modal-acceso{
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .modal-chip{
    font-size: 0.76rem;
    padding: 7px 12px;
  }

  .side-copy strong{
    font-size: 1.15rem;
  }

  .side-card{
    padding: 16px;
  }
}

@media (max-width: 360px){
  .brand-text{
    display: none;
  }

  .typing-top small{
    display: none;
  }

  .window-actions{
    display: none;
  }

  .course-top{
    align-items: flex-start;
    flex-direction: column;
  }

  .course-tag{
    align-self: flex-start;
  }

  .access-points article{
    flex-direction: column;
  }

  .modal-panel-main,
  .modal-panel-side{
    padding: 18px 14px;
  }
}
/* ========== MARCA CENDEVS.PRO ========== */
.brand-pro .brand-colibri {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 12px rgba(36, 70, 198, .35));
}

.hero-wordmark {
  margin: 18px 0 14px;
  line-height: 0;
}

/* Wordmark sin el borde de sticker: las letras toman el color del tema y los acentos el degradé de marca. */
.wordmark {
  position: relative;
  display: block;
  width: min(100%, 540px);
  aspect-ratio: 1126 / 59;
}

.wordmark i {
  position: absolute;
  inset: 0;
  -webkit-mask: var(--mascara) center / contain no-repeat;
  mask: var(--mascara) center / contain no-repeat;
}

.wordmark-letras {
  --mascara: url("../assets/img/marca/wordmark-letras.png");
  background: var(--text);
}

.wordmark-acento {
  --mascara: url("../assets/img/marca/wordmark-acento.png");
  background: linear-gradient(90deg, var(--blue), var(--purple));
}

.preview-logo-colibri {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
}

/* Tarjetas de la ventana de inicio: ahora son links a cada materia */
a.preview-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}

a.preview-card:hover {
  transform: translateY(-2px);
}

/* =========================
   ACCESO: cada uno ve lo suyo
========================= */
[hidden] { display: none !important; }

/* Mientras se consulta la sesión, las materias no se muestran. */
.verificando .protected-link,
.verificando [data-invitado],
.verificando #navSesion { visibility: hidden; }

/* "Ingresar" resaltado en la barra cuando no hay sesión */
.nav-pro-item.nav-pro-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
}

.nav-pro-item.nav-pro-cta:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  filter: brightness(1.06);
}

.nav-pro-cta .nav-pro-icon {
  background: rgba(255, 255, 255, .22);
}

/* Con una sola materia, su tarjeta ocupa todo el ancho */
.preview-cards.una-materia a.preview-card.protected-link:not([hidden]) {
  grid-column: 1 / -1;
}

.courses-grid.una-materia {
  grid-template-columns: minmax(0, 560px);
}

/* =========================
   INICIO: características
========================= */
.hero-desc strong { color: var(--text); }

.hero-features {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 680px;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.hero-features strong { display: block; font-size: .95rem; }
.hero-features small { color: var(--muted); font-size: .86rem; }

.hf-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}

.hf-green { background: linear-gradient(135deg, #47b35c, #7ee38f); }
.hf-orange { background: linear-gradient(135deg, #d9772d, #f3a65b); }
.hf-purple { background: linear-gradient(135deg, #7b5cff, #a889ff); }

/* Sin sesión el ingreso ya está a la vista: el botón del hero sobra. */
.es-invitado #heroIngresar { display: none; }

/* =========================
   TARJETA DE ACCESO
========================= */
.acceso {
  --acento: linear-gradient(135deg, var(--primary), var(--purple));
  position: relative;
  max-width: 480px;
  margin-left: auto;
  border-radius: 28px;
  overflow: hidden;
  background: var(--panel-strong);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

/* Filo de luz arriba de la tarjeta */
.acceso::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--purple), transparent);
  opacity: .9;
}

.acceso-topbar {
  height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
}

.acceso-url {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-right: 46px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(127, 127, 127, .08);
  font-family: "JetBrains Mono", monospace;
  font-size: .8rem;
  color: var(--muted);
}

.acceso-url i { color: var(--green); font-size: .75rem; }

.acceso-body { padding: 26px 28px 22px; }

.acceso-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.acceso-marca {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: radial-gradient(circle at 30% 25%, rgba(168, 137, 255, .28), rgba(103, 164, 255, .12));
  border: 1px solid var(--line-strong);
}

.acceso-marca img { width: 40px; height: 40px; object-fit: contain; }

.acceso-head h2 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.acceso-head p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }

.acceso-destino {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(103, 164, 255, .1);
  border: 1px solid rgba(103, 164, 255, .25);
  font-size: .9rem;
}

.acceso-destino > i { color: var(--primary); }
.acceso-destino span { flex: 1; }

.acceso-destino button {
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
}

.acceso-destino button:hover { background: rgba(127, 127, 127, .12); color: var(--text); }

.acceso-form { display: grid; gap: 16px; }

.acceso-campo label {
  display: block;
  margin-bottom: 7px;
  font-weight: 800;
  font-size: .88rem;
}

.acceso-input {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1.5px solid var(--line-strong);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.acceso-input:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(103, 164, 255, .16);
}

html[data-theme="light"] .acceso-input:focus-within { box-shadow: 0 0 0 4px rgba(162, 107, 67, .14); }

.acceso-input.es-valido { border-color: var(--green); }
.acceso-input.es-error { border-color: var(--danger); }

.acceso-input > i {
  width: 44px;
  text-align: center;
  color: var(--muted);
  flex-shrink: 0;
}

.acceso-input input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 12px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 500 1rem "Inter", sans-serif;
}

#usuarioInput { font-family: "JetBrains Mono", monospace; font-size: .95rem; }

.acceso-input input::placeholder { color: var(--muted); opacity: .6; }

.acceso-ok { padding-right: 14px; color: var(--green); }

.acceso-ojo {
  width: 44px;
  height: 44px;
  margin-right: 3px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.acceso-ojo:hover { color: var(--text); background: rgba(127, 127, 127, .1); }

.acceso-ayuda,
.acceso-mayus {
  display: block;
  margin-top: 6px;
  font-size: .8rem;
  color: var(--muted);
}

.acceso-mayus { color: var(--orange); font-weight: 700; }

.acceso-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 107, 107, .12);
  border: 1px solid rgba(255, 107, 107, .3);
  color: var(--danger);
  font-weight: 700;
  font-size: .88rem;
}

.acceso-error.sacudir { animation: sacudir .35s ease; }

@keyframes sacudir {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.acceso-entrar {
  height: 52px;
  border: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 800 1rem "Inter", sans-serif;
  color: #fff;
  background: var(--acento);
  box-shadow: 0 12px 28px rgba(103, 164, 255, .28);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

html[data-theme="light"] .acceso-entrar {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 28px rgba(162, 107, 67, .28);
}

.acceso-entrar:hover { transform: translateY(-2px); filter: brightness(1.06); }
.acceso-entrar:hover i { transform: translateX(3px); }
.acceso-entrar i { transition: transform .2s ease; }

.acceso-entrar:disabled { cursor: progress; filter: saturate(.7); transform: none; }

.acceso-entrar.cargando i {
  animation: girar .8s linear infinite;
}

.acceso-entrar.cargando i::before { content: "\f130"; } /* bi-arrow-repeat */

@keyframes girar { to { transform: rotate(360deg); } }

.acceso-ayudante {
  margin-top: 16px;
  border-radius: 14px;
  border: 1px dashed var(--line-strong);
}

.acceso-ayudante summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  font-weight: 700;
  font-size: .88rem;
  color: var(--muted);
  cursor: pointer;
}

.acceso-ayudante summary::-webkit-details-marker { display: none; }
.acceso-ayudante summary span { flex: 1; }
.acceso-ayudante summary:hover { color: var(--text); }
.acceso-chev { transition: transform .2s ease; }
.acceso-ayudante[open] .acceso-chev { transform: rotate(180deg); }

.acceso-ayudante-body {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.acceso-ayudante-campos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.acceso-ayudante-campos input {
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  color: var(--text);
  font: 500 .9rem "Inter", sans-serif;
  outline: 0;
}

.acceso-ayudante-campos input:focus { border-color: var(--primary); }

.acceso-ayudante-resultado {
  display: flex;
  align-items: center;
  gap: 8px;
}

.acceso-ayudante-resultado code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(8, 14, 23, .9);
  color: #7ee787;
  font: 500 .9rem "JetBrains Mono", monospace;
}

.acceso-ayudante-resultado button {
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--panel-strong);
  color: var(--text);
  font: 700 .85rem "Inter", sans-serif;
  cursor: pointer;
}

.acceso-ayudante-resultado button:disabled { opacity: .45; cursor: not-allowed; }
.acceso-ayudante-body > small { color: var(--muted); font-size: .78rem; }

.acceso-pasos {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.acceso-pasos li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.2;
}

.acceso-pasos span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: .72rem;
  color: var(--primary);
  border: 1.5px solid currentColor;
}

.acceso-estado {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-top: 1px solid var(--line);
  background: rgba(8, 14, 23, .55);
  color: #93a3b8;
  font: 500 .76rem "JetBrains Mono", monospace;
}

html[data-theme="light"] .acceso-estado { background: rgba(36, 26, 20, .9); color: #d8cabb; }

.acceso-led {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ffbd44;
  box-shadow: 0 0 0 4px rgba(255, 189, 68, .15);
  transition: background .2s ease, box-shadow .2s ease;
}

.acceso-led.ok { background: #00ca4e; box-shadow: 0 0 0 4px rgba(0, 202, 78, .18); }
.acceso-led.error { background: #ff605c; box-shadow: 0 0 0 4px rgba(255, 96, 92, .18); }
.acceso-led.trabajando { animation: titilar .7s ease-in-out infinite; }

@keyframes titilar { 50% { opacity: .3; } }

.acceso-dominio { margin-left: auto; opacity: .7; }

/* Destello cuando alguien toca una materia o "Ingresar" sin sesión */
.acceso.llamar { animation: llamar .9s ease; }

@keyframes llamar {
  30% { box-shadow: 0 0 0 6px rgba(103, 164, 255, .35), var(--shadow); }
}

@media (max-width: 1200px) {
  .acceso { margin: 0 auto; }
  /* En una columna, sin sesión, el ingreso va primero. */
  .es-invitado .hero-visual { order: -1; }
}

@media (max-width: 480px) {
  .acceso-body { padding: 22px 18px 18px; }
  .acceso-url { margin-right: 0; }
  .acceso-pasos { grid-template-columns: 1fr; }
  .acceso-head h2 { font-size: 1.35rem; }
}

/* Lista de usuarios en PDF, dentro de "¿No sabés tu usuario?" */
.acceso-lista {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}

.acceso-lista:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.acceso-lista > i { color: var(--muted); }

.acceso-lista-icono {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(135deg, #e5484d, #ff7a7a);
}

.acceso-lista-texto { flex: 1; min-width: 0; }
.acceso-lista-texto strong { display: block; font-size: .9rem; }
.acceso-lista-texto small { color: var(--muted); font-size: .78rem; }

.acceso-separador {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
}

.acceso-separador::before,
.acceso-separador::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}
