/* =========================================================
   Goldwing España - OS Events Booking visual override
   Ubicación recomendada: /media/com_eventbooking/assets/css/custom.css
   ========================================================= */

:root {
    --gwae-navy: #10213d;
    --gwae-navy-2: #162b4d;
    --gwae-gold: #f5a800;
    --gwae-gold-2: #ffc247;
    --gwae-text: #152238;
    --gwae-muted: #6d7480;
    --gwae-soft: #f4f6fa;
    --gwae-border: rgba(16, 33, 61, .10);
    --gwae-shadow: 0 24px 60px rgba(16, 33, 61, .13);
    --gwae-radius: 20px;
}

/* Contenedores generales */
.eb-container.gwae-events-page,
.eb-container.gwae-event-detail,
#eb-event-page.gwae-event-detail {
    max-width: 1180px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* =========================================================
   LISTADO Y MÓDULO DE EVENTOS
   ========================================================= */

.gwae-events-page {
    padding: 20px 0 70px;
}

.gwae-events-page__header {
    text-align: center;
    margin: 0 auto 34px;
    max-width: 780px;
}

.gwae-events-page__title,
.gwae-events-page .eb-page-heading {
    color: var(--gwae-navy);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    font-weight: 900;
    margin: 0 0 10px;
    letter-spacing: -.03em;
}

.gwae-events-page__header p,
.gwae-events-page__intro {
    color: var(--gwae-muted);
    font-size: 17px;
    line-height: 1.7;
}

.gwae-events-page__filters {
    max-width: 980px;
    margin: 0 auto 28px;
    background: #fff;
    border: 1px solid var(--gwae-border);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(16, 33, 61, .08);
    padding: 18px;
}

.gwae-events-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(290px, 360px));
    gap: 32px;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.gwae-events-grid__item,
.eb-events-grid-items > .gwae-events-grid__item {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gwae-events-module {
    margin-top: 10px;
}

.gwae-events-module.gwae-events-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 360px));
}

/* Neutraliza anchuras heredadas de Bootstrap en los wrappers del módulo/componente */
.eb-events-grid-items .span1,
.eb-events-grid-items .span2,
.eb-events-grid-items .span3,
.eb-events-grid-items .span4,
.eb-events-grid-items .span5,
.eb-events-grid-items .span6,
.eb-events-grid-items .span7,
.eb-events-grid-items .span8,
.eb-events-grid-items .span9,
.eb-events-grid-items .span10,
.eb-events-grid-items .span11,
.eb-events-grid-items .span12,
.eb-events-grid-items .col,
.eb-events-grid-items [class*="col-"] {
    width: auto;
    max-width: none;
    margin-left: 0;
}

.gwae-event-card,
.eb-event-item-grid-default-layout.gwae-event-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--gwae-border);
    border-radius: var(--gwae-radius);
    box-shadow: var(--gwae-shadow);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.gwae-event-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 168, 0, .45);
    box-shadow: 0 30px 70px rgba(16, 33, 61, .18);
}

.gwae-event-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gwae-navy), #0b1427);
}

.gwae-event-card__media img,
.gwae-event-card .eb-event-thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.gwae-event-card:hover .gwae-event-card__media img {
    transform: scale(1.045);
}

.gwae-event-card__media::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46%;
    background: linear-gradient(180deg, rgba(16, 33, 61, 0), rgba(16, 33, 61, .72));
    pointer-events: none;
}

.gwae-event-card__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--gwae-gold);
    font-size: 34px;
    font-weight: 900;
    letter-spacing: .08em;
}

.gwae-event-card__category,
.gwae-event-card .eb-event-main-category {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 32px);
    padding: 8px 13px;
    border-radius: 999px;
    background: var(--gwae-gold) !important;
    color: var(--gwae-navy) !important;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .18);
}

.gwae-event-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 23px 24px 24px;
}

