/* ============================================================
   Vamos Uruguay Banner — banner.css
   Bandera uruguaya estilo listón, max 80px de altura
   ============================================================ */

/* ── Contenedor principal ───────────────────────────────────── */
#vub-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 999999;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.35);
}

/* Ajuste si está el admin bar de WordPress */
.admin-bar #vub-banner {
    top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar #vub-banner {
        top: 46px;
    }
}

/* ── Fondo de la bandera ────────────────────────────────────── */
.vub-flag-bg {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
}

/* 9 franjas horizontales alternadas blanco/azul celeste */
.vub-stripe {
    flex: 1;
}

.vub-stripe-1,
.vub-stripe-3,
.vub-stripe-5,
.vub-stripe-7,
.vub-stripe-9 {
    background-color: #FFFFFF;
}

.vub-stripe-2,
.vub-stripe-4,
.vub-stripe-6,
.vub-stripe-8 {
    background-color: #001489; /* Celeste uruguayo oficial */
}

/* ── Cantón (cuadrado blanco con sol) ───────────────────────── */
.vub-canton {
    position: absolute;
    top: 0;
    left: 0;
    /* Ocupa las primeras 5 franjas de altura → 5/9 de 80px ≈ 45px */
    width: 80px;   /* mismo que la altura del cantón para que sea cuadrado */
    height: 80px;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(0,0,0,0.08);
}

.vub-sun {
    width: 62px;
    height: 62px;
    animation: vub-spin-rays 12s linear infinite;
}

@keyframes vub-spin-rays {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Mantener la cara del sol quieta mientras giran los rayos */
.vub-sun .sun-rays {
    transform-origin: 50px 50px;
}

/* ── Overlay de texto ───────────────────────────────────────── */
.vub-text-overlay {
    position: absolute;
    inset: 0;
    left: 80px; /* dejar espacio al cantón */
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.vub-text {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: clamp(16px, 3.5vw, 32px);
    font-weight: 900;
    letter-spacing: 0.18em;
    color: #FFCD00;
    text-shadow:
        0 0 6px rgba(0,0,0,0.55),
        0 2px 4px rgba(0,0,0,0.45),
        1px 1px 0 #1A4A8A,
        -1px -1px 0 #1A4A8A,
        2px 2px 0 rgba(0,0,0,0.25);
    text-transform: uppercase;
    white-space: nowrap;
    user-select: none;

    /* Animación de entrada */
    animation: vub-slide-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes vub-slide-in {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Efecto shimmer sobre el texto */
.vub-text::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255,255,255,0.55) 50%,
        transparent 60%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: vub-shimmer 3.5s ease-in-out infinite;
}

@keyframes vub-shimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* ── Botón cerrar ────────────────────────────────────────────── */
.vub-close {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 10;
    padding: 0;
}

.vub-close:hover {
    background: rgba(0,0,0,0.5);
    transform: translateY(-50%) scale(1.1);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 480px) {
    #vub-banner {
        height: 64px;
    }
    .vub-canton {
        width: 64px;
        height: 64px;
    }
    .vub-sun {
        width: 48px;
        height: 48px;
    }
    .vub-text-overlay {
        left: 64px;
    }
    .vub-text {
        letter-spacing: 0.10em;
    }
    body {
        padding-top: 64px !important;
    }
}
