/* ============================================================
   kusch.css — Centro de Estudios Rodolfo Kusch v2
   Paleta: #0A2A66 (navy) · #1E5EFF (blue) · #FFFFFF · #F5F7FA
   ============================================================ */

:root {
  --primary:    #0A2A66;
  --secondary:  #1E5EFF;
  --white:      #FFFFFF;
  --bg:         #F5F7FA;
  --bg2:        #EEF2FA;
  --text:       #1A202C;
  --muted:      #64748b;
  --border:     #D1D9EE;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 3px rgba(10,42,102,.08);
  --shadow:     0 2px 8px rgba(10,42,102,.12);
  --shadow-md:  0 6px 24px rgba(10,42,102,.15);
  --shadow-lg:  0 12px 40px rgba(10,42,102,.18);
  --transition: .22s cubic-bezier(.4,0,.2,1);
  /* Tipografía dinámica — modificable desde el panel admin */
  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Open Sans', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth; font-size: 16px;
  overflow-x: hidden; /* evitar scroll horizontal */
}
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* evitar scroll horizontal */
  max-width: 100vw;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.2; }

/* ── Layout ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; width: 100%; box-sizing: border-box; }
.page-wrap  { display: flex; flex-direction: column; min-height: 100vh; }
main        { flex: 1; }

/* ════════════════════════════════
   NAVBAR
════════════════════════════════ */
.navbar {
  background: var(--primary);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 16px rgba(10,42,102,.35);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem 0 1.25rem; height: 64px;
  gap: 1rem;
}
.navbar-brand {
  display: flex; align-items: center; gap: .65rem;
  flex-shrink: 0;
}
.navbar-brand-logo {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; flex-shrink: 0;
  overflow: hidden;
}
.navbar-brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.navbar-brand-name {
  font-family: var(--font-display);
  font-weight: 900; font-size: .82rem; color: var(--white);
  text-transform: uppercase; letter-spacing: .04em;
  line-height: 1.2;
  white-space: nowrap;
}
.navbar-brand-sub {
  font-size: .65rem; color: rgba(255,255,255,.55);
  text-transform: uppercase; letter-spacing: .08em;
}
.navbar-links {
  display: flex; align-items: center; height: 100%; gap: 0;
  justify-content: flex-end; overflow: visible;
  flex-shrink: 1;
}
.nav-item { position: relative; height: 64px; display: flex; align-items: center; }
.nav-link {
  display: flex; align-items: center; gap: .25rem;
  padding: 0 .78rem; height: 100%;
  font-family: var(--font-display);
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: rgba(255,255,255,.75); cursor: pointer;
  transition: color var(--transition), background var(--transition);
  border-bottom: 3px solid transparent;
  user-select: none; white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: #fff; border-bottom-color: var(--secondary);
  background: rgba(255,255,255,.07);
}
.nav-caret { font-size: .55rem; transition: transform var(--transition); opacity: .7; }
.nav-item:hover .nav-caret { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); min-width: 230px;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 24px rgba(10,42,102,.18);
  border-top: 3px solid var(--secondary);
  z-index: 300; overflow: hidden;
  animation: dropIn .15s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-item:hover .dropdown { display: block; }
.dropdown-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .72rem 1.1rem; font-size: .81rem; font-weight: 600;
  color: var(--primary); border-bottom: 1px solid var(--border);
  transition: background var(--transition), padding-left var(--transition);
  cursor: pointer;
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover {
  background: var(--bg2); color: var(--secondary);
  padding-left: 1.4rem;
}
.dropdown-item::before {
  content: "›"; color: var(--secondary);
  font-size: 1rem; font-weight: 900; opacity: 0;
  transition: opacity var(--transition);
}
.dropdown-item:hover::before { opacity: 1; }
.dropdown-item-icon { font-size: .85rem; opacity: .7; }

