:root {
  --bg: radial-gradient(circle at 20% 20%, #e9f1ff, #eef0ff 35%, #f8f9fb 70%);
  --bg-panel: rgba(255, 255, 255, 0.85);
  --border: rgba(255, 255, 255, 0.45);
  --primary: #6c5efb;
  --primary-dark: #4d3edb;
  --text: #101524;
  --text-light: rgba(16, 21, 36, 0.65);
  --success: #22c55e;
  --danger: #ef4444;
  --shadow-soft: 0 30px 60px rgba(60, 74, 123, 0.18);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.required-asterisk {
  display: inline;
  margin-left: 0.2rem;
  color: #dc2626;
  font-weight: 700;
  white-space: nowrap;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
}

html[data-theme='light'],
body[data-theme='light'] {
  color-scheme: light;
}

html[data-theme='dark'],
body[data-theme='dark'] {
  color-scheme: dark;
}

html[data-theme='dark'],
html[data-theme='dark'] body,
body[data-theme='dark'] {
  --bg: radial-gradient(circle at 20% 20%, #111827, #0f172a 40%, #020617 90%);
  --bg-panel: rgba(15, 23, 42, 0.82);
  --border: rgba(148, 163, 184, 0.24);
  --text: #e5e7eb;
  --text-light: rgba(203, 213, 225, 0.8);
  --shadow-soft: 0 30px 60px rgba(2, 6, 23, 0.55);
}

html[data-theme='dark'] .top-nav,
html[data-theme='dark'] .lang-dropdown__toggle,
html[data-theme='dark'] .lang-dropdown__menu,
html[data-theme='dark'] .profile-dropdown__toggle,
html[data-theme='dark'] .profile-dropdown__menu,
html[data-theme='dark'] .panel,
html[data-theme='dark'] .card,
html[data-theme='dark'] .modal-card,
html[data-theme='dark'] .cookie-banner {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(148, 163, 184, 0.24);
  color: var(--text);
}

html[data-theme='dark'] input,
html[data-theme='dark'] select,
html[data-theme='dark'] textarea {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(148, 163, 184, 0.32);
  color: var(--text);
}

html[data-theme='dark'] input::placeholder,
html[data-theme='dark'] textarea::placeholder {
  color: rgba(203, 213, 225, 0.62);
}

html[data-theme='dark'] .profile-action-module {
  border-color: rgba(148, 163, 184, 0.28);
  background: linear-gradient(170deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.92));
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.45);
}

html[data-theme='dark'] .profile-action-module__title {
  color: rgba(226, 232, 240, 0.95);
}

html[data-theme='dark'] .profile-action-module__desc {
  color: rgba(203, 213, 225, 0.84);
}

html[data-theme='dark'] .profile-action-link {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.78);
  color: rgba(226, 232, 240, 0.96);
}

html[data-theme='dark'] .profile-action-link:hover,
html[data-theme='dark'] .profile-action-link:focus-visible {
  border-color: rgba(129, 140, 248, 0.75);
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.5);
}

html[data-theme='dark'] .profile-action-link__meta {
  color: rgba(191, 219, 254, 0.86);
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 0.85rem;
  z-index: 1200;
  padding: 0.55rem 0.8rem;
  border-radius: 0.6rem;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0.7rem;
}

:focus-visible {
  outline: 3px solid rgba(108, 94, 251, 0.45);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.lang-dropdown__option:focus-visible {
  box-shadow: 0 0 0 3px rgba(108, 94, 251, 0.2);
  border-color: rgba(108, 94, 251, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem clamp(1rem, 6vw, 5rem);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(48, 57, 90, 0.08);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(16, 21, 36, 0.18);
}

.logo span {
  font-size: 0.9rem;
  line-height: 1.2;
  max-width: 220px;
}

.logo.is-clickable {
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  color: var(--text-light);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: rgba(108, 94, 251, 0.12);
  color: var(--text);
}

.nav-links a.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 25px rgba(108, 94, 251, 0.35);
}

body[data-page='home'] .nav-links a[data-nav='home'],
body[data-page='private'] .nav-links a[data-nav='private'],
body[data-page='catalog'] .nav-links a[data-nav='catalog'],
body[data-page='resources'] .nav-links a[data-nav='resources'],
body[data-page='contact'] .nav-links a[data-nav='contact'],
body[data-page='agenda'] .nav-links a[data-nav='agenda'],
body[data-page='register'] .nav-links a[data-nav='register'] {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 25px rgba(108, 94, 251, 0.35);
}

.lang-dropdown {
  position: relative;
}

.lang-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 21, 36, 0.15);
  background: rgba(255, 255, 255, 0.8);
  padding: 0.35rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(16, 21, 36, 0.08);
  color: var(--text);
}

.lang-dropdown__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(16, 21, 36, 0.08);
  box-shadow: 0 20px 40px rgba(16, 21, 36, 0.15);
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
}

.lang-dropdown.open .lang-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown__option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: none;
  background: transparent;
  padding: 0.45rem 0.6rem;
  border-radius: 0.8rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}

.lang-dropdown__option span {
  color: var(--text);
}

.lang-dropdown__option.active,
.lang-dropdown__option:hover {
  background: rgba(108, 94, 251, 0.12);
  color: var(--text);
}