.gwae-event-card__date,
.eb-event-date-time.gwae-event-card__date {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
    color: var(--gwae-gold);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.gwae-event-card__date span + span::before {
    content: "—";
    margin-right: 7px;
    color: rgba(245, 168, 0, .65);
}

.gwae-event-card__title {
    margin: 0 0 12px;
    font-size: 23px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -.02em;
}

.gwae-event-card__title a,
.gwae-event-card .eb-event-title {
    color: var(--gwae-navy) !important;
    text-decoration: none !important;
}

.gwae-event-card__title a:hover,
.gwae-event-card .eb-event-title:hover {
    color: var(--gwae-gold) !important;
}

.gwae-event-card__location {
    margin: 0 0 14px;
    color: var(--gwae-muted);
    font-size: 14px;
    line-height: 1.45;
}

.gwae-event-card__location a {
    color: var(--gwae-muted);
    text-decoration: none;
}

.gwae-event-card__price,
.gwae-event-card .eb-event-price {
    display: block !important;
    width: auto !important;
    margin: 0 0 16px !important;
    padding: 12px 14px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, var(--gwae-gold), var(--gwae-gold-2)) !important;
    color: var(--gwae-navy) !important;
    box-shadow: none !important;
    text-align: left !important;
    font-weight: 900 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.gwae-event-card__description,
.gwae-event-card .eb-event-short-description {
    color: var(--gwae-muted);
    font-size: 15px;
    line-height: 1.65;
    margin: 0 0 20px;
}

.gwae-event-card__actions {
    margin-top: auto !important;
    padding: 0 !important;
}

.gwae-event-card__actions ul,
.gwae-register-buttons ul,
.gwae-bottom-buttons ul {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.gwae-event-card__actions li,
.gwae-register-buttons li,
.gwae-bottom-buttons li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gwae-event-card__actions a,
.gwae-register-buttons a,
.gwae-bottom-buttons a,
.gwae-event-card__details,
#eb-event-page .eb-taskbar a.btn,
#eb-event-page .eb-taskbar .btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--gwae-navy) !important;
    color: #fff !important;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: .05em;
    text-decoration: none !important;
    box-shadow: 0 12px 25px rgba(16, 33, 61, .22);
}

.gwae-event-card__actions a:hover,
.gwae-register-buttons a:hover,
.gwae-bottom-buttons a:hover,
#eb-event-page .eb-taskbar a.btn:hover,
#eb-event-page .eb-taskbar .btn:hover {
    background: var(--gwae-gold) !important;
    color: var(--gwae-navy) !important;
}

/* =========================================================
   FICHA INTERIOR DEL EVENTO
   ========================================================= */

#eb-event-page.gwae-event-detail {
    padding: 26px 0 80px;
    color: var(--gwae-text);
}

.gwae-event-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
    padding: clamp(28px, 4vw, 48px);
    border-radius: 28px;
    background:
        radial-gradient(circle at 18% 18%, rgba(245, 168, 0, .24), transparent 30%),
        linear-gradient(135deg, #0c172b 0%, var(--gwae-navy) 52%, #20395f 100%);
    color: #fff;
    box-shadow: var(--gwae-shadow);
}

.gwae-event-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(255,255,255,.08), transparent 40%, rgba(245,168,0,.10));
    pointer-events: none;
}

.gwae-event-kicker {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.gwae-event-kicker span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    color: var(--gwae-gold-2);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.gwae-event-title,
#eb-event-page .gwae-event-title.eb-page-heading {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 0 24px;
    color: #fff;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -.045em;
}

.gwae-print-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: 10px;
    vertical-align: middle;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    text-decoration: none;
}

.gwae-event-hero-meta {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.gwae-event-hero-meta div {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(5px);
}

.gwae-event-hero-meta strong,
.gwae-summary-list span {
    display: block;
    margin-bottom: 5px;
    color: var(--gwae-gold-2);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.gwae-event-hero-meta span {
    color: #fff;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 800;
}

.gwae-event-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
}

.gwae-event-main,
.gwae-summary-card,
.gwae-properties-card,
.gwae-event-extra-card {
    background: #fff;
    border: 1px solid var(--gwae-border);
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(16, 33, 61, .10);
}

.gwae-event-main {
    overflow: hidden;
}

.gwae-share-wrap {
    padding: 20px 24px 0;
}

.gwae-event-poster {
    margin: 0;
    padding: clamp(18px, 2.5vw, 28px);
    background: var(--gwae-soft);
    text-align: center;
}

.gwae-event-poster img {
    width: auto;
    max-width: min(100%, 640px);
    max-height: 780px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(16, 33, 61, .20);
}

.gwae-event-content {
    padding: clamp(28px, 4vw, 46px);
}

.gwae-event-content > *:first-child {
    margin-top: 0;
}

.gwae-event-content h2,
.gwae-event-content h3,
.gwae-event-content h4,
#eb-event-page .eb-description h2,
#eb-event-page .eb-description h3 {
    color: var(--gwae-navy);
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.18;
}

