/* ============================================================
   AASC - Asociación de Antiguos Alumnos del Colegio Santa Clara
   styles.css - Identidad visual completa
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --primary:      #1a3a6b;
  --primary-dark: #122952;
  --primary-light:#254d90;
  --gold:         #c9a84c;
  --gold-light:   #e0c47a;
  --gold-dark:    #a8863a;
  --white:        #ffffff;
  --light:        #f4f6fb;
  --light-gray:   #e8ecf3;
  --gray:         #6c757d;
  --dark:         #12213a;
  --text:         #2c3a4a;
  --text-muted:   #7a8799;
  --border:       #dee4f0;
  --shadow-sm:    0 2px 12px rgba(26,58,107,0.08);
  --shadow-md:    0 6px 30px rgba(26,58,107,0.13);
  --shadow-lg:    0 12px 50px rgba(26,58,107,0.18);
  --radius:       10px;
  --radius-lg:    18px;
  --transition:   all 0.32s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset / Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }

/* ── Utility classes ───────────────────────────────────────── */
.text-primary   { color: var(--primary)  !important; }
.text-gold      { color: var(--gold)     !important; }
.bg-primary-aasc{ background: var(--primary) !important; }
.bg-light-aasc  { background: var(--light)   !important; }

.section-pad    { padding: 90px 0; }
.section-pad-sm { padding: 60px 0; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-title span { color: var(--primary); }
.section-title.light { color: var(--white); }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 620px;
  margin: 0 auto;
}

.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 1rem 0 2rem;
}
.divider.center { margin: 1rem auto 2rem; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn-aasc-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border: none;
  padding: .75rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  box-shadow: 0 4px 18px rgba(26,58,107,0.28);
  transition: var(--transition);
}
.btn-aasc-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,58,107,0.35);
}

.btn-aasc-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--dark);
  border: none;
  padding: .75rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  box-shadow: 0 4px 18px rgba(201,168,76,0.32);
  transition: var(--transition);
}
.btn-aasc-gold:hover {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,168,76,0.42);
}

.btn-aasc-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
  padding: .7rem 1.9rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  transition: var(--transition);
}
.btn-aasc-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}

.btn-aasc-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: .65rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .9rem;
  transition: var(--transition);
}
.btn-aasc-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

/* ── Navbar ────────────────────────────────────────────────── */
#mainNav {
  background: var(--primary);
  padding: 0;
  box-shadow: 0 2px 20px rgba(18,33,58,0.25);
  transition: var(--transition);
}

#mainNav.scrolled {
  background: rgba(26,58,107,0.97);
  backdrop-filter: blur(10px);
}

.navbar-brand-aasc {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem 0;
}

.brand-logo-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(201,168,76,0.35);
}

.brand-text { line-height: 1.1; }
.brand-name {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .01em;
}
.brand-sub {
  display: block;
  font-size: .65rem;
  color: var(--gold-light);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .04em;
  padding: 1.5rem .9rem !important;
  position: relative;
  transition: var(--transition);
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: .9rem;
  right: .9rem;
  height: 3px;
  background: var(--gold);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--white) !important;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.nav-btn-inscribirse {
  margin-left: .5rem;
  padding: .5rem 1.4rem !important;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--dark) !important;
  border-radius: 50px;
  font-weight: 700;
}
.nav-btn-inscribirse::after { display: none !important; }
.nav-btn-inscribirse:hover {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold)) !important;
  color: var(--dark) !important;
  transform: translateY(-1px);
}

.navbar-toggler {
  border: 1.5px solid rgba(255,255,255,0.3);
  padding: .35rem .65rem;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Hero / Slider ─────────────────────────────────────────── */
#heroSlider {
  position: relative;
}

.hero-slide {
  position: relative;
  height: 100vh;
  min-height: 580px;
  max-height: 780px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.carousel-item.active .hero-slide-img { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(18,33,58,0.82) 0%,
    rgba(26,58,107,0.65) 50%,
    rgba(18,33,58,0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1rem;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all .6s ease .2s;
}
.hero-label::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--gold);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: all .6s ease .35s;
}
.hero-title span { color: var(--gold); }