/* Navbar auth */
.navbar-auth { display: flex; align-items: center; gap: .5rem; margin-left: .5rem; }
.btn-nav-admin {
  padding: .3rem .75rem; border-radius: 999px;
  background: var(--secondary); color: #fff;
  font-family: 'Montserrat', sans-serif; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  transition: background var(--transition);
}
.btn-nav-admin:hover { background: #1248e0; color: #fff; }
.btn-nav-login {
  padding: .28rem .72rem; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.4); color: rgba(255,255,255,.8);
  font-family: 'Montserrat', sans-serif; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  transition: all var(--transition);
}
.btn-nav-login:hover { border-color: #fff; color: #fff; }

/* Toggle móvil */
.navbar-toggle {
  display: none; background: none; border: none;
  color: var(--white); font-size: 1.5rem; cursor: pointer; padding: .4rem .5rem;
  touch-action: manipulation; /* mejor respuesta en iOS */
  -webkit-tap-highlight-color: transparent;
}

/* ════════════════════════════════
   HERO
════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  min-height: 520px;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, #0d3580 55%, #1432a0 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .22;
  transition: opacity .4s;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,42,102,1) 0%, rgba(10,42,102,.7) 60%, rgba(10,42,102,.3) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1180px; margin: 0 auto; padding: 5rem 1.5rem;
  width: 100%; box-sizing: border-box;
  overflow: hidden;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem 1rem; border-radius: 999px;
  background: rgba(30,94,255,.3); border: 1px solid rgba(30,94,255,.5);
  color: rgba(255,255,255,.9);
  font-family: 'Montserrat', sans-serif; font-size: .68rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900;
  text-transform: uppercase; letter-spacing: -.02em;
  line-height: 1.1; color: #fff;
  margin-bottom: .9rem; max-width: 680px;
}
.hero h1 em { color: #7FA8FF; font-style: normal; }
.hero-desc {
  color: rgba(255,255,255,.72); font-size: 1.05rem;
  max-width: 560px; margin-bottom: 2rem; line-height: 1.7;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.4); font-size: .75rem;
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  animation: bounce 2s infinite; z-index: 2;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* ════════════════════════════════
   PAGE HEADER BAND
════════════════════════════════ */
.page-band {
  background: var(--primary);
  padding: 2.5rem 1.5rem 0;
  position: relative;
}
.page-band::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--secondary);
}
.page-band .container {}
.page-band-tag {
  display: inline-block; padding: .2rem .75rem;
  background: rgba(30,94,255,.25); border: 1px solid rgba(30,94,255,.4);
  color: rgba(255,255,255,.8);
  font-family: 'Montserrat', sans-serif; font-size: .65rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em; border-radius: 999px;
  margin-bottom: .6rem;
}
.page-band h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 900;
  text-transform: uppercase; letter-spacing: -.02em; color: #fff;
  padding-bottom: 1.4rem;
}

/* ════════════════════════════════
   TABS / SOLAPAS
════════════════════════════════ */
.tabs-bar {
  background: var(--primary);
  border-bottom: 3px solid var(--secondary);
  overflow-x: auto; scrollbar-width: none;
}
.tabs-bar::-webkit-scrollbar { display: none; }
.tabs-inner {
  display: flex; gap: 0;
  max-width: 1180px; margin: 0 auto; padding: 0 1.5rem;
}
.tab-btn {
  flex-shrink: 0;
  padding: .75rem 1.1rem;
  font-family: 'Montserrat', sans-serif; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: rgba(255,255,255,.6); cursor: pointer;
  border: none; background: transparent;
  border-bottom: 3px solid transparent; margin-bottom: -3px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  white-space: nowrap;
}
.tab-btn:hover { color: rgba(255,255,255,.9); background: rgba(255,255,255,.06); }
.tab-btn.active {
  color: #fff; border-bottom-color: #fff;
  background: rgba(255,255,255,.1);
}

/* Panel de tab */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ════════════════════════════════
   SECCIONES
════════════════════════════════ */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg); }
.section-sm  { padding: 2rem 0; }

.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 2rem; gap: 1rem; flex-wrap: wrap;
}
.section-title {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem); font-weight: 800;
  text-transform: uppercase; letter-spacing: -.01em; color: var(--primary);
}
.section-title span { color: var(--secondary); }
.section-subtitle { color: var(--muted); font-size: .92rem; margin-top: .3rem; }
.section-label {
  display: inline-block; padding: .18rem .7rem; border-radius: 999px;
  background: var(--bg2); color: var(--secondary);
  font-family: 'Montserrat', sans-serif; font-size: .65rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: .5rem;
}
.divider {
  height: 3px; border-radius: 999px;
  background: linear-gradient(90deg, var(--secondary), transparent);
  margin: .75rem 0 2rem;
}

/* ════════════════════════════════
   CARDS
════════════════════════════════ */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.25rem; }
.cards-grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 1.25rem; }