.lang-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.lang-chevron {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

body[data-page] .lang-chevron {
  border-color: rgba(16, 21, 36, 0.8);
}

.lang-flag {
  width: 22px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid rgba(16, 21, 36, 0.15);
  display: inline-block;
  background-size: cover;
  background-position: center;
}

.lang-flag-es {
  background-image: linear-gradient(to bottom, #c60b1e 33%, #ffc400 33%, #ffc400 66%, #c60b1e 66%);
}

.lang-flag-ca {
  background-image: repeating-linear-gradient(
    to bottom,
    #f6d04d 0 18%,
    #d70c17 18% 36%
  );
}

.lang-flag-en {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2MCAzMCI+PHBhdGggZmlsbD0iIzAxMjE2OSIgZD0iTTAgMGg2MHYzMEgweiIvPjxwYXRoIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSI2IiBkPSJNMCAwbDYwIDMwTTYwIDBMMCAzMCIvPjxwYXRoIHN0cm9rZT0iI0M4MTAyRSIgc3Ryb2tlLXdpZHRoPSI0IiBkPSJNMCAwbDYwIDMwTTYwIDBMMCAzMCIvPjxwYXRoIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIxMCIgZD0iTTMwIDB2MzBNMCAxNWg2MCIvPjxwYXRoIHN0cm9rZT0iI0M4MTAyRSIgc3Ryb2tlLXdpZHRoPSI2IiBkPSJNMzAgMHYzME0wIDE1aDYwIi8+PC9zdmc+");
  background-size: cover;
  background-position: center;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  padding: 3.5rem clamp(1rem, 6vw, 6rem) 2.5rem;
}

.hero__content ul {
  padding-left: 1.2rem;
  color: var(--text-light);
}

.hero__highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.hero__highlights article {
  border: 1px solid rgba(16, 21, 36, 0.1);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.hero__summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.hero__summary-card {
  border-radius: 1.2rem;
  padding: 1.5rem;
  border: 1px solid rgba(16, 21, 36, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.hero__card {
  background: var(--bg-panel);
  border-radius: 1.35rem;
  padding: 2.2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.hero__card--inline {
  max-width: 420px;
  margin: 0 auto 1.5rem;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  padding: 0.8rem 0.95rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(16, 21, 36, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.phone-input-group {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 0.65rem;
  align-items: stretch;
}

.phone-input-group select,
.phone-input-group input {
  width: 100%;
}

.password-field {
  position: relative;
}

.password-field input[type='password'],
.password-field input[type='text'] {
  width: 100%;
  padding-right: 3rem;
}

.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border-radius: 0.6rem;
  border: 1px solid rgba(16, 21, 36, 0.14);
  background: #fff;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.password-toggle-btn:hover {
  transform: translateY(-50%);
  box-shadow: none;
}

.password-toggle-btn.is-visible {
  border-color: rgba(16, 21, 36, 0.28);
}

textarea {
  resize: vertical;
}

button {
  border: none;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, var(--primary), #8b78ff);
  color: white;
  font-weight: 600;
  padding: 0.95rem 1.4rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 18px 35px rgba(108, 94, 251, 0.38);
}

button.secondary {
  background: transparent;
  border: 1px solid rgba(16, 21, 36, 0.15);
  color: var(--text);
}

main {
  padding: 1rem clamp(1rem, 6vw, 6rem) 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#dashboard {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.panel {
  background: var(--bg-panel);
  border-radius: 1.6rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.panel--light {
  background: rgba(236, 238, 255, 0.8);
  box-shadow: none;
}

.panel--carousel {
  background: transparent;
  border: none;
  box-shadow: none;
  padding-top: 0;
}

.panel__header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

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

.register-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 3.75rem);
}

.register-panel::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -130px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 94, 251, 0.14), rgba(108, 94, 251, 0));
  pointer-events: none;
}

.register-hero {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}

.register-hero h1 {
  margin: 0.55rem 0 0.55rem;
  font-size: clamp(1.65rem, 2.8vw, 2.45rem);
  line-height: 1.2;
}

.register-hero .muted {
  max-width: 760px;
  font-size: 1rem;
}

.register-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 1.03fr) minmax(360px, 1fr);
  gap: clamp(1.2rem, 3.5vw, 2.7rem);
  align-items: start;
}

.register-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.register-info__card {
  border: 1px solid rgba(16, 21, 36, 0.08);
  border-radius: 1.35rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(246, 248, 255, 0.9));
  box-shadow: 0 18px 40px rgba(28, 36, 69, 0.12);
  padding: 1.15rem 1.2rem;
}

.register-info__card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.08rem;
}

.register-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.register-benefits li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--text-light);
}

.register-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(140deg, #6c5efb, #8b78ff);
  box-shadow: 0 0 0 3px rgba(108, 94, 251, 0.16);
}

.register-info__item {
  display: flex;
  gap: 0.9rem;
  padding: 0.6rem 0;
}

.register-info__item + .register-info__item {
  border-top: 1px solid rgba(16, 21, 36, 0.08);
}

