/* ============================================================
   ATPP — Asociación de Traductores Profesionales del Perú
   Hoja de estilos principal · Diseño moderno 2026
   ============================================================ */

/* ---------- 1. Tokens de diseño ---------- */
:root {
  /* Paleta */
  --ink:        #0c2233;   /* azul tinta muy oscuro (texto/fondos oscuros) */
  --navy:       #103a5a;   /* azul institucional profundo */
  --primary:    #1d6fa5;   /* azul principal */
  --primary-600:#1a5f8e;
  --teal:       #1aa39a;   /* teal — acento fresco */
  --teal-700:   #0f7a72;   /* teal oscuro — para texto sobre fondo claro */
  --teal-soft:  #e6f6f4;
  --amber:      #f4a72c;   /* acento cálido para CTA */
  --amber-600:  #e0951c;

  /* Neutros */
  --bg:         #ffffff;
  --bg-soft:    #f5f8fb;   /* fondo de secciones suaves */
  --bg-tint:    #eef4f9;
  --border:     #e1e8ef;
  --text:       #2b3a47;   /* texto principal */
  --text-soft:  #5a6b7a;   /* texto secundario */
  --white:      #ffffff;

  /* Tipografía */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;

  /* Radios, sombras, layout */
  --radius:     14px;
  --radius-lg:  22px;
  --radius-pill:999px;
  --shadow-sm:  0 1px 2px rgba(16,58,90,.06), 0 1px 3px rgba(16,58,90,.08);
  --shadow:     0 6px 18px rgba(16,58,90,.08), 0 2px 6px rgba(16,58,90,.06);
  --shadow-lg:  0 24px 60px rgba(12,34,51,.14);
  --maxw:       1160px;
  --gutter:     clamp(1.1rem, 4vw, 2.5rem);
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-600); }
ul { list-style: none; padding: 0; }

/* ---------- 3. Tipografía ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 600; }
h4 { font-size: 1.1rem; }
p  { color: var(--text-soft); }
strong { color: var(--text); font-weight: 600; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .8rem;
}

/* ---------- 4. Layout base ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.08rem; margin-top: .6rem; }

.lead { font-size: 1.18rem; color: var(--text-soft); }
.muted { color: var(--text-soft); }

/* ---------- 5. Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.6rem; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform var(--transition); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-600); color: #fff; }
.btn-accent { background: var(--amber); color: var(--ink); box-shadow: 0 6px 18px rgba(244,167,44,.35); }
.btn-accent:hover { background: var(--amber-600); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); background: var(--bg-tint); color: var(--primary-600); }

/* ---------- 6. Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { max-width: 1240px; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand:hover { color: inherit; }
.brand .logo-mark { width: 44px; height: 44px; }
.brand .logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand .logo-text b {
  font-family: var(--font-head); font-weight: 600; font-size: 1.5rem;
  color: var(--ink); letter-spacing: .02em;
}
.brand .logo-text span { font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); font-weight: 600; }

.nav-menu { display: flex; align-items: center; gap: .1rem; }
.nav-menu a {
  font-weight: 500; font-size: .94rem; color: var(--text);
  padding: .5rem .62rem; border-radius: var(--radius-pill); white-space: nowrap;
}
.nav-menu a:hover { background: var(--bg-tint); color: var(--navy); }
.nav-menu a.active { color: var(--primary); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: .6rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: none; background: transparent;
  cursor: pointer; border-radius: 10px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; position: relative;
  width: 22px; height: 2px; background: var(--ink); border-radius: 2px; margin-inline: auto;
  transition: var(--transition);
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after  { top: 0; transform: rotate(-45deg); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 480px at 88% -10%, rgba(26,163,154,.12), transparent 60%),
    radial-gradient(820px 460px at -5% 0%, rgba(29,111,165,.12), transparent 55%),
    linear-gradient(180deg, #eef5fb 0%, #ffffff 100%);
  color: var(--text); overflow: hidden; border-bottom: 1px solid var(--border);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(16,58,90,.05) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .6; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding-block: clamp(3.5rem, 9vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero h1 { color: var(--ink); }
.hero h1 .accent { color: var(--primary); font-style: italic; }
.hero p { color: var(--text-soft); font-size: 1.2rem; max-width: 40ch; margin-top: 1.3rem; }
.hero .hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero .eyebrow { color: var(--teal-700); }

.hero-badges { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.6rem; }
.hero-badges .stat b { font-family: var(--font-head); font-size: 2rem; color: var(--ink); display: block; line-height: 1; }
.hero-badges .stat span { font-size: .85rem; color: var(--text-soft); }

/* Tarjeta flotante del hero */
.hero-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.8rem;
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { color: var(--ink); font-size: 1.2rem; }
.hero-card p { color: var(--text-soft); font-size: .95rem; margin-top: .3rem; }
.lang-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.lang-chips span {
  background: var(--bg-tint); border: 1px solid var(--border);
  color: var(--navy); padding: .32rem .82rem; border-radius: var(--radius-pill);
  font-size: .82rem; font-weight: 500;
}

