/* AV La Nueva Elipa · estilo neobrutalista
   Tipografías alojadas en la propia web (sin Google Fonts) por privacidad. */
@font-face { font-family: "Archivo Black"; src: url("../fonts/archivo-black.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("../fonts/space-mono-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #111111;
  --cream: #FFF7E8;
  --yellow: #FFD23F;
  --pink: #FF8FC7;
  --teal: #23B5A0;
  --white: #FFFFFF;
  --muted: #3D3D3D;
  --b: 3px solid var(--ink);
  --r: 18px;
  --sh: 6px 6px 0 var(--ink);
  --max: 1280px;
  --display: "Archivo Black", "Arial Black", sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--yellow); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--yellow); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { border-bottom: var(--b); }
.section > .wrap { padding-top: clamp(56px, 8vw, 88px); padding-bottom: clamp(56px, 8vw, 88px); }
.dots { background-image: radial-gradient(rgba(17,17,17,.16) 1.4px, transparent 1.8px); background-size: 16px 16px; }
.bg-yellow { background-color: var(--yellow); } .bg-pink { background-color: var(--pink); } .bg-teal { background-color: var(--teal); }
.bg-ink { background-color: var(--ink); color: var(--cream); } .bg-white { background-color: var(--white); } .bg-cream { background-color: var(--cream); }

.display { font-family: var(--display); font-weight: 400; letter-spacing: -0.03em; line-height: 0.95; }
.h2 { font-size: clamp(38px, 5.5vw, 76px); }
.mono { font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 13px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; }
.mark { display: inline-block; background: var(--pink); border: var(--b); border-radius: 14px; padding: 0 .18em; transform: rotate(-2deg); box-shadow: var(--sh); }
.hl { color: var(--yellow); }
.pill { display: inline-block; background: var(--cream); border: var(--b); border-radius: 999px; padding: 6px 14px; box-shadow: 3px 3px 0 var(--ink); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: var(--b); border-radius: 14px; background: var(--cream); color: var(--ink); box-shadow: 5px 5px 0 var(--ink); font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-ink { background: var(--ink); color: var(--yellow); }
.btn-yellow { background: var(--yellow); } .btn-pink { background: var(--pink); } .btn-teal { background: var(--teal); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); }
.btn svg { flex: none; }

.card { background: var(--white); border: var(--b); border-radius: var(--r); box-shadow: var(--sh); }

/* Cinta */
.ticker { background: var(--ink); color: var(--yellow); overflow: hidden; border-bottom: var(--b); padding: 10px 0; }
.ticker.big { background: var(--pink); color: var(--ink); padding: 22px 0; }
.track { display: flex; gap: 40px; width: max-content; animation: marq 40s linear infinite; }
.ticker span { white-space: nowrap; display: inline-flex; align-items: center; gap: 40px; }
.ticker span::after { content: ""; width: 12px; height: 12px; background: currentColor; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.ticker.big span { font-family: var(--display); font-size: clamp(22px, 2.6vw, 34px); }
.ticker.big span::after { width: 22px; height: 22px; }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .track { animation: none; } html { scroll-behavior: auto; } }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--cream); border-bottom: var(--b); }
.nav { display: flex; align-items: center; gap: 16px 28px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.brand .lg-d { height: 50px; width: auto; }
.brand .bar { width: 3px; height: 40px; background: var(--ink); }
.brand .lg-w { height: 46px; width: auto; }
.nav-links { display: flex; gap: 6px 22px; font-weight: 700; }
.nav-links a { text-decoration: none; padding: 10px 0; }
.nav-links a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav-cta { display: none; }
  .brand .lg-d { height: 40px; } .brand .lg-w { height: 38px; } .brand .bar { height: 32px; }
  .nav-links { display: none; width: 100%; flex-direction: column; gap: 0; padding: 8px 0 4px; }
  .nav-links a { padding: 14px 4px; border-top: 2px solid var(--ink); font-size: 20px; }
  .nav.open .nav-links { display: flex; }
}

