/* ============================================================
   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: var(--secondary);
    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:var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(26,58,107,0.35);
}

.btn-aasc-gold {
    background: var(--gold);
    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:  var(--gold-dark);
    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-light);
    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: var(--gold);
    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.5;
}
.brand-name {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    /* color: var(--white);*/
    letter-spacing: .01em;
}
#mainNav.scrolled .brand-name {
    color: var(--white);
}

#mainNav.scrolled .navbar-nav .nav-link {
    color: rgba(255,255,255,0.85) !important;
}

.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-link.nav-btn-inscribirse {
    margin-left: .5rem;
    padding: .5rem 1.4rem !important;
    background: var(--gold);
    color: var(--dark) !important;
    border-radius: 50px;
    font-weight: 700;
}
.nav-link.nav-btn-inscribirse::after {
    display: none !important;
}
.nav-link.nav-btn-inscribirse:hover {
    background:  var(--gold-dark) !important;
    color: var(--dark) !important;
    transform: translateY(-1px);
}

.navbar-toggler {
    border: 1.5px solid rgba(255,255,255,0.3);
    padding: .35rem .65rem;
}


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

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

/* Centrado vertical solo en slides visibles (active + en transición).
   No tocar los inactivos (Bootstrap los oculta con display:none). */
.carousel-item.active.hero-slide,
.carousel-item-next.hero-slide,
.carousel-item-prev.hero-slide {
    display: flex !important;
    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:  var(--primary);
    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: var(--gold);
    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:  var(--primary);
    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(--secondary);
    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%);
    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-dark));
    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;
}

/* ── Event cards ───────────────────────────────────────────── */
.event-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    height: 100%;
}
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.event-date-col {
    flex-shrink: 0;
    width: 76px;
    background: linear-gradient(160deg, var(--primary), var(--primary-dark));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem .4rem;
    text-align: center;
}
.event-day {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.event-mon {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin-top: .25rem;
}
.event-body {
    padding: 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.event-featured-badge {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: .25rem;
}
.event-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: .45rem;
    transition: var(--transition);
}
.event-title a {
    color: inherit;
    text-decoration: none;
}
.event-card:hover .event-title {
    color: var(--primary);
}
.event-meta {
    font-size: .78rem;
    color: var(--gray);
    margin-bottom: .3rem;
}
.event-excerpt {
    font-size: .84rem;
    color: var(--gray);
    line-height: 1.55;
    flex: 1;
}
.event-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .82rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: .8rem;
    transition: var(--transition);
}
.event-link:hover {
    color: var(--gold);
}
.event-link i {
    transition: transform .22s;
}
.event-link:hover i {
    transform: translateX(3px);
}

/* ── Section header ────────────────────────────────────────── */
.section-header {
    margin-bottom: 2.8rem;
}
.section-header.text-center .divider {
    margin: 1rem auto 0;
}

/* ── Intro image ───────────────────────────────────────────── */
.intro-img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 380px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}
.intro-subtitle {
    font-size: 1.02rem;
    color: var(--gray);
    line-height: 1.75;
    margin-bottom: 1rem;
}
.intro-content {
    font-size: .93rem;
    color: var(--text);
    line-height: 1.8;
}

/* ── Welcome cards (intro fallback) ───────────────────────── */
.welcome-card-title {
    font-size: 1.05rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: .5rem;
}
.welcome-card-text {
    font-size: .87rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.65;
}

/* ── News section (light bg variant) ──────────────────────── */
.news-section-light {
    background: var(--light);
}
.news-card-title a {
    color: inherit;
    text-decoration: none;
}
.news-card-img-placeholder {
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-card-img-placeholder i {
    font-size: 3rem;
    color: rgba(255,255,255,0.25);
}

/* ── CTA section (join) ────────────────────────────────────── */
.cta-container {
    position: relative;
    z-index: 1;
}
.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: .8rem;
}
.cta-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 0;
}
.cta-content {
    font-size: .9rem;
    color: rgba(255,255,255,0.6);
    margin-top: .8rem;
    line-height: 1.75;
}
.cta-note {
    font-size: .76rem;
    color: rgba(255,255,255,0.4);
    margin-top: .75rem;
    margin-bottom: 0;
}