/* ---------- 8. Page header (interiores) ---------- */
.page-hero {
  background:
    radial-gradient(820px 360px at 92% -20%, rgba(26,163,154,.12), transparent 60%),
    linear-gradient(180deg, #eef5fb, #ffffff);
  color: var(--text); padding-block: clamp(2.6rem, 6vw, 4rem); border-bottom: 1px solid var(--border);
}
.page-hero .eyebrow { color: var(--teal-700); }
.page-hero h1 { color: var(--ink); }
.page-hero p { color: var(--text-soft); max-width: 60ch; margin-top: .8rem; font-size: 1.1rem; }
.breadcrumb { font-size: .85rem; color: var(--text-soft); margin-bottom: 1rem; }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { color: var(--primary-600); }

/* ---------- 9. Cards / grids ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal); margin-bottom: 1.1rem;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .98rem; }

/* Lista con check */
.checklist { display: grid; gap: 1rem; }
.checklist li { display: flex; gap: .85rem; align-items: flex-start; color: var(--text); }
.checklist li::before {
  content: ""; flex-shrink: 0; width: 24px; height: 24px; margin-top: 2px;
  border-radius: 50%; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231aa39a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- 10. Bloques de contenido ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.prose p + p { margin-top: 1.1rem; }
.prose h3 { margin-top: 2rem; margin-bottom: .6rem; }

.value-card {
  background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--teal);
  border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: var(--shadow-sm);
}
.value-card.alt { border-left-color: var(--amber); }
.value-card h3 { color: var(--navy); margin-bottom: .4rem; }

/* Anchor sections con scroll-margin para sticky header */
.anchor { scroll-margin-top: 100px; }

/* Sub-nav interno (pills) */
.subnav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.subnav a {
  background: #fff; border: 1px solid var(--border);
  color: var(--navy); padding: .45rem 1rem; border-radius: var(--radius-pill); font-size: .9rem; font-weight: 500;
}
.subnav a:hover { background: var(--bg-tint); color: var(--primary-600); border-color: var(--primary); }

/* Miembros / fundadores */
.member-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; }
.member-group h4 { color: var(--teal); font-family: var(--font-body); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8rem; }
.member-group ul { display: grid; gap: .45rem; }
.member-group li { color: var(--text); font-size: .98rem; }

/* ---------- 11. Directorio (buscador) ---------- */
.finder {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow);
}
.finder .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--navy); }
.field select, .field input, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--text);
  padding: .8rem 1rem; border: 1.5px solid var(--border); border-radius: 12px;
  background: var(--bg-soft); transition: border var(--transition), box-shadow var(--transition);
  width: 100%;
}
.field select:focus, .field input:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29,111,165,.15); background: #fff;
}
.checks { display: flex; gap: 1.5rem; margin-top: 1.2rem; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; color: var(--text); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }

