/* ══════════════════════════════════════
   AIWEN PILATES · PORTAL — ESTILOS
   ══════════════════════════════════════ */

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

:root {
  /* Fondos de la app */
  --bg:       #DAD7CD;
  --bg2:      #c8c4b8;
  --bg3:      #A3B18A;

  /* Superficies / cards */
  --surface:  #ffffff;
  --surface2: #f5f2ec;

  /* Bordes */
  --border:   rgba(52,78,65,0.18);
  --border2:  rgba(52,78,65,0.28);

  /* Texto — oscuro sobre fondos claros */
  --text:  #1c1c1c;
  --text2: #2e3d34;
  --text3: #4a5e52;

  /* Paleta Aiwen */
  --sage:         #588157;
  --sage-dark:    #3A5A40;
  --sage-darkest: #344E41;
  --sage-light:   #A3B18A;
  --sage-bg:      rgba(88,129,87,0.13);
  --gold:         #7a5828;
  --white:        #ffffff;
  --red:          #c44a44;

  /* Tipografías */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Jost", sans-serif;
  --r: 14px;
}

html, body {
  height: 100%;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  font-weight: 400;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
button   { cursor: pointer; font-family: var(--sans); border: none; background: none; }
input, select, textarea { font-family: var(--sans); }
img { max-width: 100%; display: block; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: rgba(88,129,87,0.35); border-radius: 4px; }

/* ═══════════════════════════════════════
   LOGIN
   ═══════════════════════════════════════ */
#loginPage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #3A5A40 0%, #344E41 55%, #2a3e34 100%);
}
#loginPage::before {
  content: "";
  position: absolute;
  width: 550px; height: 550px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  top: -220px; right: -180px;
  pointer-events: none;
}
#loginPage::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  bottom: -120px; left: -90px;
  pointer-events: none;
}

.login-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
  position: relative; z-index: 1;
}
.login-logo-img {
  width: 130px; height: 130px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0,0,0,0.30);
  display: block;
}
.login-badge {
  width: 84px; height: 84px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
}
.login-badge-name {
  font-family: var(--serif);
  font-size: 16px; font-weight: 400;
  color: rgba(255,255,255,0.92);
  letter-spacing: 3px;
}
.login-badge-sub {
  font-size: 8px; letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.login-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 44px 40px 36px;
  width: 100%; max-width: 400px;
  position: relative; z-index: 1;
  box-shadow: 0 20px 60px rgba(0,0,0,0.28), 0 4px 16px rgba(0,0,0,0.12);
}
.login-welcome {
  font-size: 11px; letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sage);
  text-align: center;
  margin-bottom: 6px;
  font-weight: 500;
}
.login-title {
  font-family: var(--serif);
  font-size: 32px; font-weight: 400;
  color: #1c1c1c;
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: 1px;
}
.login-error {
  background: rgba(196,74,68,0.08);
  border: 1px solid rgba(196,74,68,0.25);
  border-radius: 8px; padding: 10px 14px;
  font-size: 14px; color: var(--red);
  margin-bottom: 16px; display: none; text-align: center;
}