.register-info__step {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(145deg, #6c5efb, #8b78ff);
  box-shadow: 0 8px 18px rgba(108, 94, 251, 0.35);
}

.register-info__item h3 {
  margin: 0;
  font-size: 1rem;
}

.register-info__item p {
  margin: 0.35rem 0 0;
  color: var(--text-light);
  font-size: 0.93rem;
}

.register-privacy-note {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
}

.register-info__items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.register-info__items article {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(16, 21, 36, 0.1);
}

.register-info__items article:last-child {
  border-bottom: none;
}

.register-info__items span {
  font-size: 1.8rem;
}

.register-card {
  border: 1px solid rgba(16, 21, 36, 0.09);
  border-radius: 1.45rem;
  padding: clamp(1.15rem, 2.5vw, 1.7rem);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 52px rgba(31, 40, 75, 0.16);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.register-card__header h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
}

.register-card__header .muted {
  margin: 0.45rem 0 0;
  font-size: 0.93rem;
}

.register-card__social {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.register-card__social p {
  margin: 0;
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.9rem;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(16, 21, 36, 0.18);
  background: #fff;
  color: var(--text);
  box-shadow: 0 8px 20px rgba(16, 21, 36, 0.08);
  font-size: 0.93rem;
}

.btn-google:hover {
  transform: none;
  box-shadow: 0 10px 24px rgba(16, 21, 36, 0.12);
}

.btn-google__icon {
  background: linear-gradient(160deg, #fff, #f5f7ff);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #ea4335;
  border: 1px solid rgba(16, 21, 36, 0.1);
}

.register-divider {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.84rem;
}

.register-divider::before,
.register-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(16, 21, 36, 0.1);
}

.register-form input:not([type='checkbox']) {
  width: 100%;
}

.register-form label {
  margin-top: 0.2rem;
}

.register-form button[type='submit'] {
  margin-top: 0.35rem;
}

.password-meter {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(16, 21, 36, 0.08);
  overflow: hidden;
}

.password-meter__bar {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, #f97316, #22c55e);
  transition: width 0.2s ease;
}

.password-meter__bar[data-level='0'] {
  width: 0%;
}

.password-meter__bar[data-level='1'] {
  width: 25%;
}

.password-meter__bar[data-level='2'] {
  width: 50%;
}

.password-meter__bar[data-level='3'] {
  width: 75%;
}

.password-meter__bar[data-level='4'] {
  width: 100%;
}

[data-password-label] {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.checkbox {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  padding: 0.1rem 0;
}

.register-form .checkbox {
  width: 100%;
  margin: 0.25rem 0 0;
  justify-content: flex-start;
  text-align: left;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.checkbox span {
  color: var(--text);
  line-height: 1.4;
  max-width: none;
  flex: 1;
}

.checkbox input {
  margin-top: 0;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.password-toggle-btn::before {
  content: '';
  display: block;
  width: 1rem;
  height: 0.62rem;
  border: 2px solid currentColor;
  border-radius: 0.8rem / 0.55rem;
  box-sizing: border-box;
}

.password-toggle-btn::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.24rem;
  height: 0.24rem;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.register-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  margin-top: 0.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(16, 21, 36, 0.08);
}

.register-card__footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.register-card__footer a:hover {
  text-decoration: underline;
}

@media (max-width: 1060px) {
  .register-grid {
    grid-template-columns: 1fr;
  }
  .register-info {
    order: 2;
  }
  .register-card {
    order: 1;
  }
}

@media (max-width: 640px) {
  .register-panel {
    padding: 1.2rem;
  }
  .register-hero {
    margin-bottom: 1rem;
  }
  .register-info__card {
    padding: 1rem;
  }
  .register-card {
    padding: 1rem;
  }
}
.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(108, 94, 251, 0.15);
  color: var(--primary-dark);
  font-size: 0.75rem;
  letter-spacing: 0.04rem;
  font-weight: 600;
}

.badge--secondary {
  background: rgba(16, 21, 36, 0.08);
  color: var(--text);
}

.list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.list .student-card {
  border: 1px solid rgba(16, 21, 36, 0.08);
  border-radius: 1rem;
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.95);
}

.account-toolbar,
.student-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.account-toolbar__row,
.student-toolbar__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.account-toolbar__count,
.student-toolbar__count {
  margin: 0;
}

.account-card,
.student-admin-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.account-card__header,
.student-admin-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.account-mail,
.student-admin-stage {
  margin: 0;
  color: var(--text-light);
}

.account-role {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(108, 94, 251, 0.28);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: rgba(108, 94, 251, 0.11);
}

.account-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.account-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(16, 21, 36, 0.16);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
}

.account-chip--active {
  border-color: rgba(34, 197, 94, 0.35);
  color: #166534;
  background: rgba(34, 197, 94, 0.14);
}

.account-chip--review {
  border-color: rgba(245, 158, 11, 0.35);
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
}

.account-chip--suspended {
  border-color: rgba(239, 68, 68, 0.35);
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.14);
}

.account-actions,
.student-admin-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.55rem;
}

.account-edit-editor,
.account-course-editor {
  margin-top: 0.2rem;
  border: 1px solid rgba(16, 21, 36, 0.14);
  border-radius: 0.9rem;
  padding: 0.7rem;
  background: rgba(249, 250, 255, 0.9);
}

.account-edit-editor__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}

.account-edit-editor__field:last-child {
  margin-bottom: 0;
}

.account-edit-editor__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.55rem;
}

.account-course-editor {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(220px, 1fr) minmax(160px, 220px);
  gap: 0.55rem;
  align-items: end;
}

.account-course-editor__label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
}

.account-course-editor__select {
  width: 100%;
}

.account-course-editor__save {
  width: 100%;
}