.hero-subtitle {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: 2rem;
  max-width: 560px;
  opacity: 0;
  transform: translateY(20px);
  transition: all .6s ease .5s;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: all .6s ease .65s;
}

.carousel-item.active .hero-label,
.carousel-item.active .hero-title,
.carousel-item.active .hero-subtitle,
.carousel-item.active .hero-actions {
  opacity: 1;
  transform: translateY(0);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,0.6);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  animation: scrollBounce 2s infinite;
}
.hero-scroll-indicator i { font-size: 1.2rem; }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  margin: 0 5px;
  transition: var(--transition);
}
.carousel-indicators .active {
  background: var(--gold);
  transform: scale(1.3);
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0;
  transition: var(--transition);
}
#heroSlider:hover .carousel-control-prev,
#heroSlider:hover .carousel-control-next { opacity: 1; }

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(26,58,107,0.5);
  border-radius: 50%;
  padding: 1.5rem;
  background-size: 40%;
}

/* ── Welcome section ───────────────────────────────────────── */
.welcome-section { background: var(--white); }

.welcome-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--gold);
  transition: var(--transition);
}
.welcome-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.welcome-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

/* ── About section ─────────────────────────────────────────── */
.about-section { background: var(--light); }

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.about-img-main {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--dark);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  min-width: 130px;
}
.about-badge-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}
.about-badge-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .75;
}

/* ── Stats section ─────────────────────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stat-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  position: relative;
}
.stat-card::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(255,255,255,0.15);
}
.stat-card:last-child::after { display: none; }

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: block;
}
.stat-plus { color: var(--gold-light); }
.stat-label {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: .5rem;
  display: block;
}
.stat-icon {
  font-size: 1.8rem;
  color: rgba(255,255,255,0.2);
  margin-bottom: .8rem;
}

/* ── News section ──────────────────────────────────────────── */
.news-section { background: var(--white); }

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.news-card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 210px;
}
.news-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.news-card:hover .news-card-img-wrap img { transform: scale(1.07); }

.news-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary);
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 50px;
}

.news-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-date {
  font-size: .78rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: .4rem;
}
.news-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .6rem;
  line-height: 1.3;
  transition: var(--transition);
}
.news-card:hover .news-card-title { color: var(--primary); }
.news-excerpt {
  font-size: .88rem;
  color: var(--gray);
  flex: 1;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}
.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary);
  transition: var(--transition);
}
.news-read-more i { transition: transform .25s; }
.news-read-more:hover { color: var(--gold); }
.news-read-more:hover i { transform: translateX(4px); }

/* ── Reunion banner ────────────────────────────────────────── */
.reunion-banner {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}
.reunion-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: rgba(201,168,76,0.08);
  pointer-events: none;
}
.reunion-banner::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.reunion-date-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--gold);
  border-radius: 12px;
  padding: .8rem 1.5rem;
  margin-bottom: 1.5rem;
}
.reunion-date-day {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}
.reunion-date-month {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dark);
}

.reunion-countdown {
  display: flex;
  gap: 1.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}
.countdown-item {
  text-align: center;
  min-width: 65px;
}
.countdown-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
}
.countdown-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-top: .2rem;
}

/* ── Testimonials ──────────────────────────────────────────── */
.testimonials-section { background: var(--light); }

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  height: 100%;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.testimonial-quote-icon {
  font-size: 3.5rem;
  color: var(--light-gray);
  line-height: 1;
  font-family: Georgia, serif;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}
.testimonial-text {
  font-size: .95rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.testimonial-stars {
  color: var(--gold);
  font-size: .85rem;
  margin-bottom: 1rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
}
.testimonial-name {
  font-weight: 700;
  font-size: .92rem;
  color: var(--dark);
  margin-bottom: .1rem;
}
.testimonial-promo {
  font-size: .78rem;
  color: var(--gold);
  font-weight: 600;
}

/* ── CTA section ───────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::after {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 60px solid rgba(255,255,255,0.04);
  pointer-events: none;
}

/* ── Page Header ───────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 70%, var(--primary-light) 100%);
  padding: 5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-header-content { position: relative; z-index: 1; }
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: .6rem;
}
.page-breadcrumb { margin: 0; }
.page-breadcrumb .breadcrumb-item {
  font-size: .85rem;
  color: rgba(255,255,255,0.6);
}
.page-breadcrumb .breadcrumb-item.active { color: var(--gold); }
.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.3); }
.page-breadcrumb a { color: rgba(255,255,255,0.7); }
.page-breadcrumb a:hover { color: var(--gold); }

/* ── News grid (noticias.html) ─────────────────────────────── */
.news-grid-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.news-grid-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.news-grid-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
  transition: transform .5s;
}
.news-grid-card:hover .news-grid-img { transform: scale(1.05); }
.news-grid-img-wrap { overflow: hidden; position: relative; }