.gwae-event-content h2 {
    margin: 34px 0 14px;
    padding-bottom: 11px;
    border-bottom: 3px solid var(--gwae-gold);
    font-size: clamp(25px, 3vw, 34px);
}

.gwae-event-content h3 {
    margin: 26px 0 12px;
    font-size: clamp(20px, 2.2vw, 25px);
}

.gwae-event-content p,
.gwae-event-content li {
    color: var(--gwae-muted);
    font-size: 17px;
    line-height: 1.8;
}

.gwae-event-content ul,
.gwae-event-content ol {
    margin: 0 0 22px 0;
    padding-left: 22px;
}

.gwae-event-content li::marker {
    color: var(--gwae-gold);
}

.gwae-event-content strong {
    color: var(--gwae-navy);
    font-weight: 900;
}

.gwae-event-content table,
.gwae-properties-card table {
    width: 100%;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--gwae-border);
    border-radius: 16px;
}

.gwae-event-content table td,
.gwae-event-content table th,
.gwae-properties-card table td,
.gwae-properties-card table th {
    padding: 13px 15px;
    border-color: rgba(16, 33, 61, .08) !important;
    font-size: 14px;
}

.gwae-event-sidebar {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 20px;
}

.gwae-summary-card,
.gwae-properties-card,
.gwae-event-extra-card {
    padding: 24px;
}

.gwae-summary-card {
    border-top: 6px solid var(--gwae-gold);
}

.gwae-summary-card h2,
.gwae-properties-card h2,
.gwae-event-extra-card h3 {
    margin: 0 0 18px;
    color: var(--gwae-navy);
    font-size: 22px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -.02em;
}

.gwae-summary-list {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.gwae-summary-list li {
    padding: 16px 0;
    border-bottom: 1px solid rgba(16, 33, 61, .08);
}

.gwae-summary-list li:first-child {
    padding-top: 0;
}

.gwae-summary-list strong {
    display: block;
    color: var(--gwae-navy);
    font-size: 15px;
    line-height: 1.45;
    font-weight: 850;
}

.gwae-properties-card #eb-event-properties-heading,
.gwae-properties-card h3 {
    display: none;
}

.gwae-properties-card table {
    margin: 0;
    box-shadow: none;
}

.gwae-bottom-buttons {
    margin-top: 24px !important;
}

.gwae-event-extra-card {
    margin-top: 28px;
}

/* Oculta duplicados visuales del layout antiguo cuando se cargan dentro de nuestros overrides */
.gwae-event-detail .eb-box-heading {
    display: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
    .gwae-event-layout {
        grid-template-columns: 1fr;
    }

    .gwae-event-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .eb-container.gwae-events-page,
    .eb-container.gwae-event-detail,
    #eb-event-page.gwae-event-detail {
        width: min(100% - 28px, 1180px);
    }

    .gwae-event-hero-meta {
        grid-template-columns: 1fr;
    }

    .gwae-event-sidebar {
        grid-template-columns: 1fr;
    }

    .gwae-events-grid,
    .gwae-events-module.gwae-events-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .gwae-event-card__media {
        aspect-ratio: 16 / 10;
    }

    .gwae-event-content,
    .gwae-summary-card,
    .gwae-properties-card,
    .gwae-event-extra-card {
        padding: 22px;
    }

    .gwae-event-title,
    #eb-event-page .gwae-event-title.eb-page-heading {
        font-size: clamp(32px, 10vw, 46px);
    }
}

