:root {
    --header-height: 80px;
    --primary-color: #01204f;
    --primary-dark: #00163a;
    --primary-light: #1e3a73;
    --secondary-color: #fed313;
    --secondary-dark: #d8b200;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f4f6f9;
    --bg-white: #ffffff;
    --bg-gray: #ebebeb;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #01204f 0%, #00163a 100%);
} 
    
/* ===========================
   EVENTS CAROUSEL
=========================== */
.events-carousel {
    position: relative;
    min-height: 500px;
}

.events-carousel .slide {
    position: relative;
}

.events-carousel .carousel-prev,
.events-carousel .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

.events-carousel .carousel-prev {
    left: 12px;
}

.events-carousel .carousel-next {
    right: 12px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 10px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot:hover {
    background: var(--primary-color);
}

.carousel-dot.active {
    background: var(--primary-color);
    width: 25px;
    border-radius: 5px;
}

.event-details {
    margin: 15px 0;
    padding: 10px;
    background: rgba(1, 32, 79, 0.1);
    border-radius: 8px;
}

.event-details p {
    margin: 5px 0;
}

.card-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: auto;
    min-width: 180px;
    max-width: 250px;
    margin: 10px auto 0 auto;
    display: block;
    text-align: center;
}

.card-btn:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
}

/* ===========================
   TESTIMONIALS CAROUSEL
=========================== */
.reviews-carousel {
    position: relative;
    width: 100%;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.reviews-container {
    position: relative;
    width: 100%;
    flex: 1;
}

.review-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    animation: fadeIn 0.5s ease-in-out;
}

.review-slide.active {
    display: block;
    opacity: 1;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 10px 0;
}

.carousel-prev,
.carousel-next {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.carousel-dots-reviews {
    display: flex;
    gap: 10px;
    align-items: center;
}

.carousel-dots-reviews .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots-reviews .dot:hover {
    background: var(--primary-light);
}

.carousel-dots-reviews .dot.active {
    background: var(--primary-color);
    width: 25px;
    border-radius: 5px;
}

/* Responsive Carousels */
@media (max-width: 768px) {
    .events-carousel {
        min-height: 400px;
    }
    
    .reviews-carousel {
        min-height: 380px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .card-btn {
        width: 100%;
        max-width: 100%;
        margin: 10px 0 0 0;
    }
    
    .event-details p {
        font-size: 12px;
        white-space: normal;
    }
}














/* 🔲 MATRIX GRID */
.gallery-matrix {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* max 4 columns */
    gap: 16px;
}

/* 📦 ITEM */
.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3; /* keeps all images same shape */
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

/* 🖼 IMAGE */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* 🔥 OUTLINED TEXT */
.gallery-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    font-weight: 700;
    font-size: 16px;

    -webkit-text-stroke: 0 transparent;
    text-shadow:
        0 0 14px rgba(0, 0, 0, 0.75),
        0 1px 3px rgba(0, 0, 0, 0.85),
        0 2px 8px rgba(0, 0, 0, 0.55);
}

/* 🪟 MODAL */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    inset: 0;
    background: rgba(0,0,0,0.9);

    justify-content: center;
    align-items: center;
    padding: 20px;
}

.gallery-modal img {
    width: auto;
    max-width: min(1200px, 92vw);
    min-width: min(420px, 80vw);
    max-height: calc(100vh - var(--header-height) - 40px);
    object-fit: contain;
    border-radius: 10px;
}

/* ❌ CLOSE BUTTON */
.gallery-modal .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* ITEM */
.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

/* IMAGE */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* 🔥 OVERLAY (hidden by default) */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0); /* transparent initially */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
}

/* 🧠 TEXT (legible sobre foto, halo suave) */
.gallery-text {
    color: white;
    font-size: 20px;
    font-weight: 700;
    text-align: center;

    -webkit-text-stroke: 0 transparent;
    text-shadow:
        0 0 22px rgba(0, 0, 0, 0.72),
        0 0 10px rgba(0, 0, 0, 0.55),
        0 2px 4px rgba(0, 0, 0, 0.85),
        0 1px 2px rgba(0, 0, 0, 0.9);

    transform: translateY(10px);
    transition: transform 0.3s ease;
}

/* ✨ HOVER EFFECT */
.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    background: rgba(0, 0, 0, 0.5); /* grey/black filter */
    opacity: 1;
}

.gallery-item:hover .gallery-text {
    transform: translateY(0);
}


/* 4 columns → desktop */
.gallery-matrix {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* 3 columns */
@media (max-width: 1024px) {
    .gallery-matrix {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 2 columns */
@media (max-width: 768px) {
    .gallery-matrix {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 1 column */
@media (max-width: 480px) {
    .gallery-matrix {
        grid-template-columns: 1fr;
    }

    .gallery-modal img {
        min-width: 0;
        max-width: 94vw;
        max-height: calc(100vh - 20px);
    }
}