/* MAIN CONTAINER */
#galeria-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 2rem;
    width: 100%;
}

/* SECTIONS INDIVIDUALES */
#galeria-container section {
    width: 100%;
    max-width: 900px;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* TITULOS Y SUBTITULOS */
#galeria-container h2 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

/* VIDEOS Y FOTOS SUELTOS */
#galeria-container img,
#galeria-container video {
    max-width: 100%;
    width: 600px;   /* tamaño fijo horizontal */
    height: 340px;  /* altura uniforme */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

/* DESCRIPCIONES */
#galeria-container p {
    font-size: 1rem;
    color: #4b5563;
    text-align: center;
}

/* CONTENEDOR PRINCIPAL DEL CARRUSEL */
section[data-role="media.list"] {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 620px;        /* ancho total visible del item */
    margin: 0 auto;
}

/* TRACK DEL CARRUSEL */
section[data-role="media.list"] .carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

section[data-role="media.list"] .carousel-item {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 1rem;
}

/* CADA ITEM */
section[data-role="media.list"] .carousel-track > img,
section[data-role="media.list"] .carousel-track > video {
    flex: 0 0 100%;          /* cada item ocupa TODO el ancho visible del wrapper */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* centrado vertical */
    text-align: center;
    padding: 1rem;
    box-sizing: border-box;
}

/* FOTO Y VIDEO */
section[data-role="media.list"] img,
section[data-role="media.list"] video {
    max-width: 100%;
    max-height: 340px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* FLECHAS */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #f97316;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    user-select: none;
    z-index: 10;
}
.carousel-arrow.left { left: -10px; }
.carousel-arrow.right { right: -10px; }

.cards-row {
    display: flex;
    gap: 2rem;              /* separación entre cards */
    justify-content: center; /* centrado horizontal */
    flex-wrap: wrap;         /* para que se adapte en pantallas pequeñas */
}

.cards-row section {
    flex: 0 0 45%;           /* ancho fijo relativo, ajustable */
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}