:root {
    --primary-color: #234E70;
    --secondary-color: #FBF8BE;
    --accent-color: #24A19C;
    --text-color: #333333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.navbar {
    background-color: var(--primary-color) !important;
}

.navbar-light .navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

.gallery-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.gallery-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.gallery-card {
        height: 100%;  /* Make all cards the same height */
    }

    .gallery-card img {
        height: 220px;  /* Slightly reduced height */
        width: 100%;
        object-fit: contain;  /* Changed from cover to contain */
        background-color: #f8f9fa;  /* Light background for images */
        padding: 10px;  /* Add some padding around images */
    }

.gallery-card .card-body {
    padding: 1.5rem;
}

.gallery-card .card-title {
    color: var(--primary-color);
    font-weight: 600;
}

.btn-gallery {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-gallery:hover {
    background-color: #1f8a86;
    color: white;
    transform: translateY(-2px);
}

.image-count {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Footer Styles */
.footer {
    background: linear-gradient(to right, var(--primary-color), #1a3a53);
    color: white;
    padding: 4rem 0 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h5 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.social-links a {
    color: white;
    margin-right: 1rem;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* Estilos para el modal de la galería */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
}

.gallery-modal-content {
    position: relative;
    height: calc(100vh - 100px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-image {
    max-height: 90vh;
    max-width: 90vw;
    object-fit: contain;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 2001;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2001;
}

.gallery-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.gallery-thumbnails {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    overflow-x: auto;
    padding: 10px;
    gap: 10px;
}

.gallery-thumbnail {
    height: 80px;
    width: auto;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
    opacity: 1;
}