/* FutuRed — estilos propios, sin frameworks ni fuentes externas */
:root {
  --red: #e30613;
  --red-dark: #b8040f;
  --ink: #1f2328;
  --ink-2: #3d434a;
  --muted: #67707a;
  --line: #e3e6ea;
  --bg: #ffffff;
  --bg-2: #f5f7f8;
  --teal: #13a89e;
  --orange: #f08a3c;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.06);
  --wrap: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); margin: 1.6em 0 .6em; }
h3 { font-size: 1.15rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.12rem; color: var(--ink-2); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 600; color: var(--red); margin: 0 0 .5em; }
.eyebrow a { text-decoration: none; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.rounded { border-radius: var(--radius); }

/* botones */
.btn { display: inline-block; background: var(--red); color: #fff; border: 0; border-radius: 999px; padding: .65em 1.4em;
  font: 600 .95rem var(--font); text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.9); color: var(--ink); }
.btn-ghost:hover { background: #fff; color: var(--red); }
.btn-block { display: block; text-align: center; }

/* cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { flex-shrink: 0; }
.brand img { display: block; width: 120px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 12px; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav li { position: relative; }
.main-nav a, .sub-toggle { display: block; padding: 10px 9px; color: var(--ink); text-decoration: none; font: 500 .95rem var(--font);
  background: none; border: 0; cursor: pointer; border-radius: 6px; white-space: nowrap; }
.main-nav a:hover, .sub-toggle:hover, .main-nav li.active > a, .main-nav li.active > .sub-toggle { color: var(--red); }
.sub-toggle::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: 100%; min-width: 260px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: none; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { display: block; }
.sub a { padding: 8px 10px; }
.sub a:hover { background: var(--bg-2); }
.main-nav .nav-search { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; color: var(--ink); }
.main-nav .nav-search:hover { background: var(--bg-2); color: var(--red); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: var(--ink); position: relative; content: ""; }
.bars::before { position: absolute; top: -7px; } .bars::after { position: absolute; top: 7px; }

@media (max-width: 1200px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 20px 20px; max-height: calc(100vh - 72px); overflow: auto; }
  .main-nav.open { display: flex; }
  .main-nav > ul { flex-direction: column; }
  .sub { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 0 14px; }
  .has-sub:hover .sub { display: none; }
  .has-sub.open .sub { display: block; }
}

/* portada */
.hero { position: relative; min-height: 520px; display: flex; align-items: flex-end; color: var(--ink); overflow: hidden;
  background: linear-gradient(110deg, #f6a07a 0%, #f3b37a 35%, #a8ddd6 65%, #2dbfa4 100%); }
.hero-slides { position: absolute; inset: 0; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s; }
.hero-img.on { opacity: 1; }
.hero-slides::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.75) 45%, rgba(255,255,255,0) 75%); }
.hero-text { position: relative; width: 100%; padding-top: 80px; padding-bottom: 70px; }
.hero-text h1 { font-size: clamp(2.6rem, 2rem + 3vw, 4rem); color: var(--red); margin-bottom: .2em; }
.hero-text .lead { max-width: 620px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.4em; }

