/*
 * ecosistema.css — /convocatorias y /congresos-ponentes.
 * Clases propias (prefijo eco-) para no depender de recompilar Tailwind (views/css/app.css).
 * Colores: los mismos tokens de marca de views/css/input.css.
 */
.eco {
    --eco-blue: #12163b;
    --eco-blue-2: #1d2357;
    --eco-red: #e43c25;
    --eco-red-dark: #c8321d;
    --eco-ink: #0f172a;
    --eco-muted: #64748b;
    --eco-line: #e2e8f0;
    --eco-bg: #f8fafc;
    --eco-ok: #047857;
    color: var(--eco-ink);
}
.eco *, .eco *::before, .eco *::after { box-sizing: border-box; }
.eco-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.eco [hidden] { display: none !important; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.eco-hero { background: var(--eco-blue); color: #fff; padding: 56px 0 48px; position: relative; overflow: hidden; }
.eco-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) .6px, transparent .6px); background-size: 26px 26px; pointer-events: none; }
.eco-hero > * { position: relative; }
.eco-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffb4a8; margin-bottom: 12px; }
.eco-hero h1 { margin: 0 0 12px; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.15; color: #fff; max-width: 820px; }
.eco-hero p { margin: 0; max-width: 720px; color: rgba(255,255,255,.75); font-size: 1.05rem; line-height: 1.6; }
.eco-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.eco-trust li { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.9); }
.eco-trust svg { width: 14px; height: 14px; color: #ffb4a8; }

/* ── Filtros ──────────────────────────────────────────────────────────── */
.eco-filters { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--eco-line); }
/* minmax(0,1fr): sin esto las filas con scroll horizontal ensanchan la grilla y la página desborda en móvil */
.eco-filters .eco-wrap { padding-top: 14px; padding-bottom: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.eco-filter-row { display: flex; gap: 8px; align-items: center; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.eco-filter-row::-webkit-scrollbar { display: none; }
.eco-filter-label { flex: 0 0 auto; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--eco-muted); margin-right: 4px; }
.eco-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--eco-line); background: #fff; color: #334155; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.eco-chip:hover { border-color: #94a3b8; }
.eco-chip[aria-pressed="true"] { background: var(--eco-blue); border-color: var(--eco-blue); color: #fff; }
.eco-chip .eco-count { font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--eco-bg); color: var(--eco-muted); }
.eco-chip[aria-pressed="true"] .eco-count { background: rgba(255,255,255,.18); color: #fff; }
.eco-chip svg { width: 15px; height: 15px; }
.eco-result { font-size: .85rem; color: var(--eco-muted); margin: 0; }

/* ── Tarjetas de convocatoria ─────────────────────────────────────────── */
.eco-list { background: var(--eco-bg); padding: 32px 0 64px; }
.eco-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.eco-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--eco-line); border-radius: 18px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.eco-card:hover { box-shadow: 0 12px 28px rgba(15,23,42,.08); transform: translateY(-2px); }
.eco-card-top { padding: 20px 20px 0; }
.eco-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.eco-tipo { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(228,60,37,.08); color: var(--eco-red); border: 1px solid rgba(228,60,37,.25); }
.eco-tipo svg { width: 13px; height: 13px; }
.eco-linea { font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--eco-bg); color: #334155; border: 1px solid var(--eco-line); }
.eco-card h2, .eco-card h3 { margin: 0 0 8px; font-size: 1.12rem; font-weight: 800; line-height: 1.35; color: var(--eco-blue); }
.eco-card h2 a, .eco-card h3 a { color: inherit; text-decoration: none; }
.eco-card h2 a:hover, .eco-card h3 a:hover { text-decoration: underline; }
.eco-excerpt { margin: 0 0 14px; font-size: .88rem; line-height: 1.55; color: #475569; }
.eco-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 20px 14px; padding: 12px; border-radius: 12px; background: var(--eco-bg); border: 1px solid var(--eco-line); }
.eco-dates dt { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--eco-muted); }
.eco-dates dd { margin: 2px 0 0; font-size: .88rem; font-weight: 700; color: var(--eco-ink); }
.eco-urgent { color: var(--eco-red) !important; }
.eco-benefits { list-style: none; margin: 0 20px 18px; padding: 0; display: grid; gap: 6px; }
.eco-benefits li { display: flex; gap: 8px; align-items: flex-start; font-size: .82rem; line-height: 1.45; color: #334155; }
.eco-benefits svg { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 2px; color: var(--eco-ok); }
.eco-card-actions { margin-top: auto; display: flex; gap: 10px; padding: 16px 20px 20px; border-top: 1px solid var(--eco-line); }

/* ── Botones ──────────────────────────────────────────────────────────── */
.eco-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px; font-weight: 700; font-size: .9rem; text-decoration: none; transition: background .15s, transform .15s; border: 1px solid transparent; cursor: pointer; }
.eco-btn svg { width: 16px; height: 16px; }
.eco-btn:hover { transform: translateY(-1px); }
.eco-btn-primary { flex: 1; background: var(--eco-red); color: #fff; box-shadow: 0 4px 12px rgba(228,60,37,.28); }
.eco-btn-primary:hover { background: var(--eco-red-dark); color: #fff; }
.eco-btn-ghost { background: #fff; color: var(--eco-blue); border-color: var(--eco-line); }
.eco-btn-ghost:hover { border-color: #94a3b8; color: var(--eco-blue); }
.eco-btn-light { background: #fff; color: var(--eco-blue); }
.eco-btn-light:hover { background: #f1f5f9; color: var(--eco-blue); }
.eco-btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.eco-btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }

.eco-empty { text-align: center; background: #fff; border: 1px dashed #cbd5e1; border-radius: 18px; padding: 40px 20px; }
.eco-empty h2 { margin: 0 0 8px; font-size: 1.2rem; color: var(--eco-blue); }
.eco-empty p { margin: 0 0 18px; color: var(--eco-muted); }

/* ── Ponentes ─────────────────────────────────────────────────────────── */
.eco-section { padding: 56px 0; }
.eco-section-alt { background: var(--eco-bg); }
.eco-section-head { margin-bottom: 28px; }
.eco-section-head h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--eco-blue); }
.eco-section-head p { margin: 0; color: var(--eco-muted); line-height: 1.6; max-width: 760px; }
.eco-congreso { background: #fff; border: 1px solid var(--eco-line); border-radius: 20px; padding: 28px; margin-bottom: 28px; }
.eco-congreso-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.eco-congreso-head h3 { margin: 0 0 6px; font-size: 1.3rem; font-weight: 800; color: var(--eco-blue); line-height: 1.3; }
.eco-congreso-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .85rem; color: var(--eco-muted); }
.eco-congreso-meta span { display: inline-flex; align-items: center; gap: 6px; }
.eco-congreso-meta svg { width: 15px; height: 15px; }
.eco-estado { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 5px 12px; border-radius: 999px; }
.eco-estado-activo { background: #dcfce7; color: #166534; }
.eco-estado-fin { background: #f1f5f9; color: #475569; }
.eco-cta-doble { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--eco-line); }
.eco-cta-doble .eco-btn { flex: 1 1 220px; }

.eco-speakers { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.eco-speaker { display: flex; flex-direction: column; border: 1px solid var(--eco-line); border-radius: 16px; overflow: hidden; background: #fff; }
.eco-speaker-photo { aspect-ratio: 1 / 1; background: var(--eco-bg); overflow: hidden; }
.eco-speaker-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eco-speaker-photo .eco-initials { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--eco-blue), var(--eco-blue-2)); }
.eco-speaker-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.eco-speaker-body h4 { margin: 0 0 4px; font-size: .98rem; font-weight: 800; color: var(--eco-blue); line-height: 1.3; }
.eco-speaker-aff { margin: 0 0 6px; font-size: .8rem; color: var(--eco-muted); line-height: 1.4; }
.eco-speaker-talk { margin: 0 0 10px; font-size: .8rem; font-style: italic; color: #334155; line-height: 1.45; }
.eco-speaker-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.eco-speaker-links a { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; padding: 5px 9px; border-radius: 8px; text-decoration: none; border: 1px solid var(--eco-line); color: var(--eco-blue); background: #fff; }
.eco-speaker-links a:hover { border-color: #94a3b8; }
.eco-speaker-links .eco-orcid { color: #3d6b00; border-color: #c5e1a5; background: #f5fbe9; }
.eco-speaker-links .eco-ark { color: var(--eco-red); border-color: rgba(228,60,37,.3); background: rgba(228,60,37,.05); }
.eco-speaker-links svg { width: 13px; height: 13px; }
.eco-pendiente { padding: 18px; border-radius: 14px; background: var(--eco-bg); border: 1px dashed #cbd5e1; color: var(--eco-muted); font-size: .9rem; margin: 0; }

/* ── Cintillo de alianzas ─────────────────────────────────────────────── */
.eco-allies { background: #fff; border-top: 1px solid var(--eco-line); border-bottom: 1px solid var(--eco-line); padding: 36px 0; }
.eco-allies-head { text-align: center; margin-bottom: 22px; }
.eco-allies-head h2 { margin: 0 0 4px; font-size: 1.15rem; font-weight: 800; color: var(--eco-blue); }
.eco-allies-head p { margin: 0; font-size: .88rem; color: var(--eco-muted); }
.eco-allies-featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 760px; margin: 0 auto 20px; }
.eco-ally-featured { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; border: 2px solid var(--eco-blue); background: linear-gradient(135deg, #fff, var(--eco-bg)); text-decoration: none; color: var(--eco-blue); }
.eco-ally-featured img { height: 48px; width: auto; max-width: 110px; object-fit: contain; }
.eco-ally-featured strong { display: block; font-size: 1rem; font-weight: 800; }
.eco-ally-featured small { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--eco-red); }
.eco-allies-rest { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.eco-allies-rest li a, .eco-allies-rest li span { display: inline-block; font-size: .8rem; font-weight: 600; color: #475569; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--eco-line); background: var(--eco-bg); text-decoration: none; }
.eco-allies-rest li a:hover { border-color: #94a3b8; }

/* ── CTA final ────────────────────────────────────────────────────────── */
.eco-final { background: linear-gradient(135deg, var(--eco-blue), var(--eco-blue-2)); color: #fff; padding: 56px 0; }
.eco-final-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.eco-final-card { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; }
.eco-final-card h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 800; color: #fff; }
.eco-final-card p { margin: 0 0 16px; color: rgba(255,255,255,.72); font-size: .88rem; line-height: 1.55; flex: 1; }
.eco-final h2 { margin: 0 0 22px; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; color: #fff; text-align: center; }

@media (max-width: 640px) {
    .eco-hero { padding: 40px 0 36px; }
    .eco-cards { grid-template-columns: 1fr; }
    .eco-congreso { padding: 20px 16px; }
    .eco-card-actions { flex-direction: column; }
    .eco-dates { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .eco-card, .eco-btn, .eco-chip { transition: none; }
    .eco-card:hover, .eco-btn:hover { transform: none; }
}
