/* IGF Ecuador 2026 — Estilos compartidos */
:root {
  --bg: #07111f;
  --bg-soft: #0d1a2f;
  --card: rgba(255,255,255,0.08);
  --card-strong: rgba(255,255,255,0.12);
  --line: rgba(255,255,255,0.14);
  --text: #f4f7fb;
  --muted: #c6d3e6;
  --blue: #33b5ff;
  --cyan: #53f1ff;
  --gold: #ffd84d;
  --red: #ff4f70;
  --accent: #7d7cff;
  --green: #43d48b;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(51,181,255,.22), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(125,124,255,.24), transparent 25%),
    radial-gradient(circle at 40% 85%, rgba(83,241,255,.14), transparent 30%),
    linear-gradient(180deg, #07111f 0%, #091424 35%, #06101c 100%);
  line-height: 1.55;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { width: min(100% - 32px, var(--max)); margin: 0 auto; }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-size: .95rem;
  backdrop-filter: blur(10px);
}
.pill-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 15px rgba(83,241,255,.8);
}
.pill-live { background: rgba(255,79,112,.18); border-color: rgba(255,79,112,.4); color: #ffd5dc; }
.pill-live .pill-dot { background: var(--red); box-shadow: 0 0 15px rgba(255,79,112,.9); animation: pulse 1.6s ease-in-out infinite; }
.pill-gold { background: rgba(255,216,77,.18); border-color: rgba(255,216,77,.4); color: var(--gold); }
.pill-gold .pill-dot { background: var(--gold); box-shadow: 0 0 15px rgba(255,216,77,.9); }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.85); } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(7,17,31,.78);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: .02em;
}
.brand-mark {
  width: 54px; height: 54px;
  flex: 0 0 54px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
}
.brand-text small {
  display: block;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .08em;
  font-size: .74rem;
  text-transform: uppercase;
}
.brand-text strong { display: block; font-size: 1rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a { color: var(--muted); font-size: .92rem; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: var(--gold); font-weight: 700; }
.nav-links a.nav-pdf {
  color: var(--gold);
  font-weight: 700;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}

/* CORPECE Secretaría Técnica badge */
.corpece-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
  color: #07111f;
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
  max-width: 250px;
}
.corpece-badge:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,0,0,.36); }
.corpece-badge img {
  width: 38px; height: 38px;
  flex: 0 0 38px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}
.corpece-badge-text { display: flex; flex-direction: column; line-height: 1.15; }
.corpece-badge-text small {
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #4a5b75;
  font-weight: 700;
}
.corpece-badge-text strong {
  font-size: .82rem;
  font-weight: 800;
  color: #07111f;
}
.corpece-badge-text span { font-size: .72rem; color: #4a5b75; font-weight: 600; }

/* Escuela IGF badge (en header del sitio IGF) */
.escuela-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f2419 0%, #1a3a2e 100%);
  border: 1px solid rgba(67,212,139,.45);
  box-shadow: 0 8px 22px rgba(0,0,0,.32);
  color: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  text-decoration: none;
  max-width: 230px;
}
.escuela-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,.42);
  border-color: rgba(67,212,139,.85);
}
.escuela-badge-icon {
  width: 38px; height: 38px;
  flex: 0 0 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), #fff19b);
}
.escuela-badge-text { display: flex; flex-direction: column; line-height: 1.15; }
.escuela-badge-text small {
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 800;
}
.escuela-badge-text strong {
  font-size: .82rem;
  font-weight: 800;
  color: #fff;
}
.escuela-badge-text span { font-size: .7rem; color: rgba(255,255,255,.7); font-weight: 600; }