@media (max-width: 860px) {
  .account-course-editor {
    grid-template-columns: 1fr;
  }
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.inline-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.stat-card {
  border: 1px solid rgba(16, 21, 36, 0.08);
  border-radius: 1rem;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.95);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline__item {
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 0.9rem;
  box-shadow: 0 18px 32px rgba(30, 34, 62, 0.08);
}

.timeline__item h4 {
  margin-bottom: 0.4rem;
}

.timeline__item small {
  color: var(--text-light);
}

.timeline__item button {
  margin-top: 0.5rem;
  background: transparent;
  border: 1px solid rgba(16, 21, 36, 0.15);
  color: var(--text);
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-light);
}

.form-error {
  color: var(--danger);
  font-size: 0.9rem;
  min-height: 1.1rem;
}

.form-success {
  color: var(--success);
  font-size: 0.9rem;
  min-height: 1.1rem;
}

.filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filters fieldset {
  border: 1px solid rgba(16, 21, 36, 0.12);
  border-radius: 0.9rem;
  padding: 0.75rem 1rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(108, 94, 251, 0.18);
  color: var(--primary-dark);
  font-size: 0.85rem;
}

.chatbot-preview {
  border: 2px dashed rgba(16, 21, 36, 0.15);
  border-radius: 1rem;
  padding: 1.5rem;
  min-height: 320px;
  background: white;
}

.chatbot-preview iframe,
.chatbot-preview div {
  width: 100%;
  height: 100%;
}

.support-escalation {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(16, 21, 36, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
}

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

.kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 0;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.home-hub {
  position: relative;
  overflow: hidden;
}

.home-hub::before {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  top: -170px;
  right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 94, 251, 0.16), rgba(108, 94, 251, 0));
  pointer-events: none;
}

.home-hub-grid {
  position: relative;
  z-index: 1;
}

.home-hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  border: 1px solid rgba(16, 21, 36, 0.12);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.97), rgba(244, 247, 255, 0.92));
}

.home-hub-card h3 {
  margin: 0;
  line-height: 1.25;
}

.home-hub-card p {
  margin: 0;
}

.home-hub-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.2rem;
}

.home-hub-card__actions .button-link {
  padding: 0.58rem 0.82rem;
  font-size: 0.86rem;
}

.home-hub-list {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.home-hub-list__item {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  border: 1px solid rgba(16, 21, 36, 0.09);
  border-radius: 0.75rem;
  padding: 0.58rem 0.65rem;
  background: rgba(255, 255, 255, 0.88);
}

.home-hub-list__item strong {
  font-size: 0.93rem;
  line-height: 1.2;
}

.home-hub-list__item small {
  color: var(--text-light);
  font-size: 0.79rem;
  line-height: 1.35;
}

.home-hub-list__reason {
  color: #3f4f7a;
  font-size: 0.76rem;
  font-weight: 700;
}

.home-hub-list__item a {
  width: fit-content;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.81rem;
  text-decoration: none;
}

.home-hub-list__item a:hover {
  text-decoration: underline;
}

.home-planner {
  border: 1px solid rgba(15, 118, 110, 0.2);
}

.home-planner-toolbar {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: end;
}

.home-planner-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 210px;
}

.home-planner-toolbar select {
  min-height: 2.8rem;
}

.home-planner-summary {
  margin: 1rem 0 0;
  border: 1px solid rgba(16, 21, 36, 0.1);
  border-radius: 0.9rem;
  padding: 0.62rem 0.78rem;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  color: #1f3552;
}

.home-planner-grid {
  margin-top: 1rem;
}

.home-trust {
  border: 1px solid rgba(16, 21, 36, 0.1);
}

.home-trust-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.home-trust-card {
  border: 1px solid rgba(16, 21, 36, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.home-trust-card h3 {
  margin: 0;
  font-size: 1.03rem;
}

.home-trust-card p {
  margin: 0.45rem 0 0;
  color: var(--text-light);
}

.home-faq {
  border: 1px solid rgba(16, 21, 36, 0.1);
}

.home-faq-list {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.75rem;
}

.home-faq-item {
  border: 1px solid rgba(16, 21, 36, 0.1);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.75rem 0.9rem;
}

.home-faq-item summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.home-faq-item summary::-webkit-details-marker {
  display: none;
}

.home-faq-item summary::after {
  content: '+';
  float: right;
  color: var(--primary-dark);
}

.home-faq-item[open] summary::after {
  content: '-';
}

.home-faq-item p {
  margin: 0.7rem 0 0;
  color: var(--text-light);
}

.home-journeys {
  border: 1px solid rgba(108, 94, 251, 0.18);
}

.journey-switch {
  position: relative;
  margin-top: 1.2rem;
}

.journey-switch input[type='radio'] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.journey-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.journey-tab {
  border: 1px solid rgba(16, 21, 36, 0.14);
  border-radius: 0.95rem;
  padding: 0.72rem 0.8rem;
  text-align: center;
  font-weight: 700;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.journey-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(108, 94, 251, 0.35);
  color: var(--text);
}

.journey-panels {
  margin-top: 0.95rem;
}

.journey-panel {
  display: none;
  border: 1px solid rgba(16, 21, 36, 0.1);
  border-radius: 1rem;
  padding: 1.15rem 1.2rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 36px rgba(24, 34, 70, 0.08);
}

.journey-panel h3 {
  margin: 0;
}

.journey-panel ul {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

#journey-family:checked ~ .journey-tabs label[for='journey-family'],
#journey-teacher:checked ~ .journey-tabs label[for='journey-teacher'],
#journey-admin:checked ~ .journey-tabs label[for='journey-admin'] {
  border-color: rgba(108, 94, 251, 0.5);
  background: linear-gradient(135deg, rgba(108, 94, 251, 0.18), rgba(108, 94, 251, 0.06));
  color: var(--text);
  box-shadow: 0 14px 28px rgba(108, 94, 251, 0.16);
}

#journey-family:checked ~ .journey-panels .journey-panel--family,
#journey-teacher:checked ~ .journey-panels .journey-panel--teacher,
#journey-admin:checked ~ .journey-panels .journey-panel--admin {
  display: block;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, var(--primary), #8b78ff);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.button-link:hover {
  background: var(--primary-dark);
}

.button-link--ghost {
  background: transparent;
  color: var(--primary-dark);
  border: 1px solid rgba(108, 94, 251, 0.4);
  box-shadow: none;
}

.cta-links {
  margin-top: 1rem;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.carousel--showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 270px);
  border: 1px solid rgba(16, 21, 36, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.98));
}