/* ── Professional network section ──────────────────────────── */
.network-section {
    background: var(--light);
}
.network-subtitle {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}
.network-content {
    font-size: .92rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.network-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.6rem;
}
.network-feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}
.network-feature-text h4 {
    font-size: .92rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: .2rem;
}
.network-feature-text p {
    font-size: .84rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.5;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.72);
    padding: 4rem 0 0;
}
.footer-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: .35rem;
}
.footer-tagline {
    font-size: .8rem;
    color: var(--gold);
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 600;
}
.footer-desc {
    font-size: .87rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.55);
    margin-top: 1rem;
    max-width: 340px;
}
.footer-heading {
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.1rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: .45rem;
}
.footer-links a {
    font-size: .87rem;
    color: rgba(255,255,255,0.55);
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--gold);
    padding-left: 4px;
}
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin-bottom: .7rem;
    font-size: .87rem;
    color: rgba(255,255,255,0.55);
}
.footer-contact-item i {
    flex-shrink: 0;
    color: var(--gold);
    margin-top: .15rem;
    font-size: .92rem;
}
.footer-contact-item a {
    color: rgba(255,255,255,0.55);
}
.footer-contact-item a:hover {
    color: var(--gold);
}
.footer-extra-text {
    font-size: .82rem;
    color: rgba(255,255,255,0.45);
    margin-top: 1rem;
    line-height: 1.65;
}
.footer-social {
    display: flex;
    gap: .7rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}
.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.55);
    font-size: 1rem;
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-2px);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.3rem 0;
    margin-top: 3rem;
}
.footer-bottom-text {
    font-size: .78rem;
    color: rgba(255,255,255,0.38);
}
.footer-heart {
    color: var(--secondary);
    font-size: .7rem;
    vertical-align: middle;
}

/* ── Back to top ───────────────────────────────────────────── */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 18px rgba(0,0,0,0.22);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 999;
    transition: all .3s;
}
#backToTop:hover {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-2px);
}

/* ── News listing page ─────────────────────────────────────── */
.news-filter-label {
    font-size: .85rem;
    font-weight: 700;
    color: var(--dark);
}
.news-filter-btn {
    border-radius: 50px;
    padding: .35rem 1rem;
    font-size: .8rem;
}
.news-grid-title a {
    color: inherit;
    text-decoration: none;
}
.news-grid-card:hover .news-grid-title a {
    color: var(--primary);
}
.news-grid-img-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-grid-img-placeholder i {
    font-size: 3rem;
    color: rgba(255,255,255,0.25);
}
.ribbon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--dark);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .3rem .85rem;
    border-radius: 50px;
}

/* ── News pagination ───────────────────────────────────────── */
.news-pagination .page-link {
    border-radius: 8px;
    border-color: var(--border);
    color: var(--primary);
    margin: 0 .1rem;
}
.news-pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}
.news-pagination .page-item.disabled .page-link {
    color: var(--text-muted);
}

/* ── Sidebar: search ───────────────────────────────────────── */
.sidebar-search-btn {
    border-radius: 0 var(--radius) var(--radius) 0;
}
.sidebar-cat-active {
    color: var(--primary) !important;
    font-weight: 700;
}

/* ── Sidebar: featured post ────────────────────────────────── */
.sidebar-cat-tag {
    font-size: .65rem;
}
.sidebar-featured-title {
    font-family: 'Playfair Display', serif;
    font-size: .95rem;
    margin-top: .6rem;
    margin-bottom: .4rem;
}
.sidebar-featured-title a {
    color: var(--dark);
    text-decoration: none;
}
.sidebar-featured-title a:hover {
    color: var(--primary);
}
.sidebar-featured-excerpt {
    font-size: .82rem;
    color: var(--gray);
    margin-bottom: .8rem;
}

/* ── Sidebar: newsletter ───────────────────────────────────── */
.sidebar-newsletter {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
}
.sidebar-newsletter-title {
    color: var(--gold) !important;
    border-color: rgba(255,255,255,0.15) !important;
}
.sidebar-newsletter-text {
    color: rgba(255,255,255,.75);
    font-size: .88rem;
    margin-bottom: 1.2rem;
}
.sidebar-newsletter-input {
    border-radius: var(--radius);
    border: none;
    font-size: .88rem;
}
.sidebar-newsletter-note {
    color: rgba(255,255,255,.45);
    font-size: .72rem;
    margin-top: .8rem;
    margin-bottom: 0;
}

/* ── Sidebar: upcoming events ──────────────────────────────── */
.sidebar-event-date {
    min-width: 48px;
    height: 48px;
    background: var(--light);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.sidebar-event-date-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.sidebar-event-day {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    font-family: 'Playfair Display', serif;
}
.sidebar-event-mon {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .75;
}
.sidebar-event-title {
    font-weight: 700;
    font-size: .88rem;
    color: var(--dark);
}
.sidebar-event-title a {
    color: var(--dark);
    text-decoration: none;
}
.sidebar-event-title a:hover {
    color: var(--primary);
}
.sidebar-event-location {
    font-size: .78rem;
    color: var(--gray);
    margin-top: .15rem;
}
.sidebar-event-location i {
    color: var(--gold);
    margin-right: .25rem;
}

.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);
}

