/* =========================================================
   CIPEG Lara — hoja de estilos del sitio público
   ========================================================= */
:root {
  --navy: #001c45;
  --navy-2: #0a2c5e;
  --navy-3: #173b70;
  --red: #c91313;
  --red-dark: #a10f0f;
  --gold: #f5c32c;
  --gold-soft: #fff4cc;
  --cream: #fbf7ee;
  --ink: #121826;
  --muted: #5b6474;
  --line: #e6e2d8;
  --white: #fff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(0, 28, 69, .18);
  --shadow-lg: 0 24px 60px -20px rgba(0, 28, 69, .35);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.ico { flex: none; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); padding: 8px 14px; z-index: 2000; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 13px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgba(201, 19, 19, .6); }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #ffd34f; color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.btn-light:hover { background: rgba(255,255,255,.22); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--red); font-size: 14px; }
.link-arrow .ico { width: 18px; height: 18px; transition: transform .15s; }
.link-arrow:hover .ico { transform: translateX(3px); }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(0, 28, 69, .97);
  backdrop-filter: saturate(140%) blur(8px);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 154px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; min-width: 0; }
.brand:hover { color: #fff; }
.brand img { width: 134px; height: 134px; border-radius: 50%; background: #fff; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-family: var(--serif); font-size: 24px; line-height: 1; letter-spacing: -.01em; }
.brand-text small { font-size: 11.5px; line-height: 1.25; opacity: .85; max-width: 250px; margin-top: 4px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 11px; border-radius: 6px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: rgba(255,255,255,.88);
}
.main-nav a:hover { color: var(--gold); background: rgba(255,255,255,.06); }
.main-nav a.active { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav-toggle .ico { width: 28px; height: 28px; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 157px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 8px 16px 20px; border-bottom: 3px solid var(--gold);
    max-height: calc(100vh - 157px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s ease;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 14px 8px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14px; }
  .main-nav a.active { box-shadow: none; }
}
@media (max-width: 520px) {
  .brand-text small { display: none; }
  .brand img { width: 100px; height: 100px; }
  .header-inner { min-height: 118px; }
  .main-nav { inset: 121px 0 auto 0; max-height: calc(100vh - 121px); }
}

/* ---------- Secciones genéricas ---------- */
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.eyebrow {
  display: inline-block; font: 700 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 12px;
}
.bg-navy .eyebrow { color: var(--gold); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin: 0; }
.section-head p { color: var(--muted); max-width: 560px; margin: 10px 0 0; }
.lead { font-size: 19px; color: var(--muted); }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .section { padding: 60px 0; } }

/* ---------- Hero portada ---------- */
.hero {
  position: relative; color: #fff; min-height: min(84vh, 720px);
  display: flex; align-items: center; isolation: isolate; overflow: hidden;
  background: var(--navy);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transform: scale(1.03); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(0, 16, 40, .94) 0%, rgba(0, 28, 69, .78) 45%, rgba(0, 28, 69, .25) 100%);
}
.hero-content { max-width: 720px; padding: 80px 0; }
.hero h1 { color: #fff; font-size: clamp(40px, 6.4vw, 74px); line-height: 1.02; margin-bottom: 22px; font-weight: 600; }
.hero h1 em { font-style: italic; color: var(--gold); display: block; font-weight: 500; }
.hero p { font-size: clamp(17px, 2vw, 20px); opacity: .92; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.1);
  font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}
.hero-badge span { background: var(--gold); color: var(--navy); border-radius: 999px; padding: 3px 10px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Encabezado de páginas internas ---------- */
.page-hero {
  position: relative; color: #fff; background: var(--navy); overflow: hidden; isolation: isolate;
  padding: 72px 0 64px;
}
.page-hero.has-img::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0, 16, 40, .95), rgba(0, 28, 69, .7));
}
.page-hero .hero-bg { z-index: -2; }
.page-hero::after {
  content: ""; position: absolute; right: -80px; bottom: -120px; width: 340px; height: 340px; border-radius: 50%;
  border: 2px solid rgba(245, 195, 44, .25); z-index: -1;
}
.page-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); margin: 0; }
.page-hero p { max-width: 720px; margin: 14px 0 0; font-size: 18px; opacity: .9; }
.page-hero .intro p { margin-bottom: .4em; }
.breadcrumb { font-size: 13px; opacity: .8; margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Tarjetas ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 16 / 10; background: var(--cream); overflow: hidden; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media.placeholder {
  display: grid; place-items: center; color: var(--navy);
  background:
    radial-gradient(circle at 20% 20%, rgba(245,195,44,.35), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(201,19,19,.18), transparent 55%),
    var(--cream);
}
.card-media.placeholder span { font-family: var(--serif); font-size: 46px; opacity: .25; }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 21px; margin: 0; }
.card-body h3 a:hover { color: var(--red); }
.card-body p { color: var(--muted); margin: 0; font-size: 15px; }
.card-body .link-arrow { margin-top: auto; padding-top: 6px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); align-items: center; }
.meta .ico { width: 15px; height: 15px; }
.meta span { display: inline-flex; gap: 5px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: var(--gold-soft); color: #6b4e00;
}
.pill-red { background: #fde8e8; color: var(--red-dark); }
.pill-navy { background: #e6ecf6; color: var(--navy); }

/* ---------- Portada: quiénes somos ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.about-grid h2 { font-size: clamp(32px, 4vw, 46px); }
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.area {
  background: var(--cream); border-radius: var(--radius); padding: 22px 16px; text-align: center;
  border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; color: var(--navy);
  transition: background .2s, transform .2s;
}
.area:hover { background: var(--gold-soft); transform: translateY(-2px); }
.area .emoji { display: block; font-size: 32px; margin-bottom: 8px; line-height: 1; }
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 480px) { .areas { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Portada: bloques destacados ---------- */
.feature-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  border-radius: 20px; padding: 34px 30px; display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden;
}
.feature h3 { font-size: 28px; margin: 0; }
.feature p { color: var(--muted); margin: 0; }
.feature .btn { align-self: flex-start; margin-top: auto; }
.feature-dark { background: radial-gradient(circle at 0 0, var(--navy-3), var(--navy) 70%); color: #fff; border: 0; }
.feature-dark h3 { color: #fff; }
.feature-dark p { color: rgba(255,255,255,.8); }
.feature-dark .eyebrow { color: var(--gold); }
.feature-dark::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%;
  border: 24px solid rgba(245,195,44,.12);
}
@media (max-width: 960px) { .feature-trio { grid-template-columns: 1fr; } }

.searchbox { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; box-shadow: var(--shadow); }
.searchbox input { flex: 1; min-width: 0; border: 0; padding: 14px 20px; font: inherit; background: transparent; }
.searchbox input:focus { outline: none; }
.searchbox button { border: 0; background: var(--red); color: #fff; padding: 0 20px; cursor: pointer; display: grid; place-items: center; }
.searchbox button:hover { background: var(--red-dark); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 13.5px; font-weight: 500;
}
.tag:hover, .tag.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Eventos ---------- */
.event-row {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 18px; align-items: center;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.event-row + .event-row { margin-top: 12px; }
.event-row:hover { border-color: var(--gold); box-shadow: var(--shadow); color: inherit; }
.datebox {
  text-align: center; background: var(--navy); color: #fff; border-radius: 12px; padding: 10px 6px;
  font-weight: 700; font-size: 12px; letter-spacing: .1em; line-height: 1.1;
}
.datebox strong { display: block; font-family: var(--serif); font-size: 30px; letter-spacing: 0; color: var(--gold); }
.datebox small { display: block; font-size: 11px; opacity: .7; letter-spacing: 0; font-weight: 500; }
.event-row h3 { font-size: 19px; margin: 0 0 4px; }
.event-row .past { opacity: .7; }
@media (max-width: 560px) { .event-row { grid-template-columns: 64px 1fr; } .event-row > .link-arrow { display: none; } }

/* ---------- Noticias lista lateral ---------- */
.news-list { display: flex; flex-direction: column; }
.news-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.news-item:first-child { padding-top: 0; }
.news-item small { color: var(--red); font-weight: 600; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; }
.news-item h3 { font-size: 18px; margin: 4px 0 0; font-family: var(--serif); }

/* ---------- Podcast ---------- */
.pod-card .card-media::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,28,69,.6));
}
.pod-play {
  position: absolute; left: 16px; bottom: 14px; z-index: 1; color: #fff; display: inline-flex; gap: 8px; align-items: center;
  font-weight: 700; font-size: 13px;
}
.pod-play .ico { width: 34px; height: 34px; color: var(--gold); }
.player { background: var(--cream); border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); }
.player audio { width: 100%; }
.embed { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; }
.embed.video { aspect-ratio: 16/9; }
.embed.audio { min-height: 160px; background: transparent; }
.embed iframe { width: 100%; height: 100%; border: 0; position: absolute; inset: 0; }
.embed.audio iframe { position: static; height: 232px; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery a { position: relative; border-radius: var(--radius); overflow: hidden; display: block; background: var(--navy-2); }
.gallery a:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.gallery a:hover img { transform: scale(1.05); opacity: .85; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; color: #fff; font-size: 14px; font-weight: 600;
  background: linear-gradient(transparent, rgba(0, 16, 40, .85)); opacity: 0; transition: opacity .3s;
}
.gallery a:hover figcaption, .gallery a:focus figcaption { opacity: 1; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } }
@media (max-width: 480px) { .gallery { grid-auto-rows: 140px; } }

