body {
    margin: 0;
    overflow: hidden;
    position: relative;
    width: 100vw;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('./img/fondo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Fondo diferente para móviles y iPads */
@media (max-width: 1024px) { /* Incluye iPads en horizontal */
    body {
        background-image: url('./img/fondo.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}

/* Fondo específico para teléfonos móviles */
@media (max-width: 768px) { /* Para teléfonos móviles únicamente */
    body {
        background-image: url('./img/fondo.png');
    }
}
.pages-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.page img {
    max-width: 95vw;
    max-height: 90vh;
    border-radius: 12px;
    border: 2px solid #cccccc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    object-fit: contain;
}

/* Responsividad para dispositivos móviles */
@media (max-width: 768px) {
    .page img {
        max-width: 85vw; /* Adaptarse mejor a teléfonos y tablets */
        max-height: 80vh;
        border-radius: 10px;
    }
}

/* Responsividad para teléfonos pequeños */
@media (max-width: 480px) {
    .page img {
        max-width: 75vw; /* Usar casi todo el ancho disponible */
        max-height: 70vh;
        border-radius: 8px;
    }
}

.navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 9999;
}

/* Flechas visibles solo en versión escritorio */
@media (min-width: 769px) {
    .button {
        display: block;
        font-size: 80px;
        color: #f94886;
        cursor: pointer;
        transition: all 0.3s;
        opacity: 0.8;
        pointer-events: all;
        padding: 10px;
        position: absolute;
    }

    #prev {
        left: 5%; /* Más cerca del centro */
    }

    #next {
        right: 5%; /* Más cerca del centro */
    }

    .button:hover {
        color: #fd1c67;
        opacity: 1;
        transform: scale(1.3) rotate(10deg); /* Efecto de agrandamiento y giro */
        transition: transform 0.3s ease, color 0.3s ease;
        text-shadow: 0px 0px 10px rgba(252, 103, 155, 0.6); /* Sombra luminosa */
    }
}

/* Ocultar flechas en móviles */
@media (max-width: 768px) {
    .button {
        display: none;
    }
}


/* Indicadores de página (puntitos) */
.indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 9999;
    opacity: 0; /* Inicia invisible */
    transition: opacity 0.5s ease; /* Transición suave */
}

.indicator {
    width: 12px;
    height: 12px;
    background-color: #ddd;
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.3s;
}

.indicator.active {
    background-color: #fc679b;
    transform: scale(1.2);
}

/* Ocultar indicadores en móviles si no están activos */
@media (max-width: 768px) {
    .indicators {
        opacity: 0; /* Por defecto, invisibles */
    }
}

/* Logo */
.logo {
    position: absolute;
    top: 30px; /* Distancia desde la parte superior */
    left: 30px; /* Distancia desde la parte izquierda */
    width: 200px; /* Tamaño base del logo */
    height: auto;
    transition: width 0.3s, height 0.3s;
    z-index: 9999; /* Asegura que esté siempre visible */
}

/* Hacer el logo más pequeño en móviles */
@media (max-width: 768px) {
    .logo {
        width: 90px; /* Tamaño reducido para móviles */
        top: 20px; /* Se desactiva el 'top' */
        left: 30px; /* Centrado horizontalmente */
        height: auto;
        transform: translateX(width 0.3s, height 0.3s); /* Ajuste para centrarlo */
    }
}

/* Logo de fondo */
.logo-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45%;
    height: auto;
    
    z-index: 1; /* Debajo del tríptico */
    pointer-events: none; /* Permitir clics en el contenido frontal */
}

/* Ajustes específicos para móviles */
@media (max-width: 768px) {
    .logo-background {
        width: 60%; /* Tamaño más grande en móviles */
        
    }
}

