@import url("/mejora-imagenes-detalle.css?v=20260726");

/* =========================================================
   EVENTOS
   DISEÑO UNIFICADO CON LA SECCIÓN DE SERVICIOS
========================================================= */

/* =========================================================
   RESET GENERAL
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    scroll-behavior: smooth;
}

body.pagina-eventos {
    --eventos-morado: #a32bbf;
    --eventos-rosa: #ff6db7;
    --eventos-morado-oscuro: #71347d;
    --eventos-cafe: #7d4538;
    --eventos-cafe-oscuro: #51372d;
    --eventos-dorado: #ffb36d;
    --eventos-dorado-claro: #e7b57a;
    --eventos-texto: #4a413c;

    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;

    font-family: "Poppins", Arial, sans-serif;
    color: var(--eventos-texto);

    background-image:
        linear-gradient(
            rgba(29, 17, 10, 0.13),
            rgba(29, 17, 10, 0.13)
        ),
        url('/imagenes/fondos_ventanaS/fondogastro.png');

    background-color: #35231d;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

body.pagina-eventos.visor-evento-abierto {
    overflow: hidden;
}


/* =========================================================
   MENÚ SUPERIOR
========================================================= */

.pagina-eventos .menu-superior {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 9999;

    width: 100%;

    display: flex;
    justify-content: center;

    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.58),
        rgba(0, 0, 0, 0.18),
        transparent
    );

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pagina-eventos .menu-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 28px;
}

.pagina-eventos .menu-links {
    width: 100%;
    margin: 0;
    padding: 8px 0;

    list-style: none;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pagina-eventos .menu-links li {
    flex-shrink: 0;
}

.pagina-eventos .menu-links li a {
    position: relative;

    min-width: 115px;
    padding: 8px 10px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;

    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.65);

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.pagina-eventos .menu-links li a:hover {
    color: #ffe6ff;
    transform: translateY(-2px);
}

.pagina-eventos .menu-links li a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -4px;

    width: 0;
    height: 2px;

    background: linear-gradient(
        90deg,
        var(--eventos-morado),
        var(--eventos-rosa),
        var(--eventos-dorado)
    );

    border-radius: 4px;
    transition: width 0.35s ease;
}

.pagina-eventos .menu-links li a:hover::after {
    width: 100%;
}

.pagina-eventos .menu-links li a.activo {
    min-width: 115px;
    padding: 10px 20px;

    color: #ffffff;
    background: #9c7a47;

    border: 2px solid var(--eventos-dorado-claro);
    border-radius: 25px;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);

    font-weight: 400;
    text-shadow: none;
}

.pagina-eventos .menu-links li a.activo::after {
    display: none;
}


/* =========================================================
   LOGO Y LOGIN
========================================================= */

.pagina-eventos .menu-links .home-icon {
    width: 115px;
    flex-shrink: 0;
}

.pagina-eventos .menu-links .home-icon a,
.pagina-eventos .menu-links .login-icon a {
    min-width: auto;
    padding: 0;
}

.pagina-eventos .menu-links .home-icon a::after,
.pagina-eventos .menu-links .login-icon a::after {
    display: none;
}

.pagina-eventos .menu-links .home-icon img {
    display: block;

    width: 100px;
    height: 100px;

    object-fit: contain;
    border-radius: 12px;

    transition:
        padding 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease;
}