@media (max-width: 540px) {
    .gwae-event-hero {
        border-radius: 20px;
        padding: 24px;
    }

    .gwae-event-card,
    .gwae-event-main,
    .gwae-summary-card,
    .gwae-properties-card,
    .gwae-event-extra-card {
        border-radius: 18px;
    }

    .gwae-event-card__body {
        padding: 20px;
    }

    .gwae-event-card__title {
        font-size: 21px;
    }

    .gwae-event-poster img {
        max-height: none;
        width: 100%;
    }
}

/* =========================================================
   AJUSTES V2 - Integración con tipografía de plantilla
   ========================================================= */

/* Fuerza a Events Booking a heredar la tipografía global de la plantilla,
   evitando que estilos propios del componente o del módulo cambien la fuente. */
#eb-event-page.gwae-event-detail,
.gwae-events-page,
.gwae-events-module,
.gwae-event-card,
.gwae-event-card *,
.gwae-event-detail *,
.gwae-events-page * {
    font-family: inherit !important;
}

/* Oculta botones de calendario Google/Yahoo/iCal en la ficha pública.
   El override PHP ya no los imprime, pero esta regla actúa como seguro
   si alguna configuración del componente los vuelve a cargar. */
#eb-event-page .eb-save-to-calendar-buttons,
#eb-event-page .eb-save-to-calendar-buttons *,
#eb-event-page .eb-save-to-calendar,
#eb-event-page .eb-calendar-buttons,
#eb-event-page a[href*="google.com/calendar"],
#eb-event-page a[href*="calendar.yahoo"],
#eb-event-page a[href*="task=event.download_ics"],
#eb-event-page a[href*="view=calendar"] {
    display: none !important;
}

