/* ---- RESET Y CONFIGURACIÓN GENERAL ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: rgb(0, 0, 50);
    font-family: Arial, sans-serif;
}

/* ---- CARRUSEL ---- */
.carousel {
    width: 100%;
    height: 40vh; /* Altura ajustable */
    overflow: hidden;
    position: relative;
}

.carousel-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

/* ---- FILAS DE ICONOS ---- */
.first-icon-row, .second-icon-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    padding: 15px;
}

.first-icon-row {
    background: rgb(26, 21, 43);
}

.second-icon-row {
    background: rgb(39, 38, 80);
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 80px;
}

.icon-item img {
    width: 50px;
    height: auto;
}

.icon-item span {
    color: white;
    font-size: 14px;
    margin-top: 5px;
}

/* ---- TÍTULO CENTRAL ---- */
.mini-title-container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 20px 0;
}

.mini-title {
    font-size: 24px;
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.mini-title::before,
.mini-title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30vw;
    height: 2px;
    background: linear-gradient(to right, transparent, white);
}

.mini-title::before { left: -35vw; }
.mini-title::after { right: -35vw; background: linear-gradient(to left, transparent, white); }

/* ---- GALERÍA DE IMÁGENES ---- */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Ajustable */
    gap: 10px;
    padding: 10px;
}

.image-grid img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

/* ---- IMÁGENES GRANDES ---- */
.big-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
}

.big-images img {
    width: 100%;
    max-width: 300px;
    margin: 5px;
    border-radius: 10px;
}

/* ---- MODAL ---- */
.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: rgb(0, 0, 50);
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    text-align: center;
}

.modal-title {
    color: #FFD700;
    font-weight: bold;
}

.modal-button {
    padding: 10px 20px;
    background-color: rgb(37, 211, 102);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Flechas */
.arrow {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    display: inline-block;
    margin: 20px 0;
}

.modal-bottom-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arrow-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.arrow-up {
    border-bottom: 20px solid #fff; /* Flecha hacia arriba */
    opacity: 0;
    animation: arrow-up-down 1s infinite alternate;
}

.arrow-down {
    border-top: 20px solid #fff; /* Flecha hacia abajo */
    opacity: 0;
    animation: arrow-down-up 1s infinite alternate;
}

/* Animación para que las flechas "se prendan y apaguen" */
@keyframes arrow-up-down {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(10px);
    }
}

@keyframes arrow-down-up {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(-10px);
    }
}

/* ---- RESPONSIVE DESIGN ---- */
@media (max-width: 1024px) {
    .carousel {
        height: 30vh;
    }

    .mini-title {
        font-size: 20px;
    }

    .image-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .big-images img {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .carousel {
        height: 25vh;
    }

    .mini-title {
        font-size: 18px;
    }

    .image-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .modal-content {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .carousel {
        height: 20vh;
    }

    .mini-title {
        font-size: 16px;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