.pagina-eventos .menu-links .home-icon img:hover,
.pagina-eventos .menu-links .login-icon img:hover {
    padding: 6px;
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.pagina-eventos .menu-links .login-icon {
    width: 55px;
    flex-shrink: 0;
}

.pagina-eventos .menu-links .login-icon img {
    display: block;

    width: 40px;
    height: 40px;

    object-fit: contain;
    border-radius: 10px;

    transition:
        padding 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease;
}


/* =========================================================
   PANTALLA PRINCIPAL
========================================================= */

.eventos-pantalla {
    position: relative;

    width: 100%;
    min-height: calc(100svh - 116px);

    padding:
        clamp(24px, 4vh, 46px)
        30px
        clamp(56px, 7vh, 82px);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   PRESENTACIÓN
========================================================= */

.eventos-intro {
    width: min(1050px, 100%);
    margin: 0 auto clamp(28px, 4vh, 42px);

    text-align: center;
}

.eventos-etiqueta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 15px;
    padding: 9px 17px;

    color: #ffd09e;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;

    background: rgba(0, 0, 0, 0.42);

    border: 1px solid rgba(255, 179, 109, 0.85);
    border-radius: 999px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.eventos-intro h1 {
    margin: 0 0 16px;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 6vw, 70px);
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;

    text-shadow:
        0 4px 14px rgba(0, 0, 0, 0.75),
        0 1px 2px rgba(0, 0, 0, 0.85);
}

.eventos-intro p {
    width: min(850px, 100%);

    margin: 0 auto;
    padding: 18px 25px;

    color: #ffffff;

    font-size: 17px;
    line-height: 1.75;

    text-align: center;

    background: rgba(59, 36, 23, 0.45);

    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 18px;

    box-shadow: 0 10px 28px rgba(38, 20, 10, 0.28);

    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.72),
        0 1px 2px rgba(0, 0, 0, 0.82);

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}


/* =========================================================
   GRID
========================================================= */

.eventos-section {
    width: min(1480px, 100%);
    margin: 0 auto;
}

.eventos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;

    gap: clamp(28px, 3vw, 44px);
}


/* =========================================================
   TARJETAS
========================================================= */

.evento-card {
    position: relative;

    min-width: 0;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    background: rgba(255, 255, 255, 0.94);

    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 22px;

    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.32),
        0 3px 9px rgba(0, 0, 0, 0.18);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition:
        transform 0.32s ease,
        box-shadow 0.32s ease;
}

.evento-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 24px 55px rgba(0, 0, 0, 0.45),
        0 5px 13px rgba(0, 0, 0, 0.22);
}


/* =========================================================
   IMAGEN Y ESTADO
========================================================= */

.evento-imagen-contenedor {
    position: relative;

    width: 100%;
    height: 245px;

    overflow: hidden;
    background: #e9ded4;
}

.evento-img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.55s ease;
}

.evento-card:hover .evento-img {
    transform: scale(1.06);
}

.evento-sin-imagen {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;

    color: #7c4c25;

    font-size: 18px;
    font-weight: 700;
    text-align: center;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.72),
            rgba(233, 222, 212, 0.90)
        );
}

.evento-imagen-sombra {
    position: absolute;
    inset: 0;

    pointer-events: none;

    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.02) 28%,
        rgba(0, 0, 0, 0.72) 100%
    );
}