/* Reajuste de pesos para que la ficha no parezca de otra plantilla. */
.gwae-event-title,
.gwae-event-card__title,
.gwae-summary-card h2,
.gwae-properties-card h2,
.gwae-event-content h2,
.gwae-event-content h3 {
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

.gwae-event-kicker span,
.gwae-event-hero-meta strong,
.gwae-summary-list span,
.gwae-event-card__category,
.gwae-event-card__date,
.gwae-event-card__details,
.gwae-register-buttons a,
.gwae-bottom-buttons a {
    font-weight: 700 !important;
}

/* Botonera más limpia en la ficha interior */
.gwae-register-buttons ul,
.gwae-bottom-buttons ul {
    align-items: center !important;
}

.gwae-register-buttons li,
.gwae-bottom-buttons li {
    display: inline-flex !important;
}

.gwae-register-buttons a,
.gwae-bottom-buttons a,
#eb-event-page .eb-taskbar a.btn,
#eb-event-page .eb-taskbar .btn {
    white-space: normal !important;
    text-align: center !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

/* Evita que el contenido de resumen reviente la columna lateral. */
.gwae-summary-list strong,
.gwae-event-hero-meta span {
    overflow-wrap: anywhere;
}

/* =========================================================
   AJUSTES V3 - Zona socios, eventos pasados y tarjetas limpias
   ========================================================= */

/* La plantilla manda: no usamos familias de fuente propias. */
#eb-event-page,
#eb-event-page *,
.gwae-events-page,
.gwae-events-page *,
.gwae-categories-page,
.gwae-categories-page *,
.gwae-events-module,
.gwae-events-module * {
    font-family: inherit !important;
}

/* Títulos más integrados con la plantilla y menos "cartel publicitario". */
.gwae-event-title,
#eb-event-page .gwae-event-title.eb-page-heading {
    font-size: clamp(30px, 3.7vw, 48px) !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

.gwae-event-card__title {
    font-size: 21px !important;
    line-height: 1.28 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

.gwae-events-page__title {
    font-size: clamp(28px, 3vw, 40px) !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

.gwae-event-content h2,
.gwae-event-content h3,
.gwae-summary-card h2,
.gwae-properties-card h2,
.gwae-event-extra-card h3 {
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

/* Botones de calendario: ocultación más estricta dentro de Events Booking. */
#eb-event-page.gwae-event-detail .eb-taskbar a[href*="calendar"],
#eb-event-page.gwae-event-detail .eb-taskbar a[href*="ical"],
#eb-event-page.gwae-event-detail .eb-taskbar a[href*="ICS"],
#eb-event-page.gwae-event-detail .eb-taskbar a[href*="yahoo"],
#eb-event-page.gwae-event-detail .eb-taskbar a[href*="google"],
#eb-event-page.gwae-event-detail .eb-save-calendar,
#eb-event-page.gwae-event-detail .eb-save-calendar-button,
#eb-event-page.gwae-event-detail .eb-save-calendar-buttons,
#eb-event-page.gwae-event-detail .eb-calendar-button,
#eb-event-page.gwae-event-detail .eb-calendar-buttons,
#eb-event-page.gwae-event-detail .eb-ics-export {
    display: none !important;
}

/* Grid real para categorías, categorías privadas/socios y subcategorías. */
.gwae-categories-page,
.gwae-category-events-page {
    width: min(1180px, calc(100% - 40px));
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 0 80px;
}

.gwae-categories-grid,
.gwae-events-page__categories #eb-categories,
.gwae-events-page__categories .eb-categories-grid-items {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    align-items: stretch;
}

.gwae-category-card,
.eb-category-item.gwae-category-card,
.gwae-events-page__categories .eb-category {
    display: block;
    min-height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.gwae-category-card__inner,
.gwae-events-page__categories .eb-category > .eb-box-heading,
.gwae-events-page__categories .eb-category > .eb-description {
    box-sizing: border-box;
}

.gwae-category-card__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 28px;
    border-radius: 20px;
    border: 1px solid rgba(16, 33, 61, .08);
    background: #fff;
    color: var(--gwae-text);
    text-decoration: none !important;
    box-shadow: 0 22px 55px rgba(16, 33, 61, .10);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.gwae-category-card__inner:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 168, 0, .55);
    box-shadow: 0 30px 70px rgba(16, 33, 61, .16);
    color: var(--gwae-text);
}

.gwae-category-card__media {
    display: block;
    margin: -28px -28px 22px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: var(--gwae-navy);
}

.gwae-category-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gwae-category-card__content {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.gwae-category-card__title {
    display: block;
    margin: 0 0 10px;
    color: var(--gwae-navy);
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
}

.gwae-category-card__badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 18px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--gwae-gold);
    color: var(--gwae-navy);
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
}

.gwae-category-card__description {
    display: block;
    margin: 0 0 22px;
    color: var(--gwae-muted);
    font-size: 15px;
    line-height: 1.7;
}

.gwae-category-card__cta {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    color: var(--gwae-gold);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.gwae-category-card__cta::after {
    content: "→";
    margin-left: 8px;
}

/* Fallback visual para categorías que sigan saliendo con el HTML original. */
.gwae-events-page__categories .eb-category {
    padding: 24px !important;
    border-radius: 18px !important;
    background: #fff !important;
    border: 1px solid rgba(16, 33, 61, .08) !important;
    box-shadow: 0 18px 45px rgba(16, 33, 61, .10) !important;
}

.gwae-events-page__categories .eb-category .eb-box-heading,
.gwae-events-page__categories .eb-category .eb-description {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.gwae-events-page__categories .eb-category-title,
.gwae-events-page__categories .eb-category-title a,
.gwae-events-page__categories .eb-category-title-link {
    color: var(--gwae-navy) !important;
    font-size: 21px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* Tarjetas de eventos en categoría/listado: más anchura y precio controlado. */
.gwae-category-events-page .gwae-events-grid,
.gwae-events-default-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 350px)) !important;
    justify-content: start;
}

.gwae-category-events-page .gwae-event-card,
.gwae-events-default-cards .gwae-event-card {
    border-radius: 12px;
}

.gwae-event-card__price,
.gwae-event-card .eb-event-price {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
}

.gwae-event-card__description,
.gwae-event-card .eb-event-short-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}

/* Galerías privadas/socios dentro de eventos pasados. Sirve como base para
   plugins de galería habituales o para imágenes insertadas en el contenido. */
