/* =========================================================
   Academia ETERNI · App Shell V27
   Interfaz privada tipo aplicación
   ========================================================= */
:root{
  --app-sidebar-width:272px;
  --app-topbar-height:76px;
  --app-bg:#f6f3f1;
  --app-card:#fffdfa;
  --app-purple:#3c2743;
  --app-purple-2:#51345a;
  --app-purple-soft:#efe8f1;
  --app-gold:#c7a56a;
  --app-text:#2e2930;
  --app-muted:#746c77;
  --app-border:rgba(62,40,69,.10);
  --app-shadow:0 14px 36px rgba(48,30,54,.08);
}

body.student-app{
  min-height:100vh;
  background:
    radial-gradient(circle at 92% 4%,rgba(199,165,106,.10),transparent 24rem),
    var(--app-bg);
  color:var(--app-text);
  padding-left:var(--app-sidebar-width);
  padding-top:var(--app-topbar-height);
}

body.student-app.app-drawer-open{overflow:hidden}

.student-app .site-header{
  position:static;
  z-index:auto;
  padding:0;
  border:0;
  background:none;
  backdrop-filter:none;
}

.student-app .app-sidebar{
  position:fixed;
  inset:0 auto 0 0;
  z-index:180;
  width:var(--app-sidebar-width);
  display:flex;
  flex-direction:column;
  padding:22px 18px 18px;
  color:#fff;
  background:
    radial-gradient(circle at 22% 12%,rgba(255,255,255,.08),transparent 13rem),
    linear-gradient(180deg,#42284a 0%,#2e1d34 68%,#26172b 100%);
  box-shadow:18px 0 54px rgba(39,22,44,.14);
}

.student-app .app-sidebar-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:58px;
  margin-bottom:28px;
  padding:0 5px;
}

.student-app .app-brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:#fff;
}

.student-app .app-brand-logo{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.18);
  border-radius:16px;
  background:rgba(255,255,255,.10);
}

.student-app .app-brand-logo img{
  width:46px;
  height:46px;
  object-fit:contain;
  filter:brightness(0) invert(1);
}

.student-app .app-brand > span:last-child{display:grid}
.student-app .app-brand small{
  color:#dfc28d;
  font-size:9px;
  font-weight:800;
  letter-spacing:.20em;
}
.student-app .app-brand strong{
  font:600 24px/1 "Cormorant Garamond",serif;
  letter-spacing:.10em;
}

.student-app .app-sidebar-close{
  display:none;
  width:40px;
  height:40px;
  place-items:center;
  border:0;
  border-radius:13px;
  color:#fff;
  background:rgba(255,255,255,.09);
}