.card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  display: flex; flex-direction: column;
}
.card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-3px);
  border-color: rgba(30,94,255,.3);
}
.card-img {
  width: 100%; height: 200px; object-fit: cover;
  flex-shrink: 0;
}
.card-img-placeholder {
  width: 100%; height: 160px;
  background: linear-gradient(135deg, var(--primary) 0%, #1432a0 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; opacity: .5; flex-shrink: 0;
}
.card-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.card-tag {
  display: inline-block; padding: .18rem .62rem; border-radius: 999px;
  font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--bg2); color: var(--secondary); margin-bottom: .6rem;
  align-self: flex-start;
}
.card-tag-green { background: #dcfce7; color: #166534; }
.card-tag-orange{ background: #fef3c7; color: #92400e; }
.card-title {
  font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 700;
  color: var(--primary); margin-bottom: .4rem; line-height: 1.3;
}
.card-meta  { font-size: .78rem; color: var(--muted); margin-bottom: .5rem; }
.card-text  { font-size: .88rem; color: var(--text); line-height: 1.6; flex: 1; }
.card-footer {
  padding: .9rem 1.4rem; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}

/* Card horizontal (para novedades/foro) */
.card-h {
  display: flex; flex-direction: row; align-items: stretch;
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: box-shadow var(--transition), transform var(--transition);
  margin-bottom: .75rem;
}
.card-h:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-h-accent {
  width: 5px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--secondary), var(--primary));
}
.card-h-body { padding: 1.1rem 1.25rem; flex: 1; }
.card-h-img { width: 120px; flex-shrink: 0; object-fit: cover; }

/* Card de agenda */
.agenda-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  padding: 1.1rem 1.3rem; margin-bottom: .75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.agenda-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.agenda-date-box {
  min-width: 60px; text-align: center;
  background: var(--primary); color: #fff;
  border-radius: var(--radius); padding: .5rem .4rem; flex-shrink: 0;
}
.agenda-date-box .day { font-family: 'Montserrat', sans-serif; font-size: 1.6rem; font-weight: 900; line-height: 1; }
.agenda-date-box .mon { font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.agenda-info { flex: 1; }
.agenda-info h3 { font-family: 'Montserrat', sans-serif; font-size: .95rem; font-weight: 700; color: var(--primary); margin-bottom: .25rem; }
.agenda-info .meta { font-size: .8rem; color: var(--muted); }

/* ════════════════════════════════
   CONTENT BLOCKS (rich text)
════════════════════════════════ */
.content-block { background: var(--white); border-radius: var(--radius-lg); padding: 2rem 2.25rem; border: 1px solid var(--border); box-shadow: var(--shadow-sm); margin-bottom: 1.5rem; }
.content-block-title { font-family: 'Montserrat', sans-serif; font-size: 1.25rem; font-weight: 800; color: var(--primary); margin-bottom: .4rem; }
.content-block-divider { height: 3px; width: 60px; background: var(--secondary); border-radius: 999px; margin-bottom: 1.25rem; }
.rich-text h2 { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin: 1.5rem 0 .6rem; }
.rich-text h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin: 1.2rem 0 .4rem; }
.rich-text p  { margin-bottom: .85rem; line-height: 1.8; }
.rich-text ul { list-style: none; margin-bottom: .85rem; }
.rich-text ul li { padding: .25rem 0 .25rem 1.4rem; position: relative; }
.rich-text ul li::before { content: '▸'; position: absolute; left: 0; color: var(--secondary); font-size: .75rem; top: .35rem; }
.rich-text ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: .85rem; }
.rich-text blockquote { border-left: 4px solid var(--secondary); padding: .8rem 1.2rem; background: var(--bg2); margin: 1rem 0; border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }
.rich-text strong { font-weight: 700; color: var(--primary); }
.rich-text a { color: var(--secondary); text-decoration: underline; }
.rich-text img { border-radius: var(--radius); margin: 1rem 0; max-width: 100%; }

