:root {
  --white: #ffffff;
  --black: #101010;
  --muted: #666666;
  --line: #111111;
  --soft-line: #e8e3d7;
  --gold: #c8a24a;
  --gold-soft: #f4ecd9;
  --navy: #0f2438;
  --navy-soft: #183a63;
  --radius: 28px;
  --shadow: 0 24px 70px rgba(0,0,0,.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 82px;
  padding: 10px 40px;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 28px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 8px 34px rgba(0,0,0,.045);
}

.brand {
  width: 120px;
  max-width: 120px;
  display: inline-flex;
  align-items: center;
  overflow: visible;
}

.logo {
  width: 120px;
  max-width: 120px;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform .25s ease;
}

.brand:hover .logo { transform: scale(1.03); }

.desktop-nav {
  display: flex;
  justify-self: center;
  align-items: center;
  gap: 42px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .03em;
}

.desktop-nav a {
  position: relative;
  padding: 10px 0;
  color: var(--black);
  opacity: .82;
  transition: opacity .25s ease, color .25s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width .25s ease;
}

.desktop-nav a:hover {
  opacity: 1;
  color: var(--black);
}

.desktop-nav a:hover::after { width: 100%; }

.mobile-menu-button {
  display: none;
  border: 1px solid var(--soft-line);
  background: white;
  border-radius: 999px;
  padding: 10px 13px;
  font-weight: 900;
  cursor: pointer;
}

.my-classes-btn {
  justify-self: end;
  background: var(--black);
  color: var(--white);
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .03em;
  border: 2px solid transparent;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.my-classes-btn:hover {
  transform: translateY(-2px);
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  box-shadow: 0 18px 42px rgba(0,0,0,.16);
}

.mobile-nav-panel { display: none; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 900;
}

.home-intro {
  padding: 56px 5vw 26px;
  text-align: center;
  background: white;
  animation: heroIn .75s ease both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-intro h1,
.search-page h1,
.simple-page h1 {
  margin: 0 auto;
  max-width: 980px;
  font-size: clamp(42px, 7vw, 82px);
  letter-spacing: -0.06em;
  line-height: .95;
}

.intro-copy {
  max-width: 760px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.trust-strip {
  max-width: 1180px;
  margin: 0 auto 30px;
  padding: 0 5vw;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-strip span {
  border: 1px solid var(--soft-line);
  background: white;
  color: var(--navy);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
}

.mode-cards {
  max-width: 1180px;
  margin: 24px auto 64px;
  padding: 0 5vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.mode-card {
  min-height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  background: #f5f5f5;
  box-shadow: var(--shadow);
  border: 2px solid var(--black);
  isolation: isolate;
  transition: transform .32s ease, box-shadow .32s ease;
}

.mode-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .35s ease, filter .35s ease;
  background-color: var(--navy);
}

.study .mode-bg {
  background-image: url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1400&q=80");
}

.exams .mode-bg {
  background-image: url("https://images.unsplash.com/photo-1434030216411-0b793f4b4173?auto=format&fit=crop&w=1400&q=80");
}

.mode-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.66), rgba(0,0,0,.10));
  z-index: 1;
  transition: background .32s ease;
}

.mode-card::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: calc(var(--radius) - 10px);
  z-index: 2;
  pointer-events: none;
  opacity: .8;
  transition: opacity .32s ease, inset .32s ease;
}

.mode-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 34px 90px rgba(0,0,0,.22);
}

.mode-card:hover .mode-bg {
  transform: scale(1.03);
  filter: blur(2px) saturate(.9);
}

.mode-card:hover::before {
  background: linear-gradient(to top, rgba(15,36,56,.82), rgba(24,58,99,.48));
}

.mode-card:hover::after {
  inset: 20px;
  opacity: 1;
}

.mode-content {
  position: relative;
  z-index: 3;
  padding: 42px;
  color: white;
  text-shadow: 0 2px 18px rgba(0,0,0,.18);
}

.mode-label {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  font-size: 13px;
  font-weight: 900;
}

.mode-content h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  letter-spacing: -0.05em;
  line-height: .94;
}

.mode-content p {
  max-width: 430px;
  margin: 18px 0 28px;
  font-size: 18px;
  line-height: 1.45;
  opacity: .9;
}

.mode-link {
  display: inline-flex;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: white;
  position: relative;
  transition: transform .3s ease;
}

.mode-card:hover .mode-link { transform: translateX(8px); }

.mode-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .3s ease;
}

.mode-card:hover .mode-link::after { width: 100%; }

.how-section {
  padding: 48px 5vw 68px;
  background: white;
  text-align: center;
}