.lightbox {
  position: fixed; inset: 0; z-index: 3000; background: rgba(0, 10, 25, .92);
  display: none; align-items: center; justify-content: center; padding: 24px; flex-direction: column; gap: 12px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; max-width: 100%; border-radius: 8px; }
.lightbox p { color: #fff; margin: 0; text-align: center; }
.lightbox button { position: absolute; top: 16px; right: 16px; background: none; border: 0; color: #fff; cursor: pointer; }
.lightbox button .ico { width: 34px; height: 34px; }

/* ---------- CTA directorio ---------- */
.cta-band {
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
  background: linear-gradient(120deg, var(--red) 0%, #8f0c0c 100%); color: #fff;
  border-radius: 24px; padding: 48px; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 10px; }
.cta-band p { margin: 0; opacity: .9; font-size: 17px; max-width: 620px; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 30px solid rgba(255,255,255,.08); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 36px 26px; } }

/* ---------- Contenido de artículos ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.article-layout aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .article-layout aside { position: static; } }
.prose { font-size: 17.5px; line-height: 1.75; }
.prose h2 { font-size: 30px; margin-top: 1.4em; }
.prose h3 { font-size: 23px; margin-top: 1.4em; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--gold); font-family: var(--serif); font-size: 22px; color: var(--navy); }
.prose iframe { max-width: 100%; border-radius: var(--radius); }
.prose > *:first-child { margin-top: 0; }
.article-cover { border-radius: 20px; overflow: hidden; margin-bottom: 36px; box-shadow: var(--shadow-lg); }
.article-cover img { width: 100%; max-height: 560px; object-fit: cover; }
.side-box { background: var(--cream); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.side-box h3 { font-size: 20px; }
.side-box .news-item h3 { font-size: 16px; }
.source-box {
  display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--gold-soft); border-radius: var(--radius); padding: 20px 24px; margin-top: 28px;
}
.source-box strong { color: var(--navy); }
.share { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--muted); }
.share a { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--navy); }
.share a:hover { background: var(--navy); color: #fff; }

/* ---------- Diccionario ---------- */
.dicc-toolbar { display: flex; flex-direction: column; gap: 18px; margin-bottom: 34px; }
.az { display: flex; flex-wrap: wrap; gap: 6px; }
.az a, .az span {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  font-weight: 700; font-size: 14px; border: 1px solid var(--line); background: #fff;
}
.az a:hover, .az a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.az span { opacity: .3; }
.term-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.term {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 8px; transition: .2s; position: relative;
}
.term:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.term h3 { font-size: 21px; margin: 0; }
.term h3 a::after { content: ""; position: absolute; inset: 0; }
.term p { margin: 0; color: var(--muted); font-size: 15px; }
.letter-head { font-family: var(--serif); font-size: 42px; color: var(--red); margin: 36px 0 14px; border-bottom: 2px solid var(--line); line-height: 1.2; }
.letter-head:first-child { margin-top: 0; }
@media (max-width: 960px) { .term-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .term-grid { grid-template-columns: 1fr; } }
.term-hero h1 { font-size: clamp(42px, 7vw, 76px); }
.term-def { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 28px); line-height: 1.4; color: var(--navy); }

/* ---------- Directorio ---------- */
.dir-filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; margin-bottom: 30px; }
.dir-filters input, .dir-filters select { width: 100%; }
@media (max-width: 760px) { .dir-filters { grid-template-columns: 1fr; } }
.dir-card { padding: 22px; gap: 10px; }
.dir-card h3 { font-size: 20px; margin: 0; }
.dir-card ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.dir-card li { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); word-break: break-word; }
.dir-card li .ico { width: 17px; height: 17px; margin-top: 3px; color: var(--red); }
.dir-card a:hover { color: var(--red); }
.empty {
  text-align: center; padding: 56px 24px; border: 2px dashed var(--line); border-radius: 20px; color: var(--muted);
  background: #fff;
}
.empty h3 { font-size: 24px; }

