.banner {
    background-image: url('../images/banner_principal.jpg');
    background-size: cover;
    background-position: top center;
    width: 100%;
    aspect-ratio: 16/9;
}

.red {
    color: #e01414;
}

.carousel-wrapper {
    width: 80%;
    overflow: hidden;
    margin: auto;
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scroll-logos 40s linear infinite;
}


.carousel-track img,
#carousel-track img {
    height: 80px;
    margin: 0 20px;
    object-fit: contain;
}


.president,
.team {
    margin-top: 5rem;
}


.team .team-members {
    padding: 2vh;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2vh;
    align-items: stretch;
}

.team-info {
    background-color: #dedada;
    transition: 0.5s ease;
    height: 100%;
}

.team-info a {
    text-decoration: none;
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    transition: 0.5s ease;
}

.team-info:hover {
    background-color: #e01414;
    color: white;
}

.team-info a:hover {
    background: none;
    -webkit-text-fill-color: white;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* 🔥 siempre 6 columnas */
    gap: 10px;
}

.gallery-container img {
    width: 100%;
    height: 200px;
    object-fit: contain;

}

.insta-post-container {
    padding: 2vh;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2vh;
    align-items: stretch;
}

.insta-card {
    position: relative;
    display: inline-block;
}


.call-action {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    /* empieza abajo */
    opacity: 0;
    /* invisible */
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

/* 🔥 Animación SOLO en el <a> */
.insta-card:hover .call-action {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    /* sube suavemente */
}


footer {
    background-color: #000;
}

.social-media a,
.links a,
.info-contact a {
    color: white;
    text-decoration: none;
    transition: 0.5s ease;
}

.social-media a:hover,
.links a:hover,
.info-contact a:hover {
    color: #e01414;
}

.links,
.info-contact,
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2vh;
}

.contact-form input {
    outline: none;
    border-radius: 2vh;
    padding: 1vh;
    border: none;
}

.contact-form button {
    outline: none;
    border-radius: 2vh;
    padding: 1vh;
    background-color: #e01414;
    color: white;
    border: none;
    transition: 0.5s ease;
}

.contact-form button:hover {
    background-color: #000;

}

.ir-arriba {
    padding: 20px;
    background: #dc3545;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .banner-track img {
        height: 18vh;
    }

    .banner-arrow {
        font-size: 24px;
        padding: 6px;
    }

    .carousel-wrapper {
        width: 90%;
    }

    .carousel-track img,
    #carousel-track img {
        height: 40px;
        margin: 0 8px;
    }
}






@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}