.how-section h2 {
  margin: 0 0 28px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.how-flow {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: stretch;
  justify-content: center;
}

.how-flow article {
  flex: 1;
  border: 1px solid var(--soft-line);
  background: white;
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: 0 14px 40px rgba(0,0,0,.06);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.how-flow article:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 18px 50px rgba(0,0,0,.09);
}

.how-flow span {
  display: block;
  font-size: 34px;
  margin-bottom: 8px;
  color: var(--gold);
}

.how-flow strong {
  display: block;
  font-size: 17px;
}

.how-flow p {
  color: var(--muted);
  margin: 9px 0 0;
  font-size: 14px;
  line-height: 1.45;
}

.flow-arrow {
  display: flex;
  align-items: center;
  color: var(--gold);
  font-size: 26px;
  font-weight: 900;
}

.success-section {
  padding: 58px 5vw 72px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff, #faf1db);
}

.success-section h2 {
  margin: 0 0 28px;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.success-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.success-grid article {
  background: white;
  border: 1px solid var(--soft-line);
  border-radius: 22px;
  padding: 22px;
  text-align: left;
}

.success-grid strong { font-size: 17px; }

.success-grid p {
  color: var(--muted);
  line-height: 1.45;
}

.search-page {
  min-height: 78vh;
  padding: 66px 5vw;
  background: linear-gradient(180deg, #fff, #faf1db);
}

.section-header {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-header p,
.simple-page p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.search-box {
  max-width: 860px;
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  padding: 16px;
  border: 2px solid var(--black);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 18px 55px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.search-box:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 24px 70px rgba(0,0,0,.1);
}

.field { text-align: left; }

label {
  display: block;
  margin: 0 0 8px 4px;
  font-weight: 900;
  font-size: 13px;
  color: var(--black);
}

select {
  width: 100%;
  height: 54px;
  border: 1.5px solid var(--black);
  border-radius: 18px;
  padding: 0 16px;
  font-size: 16px;
  background: white;
}

.search-box button {
  align-self: end;
  height: 54px;
  border: none;
  border-radius: 18px;
  padding: 0 24px;
  background: var(--black);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.search-box button:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
}

.results-info {
  max-width: 1080px;
  margin: 20px auto;
  color: var(--muted);
  font-weight: 800;
}

.teacher-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.teacher-card {
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 26px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 16px 45px rgba(0,0,0,.08);
  transition: transform .28s ease, box-shadow .28s ease;
  position: relative;
}

.teacher-card:hover {
  transform: translateY(-5px) rotate(-.5deg);
  box-shadow: 0 24px 70px rgba(0,0,0,.14);
}

.teacher-card::after {
  content: "Ver detalles";
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,.92);
  color: var(--navy);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease;
}

.teacher-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.teacher-photo {
  height: 180px;
  background: linear-gradient(135deg, var(--navy), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.92);
  font-size: 72px;
  font-weight: 900;
}

.teacher-info { padding: 22px 26px 26px; }

.teacher-info h3 {
  margin: 6px 0 8px;
  font-size: 23px;
  letter-spacing: -0.03em;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.badge {
  font-size: 12px;
  font-weight: 900;
  background: var(--gold-soft);
  color: #735a19;
  padding: 7px 10px;
  border-radius: 999px;
}

.teacher-meta {
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
  margin: 10px 0;
}

.no-rating {
  color: var(--navy);
  font-weight: 900;
}

.simple-page {
  min-height: 70vh;
  padding: 80px 5vw;
  max-width: 1100px;
  margin: 0 auto;
}

.virtual-classes {
  margin: 34px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.virtual-classes article {
  border: 2px solid var(--black);
  border-radius: 24px;
  padding: 24px;
  background: white;
  box-shadow: 0 14px 40px rgba(0,0,0,.06);
}

.animal-icon { font-size: 42px; }

.status-pill {
  display: inline-flex;
  margin: 4px 0 14px;
  background: var(--gold-soft);
  color: #735a19;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.room-btn {
  display: inline-flex;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-weight: 900;
  transition: transform .25s ease, box-shadow .25s ease;
}

.room-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15,36,56,.22);
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: white;
  border-radius: 999px;
  padding: 16px 22px;
  font-weight: 900;
  white-space: nowrap;
  transition: transform .25s ease, background .25s ease, color .25s ease;
  animation: softPulse 2.8s ease-in-out infinite;
}

.whatsapp-btn:hover {
  background: #25D366;
  color: white;
  transform: translateY(-2px);
}

@keyframes softPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(0,0,0,0); }
  50% { box-shadow: 0 0 0 8px rgba(0,0,0,.06); }
}

.coming-soon {
  margin: 28px 0;
  border: 2px solid var(--black);
  border-radius: 26px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(0,0,0,.06);
}

.coming-soon strong { font-size: 24px; }

.site-footer {
  border-top: 1px solid var(--soft-line);
  padding: 44px 5vw 24px;
  color: var(--muted);
  background: white;
}

.footer-main {
  max-width: 1180px;
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: start;
  gap: 30px;
}

.footer-logo {
  width: 150px;
  height: auto;
  margin-bottom: 12px;
}

.footer-main strong { color: var(--black); }

.footer-main p { margin: 10px 0; }

.footer-main a:hover { color: var(--gold); }

.footer-legal {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid var(--soft-line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.58);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  z-index: 100;
}

.modal.open { display: flex; }

.modal-card {
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  background: white;
  border-radius: 30px;
  padding: 26px;
  position: relative;
  animation: modalIn .24s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: #f2f2f2;
  font-size: 26px;
  cursor: pointer;
}

.profile-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 26px;
  align-items: start;
}