/* ════════════════════════════════
   FORMULARIOS
════════════════════════════════ */
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--border); box-shadow: var(--shadow); max-width: 620px; }
.form-title { font-family: 'Montserrat', sans-serif; font-size: 1.1rem; font-weight: 800; color: var(--primary); margin-bottom: .4rem; }
.form-subtitle { font-size: .88rem; color: var(--muted); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 700; font-size: .82rem; color: var(--primary); margin-bottom: .3rem; }
.form-control {
  width: 100%; padding: .58rem .9rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: .92rem; font-family: inherit; color: var(--text);
  background: #fff; transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(30,94,255,.12); }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

/* ════════════════════════════════
   BOTONES
════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.35rem; border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif; font-size: .78rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  cursor: pointer; border: 2px solid transparent;
  transition: all var(--transition); text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-primary   { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn-primary:hover { background: #1248e0; border-color: #1248e0; color: #fff; }
.btn-dark      { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-dark:hover { background: #0d3580; color: #fff; }
.btn-outline   { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); color: #fff; border-color: #fff; }
.btn-ghost     { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg); color: var(--primary); }
.btn-sm        { padding: .35rem .85rem; font-size: .7rem; }
.btn-block     { width: 100%; justify-content: center; }

/* ════════════════════════════════
   ALERTAS
════════════════════════════════ */
.alert { padding: .82rem 1.1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .9rem; display: flex; align-items: flex-start; gap: .6rem; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-info    { background: var(--bg2); color: var(--primary); border: 1px solid var(--border); }

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
footer { background: var(--primary); color: #fff; }
.footer-top { padding: 3.5rem 1.5rem 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; max-width: 1180px; margin: 0 auto; }
.footer-brand {}
.footer-brand-name { font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 900; color: #7FA8FF; text-transform: uppercase; letter-spacing: .04em; }
.footer-brand-desc { color: rgba(255,255,255,.55); font-size: .84rem; margin-top: .5rem; line-height: 1.6; }
.footer-redes { display: flex; gap: .55rem; margin-top: 1.1rem; }
.footer-red {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  transition: background var(--transition), transform var(--transition);
}
.footer-red:hover { background: var(--secondary); transform: translateY(-2px); }
.footer-col h4 {
  font-family: 'Montserrat', sans-serif; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.4); margin-bottom: .85rem;
}
.footer-col a {
  display: block; color: rgba(255,255,255,.65); font-size: .83rem;
  margin-bottom: .38rem; transition: color var(--transition); cursor: pointer;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 1.5rem;
}
.footer-bottom-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .5rem;
}
.footer-bottom p { font-size: .76rem; color: rgba(255,255,255,.35); }

/* ════════════════════════════════
   SPINNER / LOADING
════════════════════════════════ */
.spinner { width: 40px; height: 40px; margin: 2rem auto; border: 4px solid var(--border); border-top-color: var(--secondary); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-wrap { display: flex; justify-content: center; padding: 4rem 0; }
.loading-wrap-sm { display: flex; justify-content: center; padding: 2rem 0; }

/* ════════════════════════════════
   FOROS
════════════════════════════════ */
.foro-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.5rem; margin-bottom: .75rem; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.foro-card:hover { box-shadow: var(--shadow-md); border-color: rgba(30,94,255,.3); transform: translateX(4px); }
.foro-stat { text-align: center; }
.foro-stat .num { font-family: 'Montserrat', sans-serif; font-size: 1.6rem; font-weight: 900; color: var(--primary); line-height: 1; }
.foro-stat .lbl { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* Comentarios en hilo */
.comment-item { display: flex; gap: .85rem; margin-bottom: 1.5rem; }
.comment-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary); color: #7FA8FF;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: .9rem;
}
.comment-body { flex: 1; background: var(--bg); border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg); padding: .9rem 1.1rem; }
.comment-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .4rem; }
.comment-name { font-weight: 700; font-size: .88rem; color: var(--primary); }
.comment-badge { padding: .1rem .5rem; border-radius: 999px; background: var(--bg2); color: var(--secondary); font-size: .65rem; font-weight: 700; text-transform: uppercase; }
.comment-date { font-size: .76rem; color: var(--muted); }
.comment-text { font-size: .9rem; line-height: 1.6; }

