/* ═══════════════════════════════════════════════════════════════════
   App TEAMS · identidad visual (de las presentaciones institucionales)
   Se carga después de main.css / portal.css / profesor.css y los pisa.
   ═══════════════════════════════════════════════════════════════════ */
@font-face { font-family: 'Montserrat'; src: url('/fonts/Montserrat.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Parisienne'; src: url('/fonts/Parisienne.woff2') format('woff2'); font-display: swap; }

:root {
  --t-navy: #263D7C;
  --t-navy-2: #1d3068;
  --t-cream: #F8F4F1;
  --t-peach: #F4E6DD;
  --t-sky: #EAF1F6;
  --t-mustard: #E8A841;
  --t-yellow: #FCDF6F;
  --t-yellow-lt: #FBEFC9;
  --t-orange: #C96C2D;
  --t-orange-text: #B4581C;
  --t-sage: #E2ECE4;
  --t-sage-text: #2E5A3B;

  /* Variables de EduGestion re-mapeadas a TEAMS */
  --navy: var(--t-navy);
  --navy-2: var(--t-navy-2);
  --blue: var(--t-navy);
  --blue-lt: var(--t-sky);
  --blue-mid: #4f67a8;
  --primary: var(--t-navy);
  --accent: var(--t-mustard);
  --amber: var(--t-orange-text);
  --amber-lt: var(--t-yellow-lt);
  --green: var(--t-sage-text);
  --green-lt: var(--t-sage);
  --gray-50: #fbf9f7;
  --gray-100: var(--t-cream);
  --gray-200: #ece4dd;
  --text: #1f2b4d;
  --radius: 14px;
  --radius-lg: 20px;
}

body, button, input, select, textarea { font-family: 'Montserrat', system-ui, sans-serif !important; }
body { background: var(--t-cream); }

/* ── Marca ── */
.t-logo-img { display: block; height: 30px; width: auto; }
.brand-logo, .login-logo:not(.login-wrap .login-logo), .logo-circle {
  background: transparent !important; box-shadow: none !important;
}
.t-frase { font-family: 'Parisienne', cursive; font-weight: 400; }

/* ── PANEL (admin) ── */
.sidebar { background: var(--t-navy); }
.sidebar-brand { border-bottom-color: rgba(255,255,255,.12); padding: 22px 18px 18px; flex-direction: column; align-items: flex-start; gap: 6px; }
.sidebar-brand .brand-logo, .sidebar-brand .brand-name { display: none; }
.sidebar-brand .brand-sub { color: rgba(255,255,255,.7); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.nav-section { color: var(--t-yellow) !important; letter-spacing: .12em; font-weight: 700; font-size: 10px; }
.nav-item { border-radius: 12px; font-weight: 500; }
.nav-item.active { background: rgba(252,223,111,.18) !important; color: #fff !important; box-shadow: inset 3px 0 0 var(--t-yellow); }
.nav-item:hover { background: rgba(255,255,255,.08); }
.topbar { background: var(--t-cream); border-bottom: 1px solid #ece4dd; }
.page-title { font-family: 'Montserrat', sans-serif !important; color: var(--t-navy); font-weight: 700; letter-spacing: -.01em; }
.content { background: transparent; }
.btn { border-radius: 999px; font-weight: 600; }
.btn-primary { background: var(--t-navy); border-color: var(--t-navy); }
.btn-primary:hover { background: var(--t-navy-2); }
.btn-outline { border-color: #d9cfc6; color: var(--t-navy); background: #fff; }
.card, .stat-card { border-radius: 18px; border: 1px solid #efe7e0; box-shadow: none; }
.form-control { border-radius: 10px; }
.modal { border-radius: 22px; }
.modal-title { color: var(--t-navy); font-weight: 700; }
.tab-btn.active { color: var(--t-navy); border-color: var(--t-mustard); }

.login-screen { background: var(--t-navy) !important; position: relative; overflow: hidden; }
.login-screen::before, .login-screen::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.login-screen::before { width: 520px; height: 520px; background: var(--t-mustard); opacity: .18; top: -180px; right: -140px; }
.login-screen::after { width: 380px; height: 380px; background: var(--t-sky); opacity: .12; bottom: -160px; left: -120px; }
.login-card { border-radius: 26px; position: relative; z-index: 1; }
.login-brand { flex-direction: column; align-items: flex-start; gap: 6px; }
.login-brand .login-logo { display: none; }
.login-title { font-family: 'Montserrat', sans-serif !important; color: var(--t-navy); }

/* Bloque de ingreso con Google */
.t-google { margin: 4px 0 14px; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.t-google-btn { display: flex; justify-content: center; min-height: 44px; }
.t-sep { display: flex; align-items: center; gap: 10px; color: #8a8f9f; font-size: 12px; margin: 6px 0 12px; }
.t-sep::before, .t-sep::after { content: ''; flex: 1; height: 1px; background: #e6ded6; }
.t-hint { font-size: 12px; color: #6b7280; text-align: center; }

/* ── Componentes TEAMS del panel ── */
.t-kicker { color: var(--t-orange-text); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.t-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 22px 26px; margin-bottom: 18px;
  background: var(--t-navy); color: #fff; border-radius: 24px; position: relative; overflow: hidden; }
.t-hero::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--t-mustard); opacity: .22; right: -60px; top: -120px; }
.t-hero .t-kicker { color: var(--t-yellow); }
.t-hero-title { font-size: 26px; font-weight: 700; margin: 4px 0 2px; }
.t-hero-sub { opacity: .8; font-size: 14px; }
.t-hero-frase { font-family: 'Parisienne', cursive; font-size: 30px; color: var(--t-yellow); position: relative; z-index: 1; white-space: nowrap; }

.t-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.t-stat { text-align: left; border: 0; border-radius: 20px; padding: 16px 18px; cursor: pointer; font: inherit; color: var(--t-navy); }
div.t-stat { cursor: default; }
.t-stat-n { font-size: 28px; font-weight: 700; line-height: 1.1; }
.t-stat-l { font-size: 12.5px; margin-top: 4px; color: #3d4a6e; }
.t-bg-peach { background: var(--t-peach); } .t-bg-sky { background: var(--t-sky); } .t-bg-yellow { background: var(--t-yellow-lt); } .t-bg-sage { background: var(--t-sage); }

.t-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 900px) { .t-grid-2 { grid-template-columns: 1fr !important; } }
.t-card { background: #fff; border: 1px solid #efe7e0; border-radius: 20px; padding: 18px 20px; margin-bottom: 16px; }
.t-card-head { margin-bottom: 10px; }
.t-card-head h3 { font-size: 16px; color: var(--t-navy); margin-top: 2px; }
.t-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f3ede8; cursor: pointer; }
.t-row:last-of-type { border-bottom: 0; }
.t-row-main { flex: 1; min-width: 0; }
.t-date { width: 44px; text-align: center; background: var(--t-peach); border-radius: 12px; padding: 4px 0; color: var(--t-navy); flex: none; }
.t-date b { display: block; font-size: 17px; line-height: 1.1; } .t-date span { font-size: 10px; text-transform: uppercase; }
.t-meter { position: relative; width: 90px; height: 18px; background: var(--t-sky); border-radius: 999px; overflow: hidden; flex: none; }
.t-meter > div { position: absolute; inset: 0 auto 0 0; background: var(--t-navy); border-radius: 999px; }
.t-meter > span { position: relative; z-index: 1; font-size: 11px; font-weight: 700; color: #fff; padding-left: 8px; line-height: 18px; mix-blend-mode: difference; }
.t-chip { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.t-chip-navy { background: var(--t-navy); color: #fff; } .t-chip-sky { background: var(--t-sky); color: var(--t-navy); }
.t-chip-peach { background: var(--t-peach); color: var(--t-orange-text); } .t-chip-orange { background: #fbe1cf; color: var(--t-orange-text); }
.t-chip-yellow { background: var(--t-yellow-lt); color: #7a5a00; } .t-chip-sage { background: var(--t-sage); color: var(--t-sage-text); }
.t-chip-gray { background: #f0ebe6; color: #5b6275; }
.t-grupos { display: flex; gap: 10px; flex-wrap: wrap; }
.t-grupo { background: var(--t-cream); border-radius: 16px; padding: 10px 16px; text-align: center; min-width: 74px; }
.t-grupo-cod { font-weight: 800; color: var(--t-navy); font-size: 18px; }
.t-grupo-n { font-weight: 700; font-size: 20px; color: var(--t-orange-text); }
.t-grupos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.t-feed { max-width: 760px; }
.t-post { background: #fff; border: 1px solid #efe7e0; border-radius: 20px; padding: 16px 20px; margin-bottom: 14px; }
.t-post-alerta { border-left: 6px solid var(--t-orange); }
.t-post-comunicado { border-left: 6px solid var(--t-navy); }
.t-post-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.t-post-title { font-size: 17px; color: var(--t-navy); margin: 8px 0 4px; }
.t-post-body { font-size: 14px; line-height: 1.55; color: #333a4f; }
.t-post-foot { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #f3ede8; flex-wrap: wrap; }
.t-link { display: flex; align-items: center; gap: 8px; background: none; border: 0; font: inherit; font-size: 12px; color: var(--t-navy); cursor: pointer; }
.t-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; }
.t-coment { background: var(--t-cream); border-radius: 12px; padding: 8px 12px; margin-bottom: 6px; font-size: 13px; }
.t-kanban { display: grid; grid-template-columns: repeat(6, minmax(170px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.t-col { background: #fff; border-radius: 18px; padding: 10px; border: 1px solid #efe7e0; min-height: 200px; }
.t-col-head { display: flex; justify-content: space-between; font-weight: 700; font-size: 12px; color: var(--t-navy); padding: 4px 6px 10px; }
.t-col-head span { background: var(--t-sky); border-radius: 999px; padding: 0 8px; }
.t-col-reserva .t-col-head span, .t-col-matriculado .t-col-head span { background: var(--t-sage); }
.t-col-no_sigue { opacity: .7; }
.t-kcard { background: var(--t-cream); border-radius: 14px; padding: 9px 10px; margin-bottom: 8px; cursor: pointer; position: relative; }
.t-kcard:hover { background: var(--t-peach); }
.t-kmove { display: flex; gap: 4px; justify-content: flex-end; margin-top: 4px; }
.t-kmove button { border: 0; background: #fff; border-radius: 8px; width: 26px; height: 22px; cursor: pointer; color: var(--t-navy); font-weight: 700; }
.t-chips-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.t-mini { background: #fff; border: 1px solid #efe7e0; border-radius: 14px; padding: 8px 14px; font-size: 12px; display: flex; flex-direction: column; }
.t-mini b { color: var(--t-navy); }
.t-bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 10px; }
.t-bar-m { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.t-bar-m > span { font-size: 10px; color: #8a8f9f; margin-top: 4px; }
.t-bar-pair { flex: 1; width: 100%; display: flex; align-items: flex-end; gap: 2px; justify-content: center; }
.t-bar { width: 42%; border-radius: 5px 5px 0 0; min-height: 1px; }
.t-bar-in { background: var(--t-navy); } .t-bar-out { background: var(--t-mustard); }
.t-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.t-pilar { margin-bottom: 10px; }
.t-pilar-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--t-navy); margin-bottom: 4px; }
.t-pilar-top span { color: #6b7280; }
.t-pilar-bar { height: 10px; background: var(--t-cream); border-radius: 999px; overflow: hidden; }
.t-pilar-bar > div { height: 100%; background: var(--t-navy); border-radius: 999px; }

/* ── PORTALES MÓVILES (familias y equipo) ── */
.screen#screen-login, .screen#screen-forgot, .screen#screen-reset, .screen#screen-change-pass { background: var(--t-navy); position: relative; overflow: hidden; }
.login-wrap { position: relative; z-index: 1; }
#screen-login::before { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: var(--t-mustard); opacity: .2; top: -140px; right: -120px; }
#screen-login::after { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: var(--t-sky); opacity: .12; bottom: -120px; left: -110px; }
.login-wrap .login-logo .logo-circle { width: auto; height: auto; background: none; border: 0; font-size: 0; }
.login-wrap .login-title { color: #fff; font-family: 'Montserrat', sans-serif !important; font-weight: 700; }
.login-wrap .login-sub { color: var(--t-yellow); }
.login-wrap .login-card { border-radius: 26px; }
.mobile-topbar { background: var(--t-navy) !important; }
.mobile-topbar .topbar-title { font-family: 'Montserrat', sans-serif !important; font-size: 0; }
.mobile-topbar .topbar-title::before { content: ''; display: block; width: 92px; height: 23px; background: url('/img/teams/logo-blanco.png') left center / contain no-repeat; }
.portal-content { background: var(--t-cream) !important; }
.bottom-nav { background: #fff; border-top: 1px solid #ece4dd; }
.bnav-item.active { color: var(--t-navy) !important; }
.bnav-item.active svg { color: var(--t-mustard); }

/* Tarjetas del muro y trámites en el celular */
.tm-wrap { padding: 14px 14px 90px; }
.tm-title { color: var(--t-navy); font-size: 19px; font-weight: 700; margin: 4px 2px 10px; }
.tm-sub { font-size: 13px; color: #5b6275; margin: -4px 2px 14px; }
.tm-post { background: #fff; border-radius: 20px; padding: 14px 16px; margin-bottom: 12px; border: 1px solid #efe7e0; }
.tm-post.tm-alerta { background: #fff6ef; border-color: #f4d3bd; }
.tm-post.tm-nueva { box-shadow: 0 0 0 2px var(--t-yellow); }
.tm-post-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 11px; color: #6b7280; }
.tm-post h3 { font-size: 16px; color: var(--t-navy); margin: 8px 0 4px; line-height: 1.3; }
.tm-post p { font-size: 14px; line-height: 1.55; color: #333a4f; }
.tm-actions { display: flex; gap: 8px; margin-top: 12px; align-items: center; flex-wrap: wrap; }
.tm-btn { border: 0; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; background: var(--t-sky); color: var(--t-navy); }
.tm-btn.on { background: var(--t-navy); color: #fff; }
.tm-btn-primary { background: var(--t-navy); color: #fff; }
.tm-btn-yellow { background: var(--t-yellow); color: var(--t-navy); }
.tm-ok { color: var(--t-sage-text); font-size: 13px; font-weight: 600; }
.tm-coments { margin-top: 10px; border-top: 1px solid #f3ede8; padding-top: 8px; }
.tm-coment { font-size: 13px; background: var(--t-cream); border-radius: 12px; padding: 7px 10px; margin-bottom: 6px; }
.tm-coment b { color: var(--t-navy); }
.tm-input { display: flex; gap: 6px; }
.tm-input input, .tm-form input, .tm-form select, .tm-form textarea { flex: 1; border: 1px solid #e3d9d0; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 14px; background: #fff; width: 100%; }
.tm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.tm-tile { border: 0; border-radius: 20px; padding: 16px 14px; text-align: left; font: inherit; color: var(--t-navy); cursor: pointer; min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; }
.tm-tile b { font-size: 14px; } .tm-tile span { font-size: 22px; }
.tm-form { background: #fff; border-radius: 20px; padding: 16px; margin-bottom: 14px; border: 1px solid #efe7e0; }
.tm-form label { display: block; font-size: 12px; font-weight: 600; color: var(--t-navy); margin: 10px 0 4px; }
.tm-item { background: #fff; border-radius: 16px; padding: 12px 14px; margin-bottom: 8px; border: 1px solid #efe7e0; font-size: 13px; }
.tm-item-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.tm-evento { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 16px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid #efe7e0; }
.tm-mes { color: var(--t-orange-text); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 14px 4px 8px; }
.tm-suscribir { background: var(--t-navy); color: #fff; border-radius: 20px; padding: 16px; margin-bottom: 14px; }
.tm-suscribir a { color: var(--t-yellow); font-weight: 600; }
.tm-frase { font-family: 'Parisienne', cursive; color: var(--t-orange-text); font-size: 24px; text-align: center; margin: 20px 0 6px; }

/* Ajustes */
.tm-form input[type=checkbox] { width: auto; flex: none; }
.t-col-head span { align-self: flex-start; height: 20px; line-height: 20px; }
body.t-docente .bottom-nav { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
body.t-docente .bottom-nav::-webkit-scrollbar { display: none; }
body.t-docente .bnav-item { flex: 0 0 auto; min-width: 70px; }
.t-meter > span { mix-blend-mode: normal; color: var(--t-navy); position: absolute; right: 8px; left: auto; padding: 0; }
.modal-title, .page-title, .brand-name, .stat-value, .login-title, .card-title, h1, h2, h3 { font-family: 'Montserrat', system-ui, sans-serif !important; }