/* ---------- CTA ---------- */
.cta, .cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: .25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.cta {
  color: #09111c;
  background: linear-gradient(135deg, var(--gold), #fff19b);
  box-shadow: 0 12px 30px rgba(255,216,77,.25);
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(255,216,77,.32); }
.cta-secondary {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  color: var(--text);
}
.cta-secondary:hover { background: rgba(255,255,255,.08); }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding: 56px 0 28px;
  position: relative;
  overflow: hidden;
}
.page-hero .breadcrumb-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.page-hero .breadcrumb-bar a { color: var(--cyan); }
.page-hero .breadcrumb-bar a:hover { color: #fff; }
.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.04;
  margin: 0 0 14px;
  letter-spacing: -.03em;
}
.page-hero h1 span {
  background: linear-gradient(135deg, #ffffff 0%, var(--cyan) 60%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero p.lead { font-size: 1.08rem; color: var(--muted); max-width: 760px; margin: 0 0 18px; }

/* ---------- Sections ---------- */
.section { padding: 40px 0; }
.section-heading { max-width: 820px; margin-bottom: 24px; }
.section-heading .eyebrow {
  color: var(--cyan);
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .15em;
  font-weight: 800;
  margin-bottom: 10px;
  display: inline-block;
}
.section-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.06;
  letter-spacing: -.03em;
}
.section-heading p { margin: 0; color: var(--muted); font-size: 1.04rem; }

/* ---------- Grids ---------- */
.grid-3, .grid-2, .stats-grid, .stakeholders-grid, .grid-4 {
  display: grid;
  gap: 18px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.stats-grid { grid-template-columns: repeat(4, 1fr); }
.stakeholders-grid { grid-template-columns: repeat(5, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3, .card h4 { margin-top: 0; margin-bottom: 12px; line-height: 1.18; }
.card p { margin: 0 0 8px; color: var(--muted); }
.card ul { margin: 6px 0 0; padding-left: 20px; color: var(--muted); }
.card ul li { margin-bottom: 4px; }

.card-link {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card-link:hover {
  transform: translateY(-3px);
  border-color: rgba(255,216,77,.4);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.card-link::after {
  content: "→";
  position: absolute;
  top: 24px; right: 24px;
  color: var(--gold);
  font-size: 1.4rem;
  opacity: .75;
  transition: transform .25s;
}
.card-link:hover::after { transform: translateX(4px); opacity: 1; }
.card-link .card-tag {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(83,241,255,.14);
  color: var(--cyan);
  border: 1px solid rgba(83,241,255,.3);
  margin-bottom: 10px;
}
.card-link h3 { margin: 6px 0 8px; font-size: 1.2rem; }
.card-link p { color: var(--muted); margin: 0; font-size: .95rem; }

.axis-card { position: relative; overflow: hidden; }
.axis-num {
  position: absolute;
  top: 14px; right: 18px;
  font-size: 3.2rem;
  font-weight: 900;
  color: rgba(255,255,255,.06);
  letter-spacing: -.05em;
  line-height: 1;
}

/* ---------- Stats ---------- */
.stat {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.11);
}
.stat strong {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 6px;
  letter-spacing: -.03em;
}
.stat span { color: var(--muted); font-size: .95rem; }

/* ---------- Stakeholders ---------- */
.stakeholder {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.11);
  text-align: center;
  font-weight: 700;
  min-height: 122px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.stakeholder-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.25rem;
  background: linear-gradient(135deg, rgba(83,241,255,.22), rgba(125,124,255,.22));
  border: 1px solid rgba(255,255,255,.12);
}

/* ---------- Agenda timeline ---------- */
.agenda { display: grid; gap: 14px; }
.agenda-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 22px;
  align-items: flex-start;
  padding: 22px 24px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  border-left: 4px solid var(--cyan);
  border-radius: 18px;
  transition: .2s ease;
}
.agenda-item:hover { background: rgba(255,255,255,.07); border-left-color: var(--gold); }
.agenda-item.is-keynote { border-left-color: var(--gold); background: linear-gradient(90deg, rgba(255,216,77,.06), rgba(255,255,255,.04)); }
.agenda-item.is-break { border-left-color: rgba(255,255,255,.25); background: rgba(255,255,255,.03); }
.agenda-item.is-key { border-left-color: var(--red); background: linear-gradient(90deg, rgba(255,79,112,.08), rgba(255,255,255,.04)); }
.agenda-time { font-weight: 800; font-size: 1.08rem; color: var(--cyan); letter-spacing: .02em; }
.agenda-item.is-keynote .agenda-time { color: var(--gold); }
.agenda-item.is-key .agenda-time { color: var(--red); }
.agenda-content h4 { margin: 0 0 6px; font-size: 1.18rem; line-height: 1.25; }
.agenda-content p { margin: 0; color: var(--muted); font-size: .98rem; }
.agenda-content ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: .94rem; }
.agenda-tag {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(83,241,255,.14);
  color: var(--cyan);
  border: 1px solid rgba(83,241,255,.3);
  margin-bottom: 8px;
  font-weight: 700;
}
.agenda-item.is-keynote .agenda-tag { background: rgba(255,216,77,.14); color: var(--gold); border-color: rgba(255,216,77,.35); }
.agenda-item.is-key .agenda-tag { background: rgba(255,79,112,.14); color: var(--red); border-color: rgba(255,79,112,.35); }
.agenda-item.is-break .agenda-tag { background: rgba(255,255,255,.08); color: var(--muted); border-color: rgba(255,255,255,.18); }

/* ---------- Notice ---------- */
.notice {
  padding: 22px 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,216,77,.16), rgba(83,241,255,.10));
  border: 1px solid rgba(255,216,77,.32);
  color: var(--text);
}
.notice strong { display: block; margin-bottom: 8px; font-size: 1.08rem; color: var(--gold); }

.open-call {
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,79,112,.10), rgba(255,216,77,.10));
  border: 1px solid rgba(255,255,255,.14);
}
.open-call h3 { margin-top: 0; }

/* ---------- Declaration block ---------- */
.declaration {
  padding: 36px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,216,77,.18), transparent 50%),
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,216,77,.25);
  box-shadow: var(--shadow);
}
.declaration h3 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -.02em;
}
.declaration h3 span {
  background: linear-gradient(135deg, var(--gold), #fff19b 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.declaration-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
  padding: 0;
}
.declaration-list li {
  list-style: none;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
}
.declaration-list li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 8px;
}