.profile-photo {
  height: 280px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--navy), var(--gold));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 70px;
  font-weight: 900;
}

.schedule-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.schedule-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--soft-line);
  border-radius: 18px;
  background: #faf8f2;
}

.schedule-item strong { color: var(--navy); }

.schedule-item span:last-child {
  font-weight: 900;
  color: #735a19;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}

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

@media (max-width: 900px) {
  .site-header {
    min-height: 74px;
    padding: 10px 16px;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .brand,
  .logo {
    width: 100px;
    max-width: 100px;
  }

  .desktop-nav { display: none; }

  .mobile-menu-button {
    display: inline-flex;
    justify-self: center;
  }

  .my-classes-btn {
    padding: 10px 14px;
    font-size: 13px;
  }

  .mobile-nav-panel {
    display: none;
    position: absolute;
    top: 74px;
    left: 16px;
    right: 16px;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(18px);
    border: 1px solid var(--soft-line);
    border-radius: 22px;
    box-shadow: 0 24px 80px rgba(0,0,0,.12);
    padding: 12px;
    z-index: 50;
  }

  .mobile-nav-panel.open {
    display: grid;
    animation: menuIn .22s ease both;
  }

  @keyframes menuIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .mobile-nav-panel a {
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 800;
  }

  .mobile-nav-panel a:hover { background: #faf8f2; }

  .home-intro {
    padding: 36px 5vw 18px;
  }

  .home-intro h1,
  .search-page h1,
  .simple-page h1 {
    font-size: clamp(42px, 14vw, 58px);
  }

  .intro-copy { font-size: 16px; }

  .trust-strip {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }

  .trust-strip span { white-space: nowrap; }

  .mode-cards,
  .success-grid,
  .search-box,
  .teacher-grid,
  .profile-head,
  .virtual-classes,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .mode-card { min-height: 430px; }

  .mode-content { padding: 30px; }

  .mode-content h2 { font-size: 42px; }

  .mode-content p { font-size: 16px; }

  .how-flow {
    flex-direction: column;
  }

  .flow-arrow {
    justify-content: center;
    transform: rotate(90deg);
  }

  .teacher-card::after {
    opacity: 1;
    transform: none;
  }

  .teacher-photo {
    height: 150px;
    font-size: 58px;
  }

  .schedule-item { grid-template-columns: 1fr; }

  .footer-main { grid-template-columns: 1fr; }

  .footer-logo { width: 130px; }

  .footer-legal {
    flex-direction: column;
    text-align: center;
  }
}

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


/* ===== V7.3 - Modal premium + Higher Pass badges ===== */

body.modal-open {
  overflow: hidden;
}

.modal {
  align-items: flex-start;
  padding: 104px 22px 32px;
  overflow-y: auto;
}

.modal-card {
  max-width: 980px;
  border-radius: 34px;
  padding: 34px;
  box-shadow: 0 36px 100px rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.5);
}

.modal-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  transition: transform .2s ease, background .2s ease;
}

.modal-close:hover {
  transform: rotate(90deg);
  background: var(--gold-soft);
}

.profile-head {
  grid-template-columns: 190px 1fr;
  gap: 30px;
  align-items: start;
  margin-top: -18px;
}

.profile-head h2 {
  line-height: .95;
}

.profile-photo {
  height: 220px;
  border-radius: 28px;
}

.hp-mark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.22), transparent 24%),
    linear-gradient(135deg, var(--navy) 0%, #172d36 42%, var(--gold) 100%);
  color: white;
  border: 1px solid rgba(255,255,255,.18);
}