.carousel--showcase::before {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  right: -120px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 94, 251, 0.22), rgba(108, 94, 251, 0));
  pointer-events: none;
}

.carousel__slides {
  display: flex;
  min-height: 380px;
  transform: translateX(0%);
  transition: transform 0.45s ease;
}

.carousel__slides[data-carousel-index='0'] {
  transform: translateX(0%);
}

.carousel__slides[data-carousel-index='1'] {
  transform: translateX(-100%);
}

.carousel__slides[data-carousel-index='2'] {
  transform: translateX(-200%);
}

.carousel__slide {
  min-width: 100%;
  min-height: 380px;
  background-color: #2c3552;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
  padding: 1rem;
}

.carousel__slide--home-1 {
  background-image: url('https://images.unsplash.com/photo-1503676260728-1c00da094a0b?auto=format&fit=crop&w=1500&q=80');
}

.carousel__slide--home-2 {
  background-image: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1500&q=80');
}

.carousel__slide--home-3 {
  background-image: url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1500&q=80');
}

.carousel__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(16, 21, 36, 0.78), rgba(16, 21, 36, 0.2));
  z-index: -1;
}

.carousel__slide::before {
  content: '';
  position: absolute;
  inset: auto -10% -20% auto;
  width: 52%;
  height: 66%;
  background: radial-gradient(circle at 50% 50%, rgba(108, 94, 251, 0.42), rgba(108, 94, 251, 0));
  filter: blur(6px);
  z-index: -1;
}

.carousel__content {
  position: relative;
  color: #fff;
  z-index: 1;
  padding: 1.55rem;
  border-radius: 1.15rem;
  max-width: 410px;
  background: rgba(8, 12, 24, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(7px);
  transform: translateY(8px);
  opacity: 0.96;
  transition: transform 280ms ease, opacity 280ms ease;
}

.carousel__slide.active .carousel__content {
  transform: translateY(0);
  opacity: 1;
}

.carousel__content h3 {
  margin: 0.35rem 0 0.55rem;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.2;
}

.carousel__content p {
  margin: 0;
}

.carousel__content .badge {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.carousel__content .button-link {
  margin-top: 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
}

.carousel__nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem;
  border-left: 1px solid rgba(16, 21, 36, 0.1);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
}

.carousel__tab {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(16, 21, 36, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  text-align: left;
  box-shadow: none;
}

.carousel__tab:hover {
  border-color: rgba(108, 94, 251, 0.35);
  background: rgba(108, 94, 251, 0.08);
}

.carousel__tab-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(16, 21, 36, 0.15);
  color: var(--text-light);
}

.carousel__tab-label {
  font-size: 0.92rem;
  font-weight: 700;
}

.carousel__tab.active {
  background: linear-gradient(135deg, rgba(108, 94, 251, 0.2), rgba(108, 94, 251, 0.08));
  border-color: rgba(108, 94, 251, 0.5);
  color: var(--text);
}

.carousel__tab.active .carousel__tab-index {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(108, 94, 251, 0.32);
}

.kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 0;
}

details {
  border: 1px solid rgba(16, 21, 36, 0.12);
  border-radius: 0.9rem;
  padding: 0.75rem 1rem;
  background: rgba(250, 251, 255, 0.85);
}

details + details {
  margin-top: 0.75rem;
}

details summary {
  cursor: pointer;
  font-weight: 600;
}

footer {
  text-align: center;
  padding: 2rem 1rem 4rem;
  color: var(--text-light);
  font-size: 0.85rem;
}

.footer-links {
  margin-top: 0.6rem;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 0.8rem;
}

.footer-links a {
  color: var(--primary-dark);
  text-decoration: none;
}

.cookie-banner {
  position: fixed;
  inset: 0;
  background: rgba(16, 21, 36, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 30;
}

.cookie-banner__dialog {
  width: min(480px, 100%);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 1.4rem;
  padding: 1.75rem;
  border: 1px solid rgba(16, 21, 36, 0.1);
  box-shadow: 0 30px 60px rgba(16, 21, 36, 0.2);
  text-align: left;
}

.cookie-banner__dialog p {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--text-light);
}

.cookie-banner__dialog a {
  color: var(--primary-dark);
  font-weight: 600;
}

.cookie-banner__actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(16, 21, 36, 0.6);
  padding: 1rem;
  z-index: 45;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
}

