﻿/* ==========================================================================
   COLEGIO NEW BUCKINGHAM · Villa Alemana
   Plantilla web · HTML + CSS + JS + Bootstrap 5.3
   Paleta extraída del escudo: azul marino, rojo, dorado y celeste.
   ========================================================================== */

:root {
  --nb-navy: #13216b;
  --nb-navy-900: #0a1240;
  --nb-navy-700: #1c3096;
  --nb-red: #d00a14;
  --nb-red-700: #a8070f;
  --nb-gold: #f2b632;
  --nb-gold-600: #d99a12;
  --nb-sky: #cfe6f6;
  --nb-cream: #fbf8f2;
  --nb-ink: #1c2340;
  --nb-muted: #5f6786;
  --nb-line: rgba(19, 33, 107, .1);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;

  --shadow-sm: 0 4px 14px rgba(19, 33, 107, .08);
  --shadow-md: 0 14px 40px rgba(19, 33, 107, .12);
  --shadow-lg: 0 30px 70px rgba(10, 18, 64, .22);

  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-gothic: 'UnifrakturCook', 'Old English Text MT', serif;

  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--nb-ink);
  --bs-link-color: var(--nb-navy);
  --bs-link-hover-color: var(--nb-red);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--font-body); color: var(--nb-ink); background: #fff; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .font-head { font-family: var(--font-head); color: var(--nb-navy); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
a { text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--nb-gold); color: var(--nb-navy-900); }
.text-navy { color: var(--nb-navy) !important; }
.text-gold { color: var(--nb-gold) !important; }
.text-red { color: var(--nb-red) !important; }
.text-muted-nb { color: var(--nb-muted) !important; }
.bg-cream { background: var(--nb-cream) !important; }
.bg-navy { background: var(--nb-navy) !important; }
.gothic { font-family: var(--font-gothic); font-weight: 400; letter-spacing: 0; }
.section { padding: clamp(64px, 8vw, 112px) 0; position: relative; }
.section-sm { padding: clamp(40px, 5vw, 72px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--nb-red);
}
.eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--nb-red), var(--nb-gold)); }
.eyebrow.light { color: var(--nb-gold); }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin: .6rem 0 1rem; }
.section-lead { font-size: 1.08rem; color: var(--nb-muted); max-width: 620px; }
.title-underline { position: relative; display: inline-block; z-index: 0; }
.title-underline::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .08em; height: .32em; z-index: -1;
  background: var(--nb-gold); opacity: .55; border-radius: 6px; transform: skew(-8deg);
}

