/* Estilo general */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f8f8f8;
}

header {
    text-align: center;
    background-color: #4CAF50;
    color: white;
    padding: 2rem 1rem;
}

.logo {
    width: 200px;
    margin-bottom: 1rem;
}

main {
    margin: 2rem auto;
    max-width: 900px;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #4CAF50;
    color: white;
    font-size: 0.9rem;
}

/* Sticker vertical derecho e izquierdo */
.news-ticker-vertical {
    position: fixed;
    top: 0;
    width: 240px;
    height: 70vh;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0 0 0 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.news-ticker-vertical.right {
    right: 0;
    border-radius: 16px 0 0 16px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.news-ticker-vertical.left {
    left: 0;
    border-radius: 0 16px 16px 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.news-ticker-vertical .content {
    display: flex;
    flex-direction: column;
    animation: scroll-up 100s linear infinite;
    min-height: 2000%;
}

.news-ticker-vertical a {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.news-ticker-vertical a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Animación */
@keyframes scroll-up {
    0% {
        transform: translateY(0%);
    }
    100% {
        transform: translateY(-100%);
    }
}

/* Responsive para pantallas menores a 1024px */
@media screen and (max-width: 1024px) {
    .news-ticker-vertical {
        display: none;
    }

    main {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Ajuste para escritorio (mayor a 1024px) */
@media screen and (min-width: 1025px) {
    main {
        padding-left: 260px;
        padding-right: 260px;
    }
}

/* Alerta promocional dinámica */
.oferta-alerta {
    background-color: #fff7e6;
    color: #333;
    border-left: 6px solid #ff9800;
    padding: 1rem 1.5rem;
    margin: 2rem auto;
    max-width: 800px;
    font-size: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    line-height: 1.6;
}

.oferta-alerta a {
    color: #d35400;
    text-decoration: underline;
    font-weight: bold;
}

.oferta-alerta a:hover {
    text-decoration: none;
}
.news-ticker-vertical:hover .content {
    animation-play-state: paused;
}

.news-ticker-vertical .content {
    display: flex;
    flex-direction: column;
    animation: scroll-up 100s linear infinite;
    animation-play-state: running;
    min-height: 2000%;
}

.news-ticker-vertical:hover .content {
    animation-play-state: paused !important;
}