.modal__dialog {
  position: relative;
  width: min(760px, 92vw);
  max-height: 90vh;
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: 0 30px 60px rgba(16, 21, 36, 0.25);
  border: 1px solid rgba(16, 21, 36, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.modal__close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

.modal__hint {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

.privacy-modal__content {
  border: 1px solid rgba(16, 21, 36, 0.12);
  border-radius: 1rem;
  padding: 1rem;
  max-height: 45vh;
  overflow-y: auto;
  background: rgba(248, 249, 252, 0.8);
}

.privacy-modal__content h1,
.privacy-modal__content h2,
.privacy-modal__content h3 {
  margin-top: 1rem;
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.password-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 21, 36, 0.6);
  padding: 1rem;
  z-index: 40;
}

.password-modal__dialog {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 30px 60px rgba(16, 21, 36, 0.25);
  border: 1px solid rgba(16, 21, 36, 0.08);
}

.muted {
  color: var(--text-light);
  text-align: left;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 720px) {
  .nav-links {
    justify-content: center;
  }

  .hero__card,
  .panel {
    padding: 1.75rem;
  }

  button {
    width: 100%;
  }

  .inline-group {
    width: 100%;
  }

  .carousel--showcase {
    grid-template-columns: 1fr;
  }

  .carousel__slides,
  .carousel__slide {
    min-height: 330px;
  }

  .carousel__content {
    max-width: 100%;
    padding: 1.2rem;
  }

  .carousel__nav {
    border-left: 0;
    border-top: 1px solid rgba(16, 21, 36, 0.1);
    flex-direction: column;
  }

  .carousel__nav .carousel__tab {
    width: 100%;
  }

  .journey-tabs {
    grid-template-columns: 1fr;
  }

  .home-planner-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .home-planner-toolbar label {
    min-width: 100%;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }
}
/* Assistant widget */
.assistant-launcher {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  border: 1px solid rgba(16, 21, 36, 0.12);
  box-shadow: 0 20px 40px rgba(16, 21, 36, 0.25);
  cursor: pointer;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .register-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .phone-input-group {
    grid-template-columns: 1fr;
  }
}
.assistant-launcher__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.assistant-launcher__icon img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  display: block;
}
.assistant-launcher__bubble {
  position: absolute;
  right: calc(100% + 0.5rem);
  white-space: nowrap;
  background: #fff;
  color: var(--text);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  font-size: 0.8rem;
}
.assistant-panel {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: min(360px, 90vw);
  max-height: min(520px, 80vh);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 1.4rem;
  padding: 1rem;
  border: 1px solid rgba(16, 21, 36, 0.08);
  box-shadow: 0 25px 60px rgba(16, 21, 36, 0.25);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 40;
  display: flex;
  flex-direction: column;
}
.assistant-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.assistant-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.assistant-panel__close {
  border: none;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}
.assistant-chat {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}
.assistant-chat--full {
  min-height: 420px;
}
.assistant-chat--floating {
  height: 360px;
}
.assistant-chat__messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-right: 0.25rem;
}
.assistant-msg {
  max-width: 90%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(16, 21, 36, 0.12);
  font-size: 0.92rem;
  line-height: 1.4;
}
.assistant-msg--assistant {
  align-self: flex-start;
  background: rgba(108, 94, 251, 0.1);
  color: var(--text);
}
.assistant-msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary), #8b78ff);
  color: #fff;
}
.assistant-chat__composer {
  display: flex;
  gap: 0.5rem;
}
.assistant-chat__composer textarea {
  flex: 1;
  min-height: 48px;
  resize: none;
}
.assistant-chat__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.assistant-chat__chips-title {
  width: 100%;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light);
}
.assistant-chip {
  border: 1px solid rgba(16, 21, 36, 0.12);
  border-radius: 999px;
  background: #fff;
  padding: 0.4rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  box-shadow: 0 5px 18px rgba(16, 21, 36, 0.08);
}
.assistant-chip:hover {
  border-color: rgba(108, 94, 251, 0.5);
  color: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(108, 94, 251, 0.18);
}
.assistant-page-header {
  margin-bottom: 1rem;
}
@media (max-width: 720px) {
  .assistant-launcher {
    bottom: 1rem;
    right: 1rem;
  }
  .assistant-panel {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }
}
@media (max-width: 1080px) {
  .top-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
  }
  .hero,
  main {
    padding-left: clamp(0.75rem, 4vw, 4rem);
    padding-right: clamp(0.75rem, 4vw, 4rem);
  }

  .carousel--showcase {
    grid-template-columns: 1fr;
  }

  .carousel__nav {
    border-left: 0;
    border-top: 1px solid rgba(16, 21, 36, 0.1);
    flex-direction: row;
    align-items: stretch;
    flex-wrap: wrap;
  }

  .carousel__nav .carousel__tab {
    flex: 1 1 200px;
  }
}
@media (max-width: 768px) {
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    gap: 0.5rem;
  }
  .nav-links a {
    flex: 0 0 auto;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero__summary {
    grid-template-columns: 1fr;
  }
  .panel,
  .hero__card {
    padding: 1.5rem;
  }
}
@media (max-width: 480px) {
  body {
    font-size: 15px;
  }
  .cta-row {
    flex-direction: column;
  }
  .lang-dropdown {
    align-self: stretch;
    width: 100%;
  }
  .assistant-launcher__bubble {
    display: none;
  }
}
@media (min-width: 1400px) {
  .hero,
  main {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.profile-dropdown {
  position: relative;
}

.profile-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 21, 36, 0.12);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.35rem 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(16, 21, 36, 0.08);
  color: var(--text);
}

