/*
 * Agenda pública · ficha individual v0.1.79
 * Paridad visual con la vista previa interna del módulo Agenda.
 * Alcance aislado: /evento/{slug}.
 */
.evento-public-page,
.evento-public-page * {
    box-sizing: border-box;
}

.evento-public-page {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    background: #f7f8fa;
    padding: 1.5rem 0 3.5rem;
}

/*
 * No usamos container-fluid ni dependemos de los breakpoints de Bootstrap.
 * Es el mismo ancho de composición usado en la vista previa de Agenda.
 */
.evento-public-content {
    width: min(1040px, calc(100% - 2rem));
    max-width: 1040px;
    margin: 0 auto;
    min-width: 0;
}

/* Breadcrumb municipal: reutiliza la clase global .info-breadcrumb y
 * completa el tratamiento de enlaces usado en las demás secciones internas. */
.evento-public-page .info-breadcrumb {
    margin-bottom: 1.5rem;
    font-size: .9rem;
    color: #6c6f75;
}
.evento-public-page .info-breadcrumb a,
.evento-public-page .info-breadcrumb span {
    color: #6c6f75;
    text-decoration: none;
    font-weight: 600;
}
.evento-public-page .info-breadcrumb a:hover {
    color: #d82d81;
}
.evento-public-page .info-breadcrumb i {
    color: #d82d81;
    font-size: .75rem;
}

.evento-public-hero {
    display: block;
    width: 100%;
    max-width: 1040px;
    height: clamp(260px, 38vw, 500px);
    margin: 0 auto;
    overflow: hidden;
    background: #e9ecef;
    border-radius: 1.1rem 1.1rem 0 0;
}

.evento-public-hero > img,
.evento-public-hero img.img-fluid {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    max-height: 500px !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center center;
}

.evento-public-layout {
    width: 100%;
    max-width: 1040px;
    min-width: 0;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(290px, .65fr);
    gap: 2rem;
    padding: 2rem;
    background: #fff;
    border-radius: 1.1rem;
    box-shadow: 0 .75rem 2.25rem rgba(15, 23, 42, .07);
    overflow: hidden;
}

.evento-public-layout.has-hero {
    border-radius: 0 0 1.1rem 1.1rem;
}

.evento-public-main,
.evento-public-facts {
    min-width: 0;
    max-width: 100%;
}

.evento-public-chips {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.evento-public-chip {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    padding: .34rem .7rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .035em;
}
.evento-public-chip-soft {
    background: rgba(216, 45, 129, .10);
    color: var(--muni-pink, #d82d81);
    text-transform: none;
    letter-spacing: 0;
}

.evento-public-main h1 {
    margin: 0 0 1rem;
    color: #212529;
    font-family: 'Inter Tight', Arial, sans-serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}
.evento-public-lead {
    margin: 0 0 1.5rem;
    color: #495057;
    font-size: 1.15rem;
    line-height: 1.6;
}
.evento-public-description {
    color: #343a40;
    font-size: 1rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}
.evento-public-description p { margin: 0 0 1rem; }
.evento-public-description ul,
.evento-public-description ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.evento-public-description li + li { margin-top: .35rem; }
.evento-public-description p:last-child,
.evento-public-description ul:last-child,
.evento-public-description ol:last-child { margin-bottom: 0; }

.evento-public-facts {
    border-left: 1px solid #e9ecef;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.evento-public-fact {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.evento-public-fact > span:first-child {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
    color: #868e96;
}
.evento-public-fact > strong {
    font-size: .96rem;
    line-height: 1.45;
    color: #212529;
}
.evento-public-fact > small {
    color: #6c757d;
    line-height: 1.4;
}
.evento-public-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .15rem;
}
.evento-public-tag {
    display: inline-flex;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: #f1f3f5;
    color: #495057;
    font-size: .76rem;
}

/* Protección ante contenido enriquecido futuro. */
.evento-public-description img,
.evento-public-description video,
.evento-public-description iframe,
.evento-public-description table {
    max-width: 100% !important;
}
.evento-public-description img,
.evento-public-description video {
    height: auto !important;
}
.evento-public-description iframe { width: 100%; }
.evento-public-description table {
    display: block;
    overflow-x: auto;
}

@media (max-width: 800px) {
    .evento-public-page { padding-top: .75rem; }
    .evento-public-content {
        width: calc(100% - 1.5rem);
    }
    .evento-public-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.25rem;
    }
    .evento-public-facts {
        border-left: 0;
        border-top: 1px solid #e9ecef;
        padding-left: 0;
        padding-top: 1.25rem;
    }
    .evento-public-hero {
        height: 260px;
    }
    .evento-public-hero > img,
    .evento-public-hero img.img-fluid {
        max-height: 260px !important;
    }
}

@media (max-width: 420px) {
    .evento-public-content {
        width: calc(100% - 1rem);
    }
    .evento-public-layout {
        padding: 1rem;
    }
    .evento-public-hero {
        height: 210px;
    }
    .evento-public-hero > img,
    .evento-public-hero img.img-fluid {
        max-height: 210px !important;
    }
}