.evento-estado {
    position: absolute;
    left: 18px;
    bottom: 17px;
    z-index: 2;

    max-width: calc(100% - 36px);
    padding: 8px 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    color: #ffffff;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    line-height: 1.2;
    text-transform: uppercase;

    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.evento-estado-proximo {
    background: rgba(113, 52, 125, 0.84);
}

.evento-estado-curso {
    background: rgba(156, 122, 71, 0.88);
}

.evento-estado-pasado {
    background: rgba(58, 35, 26, 0.82);
}


/* =========================================================
   CONTENIDO DE TARJETA
========================================================= */

.evento-contenido {
    flex: 1;

    display: flex;
    flex-direction: column;

    min-height: 325px;
    padding: 25px;

    text-align: center;
}

.evento-contenido h2 {
    margin: 0 0 15px;

    color: #6f4027;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
}

.evento-datos {
    display: grid;
    gap: 8px;

    margin-bottom: 15px;
}

.evento-dato {
    margin: 0;

    color: #5e514a;

    font-size: 14px;
    line-height: 1.55;
    text-align: left;

    overflow-wrap: break-word;
}

.evento-descripcion {
    flex: 1;

    margin: 0 0 23px;

    color: #5e514a;

    font-size: 15px;
    line-height: 1.7;

    text-align: justify;
    text-align-last: left;

    white-space: normal;

    hyphens: auto;
    -webkit-hyphens: auto;

    overflow-wrap: break-word;
    word-break: normal;
}


/* =========================================================
   BOTONES DE TARJETA
========================================================= */

.evento-botones {
    margin-top: auto;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.btn-evento {
    min-height: 46px;
    padding: 12px 15px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;

    border: none;
    border-radius: 13px;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.btn-ver {
    grid-column: 1 / -1;

    background: linear-gradient(
        135deg,
        var(--eventos-morado) 0%,
        var(--eventos-cafe) 54%,
        var(--eventos-cafe-oscuro) 100%
    );

    box-shadow: 0 8px 19px rgba(81, 55, 45, 0.28);
}

.btn-ver:hover {
    color: #ffffff;

    background: linear-gradient(
        135deg,
        var(--eventos-rosa) 0%,
        var(--eventos-morado) 100%
    );

    transform: translateY(-2px);

    box-shadow: 0 12px 26px rgba(81, 55, 45, 0.38);
}

.btn-llamar {
    background: linear-gradient(
        135deg,
        var(--eventos-morado),
        var(--eventos-cafe)
    );
}

.btn-whatsapp {
    background: linear-gradient(
        135deg,
        var(--eventos-cafe),
        var(--eventos-cafe-oscuro)
    );
}

.btn-llamar:hover,
.btn-whatsapp:hover {
    color: #ffffff;

    background: linear-gradient(
        135deg,
        var(--eventos-rosa),
        var(--eventos-morado)
    );

    transform: translateY(-2px);

    box-shadow: 0 10px 22px rgba(50, 30, 18, 0.30);
}


/* =========================================================
   MENSAJE VACÍO
========================================================= */

.mensaje-vacio-eventos {
    width: min(900px, 100%);

    margin: 30px auto;
    padding: 70px 25px;

    text-align: center;

    background: rgba(255, 255, 255, 0.90);

    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 24px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.28);
}

.mensaje-vacio-eventos-icono {
    margin-bottom: 15px;
    font-size: 50px;
}

.mensaje-vacio-eventos h2 {
    margin-bottom: 10px;

    color: #4b332a;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
}

.mensaje-vacio-eventos p {
    color: #756158;
    font-size: 16px;
}


/* =========================================================
   INDICADOR HACIA EL FOOTER
========================================================= */

.eventos-desplazar {
    position: absolute;
    left: 50%;
    bottom: 12px;

    transform: translateX(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;

    color: rgba(255, 255, 255, 0.92);

    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.50);

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.eventos-desplazar:hover {
    color: #ffffff;
    transform: translateX(-50%) translateY(2px);
}

.eventos-flecha {
    font-size: 27px;
    line-height: 0.8;

    animation: eventosFlecha 1.7s infinite ease-in-out;
}

@keyframes eventosFlecha {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}


/* =========================================================
   DETALLE DEL EVENTO
========================================================= */

.detalle-evento-main {
    width: 100%;
    padding: 25px 25px 80px;
}

.detalle-evento-encabezado {
    width: min(1200px, 100%);
    margin: 0 auto 20px;
}

.detalle-evento-volver {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 12px 20px;

    color: #ffffff;

    font-size: 15px;
    font-weight: 700;
    text-decoration: none;

    background: rgba(0, 0, 0, 0.48);

    border: 2px solid var(--eventos-dorado);
    border-radius: 12px;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    transition:
        transform 0.3s ease,
        color 0.3s ease,
        background 0.3s ease;
}

.detalle-evento-volver:hover {
    color: #2c211d;
    background: var(--eventos-dorado);
    transform: translateX(-5px);
}

.detalle-evento-panel {
    width: min(1200px, 100%);

    margin: 0 auto;
    overflow: hidden;

    background: rgba(255, 250, 245, 0.96);

    border: 1px solid rgba(255, 255, 255, 0.70);
    border-radius: 26px;

    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/* =========================================================
   HERO DEL DETALLE
========================================================= */

.detalle-evento-hero {
    position: relative;

    width: 100%;
    height: 480px;

    overflow: hidden;
    background: #d9ccc1;
}

.detalle-evento-imagen-click {
    width: 100%;
    height: 100%;
    padding: 0;

    display: block;

    background: transparent;
    border: none;

    cursor: zoom-in;
}

.detalle-evento-imagen {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.55s ease;
}

.detalle-evento-imagen-click:hover .detalle-evento-imagen {
    transform: scale(1.025);
}

.detalle-evento-sin-imagen {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #7c4c25;

    font-size: 20px;
    font-weight: 700;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.75),
            rgba(217, 204, 193, 0.95)
        );
}

.detalle-evento-sombra {
    position: absolute;
    inset: 0;
    z-index: 1;

    pointer-events: none;

    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.04) 25%,
        rgba(22, 13, 10, 0.90) 100%
    );
}