/* ════════════════════════════════
   NOVEDADES DETAIL
════════════════════════════════ */
.novedad-hero { background: var(--primary); padding: 3rem 1.5rem 2.5rem; }
.novedad-hero h1 { font-family: 'Montserrat', sans-serif; font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 900; color: #fff; max-width: 800px; }
.novedad-hero .meta { color: rgba(255,255,255,.6); font-size: .84rem; margin-top: .6rem; }

/* ════════════════════════════════
   UTILS
════════════════════════════════ */
.badge {
  display: inline-block; padding: .18rem .6rem; border-radius: 999px;
  font-size: .65rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
}
.badge-blue   { background: var(--bg2); color: var(--secondary); }
.badge-green  { background: #dcfce7; color: #166534; }
.badge-orange { background: #fef3c7; color: #92400e; }
.badge-gray   { background: #f3f4f6; color: #6b7280; }
.no-select    { -webkit-user-select: none; user-select: none; }
.empty-state  { text-align: center; padding: 3rem 1.5rem; color: var(--muted); }
.empty-state i { font-size: 2.5rem; opacity: .3; display: block; margin-bottom: .75rem; }
.truncate-2   { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.truncate-3   { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ════════════════════════════════
   PAGE TABS (submenús de sección)
════════════════════════════════ */
.page-tabs {
  display: flex; gap: .4rem; flex-wrap: wrap;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
}
.page-tab {
  padding: .6rem 1.15rem;
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  cursor: pointer; border: none;
  background: transparent; color: var(--muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: color var(--transition), background var(--transition);
}
.page-tab:hover  { color: var(--primary); background: var(--bg2); }
.page-tab.active {
  color: var(--primary);
  border-bottom-color: var(--secondary);
  background: var(--bg2);
}

/* ════════════════════════════════
   SECTION COMMONS
════════════════════════════════ */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; flex-wrap: wrap; gap: .75rem;
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
/* 1280px: solo reduce padding en pantallas muy anchas */
@media (min-width: 1101px) and (max-width: 1280px) {
  .nav-link { padding: 0 .55rem; font-size: .66rem; }
}
/* 1024px: solo aplica cuando NO hay hamburguesa */
@media (min-width: 1101px) and (max-width: 1024px) {
  .navbar-inner { padding: 0 1rem; }
  .nav-link { padding: 0 .45rem; font-size: .63rem; letter-spacing: .04em; }
}
/* Menú hamburguesa desde 1100px — cubre split-screen, tablets y mobile */
@media (max-width: 1100px) {
  .navbar-links {
    display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: var(--primary); flex-direction: column; align-items: flex-start;
    overflow-y: auto; padding: .5rem 0; z-index: 199;
    justify-content: flex-start;
  }
  .navbar-links.open { display: flex; }
  .navbar-toggle     { display: block; }
  .nav-item          { height: auto; width: 100%; }
  .nav-link          { height: auto; padding: .88rem 1.4rem; width: 100%;
                       border-bottom: 1px solid rgba(255,255,255,.06);
                       border-left: 3px solid transparent; }
  .nav-link.active, .nav-link:hover {
    border-left-color: var(--secondary);
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .dropdown          { position: static; box-shadow: none; border-top: none;
                       background: rgba(255,255,255,.05); animation: none; }
  .dropdown-item     { padding: .5rem 1rem .5rem 2.2rem; color: rgba(255,255,255,.7);
                       border-bottom-color: rgba(255,255,255,.06); }
  .dropdown-item:hover { background: rgba(255,255,255,.08); color: #fff; padding-left: 2.2rem; }
  .dropdown-item::before { display: none; }
  .navbar-brand      { min-width: auto; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .cards-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  /* Navbar ya manejado en 960px */
  .navbar-auth       { flex-direction: column; align-items: flex-start; padding: .75rem 1.4rem; border-top: 1px solid rgba(255,255,255,.1); width: 100%; margin-left: 0; }
  .hero              { min-height: 400px; }
  .hero-content      { padding: 3.5rem 1.5rem; }
  .footer-grid       { grid-template-columns: 1fr; }
  .form-row-2        { grid-template-columns: 1fr; }
  .cards-grid        { grid-template-columns: 1fr; }
  .tabs-inner        { padding: 0 1rem; }
}
@media (max-width: 480px) {
  .section { padding: 2.5rem 0; }
  .content-block { padding: 1.4rem; }
  /* Hero en mobile pequeño */
  .hero { min-height: 340px; }
  .hero-content { padding: 2.5rem 1.1rem; }
  .hero h1 { font-size: 1.7rem; }
  .hero-desc { font-size: .9rem; }
  .hero-btns { flex-direction: column; gap: .5rem; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  /* Navbar en mobile muy pequeño */
  .navbar-brand-name { font-size: .78rem; }
  .navbar-brand-sub  { display: none; } /* ocultar subtítulo en pantallas muy pequeñas */
  /* Cards en una columna */
  .cards-grid { grid-template-columns: 1fr; gap: .875rem; }
  /* Agenda */
  .agenda-card { flex-direction: column; }
  .agenda-date-box { width: 100%; display: flex; gap: .5rem; align-items: center;
                     border-radius: 8px; padding: .5rem .75rem; }
  .agenda-date-box .day { font-size: 1.2rem; }
  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-top  { padding: 2rem 1.1rem 1.5rem; }
}

/* Tablets (768px - 860px) */
@media (min-width: 769px) and (max-width: 860px) {
  .navbar-brand-sub { display: none; }
}
