:root {
    --navy: #0B1F33;
    --navy-soft: #16324A;
    --ice: #F3F7F8;
    --foam: #FFFFFF;
    --berry: #B83A5A;
    --mint: #2A9D8F;
    --sand: #E8D9C4;
    --text: #132533;
    --muted: #5A6B78;
    --ok: #1F8A70;
    --warn: #C47A22;
    --radius: 1.25rem;
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Outfit", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(42, 157, 143, 0.18), transparent 55%),
        radial-gradient(900px 500px at 100% 0%, rgba(184, 58, 90, 0.14), transparent 50%),
        linear-gradient(180deg, #EAF3F4 0%, var(--ice) 40%, #E7EEF1 100%);
}

.bg-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230B1F33' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.9;
    z-index: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.hero {
    position: relative;
    z-index: 1;
    min-height: min(72vh, 560px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 2.5rem 1.25rem 2rem;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(11, 31, 51, 0.15) 0%, rgba(11, 31, 51, 0.72) 70%, rgba(11, 31, 51, 0.92) 100%),
        url("assets/bocaccio_logo.png") center 28% / min(42vw, 220px) no-repeat,
        linear-gradient(135deg, #16324A, #0B1F33 55%, #1A3A52);
    color: #F7FBFC;
    animation: heroIn 0.8s ease-out both;
}

.brand-logo {
    width: min(42vw, 160px);
    height: auto;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
    animation: floaty 4.5s ease-in-out infinite;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
}

.live-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #5DFFB0;
    box-shadow: 0 0 0 0 rgba(93, 255, 176, 0.7);
    animation: pulse 1.8s ease-out infinite;
}

.mensaje-dia {
    max-width: 28rem;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 3.6vw, 1.65rem);
    font-weight: 500;
    line-height: 1.35;
    color: rgba(247, 251, 252, 0.95);
    min-height: 2.6em;
}

main {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    margin: -1.5rem auto 0;
    padding: 0 1rem 3rem;
}

.block {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(11, 31, 51, 0.06);
    border-radius: calc(var(--radius) + 0.25rem);
    padding: 1.25rem 1.15rem 1.35rem;
    margin-bottom: 1rem;
    box-shadow: 0 12px 40px rgba(11, 31, 51, 0.06);
    animation: riseIn 0.55s ease-out both;
}

.block:nth-of-type(2) { animation-delay: 0.08s; }
.block:nth-of-type(3) { animation-delay: 0.14s; }
.block:nth-of-type(4) { animation-delay: 0.2s; }

.block-head {
    margin-bottom: 0.95rem;
}

.block-head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--navy);
}

.block-sub {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.block-sub strong {
    color: var(--berry);
    font-weight: 700;
}

.chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    background: var(--foam);
    border: 1px solid rgba(11, 31, 51, 0.1);
    color: var(--navy-soft);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.chip:hover { transform: translateY(-1px); }

.chip.ok {
    border-color: rgba(31, 138, 112, 0.35);
    background: linear-gradient(180deg, #FFFFFF, #EEF9F5);
}

.chip.warn {
    border-color: rgba(196, 122, 34, 0.4);
    background: linear-gradient(180deg, #FFFFFF, #FFF6EA);
}

.chip .dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--ok);
}

.chip.warn .dot { background: var(--warn); }

.chip.extra {
    background: linear-gradient(180deg, #FFFFFF, #F8F1E8);
    border-color: rgba(184, 58, 90, 0.2);
}

.empty {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.hidden { display: none !important; }

.pie {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0.5rem 1rem 2.5rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.pie .meta {
    margin: 0.35rem 0 0;
    opacity: 0.75;
    font-size: 0.72rem;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(93, 255, 176, 0.55); }
    70% { box-shadow: 0 0 0 10px rgba(93, 255, 176, 0); }
    100% { box-shadow: 0 0 0 0 rgba(93, 255, 176, 0); }
}

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
}

@keyframes riseIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@media (min-width: 720px) {
    .hero {
        min-height: 420px;
        border-radius: 0 0 2rem 2rem;
    }
    main { margin-top: -2rem; }
}
