@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --ki-red: #D32F2F;
    --ki-gold: #FFC107;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
}

.Oswald {
    font-family: 'Oswald', sans-serif;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

/* Utilities to keep HTML free from inline styles */
.ki-logo-nav {
    height: 55px;
    width: auto;
}

.ki-logo-footer {
    height: 60px;
}

.main-crest-size {
    max-height: 280px;
}

.mw-500 { max-width: 500px; }
.mw-600 { max-width: 600px; }
.mw-640 { max-width: 640px; }
.mw-700 { max-width: 700px; }
.mw-760 { max-width: 760px; }
.mw-800 { max-width: 800px; }
.mw-820 { max-width: 820px; }
.mw-860 { max-width: 860px; }

.h-150 { height: 150px; }
.h-250 { height: 250px; }

.minh-220 { min-height: 220px; }
.minh-250 { min-height: 250px; }

.obj-cover { object-fit: cover; }
.obj-cover-minh-220 {
    object-fit: cover;
    min-height: 220px;
}

.maxh-100-shadow {
    max-height: 100px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
}

.maxh-150-shadow {
    max-height: 150px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
}

.maxh-200-shadow {
    max-height: 200px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
}

.maxh-180-auto {
    max-height: 180px;
    width: auto;
}

.maxh-200-auto {
    max-height: 200px;
    width: auto;
}

.maxh-360-auto {
    height: auto;
    max-height: 360px;
    width: auto;
}

.fs-11-lh-18 {
    font-size: 1.1rem;
    line-height: 1.8;
}

.fs-115-lh-18 {
    font-size: 1.15rem;
    line-height: 1.8;
}

.lh-14 { line-height: 1.4; }
.lh-18 { line-height: 1.8; }

.icon-fs-11 { font-size: 1.1rem; }

.radius-8 { border-radius: 8px; }

.icon-circle-50 {
    width: 50px;
    height: 50px;
}

.member-avatar-80 {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.sticky-top-100 { top: 100px; }

.next-event-orb {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--bs-warning) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(100px, -100px);
}

.next-event-media {
    height: 350px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(255, 193, 7, 0.15);
}

.next-event-overlay {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, transparent 50%);
}

.next-event-datebox { min-width: 120px; }

.founder-photo-right-red {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-right: 4px solid #DC3545;
}

.founder-photo-left-gold {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 30% 20%;
    border-left: 4px solid #FFC107;
}

.founder-photo-right-gray {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-right: 4px solid #6C757D;
}

/* Registration Google Form */
.google-form-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 0;
}

.google-form-container iframe {
    width: 100% !important;
    min-height: 1430px;
    border: none;
}

/* Crest page media */
.crest-media {
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--bs-tertiary-bg);
}

.crest-media img {
    width: 100%;
    height: 100%;
    display: block;
}

.crest-media-cover img {
    object-fit: cover;
}

.crest-media-contain img {
    object-fit: contain;
    padding: 0.75rem;
}

.crest-media-sm {
    min-height: 180px;
}

/* Glassmorphism Navbar */
.custom-navbar {
    background: var(--bs-body-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--ki-gold);
}

/* Hero Section */
.hero-section {
    min-height: 85vh;
    padding: 80px 0;
    /* Un gradiente radial sutil para centrar la atención en la cresta */
    background: radial-gradient(circle at center, rgba(211, 47, 47, 0.08) 0%, transparent 60%);
}

.main-crest {
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    transition: transform 0.4s ease;
}

.main-crest:hover {
    transform: translateY(-5px);
}

/* Home page - tratamiento natural */
.home-hero {
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 193, 7, 0.12), transparent 24%),
        radial-gradient(circle at 88% 18%, rgba(211, 47, 47, 0.12), transparent 22%),
        radial-gradient(circle at center, rgba(211, 47, 47, 0.08) 0%, transparent 60%);
}

[data-bs-theme="dark"] .home-hero {
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 193, 7, 0.16), transparent 24%),
        radial-gradient(circle at 88% 18%, rgba(211, 47, 47, 0.14), transparent 22%),
        radial-gradient(circle at center, rgba(211, 47, 47, 0.1) 0%, transparent 60%);
}

.home-hero-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(26px);
    opacity: 0.5;
    pointer-events: none;
}

.home-hero-glow-start {
    top: -90px;
    left: -80px;
    background: rgba(255, 193, 7, 0.16);
}

.home-hero-glow-end {
    bottom: -110px;
    right: -90px;
    background: rgba(211, 47, 47, 0.14);
}

.home-hero-pill {
    border: 1px solid rgba(255, 193, 7, 0.28);
    background: rgba(255, 193, 7, 0.08);
    backdrop-filter: blur(10px);
}

