/* Estilos para mostrar publicidad - una a la vez en slideshow */
.a-wrapper { 
    position: relative; 
    width: 100%; 
    max-width: 854px;
    margin: 0 auto;
    overflow: hidden;
}

.a-row { 
    position: relative;
    width: 100%;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.a-item { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.a-item.active { 
    opacity: 1;
    z-index: 2;
}

.a-image { 
    display: block; 
    width: 854px; 
    height: 480px; 
    object-fit: cover; 
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
}

.a-link { 
    text-decoration: none; 
    display: block; 
    width: 100%;
    height: 100%;
}

/* Controles de navegación */
.a-nav { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background: rgba(0,0,0,0.5); 
    color: #fff; 
    border: none; 
    width: 48px; 
    height: 48px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    z-index: 10;
    font-size: 24px;
    transition: background 0.3s ease;
}

.a-prev { left: 16px; }
.a-next { right: 16px; }
.a-nav:focus { outline: 2px solid rgba(255,255,255,0.6); }
.a-nav:hover { background: rgba(0,0,0,0.7); }

/* Indicadores de posición */
.a-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.a-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.a-indicator.active {
    background: rgba(255,255,255,0.9);
}

/* Responsive para tablets */
@media (max-width: 900px) {
    .a-wrapper {
        max-width: 100%;
    }
    
    .a-row {
        height: auto;
        aspect-ratio: 854 / 480;
    }
    
    .a-image { 
        width: 100%; 
        height: 100%; 
    }
}

/* Responsive para móviles */
@media (max-width: 600px) {
    .a-nav {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .a-prev { left: 8px; }
    .a-next { right: 8px; }
    
    .a-indicator {
        width: 8px;
        height: 8px;
    }
}

/* Ocultar botones en pantallas muy pequeñas */
@media (max-width: 420px) {
    .a-nav { 
        width: 32px;
        height: 32px;
    }
}
