/* WRAPPER GENERAL 100% ANCHO */
.ehc-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
}

/* SLIDER FULL WIDTH */
.ehc-slider-section {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BUSCADOR - BARRA SEPARADA 100% */
.ehc-search-section {
    width: 100%;
    padding: 0.8rem 1.5rem;
    box-sizing: border-box;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.ehc-search-inner {
    width: 100%;
}

.ehc-search-form {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.ehc-search-input {
    flex: 1 1 auto;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #cbd5f5;
    font-size: 0.95rem;
}

.ehc-search-btn {
    border-radius: 999px;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #0ea5e9, #22c55e);
    color: #ffffff;
}

/* PUBLICIDAD 100% */
.ehc-ad-section {
    width: 100%;
    padding: 1rem 1.5rem;
    box-sizing: border-box;
}

.ehc-ad-inner {
    width: 100%;
}

.ehc-ad-placeholder {
    width: 100%;
    min-height: 120px;
    border-radius: 0.75rem;
    background: repeating-linear-gradient(
        45deg,
        #e5e7eb,
        #e5e7eb 10px,
        #f3f4f6 10px,
        #f3f4f6 20px
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.9rem;
}

/* MAIN - EVENTOS 100% */
.ehc-main {
    width: 100%;
    padding: 0 1.5rem 2.5rem;
    box-sizing: border-box;
}

.ehc-events-section {
    width: 100%;
    box-sizing: border-box;
}

.ehc-events-header {
    margin: 1.5rem 0 1rem;
}

.ehc-events-header h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
}

.ehc-events-sub {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: #6b7280;
}

/* GRID 100% ANCHO */
.ehc-events-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.4rem;
    box-sizing: border-box;
}

/* CARD */
.ehc-card {
    background-color: #ffffff;
    border-radius: 1.1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.ehc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

/* IMAGEN */
.ehc-card-thumb-wrap {
    display: block;
    position: relative;
}

.ehc-card-thumb {
    width: 100%;
    padding-top: 56%;
    background-size: cover;
    background-position: center;
}

.ehc-card-thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 0.85rem;
}

/* BODY */
.ehc-card-body {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem 1rem;
    padding: 0.9rem 1rem 1rem;
    align-items: center;
}

/* FECHA */
.ehc-card-date {
    width: 3rem;
    min-width: 3rem;
    text-align: center;
    border-radius: 0.85rem;
    background: #0f172a;
    color: #e5e7eb;
    padding: 0.35rem 0.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ehc-card-date-day {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.1;
}

.ehc-card-date-month {
    font-size: 0.7rem;
    letter-spacing: 0.09em;
}

/* TEXTO PRINCIPAL */
.ehc-card-main {
    min-width: 0;
}

.ehc-card-title {
    margin: 0 0 0.2rem;
    font-size: 1rem;
}

.ehc-card-title a {
    color: #0f172a;
    text-decoration: none;
}

.ehc-card-title a:hover {
    text-decoration: underline;
}

.ehc-card-meta {
    font-size: 0.8rem;
    color: #6b7280;
}

/* BOTÓN */
.ehc-card-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    margin-top: 0.3rem;
}

.ehc-btn-outline {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #0f172a;
    background: transparent;
    font-size: 0.8rem;
    text-decoration: none;
    color: #0f172a;
}

/* SIN EVENTOS */
.ehc-no-events {
    text-align: center;
    padding: 2rem 0.5rem;
    font-size: 0.95rem;
    color: #6b7280;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .ehc-search-section {
        padding: 0.8rem 1rem;
    }

    .ehc-main {
        padding: 0 1rem 2rem;
    }

    .ehc-events-grid {
        grid-template-columns: 1fr;
    }
}