.home-story-section {
    position: relative;
}

.home-story-card {
    border-radius: 1.5rem;
    background:
        linear-gradient(145deg, rgba(255, 193, 7, 0.05), transparent 38%),
        var(--bs-body-tertiary);
}

.home-story-visual {
    position: relative;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 193, 7, 0.12), transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(211, 47, 47, 0.1), transparent 30%),
        rgba(0, 0, 0, 0.02);
}

.home-story-image {
    width: 100%;
    min-height: 100%;
    position: relative;
    isolation: isolate;
}

.home-story-image img {
    object-fit: cover;
}

.home-story-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
    transform: scale(1.04);
    transform-origin: center center;
    transition: transform 0.45s ease, object-position 0.45s ease;
}

.home-story-image:hover .home-story-photo {
    transform: scale(1.08);
    object-position: center 24%;
}

@media (max-width: 991.98px) {
    .home-story-visual {
        min-height: 320px;
    }

    .home-story-photo {
        object-position: center 24%;
        transform: scale(1.02);
    }
}

@media (max-width: 767.98px) {
    .home-hero {
        padding-top: 4.5rem !important;
        padding-bottom: 4.5rem !important;
    }

    .home-hero-glow {
        width: 220px;
        height: 220px;
    }

    .home-story-card {
        border-radius: 1.1rem;
    }

    .home-story-photo {
        object-position: center 20%;
    }
}

/* Event Cards - Hover Effects */
.event-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* Ajustes de Tema Claro/Oscuro nativos de Bootstrap */
[data-bs-theme="dark"] .custom-navbar {
    background: rgba(18, 18, 18, 0.85);
}
[data-bs-theme="light"] .custom-navbar {
    background: rgba(255, 255, 255, 0.9);
}

/* Contraste de texto en modo oscuro */
[data-bs-theme="dark"] .text-muted {
    color: #b8c4cc !important;
}
[data-bs-theme="dark"] .text-secondary {
    color: #9eaab5 !important;
}

/* Botón Adaptable para el Hero Section */
.btn-outline-adaptive {
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
    transition: all var(--transition-speed) ease;
}

.btn-outline-adaptive:hover {
    background-color: var(--text-primary);
    color: var(--bg-body);
}

/* Efecto de elevación para las tarjetas de miembros */
.hover-elevate {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-elevate:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

.merch-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
}

.merch-price {
    align-self: flex-start;
}

.merch-buy-wrap {
    display: flex;
    width: 100%;
    justify-content: center;
}

.paypal-buy-button {
    display: block;
    width: 100%;
    max-width: 260px;
    min-width: 0;
    margin: 0 auto !important;
}

.paypal-buy-button > * {
    width: 100%;
}

.paypal-buy-button .css-1b6cd97 {
    margin: 0 !important;
}

.paypal-cart-nav {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
}

.paypal-cart-nav paypal-cart-button {
    display: inline-flex;
}

.paypal-cart-nav-desktop {
    position: static;
}

.paypal-cart-nav-mobile {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border-adaptive);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

@media (max-width: 991.98px) {
    .paypal-cart-nav-mobile {
        right: 0.875rem;
        bottom: 0.875rem;
    }
}

/* Texto pequeño en tarjetas: 15px legible en lugar de 14px */
.card-body p.small,
.card-body div.small,
.card-body .small {
    font-size: 0.9375rem !important;
    line-height: 1.65;
}

/* Descripciones en event cards */
.card .col-md-6 p.small,
.card .col-md-6 p.text-muted.small {
    font-size: 0.9375rem !important;
    line-height: 1.6;
}

