/* ═══════════════════════════════════════════════
   EventsConcierge — Public Landing Styles
   Design system: SopyApp
   ═══════════════════════════════════════════════ */

:root {
    --fondo: #ffffff;
    --fondo-suave: #f9fafb;
    --texto: #1a1a1a;
    --texto-suave: #6b7280;
    --borde: #e5e7eb;
    --acento: #111827;
    --cta: #111827;
    --fuente: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 6px;
    --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--fuente);
    color: var(--texto);
    background: var(--fondo);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--acento); text-decoration: none; }

/* ── Header ── */
.ec-header {
    border-bottom: 1px solid var(--borde);
    background: var(--fondo);
    position: sticky;
    top: 0;
    z-index: 100;
}
.ec-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.ec-logo {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--texto);
    white-space: nowrap;
}
.ec-logo span { color: var(--texto-suave); font-weight: 400; }
.ec-nav { display: flex; gap: 1.5rem; align-items: center; }
.ec-nav a {
    font-size: 0.85rem;
    color: var(--texto-suave);
    transition: color 0.2s;
}
.ec-nav a:hover { color: var(--texto); }

/* ── Hero/Search ── */
.ec-hero {
    background: var(--fondo-suave);
    border-bottom: 1px solid var(--borde);
    padding: 2.5rem 1.5rem;
    text-align: center;
}
.ec-hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.ec-hero p {
    font-size: 1rem;
    color: var(--texto-suave);
    margin-bottom: 1.5rem;
}

/* ── Filters ── */
.ec-filters {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid var(--borde);
}
.ec-filter-btn {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    font-family: var(--fuente);
    border: 1px solid var(--borde);
    border-radius: 20px;
    background: var(--fondo);
    color: var(--texto-suave);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.ec-filter-btn:hover,
.ec-filter-btn.active {
    background: var(--acento);
    color: #fff;
    border-color: var(--acento);
}
.ec-search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}
.ec-search-input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid var(--borde);
    border-radius: var(--radius);
    font-family: var(--fuente);
    font-size: 0.9rem;
}
.ec-search-input:focus { outline: none; border-color: var(--acento); }
.ec-search-btn {
    padding: 0.6rem 1.25rem;
    background: var(--cta);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: var(--fuente);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}
.ec-search-btn:hover { opacity: 0.9; }

/* ── Events Grid ── */
.ec-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
.ec-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.ec-event-card {
    border: 1px solid var(--borde);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: var(--fondo);
}
.ec-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.ec-event-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: var(--fondo-suave);
}
.ec-event-img-placeholder {
    width: 100%;
    height: 180px;
    background: var(--fondo-suave);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--borde);
    font-size: 2rem;
}
.ec-event-body {
    padding: 1rem 1.25rem 1.25rem;
}
.ec-event-date {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--texto-suave);
    margin-bottom: 0.35rem;
}
.ec-event-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}
.ec-event-title a { color: var(--texto); }
.ec-event-title a:hover { text-decoration: underline; }
.ec-event-location {
    font-size: 0.8rem;
    color: var(--texto-suave);
    margin-bottom: 0.5rem;
}
.ec-event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ec-event-price {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--texto);
}
.ec-event-category {
    font-size: 0.7rem;
    background: var(--fondo-suave);
    border: 1px solid var(--borde);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    color: var(--texto-suave);
}

/* ── Event Detail ── */
.ec-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
.ec-detail-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.ec-detail-meta {
    font-size: 0.85rem;
    color: var(--texto-suave);
    margin-bottom: 0.5rem;
}
.ec-detail-meta span {
    margin-right: 1rem;
}
.ec-detail h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.ec-detail-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--texto);
    margin-bottom: 1.5rem;
}
.ec-detail-info {
    background: var(--fondo-suave);
    border: 1px solid var(--borde);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.ec-detail-info-row {
    display: flex;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.85rem;
}
.ec-detail-info-label {
    font-weight: 600;
    min-width: 100px;
    color: var(--texto);
}
.ec-detail-info-value {
    color: var(--texto-suave);
}
.ec-detail-info-value a,
.ec-link {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.ec-detail-info-value a:hover,
.ec-link:hover {
    color: #1d4ed8;
}
.ec-ticket-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--cta);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}
.ec-ticket-btn:hover { opacity: 0.9; color: #fff; }

/* ── Organizer Badge ── */
.ec-organizer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    margin-top: 1rem;
    border-top: 1px solid var(--borde);
    font-size: 0.85rem;
}
.ec-organizer-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--borde);
}

/* ── Footer ── */
.ec-footer {
    border-top: 1px solid var(--borde);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--texto-suave);
    margin-top: 3rem;
}

/* ── Empty State ── */
.ec-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--texto-suave);
}
.ec-empty p { font-size: 1rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .ec-hero h1 { font-size: 1.35rem; }
    .ec-events-grid { grid-template-columns: 1fr; }
    .ec-header-inner { padding: 0.5rem 1rem; }
    .ec-container { padding: 1.5rem 1rem; }
    .ec-detail { padding: 1.5rem 1rem; }
    .ec-nav { gap: 1rem; }
    .ec-filters { padding: 0.75rem 1rem; }
}

@media (max-width: 480px) {
    .ec-nav { display: none; }
    .ec-search-form { flex-direction: column; }
}
