/* Reset y estilos generales */
body {
    margin: 0;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Evita scroll horizontal */
}

/* Barra superior con amarillo más oscuro animado */
.barra {
    background: linear-gradient(270deg, #FFC107, #FFB300, #FFC107);
    background-size: 600% 600%;
    animation: moverFondo 8s ease infinite;
    color: #111; /* Texto oscuro */
    text-align: center;
    padding: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* Animación de fondo */
@keyframes moverFondo {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Texto y icono con efecto de pulso */
.barra a, .barra img {
    animation: pulso 1.8s ease-in-out infinite;
}

.barra a {
    color: #111;
    text-decoration: none;
    font-size: 1.2em;
    line-height: 1.4em;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.barra img {
    height: 32px;
}

/* Animación pulso */
@keyframes pulso {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.barra a:hover, .barra img:hover {
    transform: scale(1.1);
    color: #333; /* Hover más oscuro */
}

/* Barra de redes debajo de la barra superior con fondo gris */
.redes {
    background-color: #444; /* Gris oscuro */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 20px;
    border-radius: 0 0 10px 10px; /* Bordes redondeados solo abajo */
    margin-top: 0; /* Justo debajo de la barra superior */
}

.redes a img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.redes a img:hover {
    transform: scale(1.2);
}

/* Iframe principal */
iframe {
    flex: 1;
    border: none;
    width: 100%;
}

/* Footer */
.footer {
    background: #111;
    color: #ccc;
    text-align: center;
    font-size: 1em;
    padding: 12px;
    margin-top: auto;
}

.footer a {
    color: #ccc;
    text-decoration: underline;
}

.footer a:hover {
    color: #fff;
}

/* Animación rebote opcional */
@keyframes rebote {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* Media Queries para móviles */
@media (max-width: 600px) {
    .barra {
        padding: 15px;
        gap: 10px;
    }
    .barra a {
        font-size: 1.2em;
        line-height: 1.3em;
    }
    .barra img {
        height: 30px;
    }
    .redes a img {
        width: 38px;
        height: 38px;
    }
    .redes {
        gap: 10px; /* Ajusta el espaciado en móviles */
    }
    .footer {
        font-size: 1em;
        padding: 12px;
    }
}