/* Hero */
.hero { overflow: hidden; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 32px; padding-top: 56px; }
.hero-copy { flex: 1 1 440px; min-width: 0; padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero h1 { font-size: clamp(50px, 7vw, 104px); }
.hero .mark { padding: 0 14px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { flex: 1.35 1 520px; min-width: 0; position: relative; }
.hero-art img { width: 100%; height: auto; }
.bubble { position: absolute; left: -12%; top: 30%; background: var(--cream); border: var(--b); border-radius: 18px; padding: 12px 18px; box-shadow: 5px 5px 0 var(--ink); font-family: var(--display); font-size: clamp(16px, 1.6vw, 22px); transform: rotate(-4deg); text-decoration: none; }
.badge { position: absolute; right: 4%; top: 6%; width: 116px; height: 116px; border-radius: 999px; background: var(--pink); border: var(--b); display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(10deg); box-shadow: 5px 5px 0 var(--ink); line-height: 1; }
.badge b { font-family: var(--display); font-weight: 400; font-size: 40px; }
.badge small { font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
@media (max-width: 760px) {
  .hero-copy { padding-bottom: 84px; }
  .hero-art img { width: 118%; max-width: none; margin-left: -6%; }
  .bubble { left: 2%; top: -14%; }
  .badge { right: 0; top: -4%; width: 84px; height: 84px; }
  .badge b { font-size: 30px; }
}

/* DragonIA */
.chat { overflow: hidden; padding: 0; box-shadow: 10px 10px 0 var(--ink); }
.chat-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 18px 24px; background: var(--teal); border-bottom: var(--b); }
.chat-head h2 { font-size: clamp(24px, 3vw, 34px); }
.chat-head .pill { margin-left: auto; font-size: 12px; box-shadow: none; padding: 4px 12px; }
.chat-body { padding: 28px 24px; display: flex; flex-direction: column; gap: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { min-height: 44px; padding: 0 18px; border: var(--b); border-radius: 999px; background: var(--white); font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.chip[aria-pressed="true"] { background: var(--yellow); }
.msgs { display: flex; flex-direction: column; gap: 14px; }
.msg-q { align-self: flex-end; max-width: 560px; background: var(--yellow); border: var(--b); border-radius: 18px 18px 4px 18px; padding: 14px 18px; font-weight: 500; }
.msg-a { display: flex; gap: 12px; align-items: flex-start; max-width: 760px; }
.msg-a .av { flex: none; width: 46px; height: 46px; background: var(--cream); border: var(--b); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.msg-a .av img { width: 34px; }
.msg-a .txt { background: var(--cream); border: var(--b); border-radius: 4px 18px 18px 18px; padding: 14px 18px; }
.msg-a .txt a { font-weight: 700; }
.ask { display: flex; flex-wrap: wrap; gap: 12px; }
.ask input { flex: 1 1 300px; min-width: 0; }
.note { font-size: 14px; color: var(--muted); }

/* Formularios */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-weight: 700; }
.input { min-height: 52px; padding: 0 16px; border: var(--b); border-radius: 12px; background: var(--white); font-size: 16px; width: 100%; }
textarea.input { padding: 12px 16px; resize: vertical; min-height: 96px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--ink); flex: none; }
.hp { position: absolute; left: -9999px; }
.form-msg { font-weight: 700; padding: 12px 16px; border: var(--b); border-radius: 12px; display: none; }
.form-msg.ok { display: block; background: var(--teal); }
.form-msg.err { display: block; background: var(--pink); }
.file-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border: 3px dashed var(--ink); border-radius: 12px; background: var(--white); font-weight: 700; cursor: pointer; padding: 0 12px; text-align: center; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Rejillas */
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 40px; margin-bottom: 36px; }
.head-row > * { flex: 1 1 380px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 24px; }

/* Reivindicaciones */
.demand { display: flex; flex-direction: column; gap: 14px; padding: 24px; border: var(--b); border-radius: var(--r); box-shadow: var(--sh); }
.demand .num { font-family: var(--display); font-size: 44px; line-height: 1; }
.demand h3 { font-size: 22px; line-height: 1.2; }
.demand p { flex-grow: 1; }
.demand .status { font-size: 14px; background: rgba(255,255,255,.6); border: 2px solid var(--ink); border-radius: 10px; padding: 8px 10px; }
.support-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.support[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }
.count { font-family: var(--mono); font-size: 13px; font-weight: 700; }

/* Qué hacemos */
.act { display: flex; flex-direction: column; gap: 12px; min-height: 220px; padding: 26px; border: 3px solid var(--cream); border-radius: var(--r); box-shadow: 6px 6px 0 var(--cream); color: var(--ink); }
.act .t { font-family: var(--display); font-size: 30px; line-height: 1; }
.act p { margin-top: auto; }

/* Agenda */
.split { display: flex; flex-wrap: wrap; gap: 40px; }
.split > .side { flex: 1 1 320px; display: flex; flex-direction: column; gap: 18px; }
.split > .main { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.event { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 20px 24px; }
.date { flex: none; width: 92px; height: 92px; border: var(--b); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.date b { font-family: var(--display); font-weight: 400; font-size: 36px; }
.date span { font-family: var(--mono); font-size: 13px; text-transform: uppercase; }
.event .info { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; }
.event h3 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.05; }
.event .desc { font-size: 15px; color: var(--muted); }
.event img.poster { flex: 1 1 100%; width: 100%; height: auto; max-height: 360px; object-fit: cover; border: var(--b); border-radius: 12px; }
.cal { position: relative; }
.cal summary { list-style: none; }
.cal summary::-webkit-details-marker { display: none; }
.cal .menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; display: flex; flex-direction: column; min-width: 210px; background: var(--white); border: var(--b); border-radius: 12px; box-shadow: var(--sh); overflow: hidden; }
.cal .menu a { padding: 12px 16px; font-weight: 700; text-decoration: none; border-top: 2px solid var(--ink); }
.cal .menu a:first-child { border-top: 0; }
.cal .menu a:hover { background: var(--yellow); }
.empty { padding: 24px; border: 3px dashed var(--ink); border-radius: var(--r); font-weight: 700; }

.push-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--teal); }
.push-card .ico { width: 46px; height: 46px; background: var(--cream); border: var(--b); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topic { min-height: 40px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--cream); font-weight: 700; font-size: 14px; cursor: pointer; }
.topic[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }
.ios-tip { display: none; font-size: 14px; background: var(--cream); border: 2px solid var(--ink); border-radius: 12px; padding: 10px 12px; }