.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.section-head .more { margin-left: auto; font-weight: 600; text-decoration: none; }
.band { background: var(--ink); color: #fff; }
.band h2, .band .lead { color: #fff; }
.band-light { background: var(--bg-2); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.number { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 22px 16px; text-align: center; }
.number .n { display: block; font-size: 2.6rem; font-weight: 700; color: #ff4a55; line-height: 1.1; }
.logo-row { display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: center; }
.logo-row img { max-height: 64px; width: auto; filter: grayscale(1); opacity: .8; transition: .2s; }
.logo-row img:hover { filter: none; opacity: 1; }

/* tarjetas */
.cards { display: grid; gap: 22px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.card-img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--bg-2); }
.img-placeholder { background: linear-gradient(110deg, #f6a07a, #a8ddd6 60%, #2dbfa4); }
.doc-placeholder { display: grid; place-items: center; font-weight: 700; font-size: 1.6rem; color: var(--red); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.card-body strong { font-size: 1.05rem; line-height: 1.3; }
.card .link { color: var(--red); font-weight: 600; margin-top: auto; }
.event-card.past { opacity: .78; }
.date-badge { position: absolute; top: 12px; left: 12px; background: #fff; border-radius: 8px; padding: 4px 10px; text-align: center; box-shadow: var(--shadow); line-height: 1.1; }
.date-badge .d { display: block; font-size: 1.4rem; font-weight: 700; color: var(--red); }
.date-badge .m { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.tag-interno { background: #fde7e8; color: var(--red-dark); }
.tag-externo { background: #e2f5f3; color: #0c7a72; }
.tag-past { background: #eceef0; color: var(--muted); }
.group-card { align-items: center; text-align: center; padding-top: 22px; }
.group-icon { width: 72px; height: 72px; object-fit: contain; }

/* páginas interiores */
.page-header { position: relative; padding: 54px 0 34px; background: linear-gradient(110deg, #fde9de 0%, #eaf6f4 100%); overflow: hidden; }
.page-header.with-image { padding: 110px 0 40px; color: #fff; }
.page-header-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-header.with-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,22,25,.72), rgba(20,22,25,.2)); z-index: 1; }
.page-header .wrap { position: relative; z-index: 2; }
.page-header.with-image h1, .page-header.with-image .lead, .page-header.with-image .eyebrow a { color: #fff; }
.page-header h1 { margin: 0; }
.content { max-width: 860px; padding-top: 34px; padding-bottom: 64px; }
.content.wide { max-width: var(--wrap); }
.content > :first-child { margin-top: 0; }
.rich ul, .content ul { padding-left: 1.2em; }
.figure { margin: 24px 0; } .figure figcaption { color: var(--muted); font-size: .9rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin: 24px 0; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.stat h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.stat .n { font-size: 2rem; font-weight: 700; color: var(--red); }
.stat p { margin: 4px 0 0; }
.logo-section { margin: 34px 0; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; align-items: center; }
.logo-grid > a, .logo-grid > img { display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; min-height: 90px; }
.logo-grid img { max-height: 70px; width: auto; object-fit: contain; }
.logo-grid.large { grid-template-columns: 1fr; }
.logo-grid.large > img, .logo-grid.large > a { border: 0; padding: 0; }
.logo-grid.large img { max-height: none; width: 100%; }
.people { margin: 30px 0; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.person img { max-height: 60px; width: auto; margin-bottom: 6px; }
.entity { border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 0; padding: 0 16px; }
.entity summary { cursor: pointer; padding: 14px 0; }
.entity .count { float: right; background: var(--bg-2); border-radius: 999px; padding: 0 9px; font-size: .8rem; }
.step { display: flex; gap: 18px; align-items: flex-start; border-left: 3px solid var(--red); padding: 4px 0 4px 18px; margin: 22px 0; }
.step-n { font-size: 2rem; font-weight: 700; color: var(--red); line-height: 1; }
.step h3 { margin: 0 0 6px; }
.cta { display: flex; gap: 20px; align-items: center; justify-content: space-between; background: var(--bg-2); border-radius: var(--radius); padding: 22px; margin: 28px 0; }
.doc-list { list-style: none; padding: 0 !important; }
.doc-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.doc-list a { font-weight: 500; }
.child-links { margin-top: 32px; }

/* eventos */
.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; margin: 10px 0 26px; padding: 16px; background: var(--bg-2); border-radius: var(--radius); }
.filters label { display: flex; flex-direction: column; font-size: .85rem; font-weight: 600; gap: 4px; }
.filters select, .filters input[type=search] { font: inherit; font-weight: 400; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; min-width: 160px; }
.seg { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg label { flex-direction: row; align-items: center; padding: 5px 12px; border-radius: 999px; cursor: pointer; font-weight: 500; }
.seg input { position: absolute; opacity: 0; }
.seg label:has(input:checked) { background: var(--red); color: #fff; }
.empty { grid-column: 1 / -1; }
.event-detail { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.event-img { margin-bottom: 20px; }
.event-meta { position: sticky; top: 92px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.event-meta dl { margin: 0 0 18px; }
.event-meta dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 12px; }
.event-meta dd { margin: 2px 0 0; }
.pagination { display: flex; gap: 18px; justify-content: center; align-items: center; margin: 30px 0; }

/* formularios */
.form { margin-top: 20px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; }
.field input:not([type=checkbox]):not([type=radio]), .field textarea, .field select { font: inherit; padding: 10px 12px; border: 1px solid #cfd4d9; border-radius: 8px; width: 100%; }
.field textarea { min-height: 140px; }
.field.error input, .field.error textarea { border-color: var(--red); }
.errorlist { color: var(--red); margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.results li { margin-bottom: 12px; }

/* pie */
.site-footer { background: #15171a; color: #c9ced3; padding: 46px 0 18px; font-size: .93rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.footer-logo { background: #fff; border-radius: 8px; padding: 6px 10px; width: 140px; height: auto; }
.footer-h { font-size: 1rem; color: #fff; margin: 0 0 10px; }
.site-footer address { font-style: normal; }
.funding-logo { background: #fff; border-radius: 6px; padding: 8px; max-width: 280px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid #2b2f34; margin-top: 30px; padding-top: 16px; font-size: .85rem; }

@media (max-width: 900px) {
  .cards-3, .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .event-detail, .footer-grid { grid-template-columns: 1fr; }
  .event-meta { position: static; }
  .hero { min-height: 440px; }
}
@media (max-width: 560px) {
  .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .number .n { font-size: 1.8rem; }
  .wrap { padding: 0 16px; }
  .cta { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