.hp-mark::before,
.hp-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 150%;
  aspect-ratio: 1 / .45;
  border: 2px solid rgba(255,255,255,.28);
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.hp-mark::before {
  bottom: 18%;
}

.hp-mark::after {
  bottom: 0%;
  opacity: .55;
}

.hp-mark span {
  position: relative;
  z-index: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 74px;
  font-weight: 700;
  letter-spacing: .03em;
  text-shadow: 0 8px 28px rgba(0,0,0,.24);
}

.teacher-photo.hp-mark span {
  font-size: 58px;
}

.animal-icon.hp-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.animal-icon.hp-mark span {
  font-size: 24px;
}

.hp-mark-g1 { background: linear-gradient(135deg, #0f2438 0%, #596152 48%, #c8a24a 100%); }
.hp-mark-g2 { background: linear-gradient(135deg, #132b42 0%, #675b39 55%, #d0a143 100%); }
.hp-mark-g3 { background: linear-gradient(135deg, #101010 0%, #24384a 45%, #c8a24a 100%); }
.hp-mark-g4 { background: linear-gradient(135deg, #0f2438 0%, #344d5c 48%, #b9933d 100%); }
.hp-mark-g5 { background: linear-gradient(135deg, #111827 0%, #3d4d55 48%, #c2a55a 100%); }
.hp-mark-g6 { background: linear-gradient(135deg, #081826 0%, #26394a 52%, #b68e35 100%); }
.hp-mark-el { background: linear-gradient(135deg, #0f2438 0%, #3c3440 50%, #c8a24a 100%); }
.hp-mark-paes { background: linear-gradient(135deg, #101010 0%, #172d36 50%, #c8a24a 100%); }

.schedule-list {
  margin-top: 18px;
}

.schedule-item {
  grid-template-columns: 150px 1fr auto;
  padding: 18px 20px;
  border-color: rgba(200,162,74,.28);
  background: linear-gradient(180deg, #fffdf8, #faf8f2);
}

.schedule-item strong {
  font-size: 15px;
}

.schedule-item span:last-child {
  background: var(--gold-soft);
  padding: 8px 12px;
  border-radius: 999px;
}

.modal-actions {
  position: sticky;
  bottom: -34px;
  margin: 28px -34px -34px;
  padding: 18px 34px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--soft-line);
  border-radius: 0 0 34px 34px;
}

.modal-actions .whatsapp-btn {
  animation: none;
}

@media (max-width: 900px) {
  .modal {
    padding: 86px 12px 18px;
  }

  .modal-card {
    padding: 22px;
    border-radius: 26px;
  }

  .profile-head {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: -8px;
  }

  .profile-photo {
    height: 150px;
  }

  .profile-photo.hp-mark span {
    font-size: 52px;
  }

  .schedule-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .modal-actions {
    margin: 24px -22px -22px;
    padding: 16px 22px;
    border-radius: 0 0 26px 26px;
  }

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


/* ===== V8 - Landing Matemáticas ===== */

.hero-actions {
  margin: 28px auto 0;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

.primary-cta {
  background: var(--black);
  color: white;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.secondary-cta {
  background: white;
  color: var(--black);
  border: 1.5px solid var(--black);
}

.primary-cta:hover,
.secondary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0,0,0,.14);
}

.primary-cta:hover {
  background: var(--gold);
  color: var(--black);
}

.math-hero {
  padding: 76px 5vw 54px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(200,162,74,.16), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
}

.math-hero h1 {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(44px, 7vw, 84px);
  letter-spacing: -0.06em;
  line-height: .95;
}

.math-grid-section,
.future-subjects {
  padding: 64px 5vw;
  background: white;
}

.math-groups-grid,
.future-subjects-grid {
  max-width: 1120px;
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.math-groups-grid article,
.future-subjects-grid article {
  border: 2px solid var(--black);
  border-radius: 26px;
  padding: 24px;
  background: white;
  box-shadow: 0 14px 40px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.math-groups-grid article:hover,
.future-subjects-grid article:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 70px rgba(0,0,0,.12);
}

.math-groups-grid h3 {
  margin: 8px 0 6px;
  font-size: 22px;
  letter-spacing: -.03em;
}

.math-groups-grid p,
.future-subjects-grid p {
  color: var(--muted);
}

.future-subjects {
  background: linear-gradient(180deg, #ffffff, #faf1db);
  text-align: center;
}

.future-subjects h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -.04em;
}

@media (max-width: 900px) {
  .hero-actions {
    align-items: stretch;
  }

  .primary-cta,
  .secondary-cta {
    width: 100%;
  }

  .math-groups-grid,
  .future-subjects-grid {
    grid-template-columns: 1fr;
  }

  .math-hero {
    padding: 48px 5vw 38px;
  }
}


/* ===== V8.1 - Futuras áreas Higher Pass ===== */
.future-subjects-grid {
  grid-template-columns: repeat(5, 1fr);
}

.future-subjects-grid article {
  text-align: left;
}

@media (max-width: 1100px) {
  .future-subjects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .future-subjects-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== V8.2 - Study Groups por asignatura ===== */

.subjects-hero {
  padding: 70px 5vw 28px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(200,162,74,.14), transparent 36%), white;
}

.subjects-hero h1 {
  margin: 0 auto;
  max-width: 980px;
  font-size: clamp(46px, 7vw, 84px);
  letter-spacing: -0.06em;
  line-height: .95;
}

.subjects-grid-section {
  padding: 36px 5vw 74px;
  background: linear-gradient(180deg, #fff, #faf1db);
}

.subjects-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.subject-card {
  min-height: 255px;
  border: 2px solid var(--black);
  border-radius: 28px;
  padding: 26px;
  background: white;
  box-shadow: 0 16px 45px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.subject-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 80px rgba(0,0,0,.14);
}

.subject-card span {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--navy), var(--gold));
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 800;
}

.subject-card h2 {
  margin: 22px 0 8px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.subject-card p {
  color: var(--muted);
  line-height: 1.45;
}

.subject-card strong {
  margin-top: 18px;
  color: var(--navy);
}

.subject-card.active {
  background: linear-gradient(180deg, white, #fffaf0);
}

.subject-card.soon {
  opacity: .92;
}

.soon-page {
  min-height: 68vh;
  padding: 76px 5vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 0%, rgba(200,162,74,.16), transparent 34%), linear-gradient(180deg, #fff, #faf1db);
}

.soon-card {
  width: min(860px, 100%);
  border: 2px solid var(--black);
  border-radius: 34px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  padding: clamp(30px, 5vw, 54px);
  text-align: center;
  box-shadow: 0 28px 90px rgba(0,0,0,.14);
}

.soon-badge {
  display: inline-flex;
  background: var(--gold-soft);
  color: #735a19;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 20px;
}

.soon-card h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 86px);
  letter-spacing: -0.06em;
  line-height: .95;
}

.soon-card p {
  max-width: 650px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .subjects-grid {
    grid-template-columns: 1fr;
  }

  .subject-card {
    min-height: 220px;
  }
}


/* ===== V8.4 - Flujo con filtro, sin hub público de asignaturas ===== */

.coming-soon-result {
  max-width: 860px;
  margin: 28px auto 0;
  padding: clamp(26px, 5vw, 44px);
  border: 2px solid var(--black);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 10%, rgba(200,162,74,.22), transparent 28%),
    rgba(255,255,255,.96);
  box-shadow: 0 24px 80px rgba(0,0,0,.12);
  text-align: center;
}

.coming-soon-result h2 {
  margin: 14px auto 0;
  max-width: 680px;
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -.05em;
  line-height: .96;
}

.coming-soon-result p {
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.coming-soon-result .primary-cta {
  margin-top: 24px;
}

.subjects-grid-section,
.subjects-hero {
  display: none;
}


/* ===== V8.7 Business Card Frontend Refresh ===== */

:root {
  --white: #ffffff;
  --black: #111111;
  --ink: #161616;
  --muted: #646464;
  --soft-line: #dedbd4;
  --gold: #9b7a3a;
  --gold-soft: #f7f5f1;
  --paper: #ffffff;
  --cream: #fbfaf7;
  --radius: 8px;
  --shadow: 0 18px 54px rgba(0,0,0,.08);
}

body {
  background: #fff !important;
  font-family: "IBM Plex Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
}

.site-header {
  min-height: 80px !important;
  padding: 10px 36px !important;
  background: rgba(255,255,255,.96) !important;
  border-bottom: 1px solid rgba(0,0,0,.08) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.035) !important;
}

.logo {
  width: 84px !important;
  max-width: 84px !important;
}

.brand {
  width: 96px !important;
  max-width: 96px !important;
}

.desktop-nav {
  gap: 38px !important;
  font-size: 13px !important;
  letter-spacing: .02em !important;
  font-weight: 600 !important;
}

.my-classes-btn,
.search-box button,
.whatsapp-btn,
.primary-cta,
.secondary-cta,
.room-btn {
  border-radius: 6px !important;
}

.search-page {
  background: #fff !important;
  padding-top: 42px !important;
}

.section-header {
  max-width: 860px !important;
  margin-bottom: 24px !important;
}

.section-header h1,
.home-intro h1,
.simple-page h1,
.math-hero h1 {
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 500 !important;
  letter-spacing: -0.045em !important;
}

.section-header h1 {
  font-size: clamp(46px, 7vw, 86px) !important;
}

.section-header p {
  max-width: 720px !important;
  margin: 16px auto 0 !important;
}

.search-box {
  max-width: 860px !important;
  border: 1px solid var(--soft-line) !important;
  border-radius: 8px !important;
  background: white !important;
  box-shadow: 0 16px 42px rgba(0,0,0,.06) !important;
}

select {
  border: 1px solid #cfcac0 !important;
  border-radius: 6px !important;
  background: white !important;
}

.results-info {
  max-width: 1120px !important;
  font-size: 18px !important;
  color: #222 !important;
  letter-spacing: -.02em !important;
}

.teacher-grid {
  max-width: 1120px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 22px !important;
}

.teacher-card.business-card {
  background: var(--paper) !important;
  border: 1px solid #d9d5cc !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 18px 48px rgba(0,0,0,.07) !important;
  min-height: 320px !important;
  cursor: pointer !important;
}

.teacher-card.business-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 28px 70px rgba(0,0,0,.11) !important;
  border-color: rgba(155,122,58,.45) !important;
}

.teacher-card.business-card::after {
  display: none !important;
}

.business-card-head {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 28px 28px 20px;
  background: linear-gradient(180deg, #ffffff, #fbfaf7);
}

.business-monogram {
  width: 58px;
  height: 58px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  color: var(--gold);
  background: #fff;
}

.business-level {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.business-seats {
  justify-self: end;
  padding: 9px 12px;
  border-radius: 6px;
  background: var(--gold-soft);
  color: #5e4a2b;
  font-weight: 800;
  font-size: 13px;
}

.teacher-info {
  padding: 0 28px 28px !important;
}

.teacher-info h3 {
  margin: 0 0 14px !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 28px !important;
  font-weight: 600 !important;
  letter-spacing: -.035em !important;
}

.badges {
  gap: 8px !important;
  margin: 14px 0 20px !important;
}

.badge {
  border: 1px solid #e5dfd3 !important;
  background: #fff !important;
  color: #4b4235 !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  padding: 7px 12px !important;
}

.business-details {
  border-top: 1px solid #e8e4dc;
  border-bottom: 1px solid #e8e4dc;
  padding: 16px 0;
  display: grid;
  gap: 12px;
}

.business-details p {
  margin: 0;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: start;
}

.business-details span {
  color: var(--muted);
  font-size: 13px;
}

.business-details strong {
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink);
}

.card-action {
  width: 100%;
  margin-top: 18px;
  height: 44px;
  border: 1px solid var(--gold);
  background: #fff;
  color: #6b4d17;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.teacher-card:hover .card-action {
  background: var(--gold);
  color: white;
}

.credential-strip {
  max-width: 1120px;
  margin: 18px auto 0;
  padding: 22px 26px;
  border: 1px solid #d9d5cc;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 14px 38px rgba(0,0,0,.045);
}

.credential-strip p,
.credential-strip small {
  color: var(--muted);
}

.credential-link {
  border: 1px solid var(--gold);
  color: #6b4d17;
  border-radius: 6px;
  padding: 12px 16px;
  font-weight: 800;
  white-space: nowrap;
}

.modal-card {
  border-radius: 8px !important;
}

.profile-head.business-profile {
  grid-template-columns: 180px 1fr !important;
}

.business-modal-mark {
  height: 220px !important;
  border-radius: 8px !important;
  background: #fff !important;
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
}

.business-modal-mark span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 68px;
}

.business-profile h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 500;
  letter-spacing: -.045em;
}

.modal-lead {
  color: var(--muted);
  line-height: 1.55;
  max-width: 660px;
}

.modal-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.modal-summary p {
  border: 1px solid #e3ded4;
  border-radius: 8px;
  padding: 14px;
  margin: 0;
  background: #fbfaf7;
}

.modal-summary strong {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.modal-summary span {
  font-weight: 800;
}

.credential-strip .credential-link:hover,
.card-action:hover {
  background: var(--gold);
  color: white;
}

.modal-section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px !important;
  font-weight: 500;
}

.schedule-item {
  border-radius: 8px !important;
  background: #fff !important;
  border-color: #e3ded4 !important;
}

.schedule-item span:last-child {
  background: var(--gold-soft) !important;
  color: #5e4a2b !important;
  border-radius: 6px !important;
}

.credential-page {
  min-height: 70vh;
  padding: 72px 5vw;
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 44px;
  align-items: center;
  background: #fff;
}

.credential-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: .94;
}

.credential-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  max-width: 720px;
}

.credential-validator {
  margin-top: 28px;
  max-width: 620px;
  padding: 20px;
  border: 1px solid #dedbd4;
  border-radius: 8px;
  background: #fbfaf7;
}

.credential-validator label {
  margin: 0 0 10px;
}

.credential-validator div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.credential-validator input {
  height: 48px;
  border: 1px solid #cfcac0;
  border-radius: 6px;
  padding: 0 14px;
}

.credential-validator button {
  border: 0;
  background: var(--black);
  color: #fff;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 800;
}

.teacher-credential-card {
  border: 1px solid #d9d5cc;
  border-radius: 8px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.10);
}

.credential-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid #e8e4dc;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.credential-topline img {
  width: 72px;
}

.credential-topline span {
  text-transform: uppercase;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .1em;
}

.credential-profile {
  display: flex;
  gap: 16px;
  align-items: center;
}

.credential-photo {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.teacher-credential-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.teacher-credential-card dl {
  margin: 24px 0;
  display: grid;
  gap: 12px;
}

.teacher-credential-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #eee9df;
  padding-bottom: 10px;
}

.teacher-credential-card dt {
  color: var(--muted);
}

.teacher-credential-card dd {
  margin: 0;
  font-weight: 800;
}

.mineduc-box {
  background: #fbfaf7;
  border: 1px solid #e3ded4;
  border-radius: 8px;
  padding: 16px;
}

.site-footer {
  background: #fff !important;
}

.footer-logo {
  width: 92px !important;
}

@media (max-width: 900px) {
  .site-header {
    padding: 9px 16px !important;
  }

  .logo,
  .brand {
    width: 74px !important;
    max-width: 74px !important;
  }

  .teacher-grid {
    grid-template-columns: 1fr !important;
  }

  .business-card-head {
    grid-template-columns: 60px 1fr;
  }

  .business-seats {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .business-details p {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .credential-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .credential-link {
    width: 100%;
    text-align: center;
  }

  .profile-head.business-profile,
  .credential-page {
    grid-template-columns: 1fr !important;
  }

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

  .credential-validator div {
    grid-template-columns: 1fr;
  }

  .credential-validator button {
    height: 46px;
  }
}


/* ===== V8.8 Auth & Account MVP ===== */

.auth-page,
.account-page {
  min-height: 72vh;
  padding: 72px 5vw;
  background: #fff;
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 52px;
  align-items: center;
}

.auth-copy h1,
.account-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 8vw, 92px);
  line-height: .92;
  letter-spacing: -.055em;
  font-weight: 500;
}

.auth-copy p,
.account-hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  max-width: 680px;
}

.auth-card {
  border: 2px solid #111;
  border-radius: 8px;
  padding: 30px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(0,0,0,.10);
  display: grid;
  gap: 16px;
}

.auth-card h2,
.account-panel h2,
.classes-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -.035em;
}

.auth-card label {
  display: grid;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
}

.auth-card input {
  height: 48px;
  border: 1px solid #cfcac0;
  border-radius: 6px;
  padding: 0 14px;
  font-size: 15px;
}

.auth-card button,
.account-user-card button {
  height: 48px;
  border: 0;
  border-radius: 6px;
  background: #111;
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.auth-message {
  min-height: 22px;
  color: var(--muted);
  font-weight: 700;
}

.auth-message.success { color: #146c43; }
.auth-message.error { color: #b42318; }

.auth-alt {
  margin: 0;
  color: var(--muted);
}

.auth-alt a {
  color: #6b4d17;
  font-weight: 900;
}

.auth-demo-box {
  margin-top: 28px;
  border: 1px solid #dedbd4;
  border-radius: 8px;
  padding: 18px;
  background: #fbfaf7;
}

.auth-demo-box p {
  margin: 8px 0 0;
  font-size: 14px;
}

.auth-demo-box code {
  background: white;
  border: 1px solid #e4dfd5;
  border-radius: 5px;
  padding: 2px 5px;
}

.account-hero {
  max-width: 1120px;
  margin: 0 auto 36px;
}

.account-user-card {
  margin-top: 24px;
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 16px;
  border: 1px solid #dedbd4;
  border-radius: 8px;
  padding: 14px 16px;
  background: #fbfaf7;
}

.account-user-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.account-user-card button {
  height: 38px;
  padding: 0 14px;
}

.account-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
}

.account-panel,
.classes-panel {
  border: 1px solid #dedbd4;
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 16px 48px rgba(0,0,0,.06);
}

.account-panel dl {
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.account-panel dl div {
  border-bottom: 1px solid #eee9df;
  padding-bottom: 10px;
}

.account-panel dt {
  color: var(--muted);
  font-size: 13px;
}

.account-panel dd {
  margin: 3px 0 0;
  font-weight: 900;
  word-break: break-word;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.classes-list {
  display: grid;
  gap: 14px;
}

.class-access-card {
  border: 1px solid #dedbd4;
  border-radius: 8px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fbfaf7;
}

.class-access-card h3 {
  margin: 10px 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
}

.class-access-card p {
  color: var(--muted);
  margin: 0 0 8px;
}

.class-access-card strong {
  display: block;
}

@media (max-width: 900px) {
  .auth-page,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-user-card {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .panel-heading,
  .class-access-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-heading .secondary-cta,
  .class-access-card .room-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}


/* ===== V9 Platform Auth ===== */

.auth-page,
.account-page {
  min-height: 72vh;
  padding: 72px 5vw;
  background: #fff;
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 52px;
  align-items: center;
}

.auth-page-single {
  grid-template-columns: minmax(320px, 520px);
  justify-content: center;
}

.auth-copy h1,
.account-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 8vw, 92px);
  line-height: .92;
  letter-spacing: -.055em;
  font-weight: 500;
}

.auth-copy p,
.account-hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  max-width: 680px;
}

.auth-card {
  border: 2px solid #111;
  border-radius: 8px;
  padding: 30px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(0,0,0,.10);
  display: grid;
  gap: 16px;
}

.auth-card h2,
.account-panel h2,
.classes-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -.035em;
}

.auth-card label {
  display: grid;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
}

.auth-card input {
  height: 48px;
  border: 1px solid #cfcac0;
  border-radius: 6px;
  padding: 0 14px;
  font-size: 15px;
}

.auth-card button,
.account-user-card button {
  height: 48px;
  border: 0;
  border-radius: 6px;
  background: #111;
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.auth-message {
  min-height: 22px;
  color: var(--muted);
  font-weight: 700;
}

.auth-message.success { color: #146c43; }
.auth-message.error { color: #b42318; }

.auth-alt {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-alt a {
  color: #6b4d17;
  font-weight: 900;
}

.auth-demo-box {
  margin-top: 28px;
  border: 1px solid #dedbd4;
  border-radius: 8px;
  padding: 18px;
  background: #fbfaf7;
}

.auth-demo-box p {
  margin: 8px 0 0;
  font-size: 14px;
}

.auth-demo-box code {
  background: white;
  border: 1px solid #e4dfd5;
  border-radius: 5px;
  padding: 2px 5px;
}

.account-hero {
  max-width: 1120px;
  margin: 0 auto 36px;
}

.account-user-card {
  margin-top: 24px;
  display: inline-grid;
  grid-template-columns: auto auto auto auto;
  align-items: center;
  gap: 16px;
  border: 1px solid #dedbd4;
  border-radius: 8px;
  padding: 14px 16px;
  background: #fbfaf7;
}

.account-user-card span,
.account-user-card em {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  font-style: normal;
}

.account-user-card button {
  height: 38px;
  padding: 0 14px;
}

.account-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
}

.account-panel,
.classes-panel {
  border: 1px solid #dedbd4;
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 16px 48px rgba(0,0,0,.06);
}

.account-panel dl {
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.account-panel dl div {
  border-bottom: 1px solid #eee9df;
  padding-bottom: 10px;
}

.account-panel dt {
  color: var(--muted);
  font-size: 13px;
}

.account-panel dd {
  margin: 3px 0 0;
  font-weight: 900;
  word-break: break-word;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.classes-list {
  display: grid;
  gap: 14px;
}

.class-access-card,
.role-action-card {
  border: 1px solid #dedbd4;
  border-radius: 8px;
  padding: 18px;
  background: #fbfaf7;
}

.class-access-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.class-access-card h3,
.role-action-card h3 {
  margin: 10px 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
}

.class-access-card p,
.role-action-card p {
  color: var(--muted);
  margin: 0 0 8px;
  line-height: 1.5;
}

.class-access-card strong {
  display: block;
}

.role-panel {
  margin-top: 22px;
}

.role-action-card a {
  display: inline-flex;
  margin-top: 10px;
  color: #6b4d17;
  font-weight: 900;
}

@media (max-width: 900px) {
  .auth-page,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-user-card {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .panel-heading,
  .class-access-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-heading .secondary-cta,
  .class-access-card .room-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
