:root {
    --landing-overlay: rgba(7, 28, 63, 0.58);
    --banner-bg: #09345f;
    --banner-border: #03213d;
    --accent: #f3d06a;
    --text-main: #f8fbff;
    --text-subtle: #c9d7e8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Trebuchet MS", "Gill Sans", sans-serif;
    color: var(--text-main);
}

.home-landing {
    min-height: 100vh;
    background-image:
        linear-gradient(180deg, rgba(2, 21, 44, 0.25) 0%, var(--landing-overlay) 100%),
        url('/images/home/congreso-fondo.jpeg');
    background-size: cover;
    background-position: center;
    padding: clamp(1.1rem, 2.4vw, 2rem);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.home-shell {
    width: min(1200px, 100%);
    display: grid;
    gap: 1rem;
}

.home-alert {
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.home-alert-error {
    background: #ffe7e8;
    color: #6c1f26;
    border-color: #e9b8bc;
}

.home-banner {
    background: linear-gradient(180deg, #0a3d70 0%, var(--banner-bg) 100%);
    border: 2px solid var(--banner-border);
    border-radius: 12px;
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.8rem;
    align-items: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.home-banner-brand {
    min-width: 0;
}

.home-banner-image {
    width: 100%;
    max-height: 132px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: block;
}

.home-banner-fallback {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem 0.3rem;
}

.home-banner-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
}

.home-banner-title {
    margin: 0.35rem 0 0;
    font-size: clamp(1.2rem, 2.8vw, 2rem);
    line-height: 1.15;
}

.home-banner-actions {
    display: flex;
    justify-content: flex-end;
}

.home-access-button {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 144px;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0f2440;
    background: var(--accent);
    border: 2px solid #dbc05f;
    transition: transform 140ms ease, filter 140ms ease;
}

.home-access-button:hover,
.home-access-button:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.home-access-button-secondary {
    background: #d8e5f3;
    border-color: #c7d8ea;
    color: #0d2d4f;
}

.home-auditoriums {
    margin-top: clamp(1.2rem, 5vh, 3.2rem);
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.8fr) minmax(0, 0.72fr);
    gap: clamp(0.8rem, 1.8vw, 1.5rem);
    align-items: end;
}

.auditorium-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.auditorium-link:focus-visible .auditorium-block {
    box-shadow: 0 12px 24px rgba(90, 154, 210, 0.45);
    border-color: #4a7ba7;
}

.auditorium-link:focus-visible .auditorium-block h2 {
    color: #4a7ba7;
}

.auditorium-block {
    background: #f9fbff;
    border: 3px solid #5a9ad2;
    border-radius: 8px;
    color: #0a1d34;
    box-shadow: 0 16px 30px rgba(4, 29, 57, 0.35);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem;
    transition: box-shadow 160ms ease, border-color 160ms ease;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.auditorium-block-has-image {
    border-color: rgba(90, 154, 210, 0.6);
    color: #fff;
}

.auditorium-block-has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(4, 18, 38, 0.52);
    border-radius: inherit;
    pointer-events: none;
}

.auditorium-block-has-image h2 {
    position: relative;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.auditorium-link:hover .auditorium-block {
    border-color: #4a7ba7;
    box-shadow: 0 20px 40px rgba(90, 154, 210, 0.35);
    transform: translateY(-2px);
}

.auditorium-block h2 {
    margin: 0;
    font-size: clamp(1rem, 2vw, 2rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: color 160ms ease;
}

.auditorium-main-meta {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
    display: grid;
    grid-template-rows: auto 1fr;
}

.auditorium-side-meta {
    grid-template-rows: auto 1fr;
    align-self: stretch;
    min-height: 100%;
}

.auditorium-side-content {
    align-self: center;
    justify-self: center;
    width: min(86%, 520px);
    display: grid;
    gap: 0.6rem;
}

.auditorium-side-heading {
    display: grid;
    justify-items: center;
    gap: 0.6rem;
}

.auditorium-side-content .auditorium-main-conferences {
    width: 100%;
}

.auditorium-main-conferences {
    margin-top: 0;
    display: grid;
    gap: 0.5rem;
    align-self: center;
    justify-self: center;
    width: min(86%, 520px);
}

.auditorium-main-line {
    height: 2px;
    width: 100%;
    background: #f6e6a7;
    border-radius: 999px;
}

.auditorium-main-label {
    font-weight: 800;
    font-size: clamp(0.95rem, 1.9vw, 1.55rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2f4f73;
}

.auditorium-ondemand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    background: #c62828;
    color: #ffffff;
}

.auditorium-block-has-image .auditorium-main-label {
    color: #f6e6a7;
}

.auditorium-block-has-image .auditorium-ondemand-badge {
    color: #ffffff;
}

.auditorium-block-main {
    min-height: clamp(210px, 42vh, 360px);
    align-items: stretch;
}

.auditorium-block-side {
    min-height: clamp(190px, 36vh, 320px);
}

.home-footer-logos {
    margin-top: clamp(0.8rem, 2.2vh, 1.8rem);
    background: #ffffff;
}

.home-footer-logos-image {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 800px) {
    .home-banner {
        grid-template-columns: 1fr;
    }

    .home-banner-actions {
        justify-content: flex-start;
    }

    .home-access-button {
        width: 100%;
    }

    .home-auditoriums {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .auditorium-block,
    .auditorium-block-main,
    .auditorium-block-side {
        min-height: 160px;
    }

}