/* Timeline y tablas de datos */
.table tbody td,
.table tbody th {
    font-size: 0.9375rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

/* Heading de las secciones de la tabla (YEAR / LOCATION) */
.table thead th {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

/* Prosa general: espaciado cómodo */
main p,
.card-body p {
    line-height: 1.75;
}

/* Biografias de fundadores: lectura mas ordenada y comoda */
.founder-bio {
    line-height: 1.9;
    text-wrap: pretty;
    text-align: left;
}

.founder-bio br {
    content: "";
    display: block;
    margin-top: 0.7rem;
}

/* Escalado responsivo de display headings en móvil */
@media (max-width: 767.98px) {
    .display-3 { font-size: 2.6rem !important; }
    .display-4 { font-size: 2.1rem !important; }
    .display-5 { font-size: 1.8rem !important; }
}

/* Estilos para las fotos de los miembros */
.photo-container {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    overflow: hidden;
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto evita que la foto se estire o se deforme */
    object-position: center 16%; /* Eleva el recorte para priorizar el rostro */
    transform: scale(1.14);
    transform-origin: center top;
    border-radius: 50%;
    border: 3px solid; /* El color se inyecta desde JS según el grado */
    padding: 3px; /* Da un pequeño respiro entre la foto y el borde */
    background-color: var(--bg-body);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* IKC timeline with alternating branches */
.ikc-timeline-shell {
    background:
        radial-gradient(1100px 220px at 50% -8%, rgba(211, 47, 47, 0.12), transparent 68%),
        var(--bs-tertiary-bg);
    border: 1px solid color-mix(in srgb, var(--bs-secondary-color) 24%, transparent);
}

.ikc-timeline-track {
    position: relative;
    padding: 0.25rem 0;
}

.ikc-timeline-track::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, rgba(211, 47, 47, 0.25), rgba(211, 47, 47, 0.9), rgba(211, 47, 47, 0.25));
    border-radius: 999px;
}

.ikc-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(280px, 640px);
    justify-content: center;
    align-items: start;
    gap: 0.9rem;
    margin: 0.6rem 0;
}

.ikc-timeline-item .ikc-history-card {
    width: 100%;
    max-width: 640px;
    grid-column: 2;
}

.ikc-timeline-node {
    grid-column: 2;
    justify-self: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #d32f2f;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    box-shadow: 0 0 0 5px color-mix(in srgb, #d32f2f 24%, var(--bs-body-bg));
    z-index: 1;
}

.ikc-history-card {
    border: 1px solid color-mix(in srgb, var(--bs-secondary-color) 20%, transparent);
    border-radius: 0.9rem;
    background-color: var(--bs-tertiary-bg);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ikc-history-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.ikc-card-content {
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ikc-location-label {
    color: var(--bs-secondary-color);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ikc-location-text {
    color: var(--bs-body-color);
    font-weight: 700;
    line-height: 1.35;
}

@media (max-width: 991.98px) {
    .ikc-timeline-track::before {
        left: 24px;
        transform: none;
    }

    .ikc-timeline-item {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 0.85rem;
        margin: 0.55rem 0;
    }

    .ikc-timeline-node {
        grid-column: 1;
        width: 48px;
        height: 48px;
        font-size: 0.72rem;
    }

    .ikc-timeline-item .ikc-history-card {
        grid-column: 2;
        justify-self: stretch;
        max-width: 100%;
    }

    .ikc-card-content {
        min-height: 82px;
    }
}

[data-bs-theme="dark"] .ikc-history-card {
    border-color: rgba(255, 255, 255, 0.14);
}

[data-bs-theme="light"] .ikc-history-card {
    border-color: rgba(0, 0, 0, 0.08);
}

/* Sección Next Event - Estilos mejorados */
.bg-gradient-event {
    background: linear-gradient(135deg, var(--bs-body-bg) 0%, rgba(255, 193, 7, 0.05) 50%, var(--bs-body-bg) 100%);
    transition: all 0.4s ease;
}

[data-bs-theme="dark"] .bg-gradient-event {
    background: linear-gradient(135deg, #121212 0%, rgba(255, 193, 7, 0.08) 50%, #121212 100%);
}

[data-bs-theme="light"] .bg-gradient-event {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 193, 7, 0.08) 50%, #ffffff 100%);
}

.bg-gradient-event::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 193, 7, 0.2) 50%, transparent 100%);
}

/* Badge de evento */
.badge {
    font-size: 0.75rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
    transition: all 0.3s ease;
}

.badge:hover {
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
    transform: translateY(-2px);
}

/* Botones mejorados */
.btn-warning {
    background-color: var(--ki-gold);
    border-color: var(--ki-gold);
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: #ffb300;
    border-color: #ffb300;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

.btn-outline-warning {
    border-color: var(--ki-gold);
    color: var(--ki-gold);
    transition: all 0.3s ease;
}

.btn-outline-warning:hover {
    background-color: var(--ki-gold);
    border-color: var(--ki-gold);
    color: var(--bs-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.2);
}

/* Contenedor de imagen del evento */
.bg-gradient-event .position-relative img {
    transition: transform 0.4s ease, filter 0.4s ease;
}

.bg-gradient-event:hover .position-relative img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Espaciado y tipografía */
.bg-gradient-event .display-5 {
    letter-spacing: 2px;
}

.bg-gradient-event h5 {
    color: var(--bs-body-color);
    line-height: 1.4;
}

/* Iconos con color warning */
.bg-gradient-event .bi-calendar3,
.bg-gradient-event .bi-lightning-fill,
.bg-gradient-event .bi-arrow-up-right,
.bg-gradient-event .bi-calendar-event {
    color: var(--ki-gold);
}

/* Responsivo mejorado */
@media (max-width: 991.98px) {
    .bg-gradient-event .order-lg-2 {
        order: 0 !important;
        margin-bottom: 2rem;
    }
    
    .bg-gradient-event .order-lg-1 {
        order: 1 !important;
    }
    
    .bg-gradient-event .display-5 {
        font-size: 2rem;
    }
    
    .bg-gradient-event .position-relative {
        height: 280px !important;
    }
}

/* Events page - tratamiento más natural */
.events-hero {
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 193, 7, 0.12), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(211, 47, 47, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0));
}