.news-grid-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: .8rem;
  flex-wrap: wrap;
}
.news-cat-tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .25rem .8rem;
  border-radius: 50px;
  background: var(--light);
  color: var(--primary);
}
.news-cat-tag.comunidad { background: #e8f4fd; color: #1a6fa3; }
.news-cat-tag.becas     { background: #fdf5e8; color: #a3761a; }
.news-cat-tag.eventos   { background: #edf8ed; color: #1a7a3a; }
.news-cat-tag.entrevistas{ background: #f5e8fd; color: #7a1aa3; }
.news-cat-tag.cultura   { background: #fde8e8; color: #a31a1a; }
.news-cat-tag.institucional{ background: #e8edfb; color: #1a3aa3; }

.news-grid-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .6rem;
  line-height: 1.3;
  transition: var(--transition);
}
.news-grid-card:hover .news-grid-title { color: var(--primary); }

/* ── Sidebar ───────────────────────────────────────────────── */
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 1.8rem;
}
.sidebar-widget-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 1.2rem;
  padding-bottom: .8rem;
  border-bottom: 2px solid var(--light-gray);
  position: relative;
}
.sidebar-widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: .9rem;
  transition: var(--transition);
}
.cat-list li:last-child { border-bottom: none; }
.cat-list li a { color: var(--text); font-weight: 600; }
.cat-list li a:hover { color: var(--primary); padding-left: 4px; }
.cat-count {
  background: var(--light);
  color: var(--gray);
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 50px;
}

.sidebar-featured-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

/* ── Single article (noticia.html) ─────────────────────────── */
.article-featured-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.article-header { margin-bottom: 2rem; }
.article-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  color: var(--dark);
  line-height: 1.2;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 1.5rem 0;
}
.article-meta-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  color: var(--gray);
}
.article-meta-item i { color: var(--gold); }

.article-body {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text);
}
.article-body p { margin-bottom: 1.4rem; }
.article-body h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin: 2rem 0 1rem;
}

.article-blockquote {
  background: var(--light);
  border-left: 5px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.8rem 2rem;
  margin: 2.5rem 0;
  position: relative;
}
.article-blockquote::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 5rem;
  color: var(--gold);
  opacity: .3;
  position: absolute;
  top: -1rem;
  left: 1rem;
  line-height: 1;
}
.article-blockquote p {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--primary);
  font-style: italic;
  margin: 0;
  line-height: 1.6;
}
.article-blockquote cite {
  display: block;
  margin-top: .8rem;
  font-size: .82rem;
  color: var(--gray);
  font-style: normal;
  font-weight: 600;
}

.share-bar {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 2.5rem 0;
}
.share-label {
  font-weight: 700;
  font-size: .85rem;
  color: var(--dark);
}
.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: var(--white);
  transition: var(--transition);
  border: none;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #1da1f2; }
.share-btn.li { background: #0a66c2; }
.share-btn.wa { background: #25d366; }

/* ── Inscripcion ───────────────────────────────────────────── */
.benefits-list { list-style: none; padding: 0; margin: 0; }
.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: .92rem;
}
.benefits-list li:last-child { border-bottom: none; }
.benefits-list li i {
  color: var(--gold);
  font-size: 1.1rem;
  margin-top: .15rem;
  flex-shrink: 0;
}

.form-aasc .form-label {
  font-weight: 700;
  font-size: .85rem;
  color: var(--dark);
  margin-bottom: .4rem;
}
.form-aasc .form-control,
.form-aasc .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .7rem 1rem;
  font-size: .92rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
}
.form-aasc .form-control:focus,
.form-aasc .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,107,0.12);
  outline: none;
}
.form-aasc textarea { resize: vertical; min-height: 110px; }
.form-aasc .form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