/* Noticias */
.post-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; border-bottom: var(--b); }
.post-card .in { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.post-card h3 { font-size: 24px; line-height: 1.15; }
.article { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.article .body p { margin: 0 0 1em; font-size: 19px; }
.article img { border: var(--b); border-radius: var(--r); box-shadow: var(--sh); }

/* Socio */
.join { display: flex; flex-wrap: wrap; gap: 32px; padding: clamp(24px, 4vw, 56px); background: var(--yellow); border-radius: 28px; box-shadow: 12px 12px 0 var(--ink); }
.join > .copy { flex: 1.2 1 360px; display: flex; flex-direction: column; gap: 18px; }
.join > form { flex: 1 1 340px; display: flex; flex-direction: column; gap: 12px; }
.benefit { display: flex; gap: 10px; align-items: center; padding: 14px 16px; background: var(--cream); border: var(--b); border-radius: 14px; font-weight: 700; }

/* Pie */
.site-footer .wrap { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 48px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.foot-row > :first-child { flex: 1.4 1 340px; display: flex; flex-direction: column; gap: 16px; }
.foot-row > :last-child { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
.foot-logos { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.foot-btn { display: flex; align-items: center; min-height: 52px; padding: 0 18px; color: var(--ink); border: 3px solid var(--cream); border-radius: 12px; font-weight: 700; text-decoration: none; }
.legal { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-top: 24px; border-top: 2px solid var(--cream); font-size: 14px; }
.legal span { margin-right: auto; }

.legal-page .body p { margin: 0 0 1em; }

/* Créditos: LuckyCat (componente oficial) + LaElipa.es */
.credits { background: linear-gradient(to bottom, transparent 26px, #000 26px); display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; }
.credits .lcf { padding-right: 6px; }
.credits-collab { margin: 0; padding: 0 16px calc(12px + env(safe-area-inset-bottom, 0px)) 0; font: 600 16px/24px Inter, system-ui, sans-serif; color: #9AA0A6; white-space: nowrap; }
.credits-collab a { color: #F8F9FA; text-decoration: none; }
.credits-collab a:hover, .credits-collab a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.credits-collab a:focus-visible { outline: 2px solid #EC6402; outline-offset: 4px; border-radius: 4px; box-shadow: none; }
@media (max-width: 520px) {
  .credits { flex-direction: column; align-items: center; }
  .credits .lcf { padding: 0 16px 4px; }
  .credits-collab { padding: 0 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .credits-collab > span { display: none; }
}