[data-bs-theme="dark"] .events-hero {
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 193, 7, 0.14), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(211, 47, 47, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

/* Directory page */
.directory-filters-wrap {
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 193, 7, 0.08), transparent 32%),
        radial-gradient(circle at 90% 100%, rgba(211, 47, 47, 0.1), transparent 38%),
        var(--bs-tertiary-bg);
    border-color: color-mix(in srgb, var(--bs-secondary-color) 24%, transparent) !important;
}

.directory-control-group .input-group-text,
.directory-control-group .form-control,
.directory-control-group .form-select {
    border-width: 1px;
}

.directory-control-group .form-control,
.directory-control-group .form-select {
    min-height: 56px;
}

.directory-control-group .input-group-text {
    min-width: 52px;
    justify-content: center;
}

.directory-clear-btn {
    min-height: 56px;
    font-weight: 700;
}

.directory-results-bar {
    border-top: 1px solid color-mix(in srgb, var(--bs-secondary-color) 24%, transparent);
}

.directory-legend {
    border-top: 1px solid color-mix(in srgb, var(--bs-secondary-color) 24%, transparent);
    padding-top: 0.85rem;
}

.directory-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.chip-founder {
    background: rgba(211, 47, 47, 0.12);
    color: #d32f2f;
}

.chip-certified {
    background: rgba(255, 193, 7, 0.16);
    color: #b18400;
}

.chip-allied {
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.directory-category-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid transparent;
    padding-bottom: 0.45rem;
}

.directory-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0 0.6rem;
}

.directory-card {
    border-left: 4px solid transparent;
}

.directory-reveal {
    animation: directoryFadeInUp 0.36s ease both;
}

@keyframes directoryFadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cat-founder {
    color: #d32f2f;
    border-color: rgba(211, 47, 47, 0.45);
}

.cat-founder .directory-count-badge {
    background: rgba(211, 47, 47, 0.12);
    color: #d32f2f;
}

.directory-card.cat-founder {
    border-left-color: #d32f2f;
}

.cat-certified {
    color: #b18400;
    border-color: rgba(255, 193, 7, 0.5);
}

.cat-certified .directory-count-badge {
    background: rgba(255, 193, 7, 0.16);
    color: #9a7100;
}

.directory-card.cat-certified {
    border-left-color: #ffc107;
}

.cat-allied {
    color: #0d6efd;
    border-color: rgba(13, 110, 253, 0.45);
}

.cat-allied .directory-count-badge {
    background: rgba(13, 110, 253, 0.14);
    color: #0d6efd;
}

.directory-card.cat-allied {
    border-left-color: #0d6efd;
}

