/* ───────────────────────────────────────────────────────────────
   sdr.chat · comunidad
   Sistema visual calcado de la maquetacion de revgenius.com
   (peticion expresa de Joan 2026-10-09). Tokens medidos del sitio
   en vivo: papel #F2EEEB, tinta #10201F, acento lima #E0FE94,
   Inter Tight y botones pildora completa.
   El COPY es nuestro, solo se replica la estructura visual.
   Sin iconos en tiles de color (patron de slop que Joan prohibe).
   ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

:root {
    --paper: #F2EEEB;
    --paper-2: #FFFFFF;
    --line: #DFD9D4;
    --line-strong: #C9C1BA;
    --ink: #10201F;
    --ink-2: #5C6866;

    --panel: #10201F;
    --panel-2: #18302E;
    --panel-line: #2B423F;
    --panel-ink: #F2EEEB;
    --panel-soft: #9FAFAC;

    /* El verde del TEXTO pasa a navy (Joan 2026-10-09). El fondo no se toca.
       Dos tonos del mismo navy porque uno solo no puede contrastar a la vez
       sobre el papel claro y sobre el panel oscuro:
         --accent         navy, botones y texto sobre claro   5,67:1 sobre papel
         --accent-on-dark navy luminoso, texto sobre oscuro   6,54:1 sobre panel */
    --accent: #2E55C4;
    --accent-ink: #FFFFFF;
    --accent-on-dark: #7E9FF5;

    --rhythm: clamp(64px, 8.5vw, 112px);
    --shell: 1140px;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Inter Tight", system-ui, sans-serif;
    font-size: 16.5px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
    font-family: "Inter Tight", system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.04;
    margin: 0;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.shell { max-width: var(--shell); margin-inline: auto; padding-inline: 22px; }

/* ── Botones pildora ──────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit; font-size: 15px; font-weight: 600; white-space: nowrap;
    padding: 13px 26px; border-radius: 130px; border: 1px solid transparent;
    cursor: pointer; text-decoration: none;
    transition: transform .12s ease, background-color .16s ease, color .16s ease, border-color .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-dark:hover { background: #1D3634; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #24449F; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--paper-2); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-outline-light { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: #FFFFFF; }
.btn-light:hover { background: #FFFFFF; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-full { width: 100%; }

/* ── Banda de aviso ───────────────────────────────────────── */
.topbar { background: var(--panel); color: var(--panel-ink); font-size: 13.5px; text-align: center; padding: 10px 20px; }
.topbar a { color: var(--accent-on-dark); font-weight: 600; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

/* ── Nav ──────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 60; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { max-width: var(--shell); margin-inline: auto; padding-inline: 22px; height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font-weight: 800; font-size: 22px; letter-spacing: -0.05em; text-decoration: none; }
.nav-mid { display: flex; align-items: center; gap: 24px; }
.nav-mid > a, .drop > summary { font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; cursor: pointer; opacity: .82; transition: opacity .15s ease; }
.nav-mid > a:hover, .drop > summary:hover { opacity: 1; }
.nav-end { display: flex; align-items: center; gap: 10px; }
@media (max-width: 1000px) { .nav-mid { display: none; } }

.drop { position: relative; }
.drop > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.drop > summary::-webkit-details-marker { display: none; }
.drop > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-1px,-1px); }
.drop[open] > summary::after { transform: rotate(-135deg) translate(-2px,-2px); }
/* Dos columnas y solo el nombre: con ocho perfiles la lista con descripcion
   se iba de alto y desbordaba la pantalla. El detalle vive en su pagina. */
.drop-menu {
    position: absolute; top: calc(100% + 14px); left: -14px; width: 360px;
    background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px;
    padding: 7px; box-shadow: 0 20px 48px -22px rgba(16,32,31,.4);
    display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
}
.drop-menu a { display: block; padding: 9px 11px; border-radius: 9px; font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.drop-menu a:hover { background: var(--paper); }

/* ── Panel oscuro ─────────────────────────────────────────── */
.panel {
    position: relative; overflow: hidden;
    background: var(--panel); color: var(--panel-ink);
    border-radius: 24px; padding: clamp(56px, 8vw, 112px) clamp(24px, 5vw, 72px);
    text-align: center;
}
.panel::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(242,238,235,.07) 1px, transparent 0);
    background-size: 28px 28px;
}
.panel > * { position: relative; }
.panel h1, .panel h2 { color: var(--panel-ink); }
.panel .sub { color: var(--panel-soft); font-size: clamp(16px, 1.8vw, 19px); line-height: 1.55; margin: 22px auto 0; max-width: 56ch; }
.panel .fine { color: var(--panel-soft); font-size: 13.5px; margin-top: 20px; }
.panel .cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Hero a sangre completa con rejilla de fondo y todo a la izquierda
   (referencia que paso Joan 2026-10-09). */
