/* =============================================================
   Eventos Aceituna — estilos base
   Todo es sobrescribible desde los controles de Elementor.
   ============================================================= */

.ea-widget,
.ea-widget *,
.ea-widget *::before,
.ea-widget *::after {
    box-sizing: border-box;
}

/* TABS */
.ea-tabs-wrap {
    border-bottom: 2px solid #8c9a31;
    margin-bottom: 0;
}

.ea-tabs {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

.ea-tab {
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    color: #1a1a1a;
    padding: 12px 24px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
    line-height: 1.2;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-align: center;
}

.ea-tab.is-active {
    background-color: #8c9a31;
    color: #ffffff;
}

.ea-tab:not(.is-active):hover {
    color: #8c9a31;
}

.ea-tab--link {
    /* "Calendario completo" — visualmente igual a un tab pero comportamiento de link */
    display: inline-flex;
    align-items: center;
}

/* CONTADOR */
.ea-counter {
    font-size: 0.9rem;
    color: #1a1a1a;
    margin: 24px 0;
    font-weight: 600;
}

/* GRID */
.ea-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1024px) {
    .ea-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .ea-grid { grid-template-columns: 1fr; }
}

/* CARD */
.ea-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    overflow: hidden;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ea-card.is-hidden,
.ea-card.is-hidden-by-limit {
    display: none;
}

.ea-card:hover {
    transform: translateY(-2px);
}

/* Imagen */
.ea-card__image {
    display: block;
    width: 100%;
    height: 280px;
    overflow: hidden;
    text-decoration: none;
}

.ea-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ea-card__image:hover img {
    transform: scale(1.03);
}