.detalle-evento-titulo {
    position: absolute;
    left: 42px;
    right: 42px;
    bottom: 35px;
    z-index: 2;

    color: #ffffff;
    pointer-events: none;
}

.detalle-evento-titulo .evento-estado {
    position: static;

    width: fit-content;
    max-width: 100%;

    margin-bottom: 11px;
}

.detalle-evento-titulo h1 {
    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;

    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.75);
}


/* =========================================================
   CONTENIDO DEL DETALLE
========================================================= */

.detalle-evento-contenido {
    padding: 36px 40px 44px;
}

.detalle-evento-datos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;

    margin-bottom: 25px;
}

.detalle-evento-dato {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 15px;

    min-width: 0;
    padding: 20px;

    background: rgba(255, 255, 255, 0.78);

    border: 1px solid rgba(114, 70, 38, 0.11);
    border-radius: 18px;

    box-shadow: 0 7px 22px rgba(76, 43, 21, 0.08);
}

.detalle-evento-icono {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;

    background: rgba(216, 160, 116, 0.22);
    border-radius: 14px;
}

.detalle-evento-dato h2 {
    margin: 2px 0 7px;

    color: #7c4c25;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
}

.detalle-evento-dato p {
    color: #5d5049;

    font-size: 15px;
    line-height: 1.65;

    overflow-wrap: break-word;
}

.detalle-evento-descripcion {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;

    padding: 22px;

    background: rgba(255, 255, 255, 0.78);

    border: 1px solid rgba(114, 70, 38, 0.11);
    border-radius: 18px;

    box-shadow: 0 7px 22px rgba(76, 43, 21, 0.08);
}

.detalle-evento-descripcion h2 {
    margin: 2px 0 10px;

    color: #7c4c25;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
}

.detalle-evento-descripcion p {
    width: 100%;

    color: #5d5049;

    font-size: 15px;
    line-height: 1.78;

    text-align: justify;
    text-align-last: left;

    white-space: normal;

    hyphens: auto;
    -webkit-hyphens: auto;

    overflow-wrap: break-word;
    word-break: normal;
}


/* =========================================================
   ACCIONES DEL DETALLE
========================================================= */

.detalle-evento-acciones {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 35px;
}

