.panel {
    max-height: 400px;
    /* Ajusta la altura según necesites */
    overflow-y: auto;
    /* Activa el scroll vertical */
}

.panel::-webkit-scrollbar {
    width: 8px;
}

.panel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.panel::-webkit-scrollbar-track {
    background: transparent;
}

.pagination-previous,
.pagination-next,
.pagination-link {
    background-color: #364d62 !important;
    color: white !important;
    border-color: #364d62 !important;
}

.pagination-link.is-current {
    background-color: #1d1d1b !important;
    /* Negro para el botón activo */
    border-color: #1d1d1b !important;
}

.pagination-link:hover,
.pagination-previous:hover,
.pagination-next:hover {
    background-color: #1d1d1b !important;
    /* Negro al pasar el mouse */
    border-color: #1d1d1b !important;
}

.custom-grid .columns {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.custom-grid .column {
    display: flex;
}

.custom-grid .box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.text-overlay {
    position: absolute;
    top: 50%;
    /* Centrado vertical */
    left: 75%;
    /* Centrado horizontal */
    transform: translate(-50%, -50%);
    color: #005a87;
    /* Color del texto */
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    /* Bordes redondeados */
}

.animated-text {
    font-size: 2rem;
    font-weight: bold;
    animation: fadeIn 2s ease-in-out;
}

.text-overlay p {
    font-size: 1.2rem;
}

/* Animación opcional */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Parallax Section Styles */
.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 300px;
    height: auto;
}

.parallax-1 {
    background-image: url('../img/secciones/areas_experiencia.jpg');
}

.parallax-2 {
    background-image: url('../img/fondos/1-04.png');
}

.parallax-3 {
    background-image: url('../img/fondos/w.jpg');
}

/* Animations */
.fade-in {
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Section Styles */
#about-us,
#mvv {
    background: linear-gradient(135deg, #f0f4f8, #ffffff);
    padding: 3rem 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

#about-us img {
    border-radius: 15px;
    width: 100%;
    height: auto;
}

.title.is-5 {
    color: #005a87;
}

/* Box Styles */
.box {
    background-color: #ffffff !important;
    /*   */
    border-radius: 10px;
    /*   */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    /*  */
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.button {
    transition: all 0.3s ease;
}

.button:hover {
    background-color: #005a87 !important;
    color: #ffffff !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .columns {
        flex-wrap: wrap;
    }

    #about-us img {
        margin-top: 1rem;
    }

    .box {
        margin-bottom: 1rem;
    }
}


#about {
    background: linear-gradient(to right, #1d1d1b, #005a87);
    padding: 4rem 0;
}

.team-card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.team-card img {
    border-bottom: 4px solid #005a87;
}

.team-card h3 {
    color: #005a87;
    font-size: 1.25rem;
    margin: 0.5rem 0;
}

.team-card p {
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
}

.team-card a {
    color: #005a87;
    font-weight: bold;
}

/* Carousel Styles */
#carousel {
    display: flex;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    width: 100%;
}

.carousel-item {
    min-width: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.carousel-control {
    pointer-events: all;
    background-color: rgba(54, 73, 98);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

/* Navbar Gradient */
.navbar {
    background: linear-gradient(to right, #1d1d1b, #005a87);
}

.navbar .navbar-item {
    color: #ffffff;
}

.navbar .navbar-item:hover {
    background-color: transparent;
    color: #d9d9d9;
}

.navbar .navbar-item img {
    pointer-events: none;
}

/* Custom Navbar Burger Button */
.navbar-burger {
    color: #ffffff;
    /* Color del botón */
    transition: transform 0.3s ease, opacity 0.3s ease;
}


.navbar-menu {
    transition: transform 0.5s ease, opacity 0.5s ease;
    background: linear-gradient(to right, #1d1d1b, #005a87);

    opacity: 0;
    transform: translateY(-100%);
}

.navbar-menu.is-active {
    opacity: 1;
    transform: translateY(0);
}

.navbar-menu:not(.is-active) {
    opacity: 0;
    transform: translateY(-100%);
}

.buttons .button {
    border: 1px solid #000;
    color: #000;
}

.buttons .button.is-active {
    background-color: #000;
    color: #fff;
}

@media screen and (min-width: 769px) {
    .navbar-menu {
        display: flex !important;

        transform: none !important;

        opacity: 1 !important;
    }
}

@media screen and (max-width: 768px) {
    .parallax {
        background-attachment: scroll;
        height: auto;

    }

    .parallax-content {
        padding: 20px;
        text-align: center;

    }

}

/* General styles */
.box {
    background: linear-gradient(135deg, #f7f9fc, #e6ebf3);
    border: 1px solid #d0d7e4;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.image img {
    object-fit: cover;
}

.subtitle.is-6 {
    margin-bottom: 10px;
}

.columns.is-flex-wrap-wrap .column.is-narrow {
    margin-bottom: 10px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .columns {
        flex-wrap: wrap;
    }

    .image.is-192x192 {
        width: 128px;
        height: 128px;
    }

    .image.is-96x96 {
        width: 72px;
        height: 72px;
    }

    .columns.is-flex-wrap-wrap .column.is-narrow {
        margin-bottom: 5px;
    }

    .subtitle.is-6 {
        text-align: center;
    }
}

/* Carousel Section Base Styles */
#carousel-section {
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    border-radius: 10px;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    gap: 16px;
    /* Espaciado ajustado */
    animation: scroll-slow 25s linear infinite;
    /* Animación más lenta */
}

.carousel-slide {
    flex: 0 0 auto;
    width: 128px;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

/* Hover Effect */
.carousel-slide:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Animation */
@keyframes scroll-slow {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-track {
        gap: 10px;
        /* Reduce espaciado en dispositivos móviles */
    }

    .carousel-slide {
        width: 96px;
        height: 96px;
        /* Ajustar tamaño */
    }
}

#team-section {
    padding: 3rem 1rem;
    border-radius: 10px;
}

.card {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.card img {
    border-radius: 8px 8px 0 0;
    object-fit: cover;
}

.card-footer-item {
    text-align: center;
    color: #3273dc;
    font-weight: bold;
    transition: color 0.2s ease;
}

.card-footer-item:hover {
    color: #004aad;
}

@media (max-width: 768px) {
    .card img {
        height: auto;
    }

    .columns.is-multiline {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .column.is-one-third {
        flex: 1;
    }
}