.hero-full {
    position: relative; overflow: hidden;
    background: var(--panel); color: var(--panel-ink);
    padding-block: clamp(72px, 11vw, 150px) clamp(80px, 12vw, 160px);
}
.hero-full::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(242,238,235,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(242,238,235,.045) 1px, transparent 1px);
    background-size: 78px 78px;
}
.hero-full > * { position: relative; }
.kicker-accent {
    font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent-on-dark); margin: 0 0 22px;
}
.hero-full h1 { font-size: clamp(42px, 8.2vw, 92px); letter-spacing: -0.042em; line-height: .98; max-width: 15ch; }
.hero-full h1 em { font-style: normal; color: var(--accent-on-dark); }
.hero-full .tagline {
    font-size: clamp(14.5px, 1.5vw, 16.5px); font-weight: 500; letter-spacing: .01em;
    color: var(--panel-soft); margin: 18px 0 0;
}
.hero-full .tagline strong { color: var(--accent-on-dark); font-weight: 700; }
.hero-full .sub { color: var(--panel-soft); font-size: clamp(16.5px, 1.9vw, 19.5px); line-height: 1.6; margin: 22px 0 0; max-width: 58ch; }
.hero-full .cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 13px; }
.hero-full .fine { color: var(--panel-soft); font-size: 13.5px; margin-top: 22px; }