[data-bs-theme="dark"] .chip-founder { color: #ff7e7e; }
[data-bs-theme="dark"] .chip-certified { color: #ffd54f; }
[data-bs-theme="dark"] .chip-allied { color: #6ea8fe; }
[data-bs-theme="dark"] .cat-founder { color: #ff7e7e; }
[data-bs-theme="dark"] .cat-certified { color: #ffd54f; }
[data-bs-theme="dark"] .cat-allied { color: #6ea8fe; }

@media (prefers-reduced-motion: reduce) {
    .directory-reveal {
        animation: none !important;
    }
}

@media (max-width: 767.98px) {
    .directory-chip {
        font-size: 0.72rem;
    }

    .directory-control-group .form-control,
    .directory-control-group .form-select,
    .directory-clear-btn {
        min-height: 50px;
    }

    .directory-clear-btn {
        font-size: 0.9rem;
        padding-left: 0.6rem;
        padding-right: 0.6rem;
    }

    .directory-category-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
}

.events-hero-pill {
    border: 1px solid rgba(255, 193, 7, 0.28);
    background: rgba(255, 193, 7, 0.08);
    backdrop-filter: blur(10px);
}

.events-hero-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    filter: blur(25px);
    pointer-events: none;
    opacity: 0.55;
}

.events-hero-glow-start {
    top: -90px;
    left: -70px;
    background: rgba(255, 193, 7, 0.18);
}

.events-hero-glow-end {
    bottom: -120px;
    right: -100px;
    background: rgba(211, 47, 47, 0.14);
}

.events-main .event-card {
    border-radius: 1.15rem;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.events-main .event-card:hover {
    transform: translateY(-4px);
}

.events-main .event-card:nth-of-type(odd) {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
}

.events-main .event-card:nth-of-type(even) {
    box-shadow: 0 0.35rem 1.1rem rgba(0, 0, 0, 0.06);
}

.events-main .event-card-featured {
    position: relative;
}

.events-main .event-card-featured::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.15rem;
    border: 1px solid rgba(255, 193, 7, 0.18);
    pointer-events: none;
}

.events-main .event-card img {
    transition: transform 0.35s ease, filter 0.35s ease;
}

.events-main .event-card:hover img {
    transform: scale(1.03);
    filter: saturate(1.05);
}

.events-main .event-card .col-md-7 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.events-main .event-card .text-body,
.events-main .event-card .text-muted,
.events-main .event-card .text-secondary {
    text-wrap: pretty;
}

.events-main .event-card-last {
    margin-bottom: 0 !important;
}

@media (max-width: 767.98px) {
    .events-hero {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .events-hero-glow {
        width: 200px;
        height: 200px;
    }

    .events-main .event-card .col-md-7 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

/* Home - Carrusel de eventos pasados */
.past-events-section {
    background:
        radial-gradient(circle at 14% 14%, rgba(255, 193, 7, 0.08), transparent 28%),
        radial-gradient(circle at 86% 18%, rgba(211, 47, 47, 0.07), transparent 26%),
        var(--bs-body-secondary-bg);
}

.past-events-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent 26%, transparent 74%, rgba(255, 255, 255, 0.01));
    pointer-events: none;
}

.carousel-shell {
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 193, 7, 0.06), transparent 36%),
        var(--bs-body-tertiary);
}

.past-events-carousel {
    border-radius: 1.15rem;
}

.past-events-carousel .carousel-inner {
    border-radius: 1rem;
}

.past-events-carousel .carousel-item img {
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.past-events-carousel .carousel-item:hover img {
    transform: scale(1.02);
    filter: saturate(1.06) contrast(1.02);
}

.past-events-carousel .carousel-indicators {
    bottom: 1rem;
    margin-bottom: 0;
    gap: 0.45rem;
}

.past-events-carousel .carousel-indicators [data-bs-target] {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 999px;
    background-color: rgba(255, 193, 7, 0.35);
    border: 0;
    opacity: 1;
    transition: transform 0.25s ease, background-color 0.25s ease, width 0.25s ease;
}

.past-events-carousel .carousel-indicators .active {
    width: 2rem;
    background-color: var(--ki-gold);
}

.past-events-carousel .carousel-control-prev,
.past-events-carousel .carousel-control-next {
    width: 4rem;
    opacity: 0.9;
}

.past-events-carousel .carousel-control-prev-icon,
.past-events-carousel .carousel-control-next-icon {
    background-size: 1.35rem 1.35rem;
    background-color: rgba(0, 0, 0, 0.28);
    border-radius: 999px;
    padding: 1.35rem;
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.18);
}

[data-bs-theme="light"] .past-events-carousel .carousel-control-prev-icon,
[data-bs-theme="light"] .past-events-carousel .carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.42);
}

[data-bs-theme="dark"] .carousel-shell {
    background:
        linear-gradient(145deg, rgba(255, 193, 7, 0.08), transparent 36%),
        rgba(18, 18, 18, 0.92);
    border-color: rgba(255, 193, 7, 0.18) !important;
}

[data-bs-theme="dark"] .past-events-section {
    background:
        radial-gradient(circle at 14% 14%, rgba(255, 193, 7, 0.1), transparent 28%),
        radial-gradient(circle at 86% 18%, rgba(211, 47, 47, 0.08), transparent 26%),
        rgba(18, 18, 18, 0.94);
}

@media (max-width: 767.98px) {
    .carousel-shell {
        border-radius: 1rem;
        padding: 0.65rem !important;
    }

    .past-events-carousel .carousel-control-prev,
    .past-events-carousel .carousel-control-next {
        width: 3rem;
    }

    .past-events-carousel .carousel-control-prev-icon,
    .past-events-carousel .carousel-control-next-icon {
        padding: 1.05rem;
    }

    .past-events-carousel .carousel-indicators {
        bottom: 0.75rem;
    }
}