/* Club de Empresarios y Profesionales de Marbella — hoja de estilos
   Concepto: «el cartel y el archivo». Cabecera azul noche como los carteles del club,
   fotografía real de los almuerzos, y una cartelera de ponentes con fechas grandes
   en Barlow Condensed (la familia del logotipo) sobre texto de lectura en Newsreader. */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 300 800; font-style: normal; font-display: swap; src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 300 800; font-style: italic; font-display: swap; src: url("../fonts/newsreader-latin-opsz-italic.woff2") format("woff2"); }

:root {
  /* Color */
  --paper: #f4f6fa;       /* fondo de página, blanco frío */
  --sheet: #ffffff;       /* superficies elevadas */
  --ink: #0f2347;         /* azul noche: texto y bandas */
  --ink-soft: #46546e;    /* texto secundario */
  --royal: #1d4fae;       /* azul del logotipo: enlaces y botones */
  --royal-deep: #163f8e;
  --sun: #f2c94c;         /* amarillo del logotipo, solo sobre azul */
  --signal: #e8423b;      /* rojo de la flecha, solo en el logotipo */
  --rule: #d8dfeb;        /* filetes */
  --rule-strong: #b9c4d8;
  --tint: #e9eef7;        /* fondos de fila */
  --band: #0f2347;        /* bandas azul noche */
  --band-2: #13306a;
  --on-band: #f4f6fa;
  --on-band-soft: #b9c6e0;
  --focus: #f2c94c;
  /* Type */
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --ui: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --text: "Newsreader", Georgia, "Times New Roman", serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.2rem + 1.8vw, 2.375rem);
  --step-4: clamp(2.25rem, 1.4rem + 3vw, 3.5rem);
  --step-5: clamp(2.75rem, 1.2rem + 6vw, 6rem);
  /* Layout */
  --wrap: 1200px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --radius: 3px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a1630; --sheet: #0f1f40; --ink: #e9eef8; --ink-soft: #a9b6cf;
    --royal: #8fb1f5; --royal-deep: #b3c9f7; --sun: #f2c94c; --signal: #f0645e;
    --rule: #22365e; --rule-strong: #34507f; --tint: #132649;
    --band: #06102a; --band-2: #0c1d44; --on-band: #eef2fa; --on-band-soft: #a9b8d6; --focus: #f2c94c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0a1630; --sheet: #0f1f40; --ink: #e9eef8; --ink-soft: #a9b6cf;
  --royal: #8fb1f5; --royal-deep: #b3c9f7; --sun: #f2c94c; --signal: #f0645e;
  --rule: #22365e; --rule-strong: #34507f; --tint: #132649;
  --band: #06102a; --band-2: #0c1d44; --on-band: #eef2fa; --on-band-soft: #a9b8d6; --focus: #f2c94c;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-size: var(--step-0); line-height: 1.6;
  font-optical-sizing: auto; text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--band); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--royal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--royal-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.02; letter-spacing: 0; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sun); color: #0f2347; padding: 10px 14px; font-family: var(--ui); font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Cabecera ---------- */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--band); color: var(--on-band); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.brand:hover { color: inherit; }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.0625rem; line-height: 1.05; letter-spacing: .01em; }