/* ── Contact ───────────────────────────────────────────────── */
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  height: 100%;
}
.contact-icon-wrap {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.contact-info-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .25rem;
}
.contact-info-value {
  font-size: .95rem;
  color: var(--text);
  font-weight: 600;
}

.map-placeholder {
  background: linear-gradient(135deg, var(--light), var(--light-gray));
  border-radius: var(--radius-lg);
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border);
  color: var(--gray);
  gap: 1rem;
}
.map-placeholder i { font-size: 3rem; color: var(--primary-light); opacity: .5; }
.map-placeholder p { margin: 0; font-size: .9rem; font-weight: 600; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: .8rem;
  overflow: hidden;
}
.faq-question {
  padding: 1.1rem 1.5rem;
  font-weight: 700;
  font-size: .92rem;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  user-select: none;
}
.faq-question:hover { color: var(--primary); background: var(--light); }
.faq-question i { font-size: .8rem; color: var(--gold); transition: transform .25s; }
.faq-item.open .faq-question { color: var(--primary); background: var(--light); }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  font-size: .9rem;
  color: var(--gray);
  line-height: 1.7;
  transition: max-height .35s ease, padding .25s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 1rem 1.5rem 1.3rem;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding-top: 70px;
}

.footer-brand-badge {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.footer-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: .25rem;
}
.footer-subtitle {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.footer-desc {
  font-size: .88rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: .6rem;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  font-size: .9rem;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
}

.footer-heading {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.3rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a {
  font-size: .88rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: var(--transition);
}
.footer-links a::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .5;
  flex-shrink: 0;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}
.footer-links a:hover::before { opacity: 1; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  margin-bottom: .9rem;
  font-size: .88rem;
  color: rgba(255,255,255,0.55);
}
.footer-contact-item i {
  color: var(--gold);
  margin-top: .2rem;
  flex-shrink: 0;
  width: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.4rem 0;
  margin-top: 3rem;
}
.footer-bottom-text {
  font-size: .8rem;
  color: rgba(255,255,255,0.35);
}
.footer-legal a {
  font-size: .78rem;
  color: rgba(255,255,255,0.35);
  margin: 0 .5rem;
  transition: var(--transition);
}
.footer-legal a:hover { color: var(--gold); }

/* ── Animations ────────────────────────────────────────────── */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }

/* ── Counter animation ─────────────────────────────────────── */
.counter { display: inline-block; }

/* ── Ribbon / badge ────────────────────────────────────────── */
.ribbon {
  position: absolute;
  top: 16px;
  right: -4px;
  background: var(--gold);
  color: var(--dark);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 3px 0 0 3px;
}
.ribbon::after {
  content: '';
  position: absolute;
  right: 0; bottom: -6px;
  border-width: 3px 4px 3px 0;
  border-style: solid;
  border-color: transparent var(--gold-dark) transparent transparent;
}

/* ── Back to top ───────────────────────────────────────────── */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
#backToTop.visible {
  opacity: 1;
  transform: translateY(0);
}
#backToTop:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-3px);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--primary-dark);
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .navbar-nav .nav-link { padding: .7rem 0 !important; }
  .navbar-nav .nav-link::after { display: none; }
  .nav-btn-inscribirse { margin: .5rem 0 !important; display: inline-block; }

  .hero-slide { min-height: 520px; max-height: 620px; }

  .stat-card::after { display: none; }

  .about-badge { right: 0; bottom: -15px; }
}

@media (max-width: 767.98px) {
  .section-pad { padding: 60px 0; }
  .hero-slide { min-height: 460px; max-height: 560px; }
  .hero-title { font-size: 1.7rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .about-img-main { height: 260px; }
  .about-badge { position: static; margin-top: 1rem; display: inline-flex; }
  .reunion-countdown { gap: 1rem; }
  .countdown-num { font-size: 1.8rem; }
  .form-card { padding: 1.5rem; }
  .footer { padding-top: 50px; }
}