.profile-avatar {
  position: relative;
  overflow: hidden;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(108, 94, 251, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.profile-avatar--has-image {
  background: rgba(108, 94, 251, 0.04);
}

.profile-avatar__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-label {
  font-size: 0.85rem;
}

.profile-chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid rgba(16, 21, 36, 0.5);
  border-bottom: 2px solid rgba(16, 21, 36, 0.5);
  transform: rotate(45deg);
}

.profile-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  width: min(320px, 80vw);
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid rgba(16, 21, 36, 0.08);
  box-shadow: 0 25px 60px rgba(16, 21, 36, 0.2);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 15;
}

.profile-dropdown.open .profile-dropdown__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.profile-dropdown__header {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.profile-dropdown__name {
  font-weight: 700;
  margin: 0;
}

.profile-dropdown__mail {
  font-size: 0.8rem;
  color: var(--text-light);
}

.profile-dropdown__section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.profile-dropdown__section-title {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light);
  margin: 0;
}

.profile-dropdown__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  max-height: 19rem;
  overflow: auto;
  padding-right: 0.2rem;
}

.profile-dropdown__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.profile-dropdown__actions a {
  border: 1px solid rgba(16, 21, 36, 0.12);
  border-radius: 0.9rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.profile-dropdown__actions a:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(16, 21, 36, 0.12);
  border-color: rgba(79, 70, 229, 0.28);
}

.profile-dropdown__roles a {
  border: 1px solid rgba(16, 21, 36, 0.12);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.95);
}

.profile-dropdown__roles .muted {
  margin: 0;
}

.profile-dropdown__roles a.profile-role-chip--pending {
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(255, 251, 235, 0.95);
  color: #92400e;
}

.profile-action__label {
  line-height: 1.2;
}

.profile-action__tag {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
  background: rgba(16, 21, 36, 0.08);
  color: var(--text-light);
  white-space: nowrap;
}

.profile-action--neutral {
  background: rgba(255, 255, 255, 0.96);
}

.profile-action--commerce {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(59, 130, 246, 0.06));
  border-color: rgba(79, 70, 229, 0.34);
}

.profile-action--commerce .profile-action__tag {
  background: rgba(79, 70, 229, 0.14);
  color: #4338ca;
}

.profile-action--primary {
  background: linear-gradient(135deg, #635bff, #4f46e5);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.32);
}

.profile-action--primary .profile-action__tag {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.profile-dropdown__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 22rem;
  overflow: auto;
  padding-right: 0.2rem;
}

.profile-action-group {
  display: grid;
  gap: 0.45rem;
  padding: 0.58rem;
  border: 1px solid rgba(16, 21, 36, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
}

.profile-action-group__title {
  margin: 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  font-weight: 700;
}

.profile-action-group__list {
  display: grid;
  gap: 0.4rem;
}

.profile-dropdown__actions a {
  border-radius: 0.78rem;
  padding: 0.52rem 0.66rem;
  font-weight: 600;
}

.profile-action__label {
  font-weight: 700;
  line-height: 1.2;
}

.profile-action__arrow {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 700;
  line-height: 1;
}

.profile-action__tag {
  display: none !important;
}

.profile-action--commerce {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(59, 130, 246, 0.04));
  border-color: rgba(79, 70, 229, 0.2);
}

.profile-action--primary {
  background: linear-gradient(135deg, #635bff, #4f46e5);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.26);
}

.profile-action--primary .profile-action__arrow {
  color: rgba(255, 255, 255, 0.92);
}

.profile-action-board {
  display: grid;
  gap: 0.7rem;
}

.profile-action-module {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(16, 21, 36, 0.1);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.96));
  padding: 0.65rem;
  box-shadow: 0 12px 26px rgba(16, 21, 36, 0.08);
}

.profile-action-module::before {
  content: '';
  position: absolute;
  top: -1.6rem;
  right: -1.2rem;
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.2), transparent 70%);
  pointer-events: none;
}

.profile-action-module--access::before {
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.2), transparent 70%);
}

.profile-action-module--catalog::before {
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.2), transparent 70%);
}

.profile-action-module--private::before {
  background: radial-gradient(circle at center, rgba(34, 197, 94, 0.18), transparent 70%);
}

.profile-action-module__title {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2f3d63;
  font-weight: 800;
}

.profile-action-module__desc {
  margin: 0.15rem 0 0;
  font-size: 0.74rem;
  color: var(--text-light);
  line-height: 1.35;
}

.profile-action-module__grid {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.profile-action-link {
  border: 1px solid rgba(16, 21, 36, 0.13);
  border-radius: 0.78rem;
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  color: var(--text);
  padding: 0.46rem 0.58rem;
  display: grid;
  gap: 0.08rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.profile-action-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(16, 21, 36, 0.12);
  border-color: rgba(79, 70, 229, 0.35);
}

.profile-action-link.is-featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #635bff, #4f46e5);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.28);
}

.profile-action-link__label {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
}

.profile-action-link__meta {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #516082;
}

.profile-action-link.is-featured .profile-action-link__meta {
  color: rgba(255, 255, 255, 0.84);
}

.profile-dropdown__actions .profile-action-link {
  display: grid;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.08rem;
}

.profile-dropdown__actions .profile-action-link__label {
  white-space: normal;
  overflow-wrap: anywhere;
}

.profile-dropdown__actions .profile-action-link__meta {
  display: none !important;
}

@media (max-width: 560px) {
  .profile-action-module__grid {
    grid-template-columns: 1fr;
  }
}