.brand-name span { display: block; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { font-family: var(--ui); font-weight: 500; font-size: 1rem; color: var(--on-band); text-decoration: none; padding: 10px 12px; border-radius: var(--radius); }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--sun); border-radius: 0; }
.nav .btn { margin-left: 10px; }
.menu-btn { display: none; margin-left: auto; background: transparent; color: var(--on-band); border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); font-family: var(--ui); font-weight: 600; font-size: 1rem; padding: 9px 14px; cursor: pointer; }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--band); padding: 8px var(--gutter-r) 20px var(--gutter-l); border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; font-size: 1.125rem; }
  .nav .btn { margin: 16px 0 0; justify-content: center; }
}
@media (max-width: 420px) { .brand-name { font-size: .95rem; } .brand svg { width: 38px; height: 38px; } }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--ui); font-weight: 600; font-size: 1rem; line-height: 1; padding: 14px 20px; border-radius: var(--radius); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.btn-sun { background: var(--sun); color: #0f2347; }
.btn-sun:hover { background: #ffd95e; color: #0f2347; }
.btn-royal { background: var(--royal); color: #fff; }
.btn-royal:hover { background: var(--royal-deep); color: #fff; }
:root[data-theme="dark"] .btn-royal, :root[data-theme="dark"] .btn-royal:hover { color: #0a1630; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-royal, :root:not([data-theme="light"]) .btn-royal:hover { color: #0a1630; } }
.btn-line { background: transparent; color: inherit; border-color: currentColor; }
.btn-line:hover { background: rgba(127,140,170,.12); color: inherit; }
.nav a.btn-sun, .band a.btn-sun, .nav a.btn-sun:hover, .band a.btn-sun:hover { color: #0f2347; background-color: var(--sun); }
.band a.btn-line, .band a.btn-line:hover { color: var(--on-band); }
.nav a.btn-sun[aria-current="page"] { box-shadow: none; border-radius: var(--radius); }
.btn-sm { padding: 10px 14px; font-size: .9375rem; }

/* ---------- Héroe ---------- */
.hero { position: relative; color: #f4f6fa; background: #0f2347; overflow: hidden; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,24,52,.94) 0%, rgba(10,24,52,.86) 38%, rgba(10,24,52,.45) 70%, rgba(10,24,52,.25) 100%), linear-gradient(0deg, rgba(10,24,52,.55) 0%, rgba(10,24,52,0) 40%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 48px; align-items: end; padding-block: clamp(64px, 9vw, 128px) clamp(48px, 6vw, 80px); }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: var(--step-5); line-height: .92; letter-spacing: -.005em; max-width: 11.5ch; }
.hero-lead { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.5; max-width: 38ch; margin-top: 24px; color: #dbe3f2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .btn-line { color: #f4f6fa; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; } .hero::after { background: linear-gradient(180deg, rgba(10,24,52,.78) 0%, rgba(10,24,52,.9) 55%, rgba(10,24,52,.97) 100%); } }

/* Cartel: tarjeta del último / próximo almuerzo */
.cartel { background: #ffffff; color: #0f2347; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px -24px rgba(0,0,0,.55); max-width: 420px; justify-self: end; width: 100%; }
.cartel-top { background: #1d4fae; color: #fff; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--ui); font-weight: 600; font-size: .9375rem; }
.cartel-top svg { width: 30px; height: 30px; flex: none; }
.cartel-body { padding: 20px 20px 22px; display: grid; gap: 14px; }
.cartel-date { display: flex; align-items: baseline; gap: 12px; font-family: var(--display); }
.cartel-date b { font-weight: 700; font-size: 4.25rem; line-height: .8; color: #1d4fae; }
.cartel-date span { font-weight: 600; font-size: 1.375rem; line-height: 1.05; }
.cartel-date small { display: block; font-family: var(--ui); font-weight: 500; font-size: .875rem; color: #46546e; }
.cartel-title { font-family: var(--text); font-style: italic; font-size: 1.1875rem; line-height: 1.35; }
.cartel-who { font-family: var(--display); font-weight: 600; font-size: 1.375rem; line-height: 1.05; }
.cartel-who small { display: block; font-family: var(--ui); font-weight: 400; font-size: .9375rem; color: #46546e; margin-top: 4px; line-height: 1.35; }
.cartel-where { font-family: var(--ui); font-size: .9375rem; color: #46546e; border-top: 1px solid #d8dfeb; padding-top: 12px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cartel-where a { font-weight: 600; }
@media (max-width: 880px) { .cartel { justify-self: start; } }

/* ---------- Datos clave ---------- */
.facts { background: var(--band-2); color: var(--on-band); }
.facts dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts dl > div { padding: 22px 20px; border-right: 1px solid rgba(255,255,255,.12); }
.facts dl > div:first-child { padding-left: 0; }
.facts dl > div:last-child { border-right: 0; }
.facts dt { font-family: var(--ui); font-size: .875rem; color: var(--on-band-soft); }
.facts dd { margin: 4px 0 0; font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.1; }
@media (max-width: 880px) { .facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts dl > div:nth-child(2) { border-right: 0; } .facts dl > div:nth-child(3) { padding-left: 0; } .facts dl > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); } }
@media (max-width: 460px) { .facts dl { grid-template-columns: 1fr; } .facts dl > div { border-right: 0 !important; padding: 16px 0 !important; border-bottom: 1px solid rgba(255,255,255,.12); } .facts dl > div:last-child { border-bottom: 0; } }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { font-size: var(--step-4); max-width: 16ch; }
.section-head p { color: var(--ink-soft); max-width: 52ch; }
.section-head .more { justify-self: start; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }
.kicker { font-family: var(--ui); font-weight: 600; font-size: .9375rem; color: var(--royal); margin-bottom: 14px; display: block; }
.band { background: var(--band); color: var(--on-band); }
.band .section-head p { color: var(--on-band-soft); }
.band a { color: var(--sun); }
.band .kicker { color: var(--sun); }
.prose { max-width: 66ch; }
.prose p + p { margin-top: 1em; }
.prose h2 { font-size: var(--step-3); margin: 1.6em 0 .5em; }
.prose h3 { font-size: var(--step-2); margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 1em 0; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 3px solid var(--sun); font-style: italic; }

/* ---------- El club ---------- */
.club { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.club-text h2 { font-size: var(--step-4); max-width: 14ch; margin-bottom: 28px; }
.club-text p { max-width: 58ch; }
.club-text p + p { margin-top: 1em; }
.aims { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.aims li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 16px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.aims .n { font-family: var(--display); font-weight: 700; font-size: 2.25rem; line-height: 1; color: var(--royal); }
.aims h3 { font-size: 1.5rem; margin-bottom: 6px; }
.aims p { color: var(--ink-soft); }
@media (max-width: 880px) { .club { grid-template-columns: 1fr; } }

/* ---------- Formato del almuerzo ---------- */
.agenda { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--sun); margin-top: 8px; }
.agenda li { list-style: none; padding: 20px 24px 0 0; }
.agenda li + li { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.14); }
.agenda time, .agenda .t { font-family: var(--display); font-weight: 700; font-size: 2.5rem; line-height: 1; color: var(--sun); display: block; }
.agenda h3 { font-size: 1.375rem; margin: 10px 0 6px; color: var(--on-band); }
.agenda p { color: var(--on-band-soft); font-size: 1rem; }
.agenda ol, ol.agenda { padding: 0; margin: 0; }
@media (max-width: 880px) { .agenda { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } .agenda li:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 520px) { .agenda { grid-template-columns: 1fr; } .agenda li + li { padding-left: 0; border-left: 0; } }
.strip { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; margin-top: 48px; }
.strip figure { margin: 0; position: relative; }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.strip figure:first-child img { aspect-ratio: auto; height: 100%; }
.strip figcaption { font-family: var(--ui); font-size: .875rem; color: var(--on-band-soft); margin-top: 8px; }
@media (max-width: 760px) { .strip { grid-template-columns: 1fr 1fr; } .strip figure:first-child { grid-column: 1 / -1; } .strip figure:first-child img { aspect-ratio: 16 / 9; height: auto; } }
.price { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); font-family: var(--ui); color: var(--on-band-soft); align-items: baseline; }
.price strong { font-family: var(--display); font-weight: 600; font-size: 1.75rem; color: var(--on-band); margin-right: 6px; }

/* ---------- Cartelera ---------- */
.year { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 0 32px; border-top: 2px solid var(--ink); padding-top: 12px; }
.year + .year { margin-top: 56px; }
.year-n { font-family: var(--display); font-weight: 700; font-size: clamp(3.5rem, 2rem + 4vw, 5.5rem); line-height: .85; color: var(--rule-strong); position: sticky; top: 96px; align-self: start; }
.talks { list-style: none; margin: 0; padding: 0; }
.talk { display: grid; grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1.25fr) 76px; gap: 8px 28px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.talk:first-child { padding-top: 6px; }
.talk-date { font-family: var(--display); line-height: 1; }
.talk-date b { display: block; font-weight: 700; font-size: 3rem; color: var(--royal); }
.talk-date span { display: block; font-family: var(--ui); font-weight: 500; font-size: .875rem; color: var(--ink-soft); margin-top: 4px; }
.talk-date.month b { font-size: 1.75rem; padding-top: 6px; }
.talk-who { font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.05; }
.talk-who small { display: block; font-family: var(--ui); font-weight: 400; font-size: .9375rem; line-height: 1.35; color: var(--ink-soft); margin-top: 6px; }
.talk-topic { font-style: italic; font-size: 1.125rem; line-height: 1.4; }
.talk-topic .tag { font-style: normal; display: inline-block; margin-top: 8px; font-family: var(--ui); font-size: .8125rem; font-weight: 600; color: var(--ink); background: var(--tint); border: 1px solid var(--rule); padding: 3px 8px; border-radius: 99px; }
.talk-link { font-family: var(--ui); font-weight: 600; font-size: .9375rem; white-space: nowrap; padding-top: 2px; justify-self: end; }
.talk-link span { color: var(--ink-soft); font-weight: 400; }
@media (max-width: 980px) { .talk { grid-template-columns: 80px minmax(0, 1fr); } .talk-topic, .talk-link { grid-column: 2; justify-self: start; } .year { grid-template-columns: 1fr; } .year-n { position: static; margin-bottom: 8px; font-size: 3.5rem; } }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 120px; gap: 10px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; font-family: var(--ui); font-size: .8125rem; line-height: 1.3; color: #fff; background: linear-gradient(0deg, rgba(10,24,52,.85), rgba(10,24,52,0)); }
.g-a { grid-column: span 6; grid-row: span 4; } .g-b { grid-column: span 3; grid-row: span 2; } .g-c { grid-column: span 3; grid-row: span 2; }
.g-d { grid-column: span 3; grid-row: span 2; } .g-e { grid-column: span 3; grid-row: span 2; } .g-f { grid-column: span 4; grid-row: span 2; } .g-g { grid-column: span 4; grid-row: span 2; } .g-h { grid-column: span 4; grid-row: span 2; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; } .gallery figure { grid-column: span 1 !important; grid-row: span 1 !important; } .gallery .g-a { grid-column: 1 / -1 !important; grid-row: span 2 !important; } }

/* ---------- Presidente ---------- */
.president { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.president figure { margin: 0; }
.president img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius); }
.president h2 { font-size: var(--step-4); margin-bottom: 8px; }
.president .role { font-family: var(--ui); font-weight: 500; color: var(--ink-soft); margin-bottom: 24px; }
.president p + p { margin-top: 1em; }
.creds { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; border-top: 1px solid var(--rule); }
.creds li { padding: 14px 0; border-bottom: 1px solid var(--rule); font-family: var(--ui); font-size: .9375rem; }
.creds b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.25rem; }
@media (max-width: 820px) { .president { grid-template-columns: 1fr; } .president img { aspect-ratio: 4 / 3; } }
@media (max-width: 480px) { .creds { grid-template-columns: 1fr; } }

/* ---------- Noticias ---------- */
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.news-item { display: grid; gap: 12px; align-content: start; }
.news-item a.img { display: block; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.news-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s ease; }
.news-item a.img:hover img { transform: scale(1.03); }
.news-meta { font-family: var(--ui); font-size: .875rem; color: var(--ink-soft); display: flex; gap: 10px; flex-wrap: wrap; }
.news-meta .cat { color: var(--royal); font-weight: 600; }
.news-item h2, .news-item h3 { font-size: 1.625rem; line-height: 1.05; }
.news-item h2 a, .news-item h3 a { color: var(--ink); text-decoration: none; }
.news-item h2 a:hover, .news-item h3 a:hover { color: var(--royal); }
.news-item p { color: var(--ink-soft); font-size: 1rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 920px) { .news { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .news { grid-template-columns: 1fr; } }
.cover { aspect-ratio: 3 / 2; background: var(--band); color: var(--on-band); display: grid; align-content: space-between; padding: 18px; }
.cover svg { width: 40px; height: 40px; }
.cover span { font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.05; max-width: 16ch; }

/* ---------- Banda final: invitación ---------- */
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.join h2 { font-size: var(--step-4); max-width: 13ch; margin-bottom: 24px; }
.steps { list-style: none; counter-reset: s; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 700; font-size: 1.25rem; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--sun); color: var(--sun); }
@media (max-width: 880px) { .join { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact h2 { font-size: var(--step-4); margin-bottom: 20px; max-width: 12ch; }
.contact-data { margin: 28px 0 0; display: grid; gap: 18px; }
.contact-data dt { font-family: var(--ui); font-size: .875rem; color: var(--ink-soft); }
.contact-data dd { margin: 2px 0 0; font-family: var(--display); font-weight: 600; font-size: 1.375rem; line-height: 1.2; word-break: break-word; }
.contact-data dd a { color: var(--ink); text-decoration-color: var(--rule-strong); }
.form { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-family: var(--ui); font-weight: 600; font-size: .9375rem; }
.field input, .field select, .field textarea { font: inherit; font-family: var(--ui); font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 12px 12px; width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--royal); outline-offset: 0; border-color: var(--royal); }
.check { grid-column: 1 / -1; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-family: var(--ui); font-size: .9375rem; color: var(--ink-soft); align-items: start; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--royal); }
.hp { position: absolute; left: -9999px; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { font-family: var(--ui); font-size: .9375rem; }
.form-status.ok { color: #1c7a43; }
.form-status.err { color: #b42318; }
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* ---------- Página interior ---------- */
.page-head { background: var(--band); color: var(--on-band); }
.page-head .wrap { padding-block: clamp(48px, 7vw, 96px) clamp(36px, 5vw, 64px); }
.page-head h1 { font-size: var(--step-5); font-weight: 700; line-height: .92; max-width: 16ch; }
.page-head p { color: var(--on-band-soft); max-width: 60ch; margin-top: 20px; font-size: 1.1875rem; }
.crumbs { font-family: var(--ui); font-size: .875rem; color: var(--on-band-soft); margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--on-band-soft); }
.crumbs a:hover { color: #fff; }
.crumbs li { list-style: none; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }

/* ---------- Artículo ---------- */
.article-head { background: var(--band); color: var(--on-band); }
.article-head .wrap { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 48px); }
.article-head h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem); font-weight: 700; line-height: .98; max-width: 24ch; }
.article-meta { font-family: var(--ui); color: var(--on-band-soft); margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9375rem; }
.article-figure { margin: 0; }
.article-figure img { width: 100%; max-height: 640px; object-fit: cover; }
.article-figure figcaption { font-family: var(--ui); font-size: .875rem; color: var(--ink-soft); padding-top: 10px; }
.article-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 80px); padding-block: clamp(40px, 5vw, 72px); }
.article-body .lead { font-size: 1.3125rem; line-height: 1.5; font-weight: 500; margin-bottom: 1.2em; }
.article-body .prose { font-size: 1.1875rem; line-height: 1.65; }
.aside { display: grid; gap: 28px; align-content: start; position: sticky; top: 100px; }
.aside-box { border-top: 2px solid var(--ink); padding-top: 14px; }
.aside-box h2 { font-size: 1.375rem; margin-bottom: 10px; }
.aside-box p, .aside-box li { font-family: var(--ui); font-size: .9375rem; color: var(--ink-soft); }
.aside-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.aside-box .btn { margin-top: 14px; }
@media (max-width: 920px) { .article-body { grid-template-columns: 1fr; } .aside { position: static; } }
.video { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center; margin: 1.6em 0; padding: 18px; background: var(--band); color: var(--on-band); border-radius: var(--radius); text-decoration: none; font-family: var(--ui); }
.video:hover { color: var(--on-band); background: var(--band-2); }
.video .play { width: 64px; height: 64px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; }
.video .play::after { content: ""; border-left: 18px solid #0f2347; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.video b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.375rem; }
.video span { color: var(--on-band-soft); font-size: .9375rem; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 2em; }
.thumbs img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 560px) { .thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--rule); padding-top: 28px; margin-top: 8px; }
.pager a { text-decoration: none; display: grid; gap: 4px; }
.pager small { font-family: var(--ui); color: var(--ink-soft); font-size: .875rem; }
.pager span { font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1.1; color: var(--ink); }
.pager a:hover span { color: var(--royal); }
.pager .next { text-align: right; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager .next { text-align: left; } }

/* Índice de noticias */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters button { font-family: var(--ui); font-weight: 600; font-size: .9375rem; padding: 9px 14px; border-radius: 99px; border: 1px solid var(--rule-strong); background: transparent; color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Legal */
.legal { padding-block: clamp(40px, 6vw, 80px); }
.legal .prose { font-size: 1.0625rem; }
.legal table { border-collapse: collapse; width: 100%; font-family: var(--ui); font-size: .9375rem; margin: 1em 0; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--rule); padding: 10px 8px; vertical-align: top; }
.table-wrap { overflow-x: auto; }

/* ---------- Pie ---------- */
.site-foot { background: var(--band); color: var(--on-band-soft); font-family: var(--ui); font-size: .9375rem; }
.site-foot .wrap { padding-block: 56px 32px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid h2 { font-family: var(--ui); font-weight: 600; font-size: .9375rem; color: var(--on-band); margin-bottom: 12px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-foot a { color: var(--on-band-soft); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-brand svg { width: 48px; height: 48px; flex: none; }
.foot-brand p { max-width: 36ch; }
.foot-brand strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.25rem; color: var(--on-band); line-height: 1.1; margin-bottom: 8px; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .875rem; }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* Aviso de vista previa */
.preview-note { background: var(--sun); color: #0f2347; font-family: var(--ui); font-size: .875rem; text-align: center; padding: 8px var(--gutter-r) 8px var(--gutter-l); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-head, .site-foot, .hero-actions, .form, .aside { display: none !important; } body { background: #fff; color: #000; } }

/* ---------- WordPress ---------- */
.more-row { margin-top: 16px; }
.filters a { font-family: var(--ui); font-weight: 600; font-size: .9375rem; padding: 9px 14px; border-radius: 99px; border: 1px solid var(--rule-strong); color: var(--ink); text-decoration: none; }
.filters a:hover { border-color: var(--ink); }
.filters a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.talk-topic .tag-next { background: var(--sun); color: #0f2347; border-color: var(--sun); }
.article-meta a { color: var(--on-band-soft); }
.article-meta a:hover { color: #fff; }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--ui); font-weight: 600; }
.pagination .page-numbers { padding: 10px 14px; border: 1px solid var(--rule-strong); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination .screen-reader-text, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.entry > * + * { margin-top: 1em; }
.entry img { border-radius: var(--radius); }
.entry figure { margin: 1.6em 0; }
.entry figcaption, .entry .wp-element-caption { font-family: var(--ui); font-size: .875rem; color: var(--ink-soft); margin-top: 8px; }
.entry .wp-block-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 1.6em 0; }
.entry .wp-block-gallery figure { margin: 0; }
.entry .wp-block-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 560px) { .entry .wp-block-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.entry .alignwide, .entry .alignfull { max-width: none; }
.entry .wp-block-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.entry blockquote, .entry .wp-block-quote { margin: 1.5em 0; padding-left: 20px; border-left: 3px solid var(--sun); font-style: italic; }
.entry .wp-block-button__link { display: inline-flex; font-family: var(--ui); font-weight: 600; padding: 14px 20px; border-radius: var(--radius); background: var(--royal); color: #fff; text-decoration: none; }
.entry table { border-collapse: collapse; width: 100%; font-family: var(--ui); font-size: .9375rem; }
.entry th, .entry td { text-align: left; border-bottom: 1px solid var(--rule); padding: 10px 8px; vertical-align: top; }
.admin-bar .site-head { top: calc(env(safe-area-inset-top, 0px) + 32px); }
@media (max-width: 782px) { .admin-bar .site-head { top: calc(env(safe-area-inset-top, 0px) + 46px); } }