/* ---------- Botones ---------- */
.btn { font-weight: 700; border-radius: 999px; padding: .8rem 1.6rem; transition: all .25s ease; }
.btn-lg { padding: .95rem 2rem; }
.btn-nb-gold { --bs-btn-color: var(--nb-navy-900); background: linear-gradient(135deg, #ffd267, var(--nb-gold)); border: 0; color: var(--nb-navy-900); box-shadow: 0 10px 24px rgba(242, 182, 50, .4); }
.btn-nb-gold:hover { color: var(--nb-navy-900); transform: translateY(-3px); box-shadow: 0 16px 30px rgba(242, 182, 50, .5); }
.btn-nb-navy { background: var(--nb-navy); color: #fff; border: 0; box-shadow: 0 10px 24px rgba(19, 33, 107, .3); }
.btn-nb-navy:hover { background: var(--nb-navy-700); color: #fff; transform: translateY(-3px); }
.btn-nb-red { background: var(--nb-red); color: #fff; border: 0; box-shadow: 0 10px 24px rgba(208, 10, 20, .3); }
.btn-nb-red:hover { background: var(--nb-red-700); color: #fff; transform: translateY(-3px); }
.btn-outline-nb { border: 2px solid var(--nb-navy); color: var(--nb-navy); background: transparent; }
.btn-outline-nb:hover { background: var(--nb-navy); color: #fff; transform: translateY(-3px); }
.btn-outline-light-nb { border: 2px solid rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.btn-outline-light-nb:hover { background: #fff; color: var(--nb-navy); transform: translateY(-3px); }
.link-arrow { font-weight: 700; color: var(--nb-navy); display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow i { transition: transform .25s; }
.link-arrow:hover { color: var(--nb-red); }
.link-arrow:hover i { transform: translateX(5px); }

/* El contenedor del header no debe limitar el "sticky" del navbar */
#site-header, #site-footer { display: contents; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--nb-navy-900); color: rgba(255, 255, 255, .82); font-size: .82rem; }
.topbar a { color: rgba(255, 255, 255, .82); transition: color .2s; }
.topbar a:hover { color: var(--nb-gold); }
.topbar i { color: var(--nb-gold); margin-right: .35rem; }
.topbar-item { display: inline-flex; align-items: center; padding: .55rem 0; }
.topbar .social a { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); margin-left: .35rem; }
.topbar .social a i { margin: 0; color: #fff; font-size: .8rem; }
.topbar .social a:hover { background: var(--nb-gold); }
.topbar .social a:hover i { color: var(--nb-navy-900); }
.topbar-portal { background: var(--nb-gold); color: var(--nb-navy-900) !important; font-weight: 700; padding: .3rem .9rem; border-radius: 999px; }
.topbar-portal i { color: var(--nb-navy-900); }
.topbar-portal:hover { background: #fff; }

/* ---------- Navbar ---------- */
.site-navbar {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nb-line); transition: box-shadow .3s, background .3s;
}
.site-navbar.scrolled { box-shadow: 0 10px 34px rgba(10, 18, 64, .12); background: rgba(255, 255, 255, .97); }
.navbar-brand { display: flex; align-items: center; gap: .8rem; padding: 0; }
.navbar-brand img { width: 58px; height: auto; filter: drop-shadow(0 4px 8px rgba(19, 33, 107, .2)); transition: transform .4s; }
.navbar-brand:hover img { transform: scale(1.06) rotate(-2deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.28rem; color: var(--nb-navy); }
.brand-sub { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--nb-red); font-weight: 700; margin-top: 3px; }
.navbar-nav .nav-link {
  font-weight: 600; font-size: .94rem; color: var(--nb-ink); padding: .6rem .85rem !important; position: relative;
}
/* Subrayado animado con ::before (el ::after queda libre para la flecha del dropdown) */
.navbar-nav .nav-link::before {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .25rem; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--nb-red), var(--nb-gold)); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.navbar-nav .nav-link:hover::before, .navbar-nav .nav-link.active::before, .navbar-nav .show > .nav-link::before { transform: scaleX(1); }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--nb-navy); }
.navbar-nav .dropdown-toggle::after { border: 0; content: "\F282"; font-family: "bootstrap-icons"; font-size: .6rem; vertical-align: 0; margin-left: .35rem; transition: transform .25s; display: inline-block; }
.navbar-nav .dropdown-toggle.show::after { transform: rotate(180deg); }

.menu-panel {
  border: 0; border-radius: var(--r-md); padding: .7rem; min-width: 340px; margin-top: .9rem !important;
  box-shadow: var(--shadow-lg); border-top: 4px solid var(--nb-gold);
  animation: menuIn .22s ease;
}
@keyframes menuIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.menu-item { display: flex; align-items: center; gap: .85rem; padding: .6rem .7rem; border-radius: var(--r-sm); color: var(--nb-ink); transition: background .2s, transform .2s; }
.menu-item:hover { background: var(--nb-cream); transform: translateX(4px); color: var(--nb-ink); }
.menu-item.active { background: #fff6dc; }
.menu-icon { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--nb-navy), var(--nb-navy-700)); color: var(--nb-gold); font-size: 1.15rem; }
.menu-item strong { display: block; font-size: .92rem; color: var(--nb-navy); line-height: 1.2; }
.menu-item small { display: block; color: var(--nb-muted); font-size: .76rem; line-height: 1.25; margin-top: 2px; }
@media (min-width: 1200px) and (hover: hover) {
  .navbar .dropdown:hover > .dropdown-menu { display: block; }
}

.betel-btn {
  display: inline-flex; align-items: center; gap: .55rem; background: #fff; border: 2px solid var(--nb-line);
  border-radius: 999px; padding: .28rem .9rem .28rem .35rem; transition: all .25s; box-shadow: var(--shadow-sm);
}
.betel-btn img { height: 36px; width: auto; }
.betel-btn span { font-size: .72rem; font-weight: 800; color: var(--nb-navy); line-height: 1.1; text-transform: uppercase; letter-spacing: .04em; }
.betel-btn i { color: var(--nb-red); }
.betel-btn:hover { border-color: var(--nb-gold); transform: translateY(-2px); box-shadow: var(--shadow-md); }
/* Ajuste para pantallas "xl" (1200-1399px): menú más compacto y botón Betel reducido */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .betel-btn span { display: none; }
  .betel-btn { padding: .28rem .85rem; }
  .betel-btn img { height: 38px; }
  .navbar-nav .nav-link { padding: .6rem .6rem !important; font-size: .9rem; }
  .navbar-nav .nav-link::before { left: .6rem; right: .6rem; }
  .brand-name { font-size: 1.12rem; }
  .navbar-brand img { width: 50px; }
  .navbar-brand { gap: .6rem; margin-right: .5rem; }
}
.navbar-toggler { border: 0; padding: .4rem; }
.navbar-toggler:focus { box-shadow: none; }
.offcanvas { border-left: 0; }
.offcanvas-header { background: var(--nb-cream); }
@media (max-width: 1199.98px) {
  .menu-panel { box-shadow: none; border: 0; background: var(--nb-cream); margin-top: 0 !important; min-width: 0; animation: none; }
  .navbar-nav .nav-link { font-size: 1.05rem; border-bottom: 1px solid var(--nb-line); }
  .navbar-nav .nav-link::before { display: none; }
  .navbar-nav .dropdown-toggle::after { float: right; margin-top: .4rem; }
}

/* ---------- Placeholders de foto (reemplazar por fotos reales) ---------- */
.photo {
  position: relative; overflow: hidden; isolation: isolate; margin: 0;
  border-radius: var(--r-lg); background: linear-gradient(135deg, var(--c1, #13216b), var(--c2, #2a45c4));
}
.photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .1;
  background: url(../images/logo/escudo-160.png) center/46% no-repeat; filter: grayscale(1) brightness(5);
}
.photo::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .25;
  background-image: radial-gradient(rgba(255, 255, 255, .5) 1.2px, transparent 1.3px); background-size: 18px 18px;
  mask-image: linear-gradient(135deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(135deg, #000, transparent 70%);
}
.photo .ph-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; font-size: 3.4rem; color: rgba(255, 255, 255, .85); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; transition: transform .7s ease; }
.photo:hover img { transform: scale(1.06); }
.ph-navy { --c1: #13216b; --c2: #2a45c4; }
.ph-red { --c1: #a8070f; --c2: #e8323c; }
.ph-gold { --c1: #d99a12; --c2: #f7cf6a; }
.ph-sky { --c1: #4a8fc0; --c2: #a9d4ef; }
.ph-green { --c1: #0f6b57; --c2: #3cb597; }
.ar-1 { aspect-ratio: 1/1; } .ar-43 { aspect-ratio: 4/3; } .ar-34 { aspect-ratio: 3/4; } .ar-169 { aspect-ratio: 16/9; } .ar-32 { aspect-ratio: 3/2; }

/* ---------- Hero slider (inicio) ---------- */
.hero-slider { position: relative; background: var(--nb-navy-900); }
.hero-slider .carousel-item { min-height: clamp(580px, 86vh, 780px); position: relative; overflow: hidden; background: linear-gradient(135deg, var(--nb-navy-900), var(--nb-navy-700)); }
.hero-slider .carousel-item.active, .hero-slider .carousel-item-next, .hero-slider .carousel-item-prev { display: flex; align-items: center; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.hero-slider .carousel-item.active .hero-img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.1); } to { transform: scale(1); } }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(90deg, rgba(10, 18, 64, .92) 0%, rgba(10, 18, 64, .74) 38%, rgba(10, 18, 64, .12) 72%, rgba(10, 18, 64, 0) 100%),
  linear-gradient(0deg, rgba(10, 18, 64, .75) 0%, rgba(10, 18, 64, 0) 38%); }
.hero-slide-content { position: relative; z-index: 2; width: 100%; padding: 70px 0 190px; color: #fff; }
.hero-slide-content .inner { max-width: 640px; }
.hero-badge { display: inline-flex; align-items: center; gap: .6rem; background: rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .28); padding: .4rem 1.1rem .4rem .4rem; border-radius: 999px; font-weight: 600; font-size: .85rem; color: #fff; }
.hero-badge b { background: var(--nb-gold); color: var(--nb-navy-900); font-size: .7rem; padding: .28rem .75rem; border-radius: 999px; letter-spacing: .08em; text-transform: uppercase; }
.hero-badge b.red { background: var(--nb-red); color: #fff; }
.hero-slide-content h1 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.4rem); margin: 1.2rem 0 1.1rem; line-height: 1.05; text-shadow: 0 4px 30px rgba(0, 0, 0, .35); }
.hero-slide-content h1 em { font-style: italic; color: var(--nb-gold); }
.hero-slide-content .lead { color: rgba(255, 255, 255, .88); font-size: 1.15rem; max-width: 540px; }
/* entrada escalonada del texto cuando el slide está activo */
.hero-slide-content .inner > * { opacity: 0; transform: translateY(26px); }
.carousel-item.active .hero-slide-content .inner > * { animation: heroUp .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.carousel-item.active .hero-slide-content .inner > *:nth-child(2) { animation-delay: .15s; }
.carousel-item.active .hero-slide-content .inner > *:nth-child(3) { animation-delay: .3s; }
.carousel-item.active .hero-slide-content .inner > *:nth-child(4) { animation-delay: .45s; }
@keyframes heroUp { to { opacity: 1; transform: none; } }

/* Controles: indicadores con progreso + flechas */
.hero-ui { position: absolute; z-index: 5; left: 0; right: 0; bottom: 135px; pointer-events: none; }
.hero-ui .container { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.hero-slider .carousel-indicators { position: static; margin: 0; padding: 0; display: flex; gap: .9rem; justify-content: flex-start; pointer-events: auto; flex: 1; max-width: 560px; }
.hero-slider .carousel-indicators [data-bs-target] { all: unset; box-sizing: border-box; cursor: pointer; flex: 1; text-indent: 0; opacity: 1; color: rgba(255, 255, 255, .6); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding-top: .7rem; position: relative; transition: color .3s; }
.hero-slider .carousel-indicators [data-bs-target]::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .28); }
.hero-slider .carousel-indicators [data-bs-target]::after { content: ""; position: absolute; top: 0; left: 0; height: 4px; width: 0; border-radius: 4px; background: var(--nb-gold); }
.hero-slider .carousel-indicators [data-bs-target].active { color: #fff; }
.hero-slider .carousel-indicators [data-bs-target].active::after { animation: dotfill 6.5s linear forwards; }
.hero-slider .carousel-indicators [data-bs-target]:hover { color: #fff; }
.hero-slider .carousel-indicators [data-bs-target]:focus-visible { outline: 2px solid var(--nb-gold); outline-offset: 4px; }
@keyframes dotfill { to { width: 100%; } }
.hero-arrows { display: flex; gap: .7rem; pointer-events: auto; }
.hero-arrow { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font-size: 1.15rem; display: grid; place-items: center; transition: all .25s; }
.hero-arrow:hover { background: var(--nb-gold); border-color: var(--nb-gold); color: var(--nb-navy-900); transform: scale(1.08); }
.hero-counter { position: absolute; z-index: 5; right: 0; top: 40px; pointer-events: none; }
.hero-counter .container { display: flex; justify-content: flex-end; }
.hero-counter span { font-family: var(--font-head); font-size: 1.1rem; color: rgba(255, 255, 255, .75); background: rgba(10, 18, 64, .35); backdrop-filter: blur(8px); padding: .3rem 1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); }
.hero-counter b { color: var(--nb-gold); font-size: 1.3rem; }
@media (max-width: 991.98px) {
  .hero-overlay { background: linear-gradient(0deg, rgba(10, 18, 64, .94) 0%, rgba(10, 18, 64, .72) 55%, rgba(10, 18, 64, .35) 100%); }
  .hero-slide-content { padding: 60px 0 200px; }
  .hero-slider .carousel-item { align-items: flex-end !important; }
}
@media (max-width: 575.98px) {
  .hero-arrows { display: none; }
  .hero-counter { display: none; }
  .hero-slider .carousel-indicators [data-bs-target] { font-size: .62rem; }
  .hero-slide-content .lead { font-size: 1rem; }
}
/* ---------- Accesos rápidos ---------- */
.quick-wrap { margin-top: -105px; position: relative; z-index: 5; }
.quick-card { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--r-lg); padding: 1.6rem 1.4rem; box-shadow: var(--shadow-md); border: 1px solid var(--nb-line); color: var(--nb-ink); position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.quick-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: var(--q, var(--nb-gold)); }
.quick-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); color: var(--nb-ink); }
.quick-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; background: color-mix(in srgb, var(--q, var(--nb-gold)) 16%, #fff); color: var(--q, var(--nb-gold-600)); margin-bottom: 1rem; transition: transform .3s; }
.quick-card:hover .quick-icon { transform: rotate(-8deg) scale(1.08); }
.quick-card h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.quick-card p { font-size: .85rem; color: var(--nb-muted); margin-bottom: 1rem; }
.quick-card .go { margin-top: auto; font-weight: 700; font-size: .85rem; color: var(--q, var(--nb-navy)); display: inline-flex; gap: .4rem; align-items: center; }
.quick-card .go i { transition: transform .25s; }
.quick-card:hover .go i { transform: translateX(5px); }
.quick-card.betel { background: linear-gradient(160deg, var(--nb-navy), var(--nb-navy-700)); color: #fff; border: 0; }
.quick-card.betel h3 { color: #fff; }
.quick-card.betel p { color: rgba(255, 255, 255, .75); }
.quick-card.betel .go { color: var(--nb-gold); }
.quick-card.betel .quick-icon { background: rgba(255, 255, 255, .12); color: var(--nb-gold); }

/* ---------- Marquee ---------- */
.marquee { background: var(--nb-red); color: #fff; padding: 1rem 0; overflow: hidden; white-space: nowrap; border-block: 4px solid var(--nb-gold); }
.marquee-track { display: inline-flex; gap: 2.5rem; animation: marquee 38s linear infinite; padding-left: 2.5rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--font-head); font-size: 1.35rem; font-style: italic; display: inline-flex; align-items: center; gap: 2.5rem; }
.marquee span::after { content: "\F586"; font-family: "bootstrap-icons"; font-style: normal; color: var(--nb-gold); font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sobre el colegio ---------- */
.about-collage { position: relative; padding: 0 0 3rem 0; }
.about-collage .photo.main { width: 82%; box-shadow: var(--shadow-md); border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 120px; }
.about-collage .photo.second { position: absolute; width: 48%; right: 0; bottom: 0; border: 8px solid #fff; box-shadow: var(--shadow-md); border-radius: var(--r-lg); }
.about-collage .seal { position: absolute; left: -10px; bottom: 14%; width: 118px; height: 118px; background: var(--nb-gold); border-radius: 50%; display: grid; place-items: center; text-align: center; box-shadow: var(--shadow-md); border: 6px solid #fff; color: var(--nb-navy-900); line-height: 1; z-index: 4; }
.about-collage .seal strong { font-family: var(--font-head); font-size: 2.1rem; display: block; }
.about-collage .seal span { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: .75rem; padding: .45rem 0; font-weight: 500; }
.check-list i { color: #fff; background: var(--nb-red); width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; margin-top: 2px; }

.stats-band { background: linear-gradient(135deg, var(--nb-navy-900), var(--nb-navy)); position: relative; overflow: hidden; color: #fff; }
.stats-band::before { content: ""; position: absolute; inset: 0; opacity: .08; background: url(../images/logo/escudo-640.png) right -80px center/520px no-repeat; filter: grayscale(1) brightness(8); }
.stat { text-align: center; padding: 1rem; position: relative; z-index: 1; }
.stat strong { font-family: var(--font-head); font-size: clamp(2.4rem, 4.5vw, 3.6rem); color: var(--nb-gold); display: block; line-height: 1; }
.stat span { font-weight: 600; color: rgba(255, 255, 255, .8); font-size: .92rem; }

/* ---------- Niveles ---------- */
.level-card { position: relative; display: block; border-radius: var(--r-xl); overflow: hidden; color: #fff; height: 100%; min-height: 440px; box-shadow: var(--shadow-md); transition: transform .35s, box-shadow .35s; }
.level-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); color: #fff; }
.level-card .photo { position: absolute; inset: 0; border-radius: 0; }
.level-card::after { content: ""; position: absolute; inset: 0; z-index: 3; background: linear-gradient(180deg, rgba(10, 18, 64, 0) 25%, rgba(10, 18, 64, .92) 100%); }
.level-body { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 1.8rem; }
.level-tag { display: inline-block; background: var(--lv, var(--nb-gold)); color: #fff; font-size: .72rem; font-weight: 800; padding: .3rem .8rem; border-radius: 999px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8rem; }
.level-card h3 { color: #fff; font-size: 2rem; margin-bottom: .4rem; }
.level-card p { color: rgba(255, 255, 255, .85); font-size: .92rem; margin-bottom: 1rem; }
.chip { display: inline-block; font-size: .74rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); margin: 0 .25rem .35rem 0; }
.level-card .more { font-weight: 700; display: inline-flex; gap: .5rem; align-items: center; color: var(--nb-gold); }
.level-card .more i { transition: transform .25s; }
.level-card:hover .more i { transform: translateX(6px); }

/* ---------- Bento (por qué elegirnos) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.2rem; }
.bento-item { grid-column: span 4; background: #fff; border: 1px solid var(--nb-line); border-radius: var(--r-lg); padding: 1.8rem; position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.bento-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.bento-item .ico { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 1.1rem; background: var(--nb-cream); color: var(--nb-red); }
.bento-item h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.bento-item p { color: var(--nb-muted); margin: 0; font-size: .94rem; }
.bento-item.big { background: linear-gradient(145deg, var(--nb-navy), var(--nb-navy-700)); color: #fff; border: 0; }
.bento-item.big h3 { color: #fff; font-size: 1.7rem; }
.bento-item.big p { color: rgba(255, 255, 255, .8); }
.bento-item.big .ico { background: rgba(255, 255, 255, .12); color: var(--nb-gold); }
.bento-item.big::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(242, 182, 50, .15); }
.bento-item.gold { background: var(--nb-gold); border: 0; }
.bento-item.gold .ico { background: rgba(255, 255, 255, .55); color: var(--nb-navy); }
.bento-item.gold p { color: rgba(10, 18, 64, .8); }
@media (max-width: 991.98px) { .bento-item { grid-column: span 6; } }
@media (max-width: 575.98px) { .bento-item { grid-column: span 12; } }

/* ---------- Betel ---------- */
.betel-section { background: radial-gradient(circle at 85% 20%, #2a45c4, transparent 45%), linear-gradient(135deg, var(--nb-navy-900), var(--nb-navy)); color: #fff; overflow: hidden; position: relative; }
.betel-section h2 { color: #fff; }
.betel-section .section-lead { color: rgba(255, 255, 255, .8); }
.betel-feature { display: flex; align-items: center; gap: .8rem; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); padding: .85rem 1rem; border-radius: var(--r-md); height: 100%; transition: background .25s, transform .25s; }
.betel-feature:hover { background: rgba(255, 255, 255, .15); transform: translateY(-3px); }
.betel-feature i { font-size: 1.4rem; color: var(--nb-gold); }
.betel-feature strong { display: block; font-size: .92rem; line-height: 1.15; }
.betel-feature small { color: rgba(255, 255, 255, .7); font-size: .76rem; }
.phone { position: relative; width: 270px; margin: 0 auto; background: #0b1020; border-radius: 40px; padding: 11px; box-shadow: 0 40px 80px rgba(0, 0, 0, .45), 0 0 0 2px rgba(255, 255, 255, .1); transform: rotate(5deg); }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 80px; height: 20px; border-radius: 20px; background: #0b1020; z-index: 3; }
.phone-screen { background: #f3f6fb; border-radius: 30px; overflow: hidden; color: var(--nb-ink); min-height: 480px; }
.phone-head { background: #fff; padding: 2.4rem 1rem .8rem; display: flex; align-items: center; gap: .6rem; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); }
.phone-head img { width: 34px; height: 34px; border-radius: 9px; }
.phone-head strong { font-size: .82rem; color: var(--nb-navy); line-height: 1.1; display: block; }
.phone-head small { font-size: .65rem; color: var(--nb-muted); }
.phone-body { padding: .9rem; display: grid; gap: .65rem; }
.ph-card { background: #fff; border-radius: 14px; padding: .7rem .8rem; box-shadow: 0 2px 8px rgba(19, 33, 107, .06); display: flex; align-items: center; gap: .65rem; font-size: .74rem; }
.ph-card i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #e9efff; color: var(--nb-navy-700); font-size: .9rem; }
.ph-card b { display: block; font-size: .78rem; color: var(--nb-navy); }
.ph-card .grade { margin-left: auto; font-weight: 800; font-size: .95rem; color: #0d8a5f; }
.ph-card .grade.red { color: var(--nb-red); }
.phone .bar { height: 6px; border-radius: 6px; background: #e3e9f5; overflow: hidden; margin-top: 5px; }
.phone .bar i { display: block; height: 100%; width: 92%; background: var(--nb-gold); border-radius: 6px; background-color: var(--nb-gold); padding: 0; }
.betel-glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: var(--nb-gold); filter: blur(120px); opacity: .22; left: 50%; top: 50%; transform: translate(-50%, -50%); }

/* ---------- Noticias / Eventos ---------- */
.news-card { background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--nb-line); box-shadow: var(--shadow-sm); height: 100%; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news-card .photo { border-radius: 0; }
.news-card .cat { position: absolute; z-index: 3; left: 1rem; top: 1rem; background: var(--nb-red); color: #fff; font-size: .7rem; font-weight: 800; padding: .3rem .8rem; border-radius: 999px; letter-spacing: .08em; text-transform: uppercase; }
.news-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.news-meta { font-size: .78rem; color: var(--nb-muted); font-weight: 600; display: flex; gap: 1rem; margin-bottom: .6rem; }
.news-meta i { color: var(--nb-gold-600); margin-right: .25rem; }
.news-card h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.news-card h3 a { color: var(--nb-navy); }
.news-card h3 a:hover { color: var(--nb-red); }
.news-card p { color: var(--nb-muted); font-size: .92rem; }
.news-featured .photo { aspect-ratio: 16/9; }
.news-featured h3 { font-size: 1.6rem; }
.news-row { display: flex; gap: 1rem; align-items: center; }
.news-row .photo { width: 140px; flex: 0 0 140px; aspect-ratio: 1; border-radius: var(--r-md); }
.news-row h3 { font-size: 1.05rem; margin: 0 0 .3rem; }

.event-list { background: var(--nb-navy); border-radius: var(--r-xl); padding: 1.8rem; color: #fff; height: 100%; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.event-list .btn { margin-top: auto !important; }
.event-list .event:nth-last-of-type(1) { margin-bottom: 1rem; }
.event-list::after { content: ""; position: absolute; right: -60px; top: -60px; width: 190px; height: 190px; border-radius: 50%; border: 30px solid rgba(242, 182, 50, .12); }
.event-list h3 { color: #fff; }
.event { display: flex; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px dashed rgba(255, 255, 255, .2); position: relative; z-index: 1; }
.event:last-of-type { border: 0; }
.event-date { flex: 0 0 62px; text-align: center; background: var(--nb-gold); color: var(--nb-navy-900); border-radius: 14px; padding: .45rem 0; line-height: 1; }
.event-date strong { font-family: var(--font-head); font-size: 1.6rem; display: block; }
.event-date span { font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.event h4 { font-family: var(--font-body); color: #fff; font-size: .98rem; margin: 0 0 .15rem; font-weight: 700; }
.event small { color: rgba(255, 255, 255, .7); }

/* ---------- Galería ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 1rem; }
.gallery-grid .g { cursor: zoom-in; border-radius: var(--r-md); }
.gallery-grid .g.tall { grid-row: span 2; }
.gallery-grid .g.wide { grid-column: span 2; }
.gallery-grid .g .photo, .gallery-grid .g { height: 100%; }
.g .g-cap { position: absolute; z-index: 4; inset: auto 0 0 0; padding: 1.2rem 1rem .8rem; color: #fff; font-weight: 700; font-size: .88rem; background: linear-gradient(transparent, rgba(10, 18, 64, .85)); transform: translateY(100%); transition: transform .3s; }
.g:hover .g-cap { transform: none; }
@media (max-width: 767.98px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } }
.lightbox .modal-content { background: transparent; border: 0; }
.lightbox .photo { border-radius: var(--r-lg); max-height: 80vh; aspect-ratio: 16/10; width: 100%; }
.lightbox .btn-close { position: absolute; right: 0; top: -2.5rem; filter: invert(1); opacity: 1; }

/* ---------- Testimonios ---------- */
.testi { background: var(--nb-cream); position: relative; overflow: hidden; }
.testi::before { content: "\201C"; position: absolute; left: 4%; top: -40px; font-family: var(--font-head); font-size: 22rem; line-height: 1; color: var(--nb-gold); opacity: .18; }
.testi-card { max-width: 780px; margin: 0 auto; text-align: center; position: relative; }
.testi-card blockquote { font-family: var(--font-head); font-size: clamp(1.25rem, 2.4vw, 1.8rem); color: var(--nb-navy); font-style: italic; line-height: 1.5; }
.testi-card .who { display: inline-flex; align-items: center; gap: .9rem; text-align: left; margin-top: 1.4rem; }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--nb-navy), var(--nb-navy-700)); color: var(--nb-gold); font-size: 1.5rem; flex: 0 0 56px; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.stars { color: var(--nb-gold); letter-spacing: 3px; }
.carousel-indicators [data-bs-target] { background-color: var(--nb-navy); width: 10px; height: 10px; border-radius: 50%; border: 0; }
.carousel-indicators { position: static; margin-top: 2rem; }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--nb-red-700), var(--nb-red)); border-radius: var(--r-xl); padding: clamp(2rem, 5vw, 4rem); position: relative; overflow: hidden; color: #fff; box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 380px; height: 380px; background: url(../images/logo/escudo-640.png) center/contain no-repeat; opacity: .13; filter: grayscale(1) brightness(10); }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-band p { color: rgba(255, 255, 255, .88); max-width: 540px; }
.cta-band .position-relative { z-index: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--nb-navy-900); color: rgba(255, 255, 255, .75); position: relative; margin-top: 0; }
.site-footer::before { content: ""; display: block; height: 6px; background: linear-gradient(90deg, var(--nb-red) 0 33%, var(--nb-gold) 33% 66%, var(--nb-sky) 66%); }
.footer-main { padding: 70px 0 40px; }
.footer-brand { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.footer-brand .crest-box { background: #fff; border-radius: 22px; padding: 8px; width: 108px; flex: 0 0 108px; }
.footer-brand .crest-box img { width: 100%; display: block; }
.footer-brand strong { font-family: var(--font-head); color: #fff; font-size: 1.4rem; line-height: 1.1; display: block; }
.footer-brand span { font-family: var(--font-gothic); color: var(--nb-gold); font-size: 1.15rem; }
.site-footer h5 { font-family: var(--font-body); font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 1.2rem; position: relative; padding-bottom: .7rem; }
.site-footer h5::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--nb-gold); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: rgba(255, 255, 255, .75); transition: all .2s; font-size: .93rem; }
.footer-links a:hover { color: var(--nb-gold); padding-left: 6px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: .8rem; margin-bottom: .9rem; font-size: .93rem; }
.footer-contact i { color: var(--nb-gold); margin-top: 3px; }
.footer-contact a { color: rgba(255, 255, 255, .75); }
.footer-contact a:hover { color: var(--nb-gold); }
.footer-social a { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; margin-right: .4rem; transition: all .25s; }
.footer-social a:hover { background: var(--nb-gold); color: var(--nb-navy-900); transform: translateY(-4px); }
.footer-betel { display: inline-flex; align-items: center; gap: .8rem; background: #fff; border-radius: var(--r-md); padding: .6rem 1rem; color: var(--nb-navy); font-weight: 700; font-size: .8rem; margin-top: .5rem; transition: transform .25s; }
.footer-betel img { height: 40px; }
.footer-betel:hover { transform: translateY(-4px); color: var(--nb-red); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.3rem 0; font-size: .84rem; }
.footer-bottom a { color: rgba(255, 255, 255, .75); }
.footer-bottom a:hover { color: var(--nb-gold); }

/* ---------- Botón subir / flotante Betel ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--nb-navy); color: var(--nb-gold); font-size: 1.2rem; z-index: 1040; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--nb-red); color: #fff; }
.float-betel { position: fixed; left: 18px; bottom: 18px; z-index: 1040; background: #fff; border-radius: 999px; padding: .35rem 1rem .35rem .45rem; display: flex; align-items: center; gap: .55rem; box-shadow: var(--shadow-lg); border: 2px solid var(--nb-gold); font-weight: 800; font-size: .74rem; color: var(--nb-navy); line-height: 1.1; text-transform: uppercase; letter-spacing: .04em; transition: transform .25s; }
.float-betel img { width: 36px; height: 36px; border-radius: 10px; }
.float-betel:hover { transform: translateY(-4px) scale(1.03); color: var(--nb-red); }
@media (max-width: 575.98px) { .float-betel span { display: none; } .float-betel { padding: .3rem; } }

/* ---------- Página interior ---------- */
.page-hero { background: linear-gradient(135deg, var(--nb-navy-900), var(--nb-navy) 60%, var(--nb-navy-700)); color: #fff; padding: clamp(48px, 6vw, 84px) 0 clamp(64px, 7vw, 104px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: 420px; height: 420px; background: url(../images/logo/escudo-640.png) center/contain no-repeat; opacity: .1; filter: grayscale(1) brightness(10); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 46px; background: #fff; clip-path: ellipse(60% 100% at 50% 100%); }
.page-hero.cream-end::after { background: var(--nb-cream); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin: .6rem 0; }
.page-hero p { color: rgba(255, 255, 255, .82); max-width: 620px; font-size: 1.08rem; margin: 0; }
.breadcrumb { margin-bottom: .6rem; font-size: .84rem; font-weight: 600; --bs-breadcrumb-divider-color: rgba(255, 255, 255, .5); }
.breadcrumb a { color: var(--nb-gold); }
.breadcrumb-item.active { color: rgba(255, 255, 255, .8); }

.card-nb { background: #fff; border: 1px solid var(--nb-line); border-radius: var(--r-lg); padding: 1.8rem; box-shadow: var(--shadow-sm); height: 100%; transition: transform .3s, box-shadow .3s; }
.card-nb.hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.icon-box { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 1.6rem; background: var(--nb-navy); color: var(--nb-gold); margin-bottom: 1rem; }
.icon-box.red { background: var(--nb-red); color: #fff; }
.icon-box.gold { background: var(--nb-gold); color: var(--nb-navy-900); }
.icon-box.sky { background: var(--nb-sky); color: var(--nb-navy); }

.timeline { position: relative; padding-left: 2.2rem; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: linear-gradient(var(--nb-red), var(--nb-gold), var(--nb-sky)); }
.tl-item { position: relative; padding-bottom: 1.8rem; }
.tl-item::before { content: ""; position: absolute; left: -2.2rem; top: 5px; width: 21px; height: 21px; border-radius: 50%; background: #fff; border: 5px solid var(--nb-gold); }
.tl-item .yr { font-family: var(--font-head); font-weight: 800; color: var(--nb-red); font-size: 1.15rem; }
.tl-item h4 { font-size: 1.15rem; margin: .1rem 0 .3rem; }
.tl-item p { color: var(--nb-muted); margin: 0; }

.profile-card { text-align: center; background: #fff; border: 1px solid var(--nb-line); border-radius: var(--r-lg); overflow: hidden; height: 100%; transition: transform .3s, box-shadow .3s; }
.profile-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.profile-card .photo { border-radius: 0; aspect-ratio: 1/1; }
.profile-card .photo .ph-icon { font-size: 4.5rem; }
.profile-card .info { padding: 1.1rem 1rem 1.3rem; }
.profile-card h4 { font-size: 1.1rem; margin: 0 0 .15rem; }
.profile-card .role { color: var(--nb-red); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.profile-card small { color: var(--nb-muted); display: block; margin-top: .3rem; }

.org { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.org-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; position: relative; }
.org-node { background: #fff; border: 2px solid var(--nb-navy); color: var(--nb-navy); border-radius: var(--r-md); padding: .8rem 1.4rem; font-weight: 700; font-size: .9rem; text-align: center; box-shadow: var(--shadow-sm); }
.org-node.top { background: var(--nb-navy); color: #fff; }
.org-node.mid { border-color: var(--nb-red); }
.org-node small { display: block; font-weight: 500; color: var(--nb-muted); font-size: .72rem; }
.org-node.top small { color: rgba(255, 255, 255, .7); }
.org-line { width: 3px; height: 26px; background: var(--nb-gold); border-radius: 3px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-btn { border: 2px solid var(--nb-line); background: #fff; color: var(--nb-navy); font-weight: 700; font-size: .84rem; padding: .5rem 1.1rem; border-radius: 999px; transition: all .2s; }
.filter-btn:hover { border-color: var(--nb-navy); }
.filter-btn.active { background: var(--nb-navy); color: #fff; border-color: var(--nb-navy); }
.hide { display: none !important; }

.doc-item { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--nb-line); border-radius: var(--r-md); padding: 1rem 1.2rem; transition: all .25s; }
.doc-item:hover { border-color: var(--nb-gold); box-shadow: var(--shadow-md); transform: translateX(4px); }
.doc-ico { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; background: #fde7e8; color: var(--nb-red); display: grid; place-items: center; font-size: 1.4rem; }
.doc-item h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin: 0; }
.doc-item small { color: var(--nb-muted); }
.doc-item .btn { margin-left: auto; padding: .5rem 1rem; font-size: .84rem; white-space: nowrap; }

.step { position: relative; text-align: center; padding: 0 .5rem; }
.step .num { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--nb-navy-900); background: var(--nb-gold); box-shadow: 0 0 0 8px rgba(242, 182, 50, .25); position: relative; z-index: 1; }
.step h4 { font-size: 1.1rem; }
.step p { color: var(--nb-muted); font-size: .9rem; }
@media (min-width: 992px) { .step:not(:last-child)::after { content: ""; position: absolute; top: 35px; left: calc(50% + 46px); width: calc(100% - 92px); border-top: 3px dashed rgba(19, 33, 107, .2); } }

.accordion { --bs-accordion-border-color: var(--nb-line); --bs-accordion-btn-focus-box-shadow: none; --bs-accordion-active-bg: #fff6dc; --bs-accordion-active-color: var(--nb-navy); }
.accordion-item { border-radius: var(--r-md) !important; overflow: hidden; margin-bottom: .8rem; border: 1px solid var(--nb-line) !important; }
.accordion-button { font-weight: 700; color: var(--nb-navy); }

.table-nb { --bs-table-bg: #fff; border-collapse: separate; border-spacing: 0; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--nb-line); }
.table-nb thead th { background: var(--nb-navy); color: #fff; font-weight: 700; font-size: .84rem; text-transform: uppercase; letter-spacing: .06em; padding: .9rem 1rem; border: 0; }
.table-nb td { padding: .85rem 1rem; vertical-align: middle; }

.form-control, .form-select { border-radius: var(--r-sm); padding: .8rem 1rem; border: 2px solid var(--nb-line); background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--nb-gold); box-shadow: 0 0 0 .25rem rgba(242, 182, 50, .25); }
.form-label { font-weight: 700; font-size: .85rem; color: var(--nb-navy); }
.contact-info { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info .icon-box { flex: 0 0 52px; width: 52px; height: 52px; font-size: 1.3rem; margin: 0; border-radius: 16px; }
.contact-info h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 800; margin-bottom: .15rem; }
.contact-info p, .contact-info a { color: var(--nb-muted); margin: 0; font-size: .94rem; }
.map-box { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); border: 6px solid #fff; }
.map-box iframe { display: block; width: 100%; height: 420px; border: 0; }

.honor-card { text-align: center; background: #fff; border-radius: var(--r-lg); padding: 2rem 1.2rem 1.5rem; border: 1px solid var(--nb-line); position: relative; height: 100%; transition: transform .3s, box-shadow .3s; }
.honor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.honor-card .medal { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #ffe08a, var(--nb-gold-600)); color: var(--nb-navy-900); display: grid; place-items: center; font-weight: 800; box-shadow: var(--shadow-sm); border: 3px solid #fff; }
.honor-card .avatar { margin: .6rem auto 1rem; width: 84px; height: 84px; font-size: 2.2rem; }
.honor-card h4 { font-size: 1.1rem; margin: 0; }
.honor-card small { color: var(--nb-muted); }

.pill { display: inline-block; font-size: .72rem; font-weight: 800; padding: .3rem .8rem; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; }
.pill-red { background: #fde7e8; color: var(--nb-red); }
.pill-gold { background: #fff1cc; color: #8a6200; }
.pill-navy { background: #e3e8ff; color: var(--nb-navy); }
.pill-sky { background: var(--nb-sky); color: var(--nb-navy); }
.pill-green { background: #d9f3ea; color: #0f6b57; }

.page-link { color: var(--nb-navy); border: 0; border-radius: 50% !important; margin: 0 .2rem; width: 42px; height: 42px; display: grid; place-items: center; font-weight: 700; }
.page-item.active .page-link { background: var(--nb-navy); }

.sticky-aside { position: sticky; top: 110px; }
.aside-nav { list-style: none; padding: 0; margin: 0; }
.aside-nav a { display: flex; align-items: center; gap: .7rem; padding: .75rem 1rem; border-radius: var(--r-sm); color: var(--nb-ink); font-weight: 600; font-size: .92rem; }
.aside-nav a:hover { background: var(--nb-cream); color: var(--nb-navy); }
.aside-nav i { color: var(--nb-red); }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; } .reveal.d4 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .topbar, .site-navbar, .site-footer, .to-top, .float-betel, .page-hero, .no-print { display: none !important; }
}