/* ---------- Team table (MAG) ---------- */
.table-wrap { overflow-x: auto; }
.team-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,.04);
  border-radius: 16px;
  overflow: hidden;
}
.team-table thead { background: rgba(51,181,255,.18); }
.team-table th, .team-table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.team-table th { color: var(--blue); font-weight: 700; }
.team-table tr:nth-child(even) td { background: rgba(255,255,255,.025); }
.team-table tr:last-child td { border-bottom: none; }

.mag-card {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: .25s;
}
.mag-card:hover { transform: translateY(-2px); border-color: rgba(83,241,255,.3); }
.mag-card .mag-avatar {
  width: 70px; height: 70px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  color: white;
  font-weight: 800;
  font-size: 1.6rem;
}
.mag-card h4 { margin: 0 0 4px; color: var(--text); }
.mag-card .mag-group {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255,216,77,.16);
  color: var(--gold);
  border: 1px solid rgba(255,216,77,.32);
  font-weight: 700;
  margin-bottom: 6px;
}
.mag-card .mag-role { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Contact box ---------- */
.contact-box {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: stretch;
}
.contact-panel {
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(83,241,255,.12), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
}
.contact-panel h3 { margin-top: 0; margin-bottom: 14px; font-size: 1.35rem; }
.contact-lines { display: grid; gap: 12px; color: var(--muted); }
.contact-line strong { display: inline-block; min-width: 150px; color: var(--text); }

/* ---------- Footer ---------- */
.footer { padding: 28px 0 54px; color: var(--muted); }
.footer-wrap {
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.mini { font-size: .92rem; color: var(--muted); }
.mini a { color: var(--muted); }
.mini a:hover { color: var(--gold); }

.tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--muted);
  font-size: .9rem;
  transition: .2s;
}
.tag:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Consent box ---------- */
.consent-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
}
.consent-box label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  cursor: pointer;
}
.consent-box input[type="checkbox"] { margin-top: 4px; transform: scale(1.1); }
.helper-text {
  margin-top: 12px;
  font-size: .92rem;
  color: var(--gold);
  display: none;
}

/* ---------- Page footer nav ---------- */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}
.footer-nav-col h5 { color: var(--gold); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; }
.footer-nav-col ul { list-style: none; padding: 0; margin: 0; }
.footer-nav-col ul li { margin-bottom: 8px; }
.footer-nav-col ul li a { color: var(--muted); font-size: .94rem; }
.footer-nav-col ul li a:hover { color: #fff; }

/* ---------- Recognition badge ---------- */
.recognition-bar {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(51,181,255,.14), rgba(125,124,255,.10));
  border: 1px solid rgba(83,241,255,.25);
  flex-wrap: wrap;
}
.recognition-bar .rec-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(51,181,255,.22);
  color: var(--cyan);
  font-size: 1.6rem;
  flex: 0 0 52px;
}
.recognition-bar p { margin: 0; color: var(--text); flex: 1; min-width: 220px; }
.recognition-bar p strong { color: var(--cyan); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .contact-box { grid-template-columns: 1fr; }
  .grid-3, .stats-grid, .grid-4 { grid-template-columns: 1fr 1fr; }
  .stakeholders-grid { grid-template-columns: repeat(3, 1fr); }
  .declaration-list { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { padding: 10px 0; align-items: flex-start; }
  .nav, .nav-links { flex-direction: column; }
  .nav-links { align-items: flex-start; flex-wrap: wrap; }
  .nav-links a { padding: 4px 0; }
  /* Ocultar badges del nav en mobile (info ya accesible via menu) */
  .nav-links .corpece-badge, .nav-links .escuela-badge { display: none; }
  .grid-3, .grid-2, .grid-4, .stats-grid, .stakeholders-grid { grid-template-columns: 1fr; }
  .agenda-item { grid-template-columns: 1fr; gap: 8px; }
  .contact-line strong { min-width: 0; display: block; margin-bottom: 4px; }
  .footer-nav { grid-template-columns: 1fr; }
  .mag-card { grid-template-columns: 1fr; text-align: center; }
  .mag-card .mag-avatar { margin: 0 auto; }
  /* Recognition bar responsive */
  .recognition-bar { padding: 16px 18px; gap: 12px; }
  .recognition-bar .rec-icon { width: 44px; height: 44px; font-size: 1.4rem; flex: 0 0 44px; }
  .declaration { padding: 24px 20px; }
  /* Ajustar la flecha del card-link en mobile */
  .card-link { padding: 20px 22px; }
  .card-link::after { top: 18px; right: 18px; font-size: 1.2rem; }
}

/* Mobile pequeño */
@media (max-width: 480px) {
  .page-hero { padding: 36px 0 20px; }
  .page-hero h1 { font-size: 1.7rem; }
  .pill, .pill-live, .pill-gold { font-size: .8rem; padding: 8px 12px; }
  .section { padding: 30px 0; }
  .cta, .cta-secondary { padding: 12px 18px; font-size: .9rem; }
}