/* ── Franja de roles (en el sitio de su franja de logos) ──── */
.strip { padding-block: 0 clamp(34px, 4.5vw, 54px); text-align: center; }
.strip .cap { font-size: 14px; color: var(--ink-2); margin: 0 0 22px; }
.strip .list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.strip .list a, .strip .list span {
    font-size: clamp(16px, 2vw, 21px); font-weight: 600; letter-spacing: -0.03em;
    padding: 9px 20px; border: 1px solid var(--line-strong); border-radius: 130px;
    text-decoration: none; background: var(--paper-2);
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.strip .list a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ── Secciones ────────────────────────────────────────────── */
section { padding-block: var(--rhythm); }
section + section, .bordered { border-top: 1px solid var(--line); }
.sec-top { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(20px,4vw,56px); align-items: start; margin-bottom: 36px; }
@media (max-width: 860px) { .sec-top { grid-template-columns: 1fr; } }
.sec-top h2 { font-size: clamp(28px, 4.2vw, 46px); text-wrap: balance; }
.sec-top p { font-size: 16.5px; color: var(--ink-2); margin: 0; }
.sec-top .act { margin-top: 18px; }

.two-col { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(22px,4vw,64px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.two-col h2 { font-size: clamp(30px, 4.6vw, 50px); }
.prose p { font-size: 16.5px; line-height: 1.72; color: var(--ink-2); margin: 0 0 16px; }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose > :last-child { margin-bottom: 0; }

/* ── Tarjetas de evento ───────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px,1fr)); gap: 20px; }
.ecard { background: var(--paper-2); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.ecard:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(16,32,31,.3); }
.ecard .thumb { aspect-ratio: 16/9; background: var(--panel); color: var(--panel-ink); display: flex; align-items: center; justify-content: center; padding: 24px; position: relative; overflow: hidden; }
.ecard .thumb::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(242,238,235,.08) 1px, transparent 0); background-size: 24px 24px; }
.ecard .thumb span { position: relative; font-size: 20px; font-weight: 600; letter-spacing: -0.03em; text-align: center; line-height: 1.2; }
.ecard .body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.ecard .when { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.ecard .ttl { font-size: 18.5px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.22; }
.ecard .dsc { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.ecard .act { margin-top: auto; padding-top: 16px; }

/* ── Tarjetas de participacion (sin tile de icono) ────────── */
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 20px; }
.icard { background: var(--paper-2); border-radius: 18px; padding: 26px 22px 24px; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.icard:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(16,32,31,.26); }
.icard h3 { font-size: 21px; margin-bottom: 10px; }
.icard p { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0 0 20px; }
.icard .act { margin-top: auto; }
.wide { margin-top: 20px; background: var(--paper-2); border-radius: 18px; padding: 28px 24px; }
.wide h3 { font-size: 23px; margin-bottom: 10px; }
.wide p { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); margin: 0 0 20px; max-width: 78ch; }

/* ── Lista de filas ───────────────────────────────────────── */
.rows { border-top: 1px solid var(--line); }
/* Nombre y descripcion en la MISMA linea: apilados ocupaban el doble de alto
   y con ocho puestos la seccion se hacia eterna. */
.row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px 24px; align-items: baseline; padding-block: 13px; border-bottom: 1px solid var(--line); text-decoration: none; }
a.row:hover .go { text-decoration: underline; }
.row > div:first-child { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.row .t { font-size: 17px; font-weight: 600; letter-spacing: -0.03em; }
.row .d { font-size: 14.5px; color: var(--ink-2); margin-top: 0; max-width: 60ch; }
.row .go { font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--ink-2); }
@media (max-width: 620px) { .row { grid-template-columns: 1fr; } }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq { max-width: 780px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding-block: 19px; display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 18px; font-weight: 600; letter-spacing: -0.025em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg) translate(-2px,-2px); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px,-3px); }
.faq .a { font-size: 16px; line-height: 1.68; color: var(--ink-2); padding: 0 0 20px; max-width: 64ch; }

/* ── Alta ─────────────────────────────────────────────────── */
.join { background: var(--paper-2); border-radius: 18px; padding: 28px 26px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.field .hint { font-weight: 400; color: var(--ink-2); }
.field input, .field select { width: 100%; font-family: inherit; font-size: 15px; padding: 12px 13px; border: 1px solid var(--line-strong); border-radius: 0; background: var(--paper-2); color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.field input::placeholder { color: #9AA3A1; }
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(16,32,31,.1); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); margin: 4px 0 18px; cursor: pointer; }
.consent input { margin-top: 2px; width: 16px; height: 16px; flex: none; accent-color: var(--ink); }
.consent a { color: var(--ink); text-underline-offset: 2px; }
.msg { margin-top: 14px; font-size: 14.5px; line-height: 1.55; padding: 13px 15px; border-radius: 10px; display: none; }
.msg.err { display: block; background: #FBE7E2; color: #8E2C1E; }
.done { display: none; }
.done .big { font-size: 23px; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 10px; }
.done p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); margin: 0 0 20px; }
.count { font-size: 13.5px; color: var(--ink-2); margin-top: 16px; display: none; }
.fine-print { font-size: 12.5px; line-height: 1.55; color: var(--ink-2); margin-top: 16px; }
.join-copy h2 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 18px; }
.join-copy p { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); margin: 0 0 14px; }
.join-copy ul { margin: 20px 0 0; padding: 0; list-style: none; }
.join-copy li { font-size: 16px; color: var(--ink-2); padding-block: 8px; display: flex; gap: 12px; }
.join-copy li::before { content: ""; flex: none; width: 9px; height: 9px; margin-top: 8px; border-radius: 50%; background: var(--accent); border: 1px solid var(--line-strong); }