/* ---------- Formularios ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.form-section { border: 0; padding: 0; margin: 0 0 30px; }
.form-section legend {
  font-family: var(--serif); font-size: 22px; color: var(--navy); font-weight: 600; margin-bottom: 18px; padding: 0;
  display: flex; align-items: center; gap: 10px; width: 100%;
}
.form-section legend::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.f-full { grid-column: span 6; } .f-half { grid-column: span 3; } .f-third { grid-column: span 2; }
@media (max-width: 720px) { .f-half, .f-third { grid-column: span 6; } }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 7px; color: var(--navy); }
.req { color: var(--red); }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=url], input[type=search], input[type=password], select, textarea {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid #d9d5cb; border-radius: 10px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; background-image: 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='%23001c45' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(0, 28, 69, .1); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.field .error { color: var(--red); font-size: 13px; margin-top: 5px; display: block; }
.field .help { color: var(--muted); font-size: 13px; margin-top: 5px; display: block; }
.hidden { display: none !important; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 24px; }
.form-actions small { color: var(--muted); }
.alert { padding: 16px 20px; border-radius: 12px; margin-bottom: 22px; font-weight: 500; }
.alert-ok { background: #e8f6ee; color: #135c35; border: 1px solid #b9e3c9; }
.alert-error { background: #fdecec; color: #8a1010; border: 1px solid #f4c2c2; }
.success-box { text-align: center; padding: 56px 28px; }
.success-box .check { width: 76px; height: 76px; border-radius: 50%; background: #e8f6ee; color: #1b7a47; display: grid; place-items: center; margin: 0 auto 18px; font-size: 38px; }

/* ---------- Contacto ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-item .ico { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--gold-soft); color: var(--navy); }
.info-item strong { display: block; color: var(--navy); }
.info-item span, .info-item a { color: var(--muted); }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------- Nosotros ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(30px, 3.6vw, 42px); }
.split-img { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.split-img img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.split-img::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.4); border-radius: 16px; pointer-events: none; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.reverse > :first-child { order: 0; } }
.mvc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mvc-card { background: #fff; border-radius: 20px; padding: 34px 28px; border-top: 5px solid var(--gold); box-shadow: var(--shadow); }
.mvc-card:nth-child(2) { border-top-color: var(--red); }
.mvc-card:nth-child(3) { border-top-color: var(--navy-3); }
.mvc-card .num { font-family: var(--serif); font-size: 15px; color: var(--muted); }
.mvc-card h3 { font-size: 28px; margin: 6px 0 12px; }
.mvc-card p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .mvc { grid-template-columns: 1fr; } }
.objectives { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: obj; }
.objective {
  counter-increment: obj; padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); font-weight: 600; font-size: 17px; display: flex; gap: 14px; align-items: flex-start;
}
.objective::before { content: counter(obj, decimal-leading-zero); font-family: var(--serif); color: var(--gold); font-size: 26px; line-height: 1; }
@media (max-width: 860px) { .objectives { grid-template-columns: 1fr; } }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.team-member {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px 24px 28px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform .2s, box-shadow .2s;
}
.team-member:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.team-photo {
  width: 250px; height: 250px; max-width: 100%; border-radius: 50%; object-fit: cover; margin-bottom: 14px;
  border: 4px solid #fff; box-shadow: 0 0 0 3px var(--gold), var(--shadow);
}
.team-photo.avatar { display: grid; place-items: center; background: var(--navy); color: var(--gold); font-family: var(--serif); font-size: 76px; font-weight: 600; }
.team-member h3 { font-size: 21px; margin: 0; }
.team-role { color: var(--red); font-weight: 700; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
.team-member p { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; }

/* ---------- Productores / mapa ---------- */
#mapa { height: 520px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); z-index: 1; background: #e8eef5; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 30px; }
.leaflet-popup-content { font-family: var(--sans); }
.leaflet-popup-content strong { font-family: var(--serif); font-size: 16px; color: var(--navy); }
@media (max-width: 640px) { #mapa { height: 380px; } }

/* ---------- Observatorio ---------- */
.report-card .card-media.placeholder { background: radial-gradient(circle at 0 0, var(--navy-3), var(--navy)); color: var(--gold); }
.report-card .card-media.placeholder .ico { width: 54px; height: 54px; opacity: .8; }

/* ---------- Paginación ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 44px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); font-weight: 600; }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination a:hover { border-color: var(--navy); }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); margin-top: 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding: 72px 0 52px; }
.footer-brand { display: grid; grid-template-columns: 128px 1fr; gap: 14px; align-items: center; }
.footer-brand img { width: 128px; height: 128px; border-radius: 50%; background: #fff; }
.footer-brand strong { display: block; font-family: var(--serif); color: #fff; font-size: 24px; line-height: 1.1; }
.footer-brand span { font-size: 13px; }
.footer-brand p, .footer-brand .social { grid-column: 1 / -1; margin: 6px 0 0; }
.site-footer h3 { color: var(--gold); font-family: var(--sans); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a:hover { color: var(--gold); }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .ico { width: 18px; height: 18px; margin-top: 3px; color: var(--gold); }
.contact-list .muted { font-size: 13px; opacity: .7; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.social a:hover { background: var(--gold); color: var(--navy); }
.copy { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: 13px; background: rgba(0,0,0,.15); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; padding: 56px 0 36px; } }

/* ---------- Utilidades ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; } .mb-4 { margin-bottom: 32px; }
.text-center { text-align: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { scroll-behavior: auto !important; } }