.profile-dropdown__logout {
  border: none;
  border-radius: 0.9rem;
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  font-weight: 600;
  padding: 0.6rem 1rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }
  .profile-dropdown__menu {
    right: -1rem;
  }
}

/* Acciones rápidas unificadas en todas las páginas */
.profile-dropdown__menu {
  width: min(420px, 92vw);
}

.profile-dropdown__actions {
  max-height: 24rem;
  overflow: auto;
  padding-right: 0.25rem;
}

.profile-action-board {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.profile-action-module {
  padding: 0.72rem 0.78rem;
}

.profile-action-module__grid {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.profile-action-link,
.profile-dropdown__actions .profile-action-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 2.65rem;
  padding: 0.56rem 0.68rem;
  border-radius: 0.8rem;
  gap: 0.3rem;
}

.profile-action-link.is-featured {
  grid-column: auto;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.22);
}

.profile-dropdown__actions .profile-action-link__label {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  .profile-dropdown__menu {
    width: min(96vw, 420px);
    right: -0.45rem;
  }
}

/* Estabilidad global de botones: evita solapes y texto cortado */
button,
.btn-primary,
.btn-secondary,
.btn-google,
.ghost,
.button-link,
.link-button,
.profile-action-link {
  max-width: 100%;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

button:hover,
button:active,
.btn-primary:hover,
.btn-primary:active,
.btn-secondary:hover,
.btn-secondary:active,
.btn-google:hover,
.btn-google:active,
.ghost:hover,
.ghost:active,
.button-link:hover,
.button-link:active,
.profile-action-link:hover,
.profile-action-link:active {
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* Dark mode final override block */
html[data-theme='dark'] input,
html[data-theme='dark'] select,
html[data-theme='dark'] textarea {
  background: rgba(15, 23, 42, 0.82) !important;
  border-color: rgba(148, 163, 184, 0.34) !important;
  color: rgba(226, 232, 240, 0.96) !important;
}

html[data-theme='dark'] input:disabled,
html[data-theme='dark'] select:disabled,
html[data-theme='dark'] textarea:disabled,
html[data-theme='dark'] input[readonly],
html[data-theme='dark'] textarea[readonly] {
  background: rgba(15, 23, 42, 0.72) !important;
  color: rgba(203, 213, 225, 0.88) !important;
  -webkit-text-fill-color: rgba(203, 213, 225, 0.88) !important;
  opacity: 1;
}

html[data-theme='dark'] select option {
  background: #0f172a;
  color: #e2e8f0;
}

html[data-theme='dark'] .profile-dropdown__menu {
  background: rgba(8, 16, 34, 0.96);
  border-color: rgba(148, 163, 184, 0.28);
}

html[data-theme='dark'] .profile-dropdown__actions a,
html[data-theme='dark'] .profile-dropdown__roles a,
html[data-theme='dark'] .profile-action-link,
html[data-theme='dark'] .profile-dropdown__actions .profile-action-link {
  background: rgba(15, 23, 42, 0.84);
  border-color: rgba(148, 163, 184, 0.3);
  color: rgba(226, 232, 240, 0.96);
}

html[data-theme='dark'] .home-hub-card {
  border-color: rgba(148, 163, 184, 0.28);
  background: linear-gradient(170deg, rgba(17, 29, 55, 0.96), rgba(10, 18, 36, 0.94));
}

html[data-theme='dark'] .home-hub-list__item {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.9);
}

html[data-theme='dark'] .home-hub-list__item strong {
  color: rgba(226, 232, 240, 0.96);
}

html[data-theme='dark'] .home-hub-list__item small {
  color: rgba(191, 202, 219, 0.9);
}

html[data-theme='dark'] .home-hub-list__reason {
  color: rgba(125, 211, 252, 0.94);
}

html[data-theme='dark'] .home-hub-list__item a {
  color: rgba(147, 197, 253, 0.96);
}

html[data-theme='dark'] .home-hub-list__item a:hover {
  color: rgba(191, 219, 254, 1);
}

html[data-theme='dark'] .home-planner-summary {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.86);
  color: rgba(226, 232, 240, 0.95);
}

html[data-theme='dark'] .list .student-card,
html[data-theme='dark'] .account-edit-editor,
html[data-theme='dark'] .account-course-editor {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(148, 163, 184, 0.28);
  color: rgba(226, 232, 240, 0.96);
}

html[data-theme='dark'] .account-mail,
html[data-theme='dark'] .student-admin-stage,
html[data-theme='dark'] .account-course-editor__label,
html[data-theme='dark'] .account-toolbar__count,
html[data-theme='dark'] .student-toolbar__count {
  color: rgba(203, 213, 225, 0.9);
}

html[data-theme='dark'] .account-role {
  border-color: rgba(129, 140, 248, 0.4);
  background: rgba(79, 70, 229, 0.2);
  color: rgba(199, 210, 254, 0.98);
}

html[data-theme='dark'] .account-chip {
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(30, 41, 59, 0.86);
  color: rgba(226, 232, 240, 0.96);
}

html[data-theme='dark'] .account-chip--active {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.18);
  color: rgba(134, 239, 172, 0.98);
}

html[data-theme='dark'] .account-chip--review {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.18);
  color: rgba(253, 230, 138, 0.98);
}

html[data-theme='dark'] .account-chip--suspended {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.18);
  color: rgba(254, 202, 202, 0.98);
}