.detalle-evento-accion {
    min-width: 185px;
    padding: 14px 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    border: none;
    border-radius: 13px;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.detalle-evento-accion-volver {
    background: linear-gradient(
        135deg,
        var(--eventos-cafe),
        var(--eventos-cafe-oscuro)
    );
}

.detalle-evento-accion-imagen {
    background: linear-gradient(
        135deg,
        var(--eventos-dorado),
        #d97a45
    );
}

.detalle-evento-accion-llamar {
    background: linear-gradient(
        135deg,
        var(--eventos-morado),
        var(--eventos-cafe)
    );
}

.detalle-evento-accion-whatsapp {
    background: linear-gradient(
        135deg,
        var(--eventos-cafe),
        var(--eventos-cafe-oscuro)
    );
}

.detalle-evento-accion-facebook {
    background: linear-gradient(
        135deg,
        var(--eventos-morado-oscuro),
        var(--eventos-morado)
    );
}

.detalle-evento-accion:hover {
    color: #ffffff;

    background: linear-gradient(
        135deg,
        var(--eventos-rosa),
        var(--eventos-morado)
    );

    transform: translateY(-3px);

    box-shadow: 0 12px 25px rgba(50, 30, 18, 0.31);
}


/* =========================================================
   VISOR DE IMAGEN
========================================================= */

.visor-imagen-evento {
    position: fixed;
    inset: 0;
    z-index: 30000;

    padding: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    background: rgba(10, 7, 5, 0.94);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.visor-imagen-evento.activo {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.visor-imagen-contenido {
    width: min(1180px, 96vw);
    max-height: 92vh;

    display: flex;
    flex-direction: column;
    align-items: center;

    transform: scale(0.94);
    transition: transform 0.3s ease;
}

.visor-imagen-evento.activo .visor-imagen-contenido {
    transform: scale(1);
}

.visor-imagen-img {
    max-width: 100%;
    max-height: calc(92vh - 80px);

    display: block;
    object-fit: contain;

    border: 3px solid var(--eventos-dorado);
    border-radius: 16px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.60);
}

.visor-imagen-cerrar {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 2;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    font-size: 24px;

    background: rgba(35, 23, 19, 0.78);

    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.visor-imagen-cerrar:hover {
    background: var(--eventos-morado);
    transform: rotate(90deg);
}

.visor-imagen-pie {
    width: 100%;
    margin-top: 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    color: #ffffff;

    font-size: 14px;
}

.visor-imagen-pie strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.visor-imagen-pie a {
    flex-shrink: 0;

    color: #ffd09d;
    font-weight: 700;
    text-decoration: none;
}


/* =========================================================
   FOOTER
========================================================= */

.pagina-eventos .footer-tepos-compacto {
    margin-top: 0;
}


/* =========================================================
   TABLETA
========================================================= */

@media (max-width: 1100px) {

    .pagina-eventos .menu-container {
        padding: 0 14px;
    }

    .pagina-eventos .menu-links {
        gap: 7px;
    }

    .pagina-eventos .menu-links li a {
        min-width: 95px;
        padding: 8px 7px;

        font-size: 14px;
    }

    .pagina-eventos .menu-links li a.activo {
        min-width: 100px;
        padding: 9px 14px;
    }

    .pagina-eventos .menu-links .home-icon {
        width: 95px;
    }

    .pagina-eventos .menu-links .home-icon img {
        width: 82px;
        height: 82px;
    }

    .eventos-pantalla {
        justify-content: flex-start;
    }

    .eventos-grid {
        width: min(920px, 100%);
        margin: 0 auto;

        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .evento-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;

        width: min(440px, 100%);
        justify-self: center;
    }
}


/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 768px) {

    body.pagina-eventos {
        background-attachment: scroll;
    }

    .pagina-eventos .menu-superior {
        position: sticky;
        top: 0;

        width: 100%;
        min-height: 76px;

        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.76),
            rgba(0, 0, 0, 0.32)
        );
    }

    .pagina-eventos .menu-container {
        width: 100%;
        max-width: 100%;

        margin: 0;
        padding: 0;
    }

    .pagina-eventos .menu-superior::before,
    .pagina-eventos .menu-superior::after {
        content: "";

        position: absolute;
        top: 0;
        z-index: 25;

        width: 55px;
        height: 100%;

        pointer-events: none;
    }

    .pagina-eventos .menu-superior::before {
        left: 0;

        background: linear-gradient(
            to left,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 0.75)
        );
    }

    .pagina-eventos .menu-superior::after {
        right: 0;

        background: linear-gradient(
            to right,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 0.75)
        );
    }

    .pagina-eventos .menu-links {
        width: 100%;

        margin: 0;
        padding: 8px 18px;

        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
        gap: 16px;

        overflow-x: auto;
        overflow-y: hidden;

        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .pagina-eventos .menu-links::-webkit-scrollbar {
        display: none;
    }

    .pagina-eventos .menu-links li {
        width: auto;
        flex-shrink: 0;
    }

    .pagina-eventos .menu-links li a,
    .pagina-eventos .menu-links li a.activo {
        width: auto;
        min-width: auto;

        padding: 8px 12px;

        font-size: 14px;
        white-space: nowrap;
    }

    .pagina-eventos .menu-links .home-icon,
    .pagina-eventos .menu-links .login-icon {
        width: auto;
    }

    .pagina-eventos .menu-links .home-icon img {
        width: 65px;
        height: 65px;
    }

    .pagina-eventos .menu-links .login-icon img {
        width: 35px;
        height: 35px;
    }

    .eventos-pantalla {
        min-height: calc(100svh - 76px);

        padding: 26px 15px 62px;

        justify-content: flex-start;
    }

    .eventos-intro {
        margin-bottom: 24px;
    }

    .eventos-etiqueta {
        padding: 7px 13px;
        font-size: 10px;
    }

    .eventos-intro h1 {
        font-size: clamp(35px, 12vw, 50px);
    }

    .eventos-intro p {
        padding: 16px 18px;

        font-size: 15px;
        line-height: 1.65;

        text-align: justify;
        text-align-last: left;
    }

    .eventos-grid {
        width: min(500px, 100%);

        grid-template-columns: 1fr;
        gap: 22px;
    }

    .evento-card,
    .evento-card:last-child:nth-child(odd) {
        grid-column: auto;

        width: 100%;

        margin: 0 auto;

        border-radius: 19px;
    }

    .evento-imagen-contenedor {
        height: 230px;
    }

    .evento-contenido {
        min-height: auto;
        padding: 22px;
    }

    .evento-contenido h2 {
        font-size: 24px;
    }

    .evento-dato,
    .evento-descripcion {
        font-size: 14px;
    }

    .evento-botones {
        grid-template-columns: 1fr;
    }

    .btn-ver {
        grid-column: auto;
    }

    .eventos-desplazar {
        bottom: 9px;
    }

    .eventos-desplazar span:first-child {
        display: none;
    }

    .detalle-evento-main {
        padding: 15px 12px 55px;
    }

    .detalle-evento-encabezado {
        margin-bottom: 15px;
    }

    .detalle-evento-volver {
        padding: 10px 14px;
        font-size: 13px;
    }

    .detalle-evento-panel {
        border-radius: 21px;
    }

    .detalle-evento-hero {
        height: 340px;
    }

    .detalle-evento-titulo {
        left: 22px;
        right: 22px;
        bottom: 23px;
    }

    .detalle-evento-titulo h1 {
        font-size: 34px;
    }

    .detalle-evento-contenido {
        padding: 27px 20px 32px;
    }

    .detalle-evento-datos {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .detalle-evento-dato {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 13px;

        padding: 18px;
    }

    .detalle-evento-icono {
        width: 43px;
        height: 43px;

        font-size: 19px;
    }

    .detalle-evento-dato h2,
    .detalle-evento-descripcion h2 {
        font-size: 21px;
    }

    .detalle-evento-dato p,
    .detalle-evento-descripcion p {
        font-size: 14px;
    }

    .detalle-evento-descripcion {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 13px;

        padding: 18px;
    }

    .detalle-evento-acciones {
        flex-direction: column;
        width: 100%;
    }

    .detalle-evento-accion {
        width: 100%;
        min-width: 0;
    }

    .visor-imagen-evento {
        padding: 12px;
    }

    .visor-imagen-cerrar {
        top: 10px;
        right: 12px;

        width: 40px;
        height: 40px;
    }

    .visor-imagen-img {
        max-height: calc(90vh - 80px);
    }

    .visor-imagen-pie {
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;

        font-size: 12px;
    }
}


/* =========================================================
   CELULARES PEQUEÑOS
========================================================= */

@media (max-width: 480px) {

    .pagina-eventos .menu-links {
        gap: 10px;
        padding: 7px 10px;
    }

    .pagina-eventos .menu-links li a,
    .pagina-eventos .menu-links li a.activo {
        padding: 7px 10px;
        font-size: 12px;
    }

    .pagina-eventos .menu-links .home-icon img {
        width: 55px;
        height: 55px;
    }

    .pagina-eventos .menu-links .login-icon img {
        width: 32px;
        height: 32px;
    }

    .eventos-pantalla {
        min-height: calc(100svh - 66px);

        padding: 22px 12px 56px;
    }

    .eventos-intro h1 {
        font-size: 37px;
    }

    .eventos-intro p {
        padding: 14px 15px;
        font-size: 14px;
    }

    .evento-imagen-contenedor {
        height: 215px;
    }

    .evento-contenido {
        padding: 19px;
    }

    .evento-contenido h2 {
        font-size: 22px;
    }

    .evento-dato,
    .evento-descripcion {
        font-size: 13px;
    }

    .evento-estado {
        left: 14px;
        bottom: 14px;

        padding: 7px 11px;

        font-size: 10px;
    }

    .btn-evento {
        padding: 12px 15px;
        font-size: 13px;
    }

    .detalle-evento-hero {
        height: 285px;
    }

    .detalle-evento-titulo h1 {
        font-size: 29px;
    }

    .detalle-evento-contenido {
        padding: 24px 15px 28px;
    }

    .detalle-evento-dato,
    .detalle-evento-descripcion {
        padding: 15px;
    }
}


/* =========================================================
   ACCESIBILIDAD Y REDUCCIÓN DE MOVIMIENTO
========================================================= */

.pagina-eventos a:focus-visible,
.pagina-eventos button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .pagina-eventos *,
    .pagina-eventos *::before,
    .pagina-eventos *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =========================================================
   VISOR DEL ANUNCIO: IMAGEN COMPLETA SIN RECORTAR
   Mantener este bloque al final del archivo.
========================================================= */

body.pagina-eventos.visor-evento-abierto {
    overflow: hidden;
}

.pagina-eventos .visor-imagen-evento {
    position: fixed;
    inset: 0;
    z-index: 999999;

    width: 100%;
    height: 100dvh;

    padding:
        max(18px, env(safe-area-inset-top))
        max(18px, env(safe-area-inset-right))
        max(18px, env(safe-area-inset-bottom))
        max(18px, env(safe-area-inset-left));

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: auto;
    overscroll-behavior: contain;

    background: rgba(10, 7, 5, 0.96);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.pagina-eventos .visor-imagen-contenido {
    width: min(1280px, 100%);
    height: auto;
    max-height: calc(100dvh - 36px);

    margin: auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    overflow: visible;
}

.pagina-eventos .visor-imagen-img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: calc(100dvh - 105px);

    object-fit: contain;
    object-position: center;

    background: #120d0a;

    border: 3px solid var(--eventos-dorado);
    border-radius: 16px;

    box-shadow:
        0 22px 70px rgba(0, 0, 0, 0.72),
        0 0 0 1px rgba(255, 255, 255, 0.10);
}

.pagina-eventos .visor-imagen-pie {
    width: min(100%, 1180px);

    margin-top: 12px;
    padding: 0 4px;

    flex-shrink: 0;
}

.pagina-eventos .visor-imagen-cerrar {
    position: fixed;
    top: max(14px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    z-index: 1000000;
}

@media (max-width: 768px) {

    .pagina-eventos .visor-imagen-evento {
        padding:
            max(12px, env(safe-area-inset-top))
            max(10px, env(safe-area-inset-right))
            max(12px, env(safe-area-inset-bottom))
            max(10px, env(safe-area-inset-left));
    }

    .pagina-eventos .visor-imagen-contenido {
        width: 100%;
        max-height: calc(100dvh - 24px);
    }

    .pagina-eventos .visor-imagen-img {
        max-width: 100%;
        max-height: calc(100dvh - 105px);

        border-width: 2px;
        border-radius: 12px;
    }

    .pagina-eventos .visor-imagen-pie {
        width: 100%;

        margin-top: 9px;

        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;

        text-align: center;
    }

    .pagina-eventos .visor-imagen-pie strong {
        width: 100%;

        white-space: normal;
        overflow-wrap: break-word;
    }
}

@media (max-width: 480px) {

    .pagina-eventos .visor-imagen-img {
        max-height: calc(100dvh - 95px);

        border-radius: 10px;
    }

    .pagina-eventos .visor-imagen-cerrar {
        width: 42px;
        height: 42px;

        top: max(9px, env(safe-area-inset-top));
        right: max(9px, env(safe-area-inset-right));
    }
}

/* =========================================================
   CORRECCIÓN DEFINITIVA:
   MOSTRAR COMPLETO EL ANUNCIO EN EL DETALLE Y EN EL VISOR
   Mantener este bloque al final del archivo.
========================================================= */

/*
 * La página de detalle anteriormente usaba una altura fija y
 * object-fit: cover. Eso recortaba la parte superior, inferior
 * o los laterales del anuncio.
 */
body.pagina-eventos .detalle-evento-hero {
    position: relative;

    width: 100%;
    height: auto !important;
    min-height: 0 !important;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #18110e;
}

/* Zona reservada exclusivamente para mostrar el anuncio completo. */
body.pagina-eventos .detalle-evento-imagen-click {
    position: relative;

    width: 100%;
    height: min(78vh, 900px) !important;
    min-height: 460px;

    padding: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            rgba(255, 255, 255, 0.08),
            rgba(0, 0, 0, 0.30)
        ),
        #18110e;

    border: 0;

    cursor: zoom-in;
}

/* La imagen ya no se recorta. */
body.pagina-eventos .detalle-evento-imagen {
    display: block;

    width: auto !important;
    height: auto !important;

    max-width: 100% !important;
    max-height: 100% !important;

    margin: auto;

    object-fit: contain !important;
    object-position: center !important;

    background: #18110e;

    border-radius: 14px;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.48),
        0 0 0 1px rgba(255, 255, 255, 0.10);

    transform: none !important;
}

