@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    overflow: hidden;
    background-color: white;
    background-image: url('/evento/ayj.png');
}

.slider {
    position: relative;
    width: calc(100% - 40px);
    height: calc(100vh - 40px);
    margin: 20px;
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
    border-radius: 10px;
    padding: 10px; /* Borde blanco dinámico */
    background-color: transparent; /* Fondo transparente */
    box-shadow: 0 0 0 10px white; /* Sombra para simular el borde */
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ajustado para contener la imagen */
    border-radius: 10px; /* Asegura que la imagen también tenga bordes redondeados */
}

.slide-active {
    display: flex;
    opacity: 1;
    z-index: 1;
    animation: fadeInScale 1.5s ease-in-out;
}

.text {
    color: black;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 20px;
    background: rgba(255, 255, 255, 0.3); /* Fondo glassmorphism */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0 10px 10px 0;
    position: absolute;
    bottom: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    animation: fadeInText 1.5s ease-in-out;
}

.text:hover {
    background: rgba(255, 255, 255, 0.5);
}

.nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.nav button {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.nav button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.pagination {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
}

.pagination .dot {
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pagination .dot.active {
    background-color: #717171;
}

.pagination .dot:hover {
    background-color: #555;
}

.flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    z-index: 9999;
    pointer-events: none;
    transition: opacity 0.5s ease;
}