.ea-card__image--placeholder {
    background: linear-gradient(135deg, #f0eee5 0%, #e6e3d9 100%);
}

/* Banda fecha */
.ea-card__date {
    background-color: #ebebe6;
    padding: 8px 12px;
    text-align: center;
    font-size: 0.85rem;
    color: #1a1a1a;
    line-height: 1.4;
}

.ea-card__date-day {
    display: block;
    font-weight: 600;
}

.ea-card__date-sep {
    display: none;
}

.ea-card__date-time {
    display: block;
    margin-top: 2px;
}

/* Body */
.ea-card__body {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ea-card__title {
    font-size: 1rem;
    line-height: 1.3;
    margin: 0 0 8px;
    font-weight: 700;
    color: #1a1a1a;
}

.ea-card__price {
    font-size: 1.05rem;
    margin: 0 0 16px;
    font-weight: 700;
    color: #d4724a;
}

/* Botón */
.ea-card__btn {
    display: inline-block;
    margin-top: auto;
    padding: 12px 24px;
    background-color: #a3b13a;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    border: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ea-card .ea-card__btn:hover {
    background-color: #8c9a31;
    color: #ffffff;
}

.ea-card__btn.is-disabled {
    background-color: #c8c8c8 !important;
    color: #555555 !important;
    cursor: not-allowed;
    pointer-events: none;
}

/* Botón "Ver más" */
.ea-load-more-wrap {
    display: flex;
    justify-content: center;
    margin: 32px 0 0;
}

.ea-load-more-wrap[hidden] {
    display: none;
}

.ea-load-more {
    background-color: #8c9a31;
    color: #ffffff;
    border: 0;
    padding: 14px 32px;
    cursor: pointer;
    font: inherit;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ea-load-more:hover {
    background-color: #a3b13a;
    transform: translateY(-1px);
}

/* ============================================================
   DETALLE DE EVENTO — Layout: MAIN (info) | SIDEBAR (imagen)
   ============================================================ */
.ea-detalle,
.ea-detalle *,
.ea-detalle *::before,
.ea-detalle *::after {
    box-sizing: border-box;
}

.ea-detalle {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 48px;
    align-items: start;
}

/* Tablet/mobile: stack vertical. Imagen primero. */
@media (max-width: 900px) {
    .ea-detalle {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .ea-detalle__sidebar {
        order: -1;
    }
}

.ea-detalle__main {
    display: flex;
    flex-direction: column;
    gap: 36px;
    min-width: 0;
}

.ea-detalle--placeholder {
    padding: 48px;
    border: 2px dashed #ccc;
    text-align: center;
    color: #777;
    background: #fafafa;
    border-radius: 8px;
}

/* ----- Header ----- */
.ea-detalle__header { margin: 0; }
.ea-detalle__supra {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    color: #8c9a31;
}
.ea-detalle__titulo {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin: 0;
    color: #1a1a1a;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.01em;
}

/* ----- Info strip (DATE/TIME/COST/LOC/CAT en main) ----- */
.ea-detalle__info-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0;
    background: #fafaf5;
    border: 1px solid #ebebe6;
    border-radius: 12px;
    overflow: hidden;
}

.ea-detalle__info-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 20px 18px;
    border-right: 1px solid #ebebe6;
    transition: background-color 0.2s ease;
}
.ea-detalle__info-item:last-child { border-right: 0; }
.ea-detalle__info-item:hover { background: #f3f1e6; }

.ea-detalle__info-icon {
    color: #8c9a31;
    line-height: 0;
}
.ea-detalle__info-body { width: 100%; }
.ea-detalle__info-label {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: #888;
    margin-bottom: 4px;
}
.ea-detalle__info-value {
    font-size: 0.95rem;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.3;
    word-wrap: break-word;
}
.ea-detalle__info-value a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}
.ea-detalle__info-value a:hover { color: #8c9a31; }
.ea-detalle__info-sub {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: #888;
    font-weight: 400;
}

@media (max-width: 600px) {
    .ea-detalle__info-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .ea-detalle__info-item {
        border-right: 1px solid #ebebe6;
        border-bottom: 1px solid #ebebe6;
    }
    .ea-detalle__info-item:nth-child(2n) { border-right: 0; }
    .ea-detalle__info-item:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ----- Body (descripción) ----- */
.ea-detalle__body { font-size: 1rem; line-height: 1.65; color: #2a2a2a; }
.ea-detalle__body > * + * { margin-top: 16px; }
.ea-detalle__content {}
.ea-detalle__content p { margin: 0 0 14px; }
.ea-detalle__content p:last-child { margin-bottom: 0; }

.ea-detalle__bloque {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #1a1a1a;
    padding: 14px 18px;
    background: #fafaf5;
    border-left: 3px solid #8c9a31;
    border-radius: 0 6px 6px 0;
}
.ea-detalle__capacidad strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
}

.ea-detalle__imagen-sec {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
}
.ea-detalle__imagen-sec img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ----- Calendar buttons ----- */
.ea-detalle__calendar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 600px) {
    .ea-detalle__calendar { grid-template-columns: 1fr; }
}
.ea-detalle__calendar-btn {
    padding: 18px 20px;
    border: 1.5px solid #e6dfb2;
    background: #fbf9e7;
    color: #1a1a1a;
    text-decoration: none;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.ea-detalle__calendar-btn:hover {
    background: #f3eecf;
    border-color: #8c9a31;
    color: #1a1a1a;
    transform: translateY(-1px);
}

/* ----- Countdown ----- */
.ea-detalle__countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    text-align: center;
    padding: 28px 20px;
    background: #fafaf5;
    border-radius: 12px;
}
.ea-detalle__countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.ea-detalle__countdown-item + .ea-detalle__countdown-item::before {
    content: ':';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #c8c8c8;
    line-height: 0.5;
}
.ea-detalle__countdown-num {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1;
    color: #2a2a2a;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.ea-detalle__countdown-label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: #888;
    margin-top: 8px;
    text-transform: uppercase;
    font-weight: 600;
}
@media (max-width: 600px) {
    .ea-detalle__countdown { padding: 20px 12px; }
    .ea-detalle__countdown-item + .ea-detalle__countdown-item::before {
        font-size: 1.2rem;
        left: -6px;
    }
}

/* ============================================================
   SIDEBAR — solo imagen + share
   ============================================================ */
.ea-detalle__sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 24px;
}
@media (max-width: 900px) {
    .ea-detalle__sidebar { position: static; }
}

.ea-detalle__imagen-sidebar {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ea-detalle__imagen-sidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
}
.ea-detalle__imagen-sidebar img {
    width: 100%;
    height: auto;
    display: block;
}

/* Share card */
.ea-detalle__card--share {
    padding: 20px;
    background: #fafaf5;
    border-radius: 12px;
    text-align: center;
}
.ea-detalle__card-titulo {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    margin: 0 0 14px;
    text-transform: uppercase;
    font-weight: 700;
    color: #1a1a1a;
}
.ea-detalle__share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.ea-detalle__share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.ea-detalle__share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
.ea-detalle__share-btn--fb { background: #3b5998; }
.ea-detalle__share-btn--tw { background: #1a1a1a; }
.ea-detalle__share-btn--in { background: #0a66c2; }
.ea-detalle__share-btn--em { background: #d4524a; }

/* Cards legacy (por si quedan referencias) */
.ea-detalle__card {
    padding: 16px 18px;
    border-radius: 8px;
    background: #fafaf5;
}

/* Fechas de registro */
.ea-detalle__fechas {
    padding: 20px 22px;
    background: #fafaf5;
    border-radius: 10px;
}
.ea-detalle__fechas > strong {
    display: block;
    margin-bottom: 12px;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    color: #1a1a1a;
}
.ea-detalle__fechas-lista {
    padding-left: 22px;
    margin: 0;
    list-style: decimal;
}
.ea-detalle__fecha-item {
    font-size: 0.95rem;
    margin-bottom: 10px;
    line-height: 1.6;
    color: #2a2a2a;
}
.ea-detalle__fecha-item:last-child { margin-bottom: 0; }
.ea-detalle__descuento {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    background: #e8efc8;
    color: #5a6920;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 4px;
}
.ea-detalle__recargo {
    color: #d4724a;
    font-weight: 700;
}

/* Botones */
.ea-detalle__btn {
    display: inline-block;
    padding: 12px 22px;
    background-color: #8c9a31;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 10px;
}
.ea-detalle__btn:hover:not(.is-disabled) {
    background-color: #6e7d2f;
    color: #ffffff;
    transform: translateY(-1px);
}
.ea-detalle__btn.is-disabled {
    background-color: #e6e6e6;
    color: #888;
    cursor: not-allowed;
    pointer-events: none;
    text-transform: none;
    font-weight: 500;
    font-size: 0.8rem;
}
.ea-detalle__btn--cta {
    margin-top: 16px;
    margin-left: 0;
    padding: 16px 32px;
    font-size: 0.95rem;
    border-radius: 8px;
}

/* Booking section */
.ea-detalle__booking {
    padding-top: 24px;
    border-top: 2px solid #ebebe6;
}
.ea-detalle__booking-heading {
    font-size: 1.5rem;
    margin: 0 0 18px;
    color: #1a1a1a;
    font-weight: 700;
}
.ea-detalle__booking-aviso {
    color: #555;
    margin-bottom: 16px;
    padding: 14px 18px;
    background: #fef8e6;
    border-left: 3px solid #d9c84a;
    border-radius: 0 6px 6px 0;
}
.ea-detalle__mec-form { margin-top: 8px; }

/* Newsletter */
.ea-detalle__newsletter {
    padding: 24px;
    background: #fafaf5;
    border-radius: 12px;
}
.ea-detalle__newsletter-heading {
    font-size: 1.4rem;
    margin: 0 0 16px;
    color: #1a1a1a;
    font-weight: 700;
}
.ea-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
}
.ea-newsletter-form input {
    padding: 14px 16px;
    font-size: 0.95rem;
    border: 1.5px solid #d8d3b0;
    background: #ffffff;
    border-radius: 6px;
    transition: border-color 0.2s ease;
}
.ea-newsletter-form input:focus {
    outline: 0;
    border-color: #8c9a31;
}
.ea-newsletter-form button {
    padding: 14px 28px;
    background-color: #6e7d2f;
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin-top: 4px;
}
.ea-newsletter-form button:hover {
    background-color: #8c9a31;
    transform: translateY(-1px);
}
.ea-newsletter-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.ea-newsletter-form__politica {
    font-size: 0.85rem;
    color: #d4524a;
    margin: 0;
}
.ea-newsletter-form__msg {
    font-size: 0.9rem;
    color: #3aa83f;
    margin: 0;
    min-height: 1.5em;
}

.ea-detalle__cta-texto {
    font-size: 1rem;
    color: #1a1a1a;
    margin: 0 0 4px;
    font-weight: 500;
}

/* Mejoras tipográficas globales del detalle */
.ea-detalle a { transition: color 0.2s ease; }

/* Empty state */
.ea-empty {
    padding: 48px 24px;
    text-align: center;
    color: #777;
    font-size: 1rem;
    background: #fafafa;
    border: 2px dashed #ddd;
    border-radius: 4px;
}
