/**
 * Aviso superior en web publica — neon alineado con paleta Diselo Web.
 */

/**
 * Debajo del header sticky: va en flujo normal del documento (no cubre la barra).
 */
.public-notice {
    position: relative;
    z-index: 25;
    padding: 12px clamp(14px, 3vw, 36px) 14px;
    margin: 0;
}

.public-notice__inner {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: clamp(14px, 2.5vw, 22px);
    padding: 16px 18px 16px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(6, 10, 22, 0.92);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.35) inset,
        0 24px 56px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.public-notice__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.45;
    background: radial-gradient(120% 80% at 10% 0%, var(--notice-glow, rgba(0, 161, 254, 0.35)), transparent 55%);
}

.public-notice__icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    border: 1px solid var(--notice-ring, rgba(0, 161, 254, 0.45));
    background: rgba(0, 0, 0, 0.35);
    color: var(--notice-icon, #00a1fe);
    box-shadow: 0 0 28px var(--notice-glow, rgba(0, 161, 254, 0.25));
}

.public-notice__main {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.public-notice__title {
    margin: 0 0 6px;
    font-family: "Outfit", "DM Sans", system-ui, sans-serif;
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 0 24px var(--notice-glow, rgba(0, 161, 254, 0.2));
}

.public-notice__text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
}

.public-notice__text p {
    margin: 0 0 8px;
}

.public-notice__text p:last-child {
    margin-bottom: 0;
}

.public-notice__dismiss {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.public-notice__dismiss:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 18px var(--notice-glow, rgba(0, 161, 254, 0.15));
}

.public-notice__dismiss:focus-visible {
    outline: 2px solid var(--notice-icon, #00a1fe);
    outline-offset: 2px;
}

.public-notice--no-dismiss .public-notice__inner {
    grid-template-columns: auto minmax(0, 1fr);
}

/* ----- Variantes (colores por tipo) ----- */
.public-notice--info {
    --notice-glow: rgba(0, 161, 254, 0.42);
    --notice-ring: rgba(0, 161, 254, 0.5);
    --notice-icon: #00d4ff;
}

.public-notice--info .public-notice__inner {
    border-color: rgba(0, 161, 254, 0.35);
    box-shadow:
        0 0 0 1px rgba(0, 161, 254, 0.12) inset,
        0 0 40px rgba(0, 161, 254, 0.12),
        0 24px 56px rgba(0, 0, 0, 0.45);
}

.public-notice--success {
    --notice-glow: rgba(52, 245, 196, 0.38);
    --notice-ring: rgba(52, 245, 196, 0.45);
    --notice-icon: #47f5c8;
}

.public-notice--success .public-notice__inner {
    border-color: rgba(52, 245, 196, 0.32);
    box-shadow:
        0 0 0 1px rgba(52, 245, 196, 0.1) inset,
        0 0 44px rgba(52, 245, 196, 0.14),
        0 24px 56px rgba(0, 0, 0, 0.45);
}

.public-notice--promo {
    --notice-glow: rgba(0, 73, 246, 0.55);
    --notice-ring: rgba(1, 107, 250, 0.55);
    --notice-icon: #5aa3ff;
}

.public-notice--promo .public-notice__inner {
    border-color: rgba(1, 107, 250, 0.4);
    box-shadow:
        0 0 0 1px rgba(0, 73, 246, 0.2) inset,
        0 0 48px rgba(0, 73, 246, 0.22),
        0 24px 56px rgba(0, 0, 0, 0.45);
}

.public-notice--warning {
    --notice-glow: rgba(251, 191, 36, 0.45);
    --notice-ring: rgba(251, 191, 36, 0.5);
    --notice-icon: #fcd34d;
}

.public-notice--warning .public-notice__inner {
    border-color: rgba(251, 191, 36, 0.35);
    box-shadow:
        0 0 0 1px rgba(251, 191, 36, 0.1) inset,
        0 0 40px rgba(251, 191, 36, 0.12),
        0 24px 56px rgba(0, 0, 0, 0.45);
}

.public-notice--alert {
    --notice-glow: rgba(251, 113, 133, 0.45);
    --notice-ring: rgba(248, 113, 113, 0.55);
    --notice-icon: #fda4af;
}

.public-notice--alert .public-notice__inner {
    border-color: rgba(248, 113, 113, 0.38);
    box-shadow:
        0 0 0 1px rgba(248, 113, 113, 0.12) inset,
        0 0 42px rgba(248, 113, 113, 0.14),
        0 24px 56px rgba(0, 0, 0, 0.45);
}