/*
 * Se elimina la sombra superpuesta porque oscurecía y tapaba
 * parte del texto contenido dentro del anuncio.
 */
body.pagina-eventos .detalle-evento-sombra {
    display: none !important;
}

/*
 * El nombre y el estado del evento pasan debajo de la imagen.
 * De esta forma nunca cubren la información del anuncio.
 */
body.pagina-eventos .detalle-evento-titulo {
    position: relative !important;

    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 3;

    width: 100%;

    padding: 27px 40px 31px;

    color: #ffffff;

    pointer-events: auto;

    background: linear-gradient(
        135deg,
        var(--eventos-cafe-oscuro) 0%,
        var(--eventos-cafe) 55%,
        var(--eventos-morado-oscuro) 100%
    );

    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

body.pagina-eventos .detalle-evento-titulo .evento-estado {
    position: static !important;

    width: fit-content;
    max-width: 100%;

    margin: 0 0 11px;
}

body.pagina-eventos .detalle-evento-titulo h1 {
    margin: 0;

    color: #ffffff;

    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.52);
}

/* También corrige el contenedor cuando no existe una imagen. */
body.pagina-eventos .detalle-evento-sin-imagen {
    min-height: 460px;
}


/* =========================================================
   VISOR: IMAGEN COMPLETA EN PANTALLA
========================================================= */