/* ── Footer ───────────────────────────────────────────────── */
footer { background: var(--panel); color: var(--panel-ink); margin-top: var(--rhythm); padding-block: 54px 36px; }
.fnews { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; padding-bottom: 34px; border-bottom: 1px solid var(--panel-line); }
.fnews .t { font-size: 21px; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 6px; }
.fnews .d { font-size: 14.5px; color: var(--panel-soft); max-width: 50ch; }
.fcols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 28px; padding-block: 34px; }
@media (max-width: 760px) { .fcols { grid-template-columns: 1fr 1fr; } }
.fcols .brand { color: var(--panel-ink); }
.fcols .tag { font-size: 14.5px; color: var(--panel-soft); margin-top: 10px; max-width: 34ch; }
.fcols h4 { font-size: 12.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--panel-soft); margin: 0 0 14px; }
.fcols a { display: block; font-size: 14.5px; text-decoration: none; padding-block: 5px; opacity: .85; }
.fcols a:hover { opacity: 1; text-decoration: underline; }
.fbottom { border-top: 1px solid var(--panel-line); padding-top: 22px; font-size: 13px; color: var(--panel-soft); }

/* ── Paginas internas ─────────────────────────────────────── */
.page-head { padding-block: clamp(40px,6vw,76px) 0; }
.crumb { font-size: 14.5px; color: var(--ink-2); margin: 0 0 18px; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.page-head h1 { font-size: clamp(36px, 6vw, 66px); text-wrap: balance; }
.page-head .lede { font-size: clamp(17px,2vw,20px); line-height: 1.55; color: var(--ink-2); margin: 22px 0 0; max-width: 58ch; }
.callout { background: var(--paper-2); border-radius: 18px; padding: 28px 24px; }
.callout h3 { font-size: 23px; margin-bottom: 10px; }
.callout p { font-size: 16px; color: var(--ink-2); margin: 0 0 20px; max-width: 72ch; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps > li { padding-block: 22px; border-bottom: 1px solid var(--line); }
.steps > li:first-child { border-top: 1px solid var(--line); }
.steps .t { font-size: 19px; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 6px; }
.steps .d { font-size: 16px; color: var(--ink-2); line-height: 1.68; max-width: 72ch; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* ── Tablon de empleo ─────────────────────────────────────── */
.joblist { display: grid; gap: 18px; }
.job { background: var(--paper-2); border-radius: 18px; padding: 26px 24px; }
.job-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 20px; }
.job h3 { font-size: 23px; letter-spacing: -0.03em; }
.job .co { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.job .meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 0; }
.job .meta span { font-size: 12.5px; font-weight: 500; padding: 5px 12px; border-radius: 130px; border: 1px solid var(--line-strong); color: var(--ink-2); }
.job .meta span.pay { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.job .meta span.pay-missing { border-style: dashed; }
.job .sum { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); margin: 18px 0 0; max-width: 76ch; }
.job .asks { margin: 16px 0 0; padding: 0; list-style: none; }
.job .asks li { font-size: 15px; color: var(--ink-2); padding-block: 5px; display: flex; gap: 11px; }
.job .asks li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 8px; border-radius: 50%; background: var(--accent); }
.job .act { margin-top: 22px; }

/* ── Newsletter ───────────────────────────────────────────── */
.news-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; max-width: 520px; }
.news-form input {
    flex: 1 1 240px; font-family: inherit; font-size: 15.5px; padding: 14px 15px;
    border: 1px solid var(--line-strong); border-radius: 0; background: var(--paper-2); color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.news-form input::placeholder { color: #9AA3A1; }
.news-form input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(16,32,31,.1); }
.news-legal { font-size: 12.5px; line-height: 1.55; color: var(--ink-2); margin-top: 14px; max-width: 56ch; }
.news-msg { margin-top: 14px; font-size: 14.5px; padding: 12px 15px; border-radius: 10px; display: none; max-width: 520px; }
.news-msg.err { display: block; background: #FBE7E2; color: #8E2C1E; }
.news-msg.ok { display: block; background: #E7F2EA; color: #1E6B3C; }