#eb-event-page.gwae-event-detail .eb-gallery,
#eb-event-page.gwae-event-detail .eb-gallery-plugin,
#eb-event-page.gwae-event-detail .sigplus-gallery,
#eb-event-page.gwae-event-detail .joomla-gallery,
.gwae-event-content .gallery,
.gwae-event-content .sigplus-gallery,
.gwae-event-content .eb-gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin: 28px 0;
}

#eb-event-page.gwae-event-detail .eb-gallery img,
#eb-event-page.gwae-event-detail .sigplus-gallery img,
#eb-event-page.gwae-event-detail .joomla-gallery img,
.gwae-event-content .gallery img,
.gwae-event-content .sigplus-gallery img,
.gwae-event-content .eb-gallery img {
    width: 100% !important;
    aspect-ratio: 4 / 3;
    height: auto !important;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(16, 33, 61, .14);
}

/* Si el evento es histórico/pasado, la ficha puede llevar galerías y memoria visual. */
.gwae-event-detail .gwae-event-extra-card,
.gwae-event-detail .eb-horizontal-plugin-header {
    font-family: inherit !important;
}

@media (max-width: 900px) {
    .gwae-categories-page,
    .gwae-category-events-page {
        width: min(100% - 28px, 1180px);
        padding: 28px 0 62px;
    }

    .gwae-category-events-page .gwae-events-grid,
    .gwae-events-default-cards {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .gwae-category-card__inner {
        padding: 22px;
    }

    .gwae-category-card__media {
        margin: -22px -22px 20px;
    }
}

/* =========================================================
   AJUSTES V4 - Layout COLUMNS real de Events Booking
   Esta es la vista detectada en inspector:
   #eb-category-page-columns .eb-columns-layout-container
   ========================================================= */

#eb-category-page-columns.gwae-category-events-page,
#eb-upcoming-events-page-columns.gwae-category-events-page {
    padding-top: 44px;
}

.gwae-category-events-page__header {
    text-align: left;
    max-width: 1180px;
    margin-bottom: 12px;
}

.gwae-category-events-page__intro {
    max-width: 1180px;
    margin: 0 auto 26px;
    color: var(--gwae-muted);
    font-size: 16px;
    line-height: 1.7;
}

.gwae-category-events-page__intro .eb-description,
.gwae-category-events-page__intro p {
    margin-top: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.gwae-events-columns-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 28px !important;
}

.gwae-events-columns-cards .gwae-event-card {
    border-radius: 14px !important;
    box-shadow: 0 14px 34px rgba(16, 33, 61, .13) !important;
}

.gwae-events-columns-cards .gwae-event-card__media {
    aspect-ratio: 1 / 1 !important;
}

.gwae-events-columns-cards .gwae-event-card__body {
    padding: 20px !important;
}

.gwae-events-columns-cards .gwae-event-card__title {
    font-size: 21px !important;
    line-height: 1.28 !important;
}

.gwae-events-columns-cards .gwae-event-card__price {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    overflow: hidden !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
}

.gwae-events-columns-cards .gwae-event-card__description {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 4 !important;
    line-clamp: 4 !important;
    overflow: hidden !important;
}

/* Fallback por si el override PHP de columns no entra todavía: estiliza el HTML original que has mostrado en inspector. */
#eb-category-page-columns .eb-columns-layout-container,
#eb-upcoming-events-page-columns .eb-columns-layout-container {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 28px !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
}

#eb-category-page-columns .eb-columns-layout-container::before,
#eb-category-page-columns .eb-columns-layout-container::after,
#eb-upcoming-events-page-columns .eb-columns-layout-container::before,
#eb-upcoming-events-page-columns .eb-columns-layout-container::after {
    display: none !important;
    content: none !important;
}

#eb-category-page-columns .eb-columns-layout-container > [class*="col-"],
#eb-category-page-columns .eb-columns-layout-container > [class*="span"],
#eb-upcoming-events-page-columns .eb-columns-layout-container > [class*="col-"],
#eb-upcoming-events-page-columns .eb-columns-layout-container > [class*="span"] {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#eb-category-page-columns .eb-columns-layout-container .eb-event-wrapper,
#eb-upcoming-events-page-columns .eb-columns-layout-container .eb-event-wrapper {
    height: auto !important;
    min-height: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid rgba(16, 33, 61, .10) !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 34px rgba(16, 33, 61, .13) !important;
}