/* ---------- 12. Eventos ---------- */
.event {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 1.5rem; align-items: center;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.event:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.event .date {
  background: var(--bg-tint); border-radius: 12px; text-align: center; padding: .7rem .4rem; line-height: 1.1;
}
.event .date .d { font-family: var(--font-head); font-size: 1.7rem; color: var(--navy); display: block; }
.event .date .m { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); font-weight: 700; }
.event .date .y { font-size: .72rem; color: var(--text-soft); }
.event .tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal); margin-bottom: .25rem;
}
.event h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.event .where { font-size: .9rem; color: var(--text-soft); }

/* ---------- 13. CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(244,167,44,.22), transparent 60%),
    linear-gradient(135deg, var(--navy), var(--primary));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(2.2rem, 5vw, 3.5rem);
  text-align: center; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d4e3ee; max-width: 50ch; margin: .8rem auto 0; }
.cta-band .hero-actions { justify-content: center; margin-top: 1.8rem; display: flex; gap: .9rem; flex-wrap: wrap; }

/* ---------- 14. Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2.5rem; align-items: start; }
.contact-info .info-item { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.4rem; }
.contact-info .info-item .ic {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal);
}
.contact-info .info-item h4 { color: var(--navy); font-family: var(--font-body); font-size: .95rem; }
.contact-info .info-item p, .contact-info .info-item a { font-size: .98rem; color: var(--text-soft); }

/* ---------- 15. Footer ---------- */
.site-footer { background: var(--ink); color: #b7c6d3; padding-block: 3.5rem 1.8rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .95rem; letter-spacing: .04em; margin-bottom: 1rem; text-transform: uppercase; }
.site-footer a { color: #b7c6d3; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.site-footer ul { display: grid; gap: .6rem; }
.footer-brand p { font-size: .95rem; margin-top: 1rem; max-width: 32ch; }
.footer-brand .brand .logo-text b { color: #fff; }
.footer-brand .brand .logo-text span { color: #8aa0b2; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: #8aa0b2;
}
.social { display: flex; gap: .6rem; }
.social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #cdd9e3; transition: var(--transition);
}
.social a:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }

/* ---------- 16. Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 17. Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .member-cols { grid-template-columns: 1fr; }
}
/* Botón "Buscar traductor" del header: redundante con el menú → oculto siempre */
.nav-cta .btn-outline { display: none; }

@media (max-width: 1200px) {
  .nav-menu { display: none; }
  .nav-toggle { display: block; }
  .nav-open .nav-menu {
    display: flex; flex-direction: column; align-items: stretch; gap: .2rem;
    position: absolute; top: 78px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 1rem var(--gutter) 1.4rem; box-shadow: var(--shadow);
    max-height: calc(100vh - 78px); overflow-y: auto;
  }
  .nav-open .nav-menu a { padding: .8rem 1rem; }
}
@media (max-width: 760px) {
  .split, .grid-2 { grid-template-columns: 1fr; }
  .finder .field-grid { grid-template-columns: 1fr; }
  .event { grid-template-columns: 64px 1fr; }
  .event .btn { grid-column: 2; justify-self: start; }
}
@media (max-width: 480px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   18. Página "En construcción"
   ============================================================ */
.construction {
  min-height: 100vh; display: grid; place-items: center; text-align: center;
  padding: 2rem var(--gutter);
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(26,163,154,.14), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(29,111,165,.12), transparent 55%),
    linear-gradient(180deg, #f3f8fc 0%, #ffffff 60%);
}
.construction-inner { max-width: 640px; }
.construction .logo-mark { width: 84px; height: 84px; margin: 0 auto 1.8rem; }
.construction .badge {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.4rem;
  background: var(--teal-soft); color: var(--teal-700); font-weight: 700;
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .45rem 1rem; border-radius: var(--radius-pill);
}
.construction h1 { font-size: clamp(2rem, 5vw, 3rem); }
.construction .org { font-family: var(--font-body); font-weight: 700; color: var(--primary); letter-spacing: .02em; display:block; margin-bottom:.4rem; font-size:1rem; }
.construction p { font-size: 1.12rem; margin-top: 1rem; }
.construction .contact { margin-top: 2rem; display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.construction .meta { margin-top: 2.5rem; font-size: .85rem; color: var(--text-soft); }
.dotline { width: 60px; height: 4px; border-radius: 4px; background: var(--amber); margin: 1.4rem auto 0; }

/* ============================================================
   19. Acceso con clave (gate) + panel de versiones
   ============================================================ */
.gate-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 2rem var(--gutter);
  background: linear-gradient(180deg, #eef5fb, #fff);
}
.gate-card {
  width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 2.4rem;
  text-align: center;
}
.gate-card .logo-mark { width: 60px; height: 60px; margin: 0 auto 1.2rem; }
.gate-card h1 { font-size: 1.6rem; }
.gate-card p { font-size: .95rem; margin-top: .5rem; }
.gate-card form { margin-top: 1.6rem; text-align: left; }
.gate-error { color: #c0392b; font-size: .88rem; margin-top: .7rem; min-height: 1.2em; }
.gate-note { font-size: .8rem; color: var(--text-soft); margin-top: 1.4rem; }

.version-card {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.3rem 1.6rem; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.version-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.version-card .v-status {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal-700); background: var(--teal-soft); padding: .25rem .6rem; border-radius: var(--radius-pill);
}
.logout-link { font-size: .9rem; }

/* ============================================================
   20. Resultados del directorio
   ============================================================ */
.results { margin-top: 2.5rem; display: grid; gap: 1rem; }
.results-meta { font-weight: 600; color: var(--navy); margin-bottom: .3rem; }
.member-card {
  display: flex; flex-direction: column; gap: .5rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.3rem 1.5rem; box-shadow: var(--shadow-sm);
}
.member-card .m-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.member-card h3 { font-size: 1.15rem; }
.member-card .roles { display: flex; gap: .4rem; }
.member-card .role {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .22rem .6rem; border-radius: var(--radius-pill);
}
.role.trad { color: var(--primary-600); background: var(--bg-tint); }
.role.interp { color: var(--teal-700); background: var(--teal-soft); }
.member-card .pairs { display: flex; flex-wrap: wrap; gap: .4rem; }
.member-card .pair {
  font-size: .82rem; color: var(--navy); background: var(--bg-soft);
  border: 1px solid var(--border); padding: .25rem .7rem; border-radius: var(--radius-pill);
}
.no-results {
  text-align: center; padding: 2.5rem; border: 1px dashed var(--border);
  border-radius: var(--radius); color: var(--text-soft); background: var(--bg-soft);
}

/* ============================================================
   21. Directorio enriquecido: avatares, tarjetas, perfil
   ============================================================ */
.finder .finder-fields { grid-template-columns: 1fr 1fr 1fr; }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }

.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }

.avatar {
  width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--teal));
}
.avatar-initials {
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; letter-spacing: .02em;
}
.avatar-lg { width: 104px; height: 104px; font-size: 2.2rem; }