body.pagina-eventos .visor-imagen-evento {
    overflow: auto !important;
}

body.pagina-eventos .visor-imagen-contenido {
    width: min(1320px, 100%) !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 32px) !important;

    margin: auto !important;

    overflow: visible !important;
}

body.pagina-eventos .visor-imagen-img {
    display: block !important;

    width: auto !important;
    height: auto !important;

    max-width: calc(100vw - 42px) !important;
    max-height: calc(100dvh - 108px) !important;

    margin: auto !important;

    object-fit: contain !important;
    object-position: center !important;

    transform: none !important;
}


/* =========================================================
   TABLETA
========================================================= */

@media (max-width: 900px) {

    body.pagina-eventos .detalle-evento-imagen-click {
        height: min(72vh, 760px) !important;
        min-height: 380px;

        padding: 14px;
    }

    body.pagina-eventos .detalle-evento-titulo {
        padding: 23px 28px 27px;
    }

    body.pagina-eventos .detalle-evento-sin-imagen {
        min-height: 380px;
    }
}


/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 768px) {

    body.pagina-eventos .detalle-evento-imagen-click {
        height: min(68vh, 650px) !important;
        min-height: 300px;

        padding: 10px;
    }

    body.pagina-eventos .detalle-evento-imagen {
        border-radius: 10px;
    }

    body.pagina-eventos .detalle-evento-titulo {
        padding: 20px 21px 24px;
    }

    body.pagina-eventos .detalle-evento-titulo h1 {
        font-size: clamp(27px, 8vw, 36px);
    }

    body.pagina-eventos .detalle-evento-sin-imagen {
        min-height: 300px;
    }

    body.pagina-eventos .visor-imagen-img {
        max-width: calc(100vw - 20px) !important;
        max-height: calc(100dvh - 100px) !important;
    }
}


/* =========================================================
   CELULARES PEQUEÑOS
========================================================= */

@media (max-width: 480px) {

    body.pagina-eventos .detalle-evento-imagen-click {
        height: min(64vh, 570px) !important;
        min-height: 260px;

        padding: 8px;
    }

    body.pagina-eventos .detalle-evento-titulo {
        padding: 17px 16px 21px;
    }

    body.pagina-eventos .detalle-evento-titulo h1 {
        font-size: 27px;
    }

    body.pagina-eventos .detalle-evento-sin-imagen {
        min-height: 260px;
    }
}