#eb-category-page-columns .eb-columns-layout-container .eb-thumb-left,
#eb-upcoming-events-page-columns .eb-columns-layout-container .eb-thumb-left {
    float: none !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

#eb-category-page-columns .eb-columns-layout-container .eb-event-title-container,
#eb-upcoming-events-page-columns .eb-columns-layout-container .eb-event-title-container {
    padding: 20px 20px 0 !important;
    margin: 0 0 12px !important;
}

#eb-category-page-columns .eb-columns-layout-container .eb-event-title,
#eb-upcoming-events-page-columns .eb-columns-layout-container .eb-event-title {
    color: var(--gwae-navy) !important;
    font-size: 21px !important;
    line-height: 1.28 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

#eb-category-page-columns .eb-columns-layout-container .eb-event-date-time,
#eb-category-page-columns .eb-columns-layout-container .eb-event-location-price,
#eb-category-page-columns .eb-columns-layout-container .eb-event-short-description,
#eb-category-page-columns .eb-columns-layout-container .eb-taskbar,
#eb-upcoming-events-page-columns .eb-columns-layout-container .eb-event-date-time,
#eb-upcoming-events-page-columns .eb-columns-layout-container .eb-event-location-price,
#eb-upcoming-events-page-columns .eb-columns-layout-container .eb-event-short-description,
#eb-upcoming-events-page-columns .eb-columns-layout-container .eb-taskbar {
    margin: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

#eb-category-page-columns .eb-columns-layout-container .eb-event-date-time,
#eb-upcoming-events-page-columns .eb-columns-layout-container .eb-event-date-time {
    padding-bottom: 10px !important;
    color: var(--gwae-muted) !important;
    font-weight: 700 !important;
}

#eb-category-page-columns .eb-columns-layout-container .eb-event-location-price,
#eb-upcoming-events-page-columns .eb-columns-layout-container .eb-event-location-price {
    display: block !important;
    padding-bottom: 12px !important;
}

#eb-category-page-columns .eb-columns-layout-container .eb-event-price,
#eb-upcoming-events-page-columns .eb-columns-layout-container .eb-event-price {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, var(--gwae-gold), var(--gwae-gold-2)) !important;
    color: var(--gwae-navy) !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    text-align: left !important;
}

#eb-category-page-columns .eb-columns-layout-container .eb-event-short-description,
#eb-upcoming-events-page-columns .eb-columns-layout-container .eb-event-short-description {
    color: var(--gwae-muted) !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 4 !important;
    line-clamp: 4 !important;
    overflow: hidden !important;
}

#eb-category-page-columns .eb-columns-layout-container .eb-taskbar,
#eb-upcoming-events-page-columns .eb-columns-layout-container .eb-taskbar {
    padding-top: 18px !important;
    padding-bottom: 20px !important;
}

#eb-category-page-columns .eb-columns-layout-container .eb-taskbar ul,
#eb-upcoming-events-page-columns .eb-columns-layout-container .eb-taskbar ul {
    display: flex !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#eb-category-page-columns .eb-columns-layout-container .eb-taskbar a,
#eb-upcoming-events-page-columns .eb-columns-layout-container .eb-taskbar a {
    border-radius: 999px !important;
    background: var(--gwae-navy) !important;
    color: #fff !important;
    border: 0 !important;
    padding: 11px 16px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

@media (max-width: 1180px) {
    .gwae-events-columns-cards,
    #eb-category-page-columns .eb-columns-layout-container,
    #eb-upcoming-events-page-columns .eb-columns-layout-container {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    .gwae-events-columns-cards,
    #eb-category-page-columns .eb-columns-layout-container,
    #eb-upcoming-events-page-columns .eb-columns-layout-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .gwae-events-columns-cards,
    #eb-category-page-columns .eb-columns-layout-container,
    #eb-upcoming-events-page-columns .eb-columns-layout-container {
        grid-template-columns: 1fr !important;
    }
}