.member-card { gap: .9rem; }
.member-card .m-head { display: flex; gap: 1rem; align-items: center; }
.member-card .m-id h3 { font-size: 1.15rem; margin: 0; }
.member-card .m-meta { font-size: .85rem; color: var(--text-soft); margin: .25rem 0 0; }
.member-card .roles { margin-top: .35rem; }
.member-card .m-bio {
  font-size: .92rem; color: var(--text-soft); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.role.pub { color: var(--amber-600); background: #fdf3e0; }
.role.coleg { color: #5b4b9a; background: #eeeafb; }
.role.coleg-cert { color: #1f7a4d; background: #e4f4ea; }
.specs { display: flex; flex-wrap: wrap; gap: .4rem; }
.spec {
  font-size: .8rem; color: var(--teal-700); background: var(--teal-soft);
  padding: .25rem .7rem; border-radius: var(--radius-pill);
}
.m-actions { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .3rem; }
.m-actions .quick { display: flex; gap: .4rem; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--navy); transition: var(--transition);
}
.icon-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* Página de perfil */
.profile-head { display: flex; gap: 1.6rem; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; }
.profile-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .5rem; }
.profile-head .roles { display: flex; flex-wrap: wrap; gap: .4rem; }
.profile-sub { color: var(--text-soft); margin-top: .5rem; }
.profile-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: start; }
.profile-main h3 { margin: 1.8rem 0 .7rem; }
.profile-main h3:first-child { margin-top: 0; }
.profile-main .pairs, .profile-main .specs { display: flex; flex-wrap: wrap; gap: .5rem; }
.profile-main p { color: var(--text); }
.profile-aside .card { position: sticky; top: 100px; }
.profile-aside .btn-accent { width: 100%; justify-content: center; }
.info-list { margin-top: 1.2rem; }
.info-list .info-item { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; }
.info-list .ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-700); }
.info-list h4 { font-family: var(--font-body); font-size: .9rem; color: var(--navy); margin-bottom: .1rem; }
.info-list a, .info-list p { font-size: .95rem; color: var(--text-soft); word-break: break-word; }
.profile-social { margin-top: 1.2rem; }
.profile-social a { background: var(--bg-tint); color: var(--navy); }
.profile-social a:hover { background: var(--primary); color: #fff; }

@media (max-width: 860px) {
  .results-grid { grid-template-columns: 1fr; }
  .finder-fields { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-aside .card { position: static; }
}

/* ============================================================
   22. Blog (índice de artículos enlazados)
   ============================================================ */
.post-list { display: grid; gap: 1rem; }
.post-item {
  display: block; background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--teal);
  border-radius: var(--radius); padding: 1.3rem 1.6rem; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.post-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-left-color: var(--amber); }
.post-item .post-date { font-size: .82rem; color: var(--text-soft); font-weight: 600; }
.post-item h3 { font-size: 1.18rem; margin: .3rem 0 .55rem; color: var(--ink); }
.post-item .post-go { font-size: .9rem; font-weight: 600; color: var(--primary); }
.post-item:hover .post-go .arrow { transform: translateX(3px); display: inline-block; }

/* ============================================================
   23. Noticias del sector (RSS) y Recursos
   ============================================================ */
.news-list { display: grid; gap: 1rem; }
.news-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.2rem 1.5rem; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.news-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-item .news-src { font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--teal-700); }
.news-item h3 { font-size: 1.08rem; margin: .25rem 0 .35rem; }
.news-item h3 a { color: var(--ink); }
.news-item h3 a:hover { color: var(--primary); }
.news-item .news-date { font-size: .82rem; color: var(--text-soft); }
.news-status { text-align: center; padding: 2rem; color: var(--text-soft); border: 1px dashed var(--border); border-radius: var(--radius); background: var(--bg-soft); }
.news-status .spinner {
  width: 26px; height: 26px; border: 3px solid var(--border); border-top-color: var(--primary);
  border-radius: 50%; margin: 0 auto .8rem; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.resource-cat { margin-bottom: 2.6rem; }
.resource-cat > h2 { font-size: 1.45rem; margin-bottom: 1.1rem; }
.res-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.res-item {
  display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.res-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--primary); }
.res-item h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.res-item h3 .arrow { color: var(--primary); }
.res-item p { font-size: .9rem; margin: 0; }
@media (max-width: 760px) { .res-grid { grid-template-columns: 1fr; } }

/* Lista de compromisos (Código de Ética) */
.commit-list { counter-reset: c; display: grid; gap: 1rem; max-width: 800px; }
.commit-list li { position: relative; padding-left: 3.2rem; color: var(--text); line-height: 1.6; }
.commit-list li::before {
  counter-increment: c; content: counter(c);
  position: absolute; left: 0; top: -2px; width: 2.1rem; height: 2.1rem;
  border-radius: 50%; background: var(--teal-soft); color: var(--teal-700);
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  display: grid; place-items: center;
}