.login-card .fl { color: #3a4a40; }
.login-card .fi {
  background: #f7f5f2;
  border: 1px solid rgba(44,61,51,0.18);
  color: #1c1c1c;
}
.login-card .fi::placeholder { color: #9aada4; }
.login-card .fi:focus { border-color: var(--sage); background: #ffffff; }

.pass-wrap { position: relative; }
.pass-wrap .fi { padding-right: 46px; }
.pass-eye {
  position: absolute;
  right: 12px; top: 50%; transform: translateY(-50%);
  color: #9aada4;
  padding: 4px;
  cursor: pointer;
  background: none; border: none;
  display: flex; align-items: center;
  transition: color .2s;
}
.pass-eye:hover { color: var(--sage); }
.pass-eye svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.login-btn {
  width: 100%; padding: 16px;
  background: #344E41;
  color: #ffffff;
  border-radius: 11px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 3.5px; text-transform: uppercase;
  transition: background .2s, opacity .2s;
  margin-top: 8px;
}
.login-btn:hover { background: #3A5A40; }

.login-links {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  margin-top: 18px;
}
.login-link {
  font-size: 13px;
  color: #7a9080;
  background: none; border: none;
  cursor: pointer;
  transition: color .2s;
  letter-spacing: .3px;
  text-decoration: none;
}
.login-link:hover { color: var(--sage); }

/* ═══════════════════════════════════════
   TOP NAV — fondo oscuro verde
   ═══════════════════════════════════════ */
.top-nav {
  background: #344E41;
  border-bottom: 1px solid rgba(0,0,0,0.2);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 28px; height: 58px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.nav-brand { flex-shrink: 0; }
.nav-tabs {
  display: flex; align-items: stretch;
  height: 100%; margin: 0 20px;
  overflow-x: auto; scrollbar-width: none;
  -ms-overflow-style: none; flex: 1;
}
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tab {
  display: flex; align-items: center;
  padding: 0 18px; height: 100%;
  background: none;
  font-size: 12px; letter-spacing: 1.2px;
  text-transform: uppercase; color: rgba(255,255,255,0.65);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap; flex-shrink: 0;
}
.nav-tab:hover  { color: #ffffff; }
.nav-tab.active { color: #A3B18A; border-bottom-color: #A3B18A; font-weight: 600; }
.nav-right  { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-user   { font-size: 13px; color: rgba(255,255,255,0.70); }
.nav-role   { background: rgba(163,177,138,0.22); color: #A3B18A; border-radius: 20px; padding: 3px 11px; font-size: 11px; letter-spacing: 1px; font-weight: 500; }
.nav-out    { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.60); border: 1px solid rgba(255,255,255,0.25); border-radius: 6px; padding: 7px 13px; transition: all .2s; }
.nav-out:hover { border-color: #A3B18A; color: #A3B18A; }

.nav-brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-logo-img { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; flex-shrink: 0; box-shadow: 0 1px 6px rgba(0,0,0,0.3); }
.nav-brand svg text { fill: #A3B18A !important; }

/* Historial progresiones */
.prog-hist-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; align-items: flex-start; }
.prog-hist-date { width: 75px; flex-shrink: 0; color: var(--text3); font-size: 12px; }
.prog-hist-bars { flex: 1; display: flex; flex-direction: column; gap: 3px; }

/* ═══════════════════════════════════════
   BOTTOM NAV (mobile)
   ═══════════════════════════════════════ */
.bot-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: #344E41;
  border-top: 1px solid rgba(0,0,0,0.2);
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  box-shadow: 0 -2px 12px rgba(0,0,0,0.2);
}
.bot-inner { display: flex; justify-content: space-around; }
.bt {
  display: flex; flex-direction: column;
  align-items: center; gap: 3px;
  padding: 6px 10px;
  font-size: 10px; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  transition: color .15s; min-width: 52px; background: none;
}
.bt.active { color: #A3B18A; }
.bt svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ═══════════════════════════════════════
   MAIN CONTAINER
   ═══════════════════════════════════════ */
.mc { padding: 30px 34px; min-height: calc(100vh - 58px); max-width: 1100px; margin: 0 auto; }

/* ═══════════════════════════════════════
   CARDS
   ═══════════════════════════════════════ */
.card { background: #ffffff; border: 1px solid rgba(88,129,87,0.2); border-radius: var(--r); padding: 24px; margin-bottom: 16px; box-shadow: 0 2px 12px rgba(52,78,65,0.08); }
.card-dark { background: var(--bg2); border-color: var(--border); }

/* ═══════════════════════════════════════
   HERO ALUMNO
   ═══════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #3A5A40 0%, #344E41 100%);
  border: none;
  border-radius: var(--r);
  padding: 30px; margin-bottom: 16px;
  position: relative; overflow: hidden;
  box-shadow: 0 4px 24px rgba(52,78,65,0.22);
}
.hero::before { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1); right: -60px; top: -60px; }
.hero-eye  { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 8px; }
.hero-name { font-family: var(--serif); font-size: 38px; font-weight: 300; color: #ffffff; margin-bottom: 4px; }
.hero-plan { font-size: 13px; color: rgba(255,255,255,0.65); }
.hero-next { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.15); }
.hero-next-lbl { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 6px; }
.hero-next-val { font-family: var(--serif); font-size: 24px; color: #ffffff; font-weight: 300; }
.hero-row  { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ═══════════════════════════════════════
   PROGRESIONES
   ═══════════════════════════════════════ */
.prog-wrap { display: flex; flex-direction: column; gap: 18px; }
.prog-row  { display: flex; flex-direction: column; gap: 6px; }
.prog-header { display: flex; justify-content: space-between; align-items: center; }
.prog-name { font-size: 16px; font-weight: 400; color: var(--text); }
.prog-squares { display: flex; gap: 4px; }
.prog-sq {
  width: 20px; height: 20px; border-radius: 3px;
  border: 1px solid rgba(52,78,65,0.22);
  background: rgba(52,78,65,0.07);
  transition: background .2s, border-color .2s;
}
.prog-sq.on   { background: var(--sage); border-color: var(--sage); }
.prog-sq.half { background: rgba(88,129,87,0.38); border-color: rgba(88,129,87,0.55); }
.prog-bar-track { height: 3px; background: rgba(52,78,65,0.12); border-radius: 2px; overflow: hidden; }
.prog-bar-fill  { height: 100%; background: var(--sage); border-radius: 2px; transition: width .5s; }
.prog-dot-edit {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--text2);
  cursor: pointer; transition: all .2s; margin: 2px; background: none;
}
.prog-dot-edit.on { background: var(--sage); border-color: var(--sage); color: #ffffff; font-weight: 600; }

/* ═══════════════════════════════════════
   OBS DE CLASE
   ═══════════════════════════════════════ */
.obs-card  { background: rgba(88,129,87,0.08); border: 1px solid rgba(88,129,87,0.22); border-radius: 12px; padding: 20px 22px; margin-top: 8px; }
.obs-label { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--text3); margin-bottom: 10px; }
.obs-text  { font-family: var(--serif); font-size: 20px; font-style: italic; color: var(--text); line-height: 1.6; }

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn      { display: inline-flex; align-items: center; padding: 11px 22px; border-radius: 8px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; transition: all .2s; cursor: pointer; }
.btn-sage { background: var(--sage); color: #ffffff; }
.btn-sage:hover  { background: var(--sage-dark); }
.btn-ghost { border: 1px solid var(--border2); color: var(--text2); background: #ffffff; }
.btn-ghost:hover { border-color: var(--sage); color: var(--sage); }
.btn-red  { border: 1px solid rgba(196,74,68,0.35); color: var(--red); background: #ffffff; }
.btn-red:hover   { background: rgba(196,74,68,0.08); }
.btn-sm { padding: 9px 16px; font-size: 12px; letter-spacing: 1px; }
.btn-xs { padding: 6px 12px; font-size: 11px; letter-spacing: .8px; }

/* ═══════════════════════════════════════
   FORM
   ═══════════════════════════════════════ */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fg { margin-bottom: 16px; }
.fl { display: block; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text3); margin-bottom: 7px; font-weight: 500; }
/* Detalle de alumno (modalVerA): letra más grande para lectura cómoda */
.ver-a .fl { font-size: 13px; }
.ver-a { font-size: 15px; line-height: 1.6; }
.fi {
  width: 100%; padding: 12px 14px;
  background: #f5f2ec;
  border: 1px solid var(--border2);
  border-radius: 9px; font-size: 16px;
  color: var(--text); outline: none;
  transition: border-color .2s, background .2s;
  font-weight: 400;
}
.fi:focus { border-color: var(--sage); background: #ffffff; }
.fi::placeholder { color: var(--text3); }
.fi-sel {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23588157' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: #f5f2ec;
  padding-right: 36px;
}
.fi-sel option { background: #ffffff; color: var(--text); }
.fi-ta { resize: vertical; min-height: 85px; line-height: 1.6; }
.admin-box { background: rgba(88,129,87,0.08); border: 1px solid rgba(88,129,87,0.22); border-radius: 10px; padding: 16px 18px; margin-bottom: 4px; }
.admin-lbl { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--sage); margin-bottom: 13px; font-weight: 500; }
.em-box    { background: rgba(196,74,68,0.06); border: 1px solid rgba(196,74,68,0.20); border-radius: 10px; padding: 16px 18px; margin-top: 14px; }
.em-lbl    { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 10px; font-weight: 500; }

/* ═══════════════════════════════════════
   TAGS
   ═══════════════════════════════════════ */
.tag    { display: inline-block; border-radius: 20px; padding: 4px 13px; font-size: 12px; font-weight: 600; letter-spacing: .3px; }
.t-sage   { background: rgba(88,129,87,0.16); color: var(--sage-dark); }
.t-warm   { background: rgba(122,88,40,0.14); color: var(--gold); }
.t-blue   { background: rgba(80,130,180,0.16); color: #2e5f8e; }
.t-violet { background: rgba(140,95,190,0.16); color: #6b3fa0; }
.t-yellow { background: rgba(214,178,40,0.20); color: #8a6d00; }
.t-gold   { background: rgba(122,88,40,0.14); color: var(--gold); }
.t-red    { background: rgba(196,74,68,0.12); color: var(--red); }

/* ═══════════════════════════════════════
   DIVIDER
   ═══════════════════════════════════════ */
.div { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ═══════════════════════════════════════
   ALUMNO LIST
   ═══════════════════════════════════════ */
.a-list { display: flex; flex-direction: column; gap: 12px; }
.a-row  { background: #ffffff; border: 1px solid rgba(88,129,87,0.18); border-left: 4px solid rgba(88,129,87,0.35); border-radius: 14px; padding: 22px 28px; display: flex; align-items: center; gap: 20px; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.a-row:hover { border-color: var(--sage); border-left-color: var(--sage); box-shadow: 0 2px 14px rgba(88,129,87,0.14); }
.a-av   { width: 66px; height: 66px; border-radius: 50%; background: rgba(88,129,87,0.12); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 30px; color: var(--sage); flex-shrink: 0; border: 1px solid rgba(88,129,87,0.28); }
.a-info { flex: 1; min-width: 0; }
.a-name { font-size: 24px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-det  { font-size: 18px; color: var(--text2); margin-top: 6px; }

/* ═══════════════════════════════════════
   MODAL
   ═══════════════════════════════════════ */
.modal-ov {
  position: fixed; inset: 0;
  background: rgba(20,35,25,0.50);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  width: 100%; max-width: 580px;
  max-height: 92vh; overflow-y: auto;
  box-shadow: 0 12px 50px rgba(20,35,25,0.22);
}
.modal-hd   { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-title { font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--text); }
.modal-x    { font-size: 22px; color: var(--text3); padding: 4px; line-height: 1; transition: color .2s; }
.modal-x:hover { color: var(--text); }
.modal-acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }

/* ═══════════════════════════════════════
   CALENDARIO (desktop grid)
   ═══════════════════════════════════════ */
.cal-top   { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.cal-title { font-family: var(--serif); font-size: 28px; font-weight: 300; color: var(--text); }
.cal-nbtn  { background: #ffffff; border: 1px solid var(--border2); border-radius: 8px; padding: 8px 16px; font-size: 13px; color: var(--text2); transition: all .2s; }
.cal-nbtn:hover { border-color: var(--sage); color: var(--sage); }
.cal-grid  { display: grid; grid-template-columns: 60px repeat(6,1fr); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #ffffff; }
.cal-hd    { padding: 12px 4px; text-align: center; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; color: var(--text); background: var(--bg2); border-bottom: 1px solid var(--border); }
.cal-tc    { font-size: 13px; font-weight: 500; color: var(--text2); text-align: right; padding: 5px 7px 0 2px; border-right: 1px solid var(--border); height: 68px; letter-spacing: .3px; }
.cal-cell  { border-left: 1px solid rgba(52,78,65,0.06); border-bottom: 1px solid rgba(52,78,65,0.05); height: 68px; position: relative; }
.cal-cell.click { cursor: pointer; }
.cal-cell.click:hover { background: rgba(88,129,87,0.07); }
.cal-cell.hol { background: rgba(122,88,40,0.08); }
.cal-hd.sab-col { background: rgba(122,88,40,0.10); }
.cal-hd.hoy-col   { background: rgba(88,129,87,0.16) !important; color: var(--sage-dark) !important; font-weight: 600; }
.cal-cell.hoy-col { background: rgba(88,129,87,0.07) !important; }
.cal-cell.hoy-col.click:hover { background: rgba(88,129,87,0.13) !important; }
.cal-day-hd.today { background: rgba(88,129,87,0.14); border-radius: 8px; padding: 4px 10px; color: var(--sage-dark) !important; font-weight: 600; }
.cal-ev-wrap { display: flex; gap: 2px; height: 100%; padding: 2px; }
.cal-ev    { flex: 1 1 0; min-width: 0; border-radius: 7px; padding: 5px 6px; font-size: 12px; font-weight: 600; overflow: hidden; cursor: pointer; transition: opacity .2s; display: flex; flex-direction: column; justify-content: center; }
.cal-ev:hover  { opacity: .85; }
.cal-tc-off   { background: rgba(52,78,65,0.03) !important; color: var(--text3) !important; opacity:.6; }
.cal-cell-off { background: rgba(52,78,65,0.025) !important; }
.cal-cell-off.click:hover { background: rgba(88,129,87,0.05) !important; }
.cal-ev-t  { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; font-size: 12px; font-weight: 700; }
.cal-ev-c  { font-size: 11px; opacity: .85; margin-top: 1px; font-weight: 500; }
.eC { background: rgba(88,129,87,0.32); color: #1d3f28; border-left: 4px solid #3f6b4a; }
.eA { background: rgba(74,128,176,0.30); color: #123f63; border-left: 4px solid #2e5f8e; }
.eG { background: rgba(140,95,190,0.26); color: #4a2470; border-left: 4px solid #6b3fa0; }
.eI { background: rgba(140,110,55,0.28); color: #4a3010; border-left: 4px solid #8a6830; }

/* ═══════════════════════════════════════
   CALENDARIO MOBILE (lista)
   ═══════════════════════════════════════ */
.cal-mobile { display: none; }
.cal-day-block { margin-bottom: 14px; }
.cal-day-hd {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text2); padding: 9px 0; margin-bottom: 7px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.cal-day-hd.today { color: var(--sage-dark); }
.cal-day-empty { font-size: 13px; color: var(--text3); padding: 7px 0; font-style: italic; }
.cal-list-ev {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 10px; margin-bottom: 6px;
  border-left: 3px solid; cursor: pointer;
  transition: opacity .15s;
}
.cal-list-ev:active { opacity: .7; }
.cal-list-time { font-size: 18px; font-weight: 500; color: var(--text); min-width: 52px; }
.cal-list-info { flex: 1; }
.cal-list-tipo { font-size: 17px; font-weight: 600; }
.cal-list-alumnos { font-size: 15px; color: var(--text2); margin-top: 3px; }

/* ═══════════════════════════════════════
   NOVEDADES
   ═══════════════════════════════════════ */
.nov-item  { border-left: 3px solid var(--sage); padding: 18px 22px; margin-bottom: 12px; background: #ffffff; border-radius: 0 12px 12px 0; box-shadow: 0 1px 8px rgba(52,78,65,0.07); }
.nov-date  { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text3); margin-bottom: 6px; font-weight: 500; }
.nov-title { font-family: var(--serif); font-size: 23px; color: var(--text); margin-bottom: 7px; }
.nov-body  { font-size: 16px; color: var(--text2); line-height: 1.7; font-weight: 400; }

/* ═══════════════════════════════════════
   SESIONES
   ═══════════════════════════════════════ */
.ses-item { border: 1px solid rgba(88,129,87,0.18); border-left: 3px solid rgba(88,129,87,0.4); background: #ffffff; border-radius: 12px; margin-bottom: 11px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.ses-item:hover { border-color: var(--sage); border-left-color: var(--sage); box-shadow: 0 2px 12px rgba(88,129,87,0.13); }
.ses-row  { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; }
.ses-date { font-size: 16px; font-weight: 400; color: var(--text); }
.ses-type { font-size: 13px; color: var(--text2); margin-top: 2px; }

/* ═══════════════════════════════════════
   FEEDBACK
   ═══════════════════════════════════════ */
.fb-box  { background: rgba(88,129,87,0.08); border: 1px solid rgba(88,129,87,0.20); border-radius: 10px; padding: 16px 18px; margin-top: 10px; }
.fb-lbl  { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--sage-dark); margin-bottom: 6px; font-weight: 500; }
.fb-txt  { font-family: var(--serif); font-size: 17px; color: var(--text); line-height: 1.6; font-style: italic; }
.fb-pend { background: #f5f2ec; border: 1px dashed var(--border2); border-radius: 10px; padding: 15px 17px; margin-top: 10px; }
.fb-hint { font-size: 14px; color: var(--text2); margin-bottom: 8px; letter-spacing: .3px; }

/* ═══════════════════════════════════════
   GUÍA
   ═══════════════════════════════════════ */
.g-sec       { margin-bottom: 36px; }
.g-sec-title { font-family: var(--serif); font-size: 30px; font-weight: 300; color: var(--sage-dark); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid rgba(88,129,87,0.28); }
.rules-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 14px; }
.rule-card   { background: #ffffff; border: 1px solid var(--border); border-radius: 12px; padding: 20px 15px; text-align: center; transition: border-color .2s; box-shadow: 0 1px 6px rgba(52,78,65,0.05); }
.rule-card:hover { border-color: var(--sage); }
.rule-icon   { font-size: 26px; margin-bottom: 10px; }
.rule-txt    { font-size: 14px; color: var(--text2); line-height: 1.55; font-weight: 400; }
.cls-grid    { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 22px; }
.cls-card    { border-radius: 18px; padding: 34px 28px; border: 1px solid var(--border); background: #ffffff; box-shadow: 0 4px 20px rgba(44,61,51,0.06); transition: transform .2s, box-shadow .2s; }
.cls-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(44,61,51,0.12); }
.cls-name    { font-family: var(--serif); font-size: 28px; margin-bottom: 14px; font-weight: 300; color: var(--text); }
.cls-desc    { font-size: 17px; line-height: 1.75; font-weight: 400; color: var(--text2); }
.val-list    { display: flex; flex-direction: column; gap: 11px; }
.val-item    { display: flex; align-items: flex-start; gap: 14px; padding: 15px 17px; background: #ffffff; border-radius: 10px; border: 1px solid var(--border); }
.val-icon    { font-size: 18px; flex-shrink: 0; margin-top: 2px; color: var(--sage); }
.val-tit     { font-size: 11px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sage-dark); margin-bottom: 4px; }
.val-desc    { font-size: 15px; color: var(--text2); line-height: 1.6; }
.con-grid    { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; }
.con-item    { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; text-decoration: none; color: inherit; background: #ffffff; border: 1px solid var(--border); border-top: 3px solid rgba(88,129,87,0.35); border-radius: 16px; padding: 26px 18px; box-shadow: 0 3px 16px rgba(44,61,51,0.06); transition: transform .18s, box-shadow .18s, border-color .18s; }
.con-item:hover { transform: translateY(-4px); box-shadow: 0 8px 26px rgba(44,61,51,0.12); border-top-color: var(--sage); }
.con-item-ico { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.con-item-lbl { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text3); }
.con-item-val { font-size: 15px; color: var(--text); font-weight: 500; word-break: break-word; }
.con-item-sub { font-size: 12px; color: var(--text2); }
.con-chip    { background: #ffffff; border: 1px solid var(--border); border-radius: 8px; padding: 9px 15px; font-size: 13px; color: var(--text2); }
.con-row     { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; padding: 13px 15px; border-radius: 12px; background: rgba(255,255,255,0.92); transition: background .15s, transform .15s; }
.con-row:hover { background: #ffffff; transform: translateY(-1px); }
.con-ico     { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nov-img     { display: block; max-width: 100%; width: auto; max-height: 520px; border-radius: 10px; margin: 12px auto 4px; object-fit: contain; }
.nov-img-preview { display: none; max-width: 100%; width: auto; max-height: 280px; border-radius: 8px; margin: 10px auto 0; object-fit: contain; }

/* ═══════════════════════════════════════
   MISC
   ═══════════════════════════════════════ */
.empty     { text-align: center; padding: 52px 20px; }
.empty-ico { font-size: 40px; opacity: .22; margin-bottom: 14px; }
.empty-txt { font-size: 16px; color: var(--text2); font-weight: 400; }
.unique-badge { background: var(--sage); color: #ffffff; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; padding: 7px 17px; font-weight: 500; position: absolute; top: 0; right: 0; border-radius: 0 var(--r) 0 10px; }
.fade-in { animation: fi .2s ease; }
@keyframes fi { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* ══ RESPONSIVE ══ */
@media (max-width: 960px) { .mc { padding: 22px 22px; } }

@media (max-width: 700px) {
  .nav-tabs, .nav-user, .nav-role { display: none; }
  .nav-out { font-size: 10px; padding: 5px 10px; }
  .top-nav { padding: 0 16px; }
  .bot-nav { display: block; }

  .mc { padding: 18px 15px; padding-bottom: 86px; }
  .g2 { grid-template-columns: 1fr !important; }
  .modal { padding: 22px 18px; border-radius: 16px; }
  .modal-acts { flex-wrap: wrap; }
  .modal-acts .btn { flex: 1; min-width: 90px; justify-content: center; }

  .login-card { padding: 36px 24px 28px; }

  .cal-grid-wrap { display: none !important; }
  .cal-mobile    { display: block; }

  .prog-sq { width: 17px; height: 17px; }

  /* Títulos grandes achicados en mobile */
  .hero-name   { font-size: 30px; }
  .g-sec-title { font-size: 24px; }

  /* Cards de alumnos */
  .a-row  { padding: 16px 16px; gap: 14px; }
  .a-name { font-size: 19px; }
  .a-det  { font-size: 15px; }
  .a-av   { width: 52px; height: 52px; font-size: 24px; }

  /* Grillas a una columna */
  .cls-grid, .con-grid { grid-template-columns: 1fr; }

  /* Reportes: tabla legible y con scroll horizontal */
  #rep_tabla td, #rep_tabla th { padding: 10px 10px !important; font-size: 13px !important; }
}

@media (max-width: 460px) {
  .hero-name   { font-size: 25px; }
  .g-sec-title { font-size: 21px; }
  .a-row { flex-wrap: wrap; }
  .a-row .btn-sm { font-size: 11px; padding: 6px 10px; }
  .modal { padding: 18px 14px; }
  .cal-nbtn { font-size: 11px; padding: 6px 9px; }
}