.student-app .app-sidebar-close svg,
.student-app .app-menu-button svg,
.student-app .app-icon-button svg,
.student-app .app-signout svg,
.student-app .app-nav-icon svg,
.student-app .app-bottom-nav svg{
  width:21px;
  height:21px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.student-app .app-primary-nav,
.student-app .app-secondary-nav,
.student-app .app-support-nav{
  display:grid;
  gap:6px;
}

.student-app .app-secondary-nav{margin-top:24px}

.student-app .app-nav-label{
  margin:0 12px 8px;
  color:rgba(255,255,255,.42);
  font-size:9px;
  font-weight:800;
  letter-spacing:.17em;
}

.student-app .app-nav-link{
  min-height:48px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border:1px solid transparent;
  border-radius:15px;
  color:rgba(255,255,255,.70);
  font-size:13px;
  font-weight:600;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}

.student-app .app-nav-link:hover{
  color:#fff;
  background:rgba(255,255,255,.075);
  transform:translateX(2px);
}

.student-app .app-nav-link.active{
  color:#fff;
  border-color:rgba(255,255,255,.10);
  background:linear-gradient(135deg,rgba(255,255,255,.16),rgba(255,255,255,.08));
  box-shadow:0 12px 30px rgba(16,8,19,.16);
}

.student-app .app-nav-link.active .app-nav-icon{
  color:#f0d39b;
  background:rgba(240,211,155,.11);
}

.student-app .app-nav-icon{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:10px;
}

.student-app .app-sidebar-spacer{flex:1}

.student-app .app-account-card{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:18px;
  padding:10px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:18px;
  background:rgba(255,255,255,.07);
}

.student-app .app-account-main{
  min-width:0;
  flex:1;
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff;
}

.student-app .app-account-avatar,
.student-app .app-top-avatar{
  display:grid;
  place-items:center;
  flex:0 0 auto;
  color:#fff;
  font-size:12px;
  font-weight:800;
  background:linear-gradient(135deg,#ad7fae,#76527c);
}

.student-app .app-account-avatar{
  width:38px;
  height:38px;
  border-radius:13px;
}

.student-app .app-account-main > span:last-child{
  min-width:0;
  display:grid;
}
.student-app .app-account-main strong{
  overflow:hidden;
  font-size:12px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.student-app .app-account-main small{
  color:rgba(255,255,255,.50);
  font-size:10px;
}

.student-app .app-signout{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:11px;
  color:rgba(255,255,255,.66);
  background:transparent;
  cursor:pointer;
}
.student-app .app-signout:hover{
  color:#fff;
  background:rgba(255,255,255,.09);
}

.student-app .app-topbar{
  position:fixed;
  inset:0 0 auto var(--app-sidebar-width);
  z-index:150;
  height:var(--app-topbar-height);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:0 30px;
  border-bottom:1px solid var(--app-border);
  background:rgba(250,248,246,.88);
  box-shadow:0 8px 24px rgba(50,33,56,.035);
  backdrop-filter:blur(20px);
}

.student-app .app-topbar-left{
  min-width:0;
  display:flex;
  align-items:center;
  gap:13px;
}

.student-app .app-topbar-left > div{
  min-width:0;
  display:grid;
}

.student-app .app-topbar-left span{
  overflow:hidden;
  color:var(--app-muted);
  font-size:10px;
  font-weight:700;
  letter-spacing:.04em;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.student-app .app-topbar-left strong{
  color:var(--app-purple);
  font:600 25px/1.1 "Cormorant Garamond",serif;
}

.student-app .app-menu-button{
  display:none;
  width:42px;
  height:42px;
  place-items:center;
  border:1px solid var(--app-border);
  border-radius:13px;
  color:var(--app-purple);
  background:#fff;
}

.student-app .app-topbar-actions{
  display:flex;
  align-items:center;
  gap:9px;
}

.student-app .app-icon-button{
  position:relative;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border:1px solid var(--app-border);
  border-radius:13px;
  color:var(--app-purple);
  background:rgba(255,255,255,.82);
  box-shadow:0 8px 22px rgba(50,33,56,.045);
}

.student-app .app-icon-button:hover{
  background:#fff;
  transform:translateY(-1px);
}

.student-app .app-bell-button i{
  position:absolute;
  top:8px;
  right:8px;
  width:7px;
  height:7px;
  border:2px solid #fff;
  border-radius:50%;
  background:#b88650;
}

.student-app .app-top-avatar{
  width:42px;
  height:42px;
  border-radius:14px;
  box-shadow:0 8px 22px rgba(65,39,71,.16);
}

.student-app .app-sidebar-overlay{
  position:fixed;
  inset:0;
  z-index:170;
  visibility:hidden;
  opacity:0;
  background:rgba(24,14,27,.52);
  backdrop-filter:blur(3px);
  transition:.2s ease;
}
.student-app .app-sidebar-overlay.show{
  visibility:visible;
  opacity:1;
}

.student-app .app-bottom-nav{display:none}

/* El contenido deja de sentirse como una web larga. */
.student-app main{
  min-height:calc(100vh - var(--app-topbar-height));
  margin:0;
  padding:0 0 48px;
}

.student-app .shell{
  width:100%;
  max-width:1440px;
  padding-inline:30px;
}

.student-app .site-footer{display:none}

.student-app .student-dashboard-hero,
.student-app .subhero,
.student-app .webinar-hero,
.student-app .course-detail-hero{
  min-height:auto;
  margin:0;
  padding:34px 0 20px;
  border:0;
  background:transparent;
}

.student-app .student-dashboard-hero h1,
.student-app .subhero h1,
.student-app .webinar-hero h1,
.student-app .course-detail-copy h1{
  color:var(--app-purple);
}

.student-app .student-dashboard-hero p,
.student-app .subhero p{
  max-width:720px;
  color:var(--app-muted);
}

.student-app .dashboard-section,
.student-app .page-section,
.student-app .webinar-view-section{
  padding-top:18px;
  padding-bottom:18px;
}

.student-app .dashboard-summary-grid,
.student-app .dashboard-strip{
  gap:14px;
}

.student-app .summary-card,
.student-app .dashboard-panel,
.student-app .student-dynamic-card,
.student-app .media-card,
.student-app .book-card,
.student-app .resource-card,
.student-app .settings-card,
.student-app .account-card,
.student-app .purchase-card,
.student-app .certificate-card,
.student-app .notification-item,
.student-app .help-card,
.student-app .faq-item,
.student-app .calendar-card,
.student-app .webinar-info-card{
  border:1px solid var(--app-border);
  border-radius:20px;
  background:rgba(255,253,250,.88);
  box-shadow:var(--app-shadow);
}

.student-app .summary-card{
  min-height:132px;
  padding:22px;
}

.student-app .summary-card strong{
  color:var(--app-purple);
  font-size:34px;
}

.student-app .continue-learning-card,
.student-app .webinar-player-shell{
  border-radius:22px;
  box-shadow:0 20px 50px rgba(48,30,54,.12);
}

.student-app .quick-access-grid a{
  min-height:122px;
  border:1px solid var(--app-border);
  border-radius:18px;
  background:rgba(255,253,250,.86);
  box-shadow:0 12px 30px rgba(48,30,54,.06);
}

.student-app .filter-bar,
.student-app .notification-filters,
.student-app .search-filter-bar{
  padding:7px;
  border:1px solid var(--app-border);
  border-radius:16px;
  background:rgba(255,255,255,.72);
  box-shadow:0 8px 24px rgba(48,30,54,.04);
}

.student-app .filter,
.student-app [data-notification-filter],
.student-app [data-search-filter]{
  border-radius:11px;
}

.student-app .btn,
.student-app button{
  -webkit-tap-highlight-color:transparent;
}

.student-app .btn-primary{
  background:linear-gradient(135deg,var(--app-purple-2),var(--app-purple));
  box-shadow:0 10px 26px rgba(66,40,73,.18);
}

.student-app .student-section-heading,
.student-app .section-heading{
  margin-top:12px;
}

.student-app .dashboard-main-grid,
.student-app .dashboard-two-column{
  gap:18px;
}

.student-app .account-layout{
  gap:18px;
}

.student-app .account-side-nav{
  position:sticky;
  top:calc(var(--app-topbar-height) + 22px);
  border:1px solid var(--app-border);
  border-radius:20px;
  background:rgba(255,253,250,.88);
  box-shadow:var(--app-shadow);
}

.student-app .lesson-shell{
  min-height:calc(100vh - var(--app-topbar-height));
}

.student-app .lesson-topbar{
  top:var(--app-topbar-height);
}

.student-app .webinar-hero-grid{
  gap:24px;
}

.student-app .webinar-hero-art{
  min-height:260px;
  border-radius:22px;
}

.student-app .webinar-hero-art img{min-height:260px}

@media(max-width:1180px){
  :root{--app-sidebar-width:238px}
  .student-app .app-sidebar{padding-inline:14px}
  .student-app .app-nav-link{padding-inline:10px}
  .student-app .shell{padding-inline:24px}
}

@media(max-width:920px){
  body.student-app{
    padding-left:0;
    padding-top:68px;
    padding-bottom:76px;
  }

  .student-app .app-topbar{
    inset:0 0 auto 0;
    height:68px;
    padding:0 18px;
  }

  .student-app .app-menu-button{display:grid}
  .student-app .app-topbar-left strong{font-size:22px}

  .student-app .app-sidebar{
    width:min(310px,86vw);
    transform:translateX(-104%);
    transition:transform .22s ease;
  }

  .student-app .app-sidebar.open{transform:translateX(0)}
  .student-app .app-sidebar-close{display:grid}

  .student-app .app-bottom-nav{
    position:fixed;
    inset:auto 10px 10px;
    z-index:160;
    min-height:64px;
    display:grid;
    grid-template-columns:repeat(5,1fr);
    padding:7px;
    border:1px solid rgba(62,40,69,.10);
    border-radius:20px;
    background:rgba(255,253,250,.94);
    box-shadow:0 18px 48px rgba(40,25,45,.18);
    backdrop-filter:blur(20px);
  }

  .student-app .app-bottom-nav a{
    display:grid;
    place-items:center;
    align-content:center;
    gap:4px;
    min-width:0;
    border-radius:14px;
    color:#7a707c;
  }

  .student-app .app-bottom-nav a.active{
    color:var(--app-purple);
    background:var(--app-purple-soft);
  }

  .student-app .app-bottom-nav svg{
    width:20px;
    height:20px;
  }

  .student-app .app-bottom-nav span{
    overflow:hidden;
    max-width:100%;
    font-size:9px;
    font-weight:700;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .student-app main{min-height:calc(100vh - 68px)}
  .student-app .shell{padding-inline:18px}
  .student-app .site-footer{display:none}

  .student-app .student-dashboard-hero,
  .student-app .subhero,
  .student-app .webinar-hero,
  .student-app .course-detail-hero{
    padding-top:26px;
  }

  .student-app .account-side-nav{position:static}
  .student-app .lesson-topbar{top:68px}
}

@media(max-width:620px){
  .student-app .app-topbar{padding-inline:13px}
  .student-app .app-topbar-left span{display:none}
  .student-app .app-topbar-actions{gap:6px}
  .student-app .app-icon-button{width:39px;height:39px}
  .student-app .app-top-avatar{width:39px;height:39px}
  .student-app .app-topbar-actions .app-icon-button:first-child{display:none}

  .student-app .shell{padding-inline:14px}
  .student-app .dashboard-section,
  .student-app .page-section,
  .student-app .webinar-view-section{
    padding-block:12px;
  }

  .student-app .summary-card{
    min-height:112px;
    padding:17px;
  }

  .student-app .summary-card strong{font-size:29px}
  .student-app .student-section-heading{margin-top:18px}
  .student-app .webinar-player-shell{border-radius:16px}
}

@media(prefers-reduced-motion:reduce){
  .student-app .app-sidebar,
  .student-app .app-sidebar-overlay,
  .student-app .app-nav-link{
    transition:none;
  }
}

/* =========================================================
   V28 · Identidad visual oficial ETERNI
   ========================================================= */
.student-app .app-brand{
  width:min(100%,205px);
  min-height:48px;
  display:flex;
  align-items:center;
}
.student-app .app-brand-horizontal{
  display:block;
  width:100%;
  max-height:48px;
  object-fit:contain;
  object-position:left center;
}

/* V30 · Comunidad IXCHEL */
.app-nav-link[data-protected-nav][hidden],
.app-bottom-nav a[data-protected-nav][hidden]{
  display:none!important;
}
@media(max-width:760px){
  .app-bottom-nav{
    grid-template-columns:repeat(5,minmax(0,1fr));
  }
}