/* ── Eventos — listado público ─────────────────────────────── */

/* Tarjeta grande con imagen (próximos eventos) */
.ev-list-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.ev-list-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.ev-list-img-wrap {
    position: relative;
    overflow: hidden;
    height: 210px;
    background: var(--primary);
}
.ev-list-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s;
}
.ev-list-card:hover .ev-list-img {
    transform: scale(1.06);
}
.ev-list-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: rgba(255,255,255,.2);
    font-size: 3.5rem;
}

/* Badge de fecha flotante sobre la imagen */
.ev-date-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(160deg, var(--primary-dark), var(--primary));
    border: 2px solid rgba(255,255,255,.18);
    border-radius: var(--radius);
    padding: .5rem .8rem;
    text-align: center;
    min-width: 54px;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.ev-date-badge-day {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    display: block;
}
.ev-date-badge-mon {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
    display: block;
    margin-top: .15rem;
}

/* Badge de estado (Próximo / Hoy / En curso / Pasado) */
.ev-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .3rem .75rem;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.ev-status-badge.upcoming {
    background: #edf8ed;
    color: #1a7a3a;
}
.ev-status-badge.today    {
    background: #fdf5e8;
    color: #a3761a;
}
.ev-status-badge.ongoing  {
    background: #e8f4fd;
    color: #1a6fa3;
}
.ev-status-badge.past     {
    background: rgba(255,255,255,.85);
    color: var(--text-muted);
}

/* Cuerpo de la tarjeta de listado */
.ev-list-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ev-list-featured-badge {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: .3rem;
}
.ev-list-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: .65rem;
    transition: var(--transition);
}
.ev-list-title a {
    color: inherit;
    text-decoration: none;
}
.ev-list-card:hover .ev-list-title {
    color: var(--primary);
}
.ev-list-meta {
    font-size: .78rem;
    color: var(--gray);
    margin-bottom: .3rem;
    display: flex;
    align-items: flex-start;
    gap: .45rem;
}
.ev-list-meta i {
    color: var(--gold);
    flex-shrink: 0;
    margin-top: .05rem;
}
.ev-list-excerpt {
    font-size: .84rem;
    color: var(--gray);
    line-height: 1.55;
    flex: 1;
    margin-top: .5rem;
}

/* Separador de sección pasada */
.ev-section-past-title {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--border);
}

/* Tarjeta compacta para eventos pasados */
.ev-past-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    overflow: hidden;
}
.ev-past-card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.ev-past-date {
    flex-shrink: 0;
    width: 64px;
    background: var(--light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: .7rem .4rem;
    text-align: center;
}
.ev-past-day {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1;
}
.ev-past-mon {
    font-size: .57rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: .2rem;
    opacity: .75;
}
.ev-past-body {
    padding: .85rem 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}
.ev-past-title {
    font-family: 'Playfair Display', serif;
    font-size: .88rem;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1.3;
    margin-bottom: .25rem;
}
.ev-past-title a {
    color: inherit;
    text-decoration: none;
}
.ev-past-card:hover .ev-past-title {
    color: var(--primary);
}
.ev-past-meta {
    font-size: .73rem;
    color: var(--text-muted);
}

/* ── Eventos — detalle ─────────────────────────────────────── */

/* Caja de info rápida del evento */
.ev-info-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.ev-info-box-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .9rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--border);
    display: block;
}
.ev-info-row {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: .55rem 0;
    border-bottom: 1px solid var(--light);
}
.ev-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.ev-info-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    font-size: .9rem;
}
.ev-info-text-label {
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: .1rem;
}
.ev-info-text-value {
    font-size: .92rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
}

/* Botón de inscripción / enlace externo */
.ev-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .95rem 1.5rem;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--white) !important;
    font-weight: 700;
    font-size: .92rem;
    border-radius: var(--radius);
    transition: var(--transition);
    margin-top: 1.2rem;
    letter-spacing: .04em;
    text-decoration: none;
}
.ev-cta-btn:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 1rem 1.5rem;
        border-top: 1px solid rgba(0,0,0,0.3);
    }
    .navbar-nav .nav-link {
        padding: .7rem 0 !important;
    }
    .navbar-nav .nav-link::after {
        display: none;
    }
    .nav-btn-inscribirse {
        margin: .5rem 0 !important;
        text-align: center;
    }

    .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;
    }
}
