:root {
  --red:        #C0392B;
  --navy:       #1a2744;
  --navy-mid:   #243159;
  --gold:       #D4A017;
  --gold-light: #f0c040;
  --cream:      #FAF8F4;
  --cream-dark: #F0EDE6;
  --text:       #1C1C1C;
  --text-mid:   #4a4a4a;
  --text-light: #8a8a8a;
  --white:      #FFFFFF;
  --border:     rgba(26,39,68,0.12);
  --shadow:     0 4px 32px rgba(26,39,68,0.09);
  --shadow-lg:  0 12px 40px rgba(26,39,68,0.16);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }

/* ── DECO BAR ── */
.deco-bar { position: fixed; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(to bottom, var(--navy), var(--gold), var(--red)); opacity: .7; z-index: 50; }

/* ── HEADER ── */
  header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
    padding: 0;
  }
  header.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(26,39,68,0.08);
  }

  .nav-inner {
    max-width: 1280px; margin: 0 auto;
    padding: 0 40px;
    height: 80px;
    display: flex; align-items: center; gap: 0;
  }

  .nav-logo {
    display: flex; align-items: center; gap: 14px;
    text-decoration: none; flex-shrink: 0; margin-right: 56px;
    position: relative;
  }

  .logo-default,
  .logo-scrolled {
    height: 55px;
    width: auto;
    transition: opacity 0.3s ease;
  }
  .logo-scrolled {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
  }
  header.scrolled .logo-default { opacity: 0; }
  header.scrolled .logo-scrolled { opacity: 1; }

  nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
  }

  nav a {
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s;
    white-space: nowrap;
  }

  header:not(.scrolled) nav a { color: rgba(255,255,255,0.85); }
  header:not(.scrolled) nav a:hover { color: white; background: rgba(255,255,255,0.1); }
  header:not(.scrolled) nav a.active { color: white; }
  header:not(.scrolled) nav a.active::after {
    content: ''; position: absolute; bottom: 4px; left: 14px; right: 14px;
    height: 1.5px; background: var(--gold-light); border-radius: 2px;
  }

  header.scrolled nav a { color: var(--text-mid); }
  header.scrolled nav a:hover { color: var(--navy); background: rgba(26,39,68,0.06); }
  header.scrolled nav a.active { color: var(--navy); font-weight: 600; }
  header.scrolled nav a.active::after {
    content: ''; position: absolute; bottom: 4px; left: 14px; right: 14px;
    height: 2px; background: var(--navy); border-radius: 2px;
  }

  .nav-cta {
    margin-left: auto;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 20px; border-radius: 8px;
    font-family: 'DM Sans', sans-serif; font-size: 12.5px; font-weight: 600;
    letter-spacing: 0.07em; text-transform: uppercase;
    text-decoration: none; cursor: pointer; transition: all 0.2s;
    border: 1.5px solid var(--gold);
    color: var(--gold); background: transparent;
  }
  .nav-cta:hover { background: var(--gold); color: var(--navy); }

  .hamburger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 4px; margin-left: auto;
  }
  .hamburger span { width: 22px; height: 2px; border-radius: 2px; transition: all 0.3s; }
  header:not(.scrolled) .hamburger span { background: white; }
  header.scrolled .hamburger span { background: var(--navy); }
  
/* ── HERO ── */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); padding: 56px 40px 52px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -70px; right: -70px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(212,160,23,.13), transparent 60%); }
.page-hero::after  { content: ''; position: absolute; bottom: -50px; left: -50px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(192,57,43,.1), transparent 60%); }
.page-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(212,160,23,.18); border: 1px solid rgba(212,160,23,.35); border-radius: 100px; padding: 5px 16px; margin-bottom: 16px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); }
.hero-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-light); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.8)} }

.page-hero h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(32px,4.5vw,54px); font-weight: 300; color: white; line-height: 1.08; letter-spacing: -.01em; margin-bottom: 10px; }
.page-hero h1 em { font-style: italic; color: var(--gold-light); }
.page-hero p { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.75; max-width: 480px; }

.hero-stats { display: flex; gap: 0; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; overflow: hidden; align-self: flex-end; flex-shrink: 0; }
.hero-stat { padding: 18px 28px; text-align: center; border-right: 1px solid rgba(255,255,255,.08); }
.hero-stat:last-child { border-right: none; }
.hero-stat .n { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 300; color: var(--gold-light); line-height: 1; }
.hero-stat .l { font-size: 9.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.38); margin-top: 3px; }

/* ── FILTERS ── */
.filters-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 16px 40px; position: sticky; top: 72px; z-index: 90; box-shadow: 0 2px 12px rgba(26,39,68,.05); }
.filters-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.search-wrap { position: relative; flex: 1; min-width: 220px; }
.search-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; stroke: var(--text-light); fill: none; stroke-width: 2; pointer-events: none; }
.search-input { width: 100%; height: 42px; padding: 0 14px 0 38px; border: 1.5px solid var(--border); border-radius: 9px; font-family: 'DM Sans',sans-serif; font-size: 13.5px; color: var(--text); background: var(--cream); outline: none; transition: all .2s; }
.search-input:focus { border-color: var(--navy); background: var(--white); box-shadow: 0 0 0 3px rgba(26,39,68,.07); }
.search-input::placeholder { color: #bbb; }

.filter-select { height: 42px; padding: 0 34px 0 13px; border: 1.5px solid var(--border); border-radius: 9px; font-family: 'DM Sans',sans-serif; font-size: 13px; color: var(--text-mid); background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 11px center; appearance: none; outline: none; cursor: pointer; transition: all .2s; }
.filter-select:focus { border-color: var(--navy); background-color: var(--white); box-shadow: 0 0 0 3px rgba(26,39,68,.07); }

.results-count { font-size: 12.5px; color: var(--text-light); white-space: nowrap; margin-left: auto; }
.results-count strong { color: var(--navy); font-weight: 600; }

.btn-clear { display: none; align-items: center; gap: 6px; padding: 0 13px; height: 42px; border-radius: 9px; border: 1.5px solid rgba(192,57,43,.3); background: rgba(192,57,43,.06); font-family: 'DM Sans',sans-serif; font-size: 11.5px; font-weight: 600; color: var(--red); cursor: pointer; transition: all .2s; letter-spacing: .06em; text-transform: uppercase; }
.btn-clear.visible { display: inline-flex; }
.btn-clear:hover { background: var(--red); color: white; border-color: var(--red); }
.btn-clear svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* ── MAIN ── */
.main-content { flex: 1; max-width: 1200px; margin: 0 auto; width: 100%; padding: 44px 40px 80px; }

.section-label { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.section-label::before { content: ''; width: 24px; height: 2px; background: var(--gold); border-radius: 2px; }

/* ── ACTAS LIST ── */
.actas-list { display: flex; flex-direction: column; gap: 12px; }

.acta-row {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; align-items: stretch;
  box-shadow: var(--shadow); transition: all .25s;
  opacity: 0; transform: translateY(10px);
  animation: rowIn .35s ease forwards;
}
.acta-row:hover { border-color: rgba(26,39,68,.22); box-shadow: var(--shadow-lg); transform: translateX(4px); }
@keyframes rowIn { to { opacity: 1; transform: translateY(0); } }

.acta-info { display: flex; align-items: stretch; border-right: 1px solid var(--border); }
.acta-accent { width: 5px; flex-shrink: 0; background: linear-gradient(to bottom, var(--navy), var(--navy-mid)); transition: background .25s; }
.acta-row:hover .acta-accent { background: linear-gradient(to bottom, var(--gold), var(--red)); }

.acta-text { padding: 20px 24px; flex: 1; }
.acta-numero { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; color: var(--navy); line-height: 1; margin-bottom: 6px; }
.acta-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.acta-fecha { font-size: 12px; color: var(--text-light); display: flex; align-items: center; gap: 5px; }
.acta-fecha svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; }
.acta-anexos-badge { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--gold); background: rgba(212,160,23,.12); border: 1px solid rgba(212,160,23,.25); border-radius: 5px; padding: 2px 8px; }
.acta-desc { font-size: 13px; color: var(--text-light); line-height: 1.55; }

.acta-actions { display: flex; align-items: center; gap: 8px; padding: 16px 20px; flex-shrink: 0; }

.btn-acta { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 18px; border-radius: 8px; font-family: 'DM Sans',sans-serif; font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; cursor: pointer; transition: all .2s; border: none; white-space: nowrap; }
.btn-acta svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

.btn-ver { background: var(--navy); color: white; }
.btn-ver:hover { background: var(--navy-mid); transform: translateY(-1px); box-shadow: 0 5px 16px rgba(26,39,68,.28); }

.btn-descargar { background: var(--gold); color: var(--navy); position: relative; overflow: hidden; }
.btn-descargar::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg,rgba(255,255,255,.18),transparent); }
.btn-descargar:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 5px 16px rgba(212,160,23,.3); }

.btn-anexos { background: transparent; color: var(--navy); border: 1.5px solid var(--border) !important; }
.btn-anexos:hover:not(:disabled) { border-color: var(--navy) !important; background: rgba(26,39,68,.05); }
.btn-anexos:disabled { opacity: .38; cursor: not-allowed; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 80px 24px; display: none; }
.empty-state.visible { display: block; }
.empty-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--cream-dark); margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.empty-state h3 { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 400; color: var(--navy); margin-bottom: 8px; }
.empty-state p  { font-size: 14px; color: var(--text-light); line-height: 1.7; max-width: 300px; margin: 0 auto 24px; }
.btn-reset { display: inline-flex; align-items: center; gap: 7px; padding: 10px 22px; border-radius: 8px; background: var(--navy); border: none; color: white; font-family: 'DM Sans',sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: all .2s; }
.btn-reset:hover { background: var(--navy-mid); }

/* ── PAGINATION ── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pagination-info { font-size: 12.5px; color: var(--text-light); margin-right: 8px; }
.pagination-info strong { color: var(--navy); font-weight: 600; }
.page-btn { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--border); background: var(--white); color: var(--text-mid); font-family: 'DM Sans',sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; transition: all .2s; }
.page-btn:hover:not(.active):not(.disabled) { border-color: var(--navy); color: var(--navy); background: rgba(26,39,68,.04); }
.page-btn.active   { background: var(--navy); border-color: var(--navy); color: white; font-weight: 600; }
.page-btn.disabled { opacity: .32; pointer-events: none; }
.page-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.page-dots { display: flex; align-items: center; justify-content: center; width: 28px; height: 38px; color: var(--text-light); font-size: 16px; }

/* ══════════════════════════════════════════
   MODAL — BASE
══════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15,22,40,.65);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  z-index: 400;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: slideUp .28s cubic-bezier(.22,1,.36,1) both;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }

/* ── Header del modal ── */
.modal-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.modal-header::after {
  content: '';
  position: absolute; top: -50px; right: -50px;
  width: 140px; height: 140px;
  background: rgba(212,160,23,.1);
  border-radius: 50%;
  pointer-events: none;
}
.modal-header-text { position: relative; z-index: 1; min-width: 0; }
.modal-header-text p { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 3px; }
.modal-header-text h3 { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.modal-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; position: relative; z-index: 1; }

.btn-modal-dl {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px;
  background: var(--gold); border: none; border-radius: 7px;
  color: var(--navy); font-family: 'DM Sans',sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.btn-modal-dl:hover { background: var(--gold-light); }
.btn-modal-dl svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.5; flex-shrink: 0; }

.modal-close {
  background: rgba(255,255,255,.1); border: none; border-radius: 7px;
  width: 32px; height: 32px; cursor: pointer; color: white;
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: all .2s; flex-shrink: 0;
}
.modal-close:hover { background: rgba(255,255,255,.22); }

/* ══════════════════════════════════════════
   PDF VIEWER — modal extendido
══════════════════════════════════════════ */
.pdf-viewer-box {
  max-width: min(960px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

/* ── Toolbar ── */
.pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 16px;
  background: var(--cream-dark);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.pdf-toolbar-left {
  display: flex; align-items: center; gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; color: var(--text-light);
  min-width: 0;
}
.pdf-toolbar-cal {
  width: 13px; height: 13px;
  stroke: var(--text-light); fill: none; stroke-width: 2;
  flex-shrink: 0;
}
.pdf-fecha { white-space: nowrap; }
.pdf-divider { width: 1px; height: 14px; background: var(--border); flex-shrink: 0; }
.pdf-anexos-badge {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--gold); background: rgba(212,160,23,.12);
  border: 1px solid rgba(212,160,23,.3);
  border-radius: 4px; padding: 2px 7px;
}

.pdf-toolbar-center {
  display: flex; align-items: center; gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px; font-weight: 600; color: var(--navy);
}
.pdf-page-info { display: flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; min-width: 52px; justify-content: center; }
.pdf-page-sep { color: var(--text-light); font-weight: 300; }

.pdf-toolbar-right { display: flex; align-items: center; gap: 5px; }

.pdf-nav-btn {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  color: var(--navy);
  transition: all .15s;
  flex-shrink: 0;
}
.pdf-nav-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pdf-nav-btn:hover:not(:disabled) { background: var(--navy); color: white; border-color: var(--navy); }
.pdf-nav-btn:disabled { opacity: .3; cursor: default; }

.pdf-fit-btn { width: auto; padding: 0 10px; gap: 5px; }
.pdf-fit-btn::after { content: 'Ajustar'; font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .05em; }

.pdf-zoom-label {
  font-family: 'DM Sans', sans-serif; font-size: 11.5px; color: var(--text-mid);
  min-width: 36px; text-align: center; font-variant-numeric: tabular-nums;
}

/* ── Canvas área ── */
.pdf-viewport {
  flex: 1;
  overflow: auto;
  background: #6b7280;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  min-height: 320px;
  position: relative;
}

#pdfCanvas {
  display: none;
  box-shadow: 0 6px 32px rgba(0,0,0,.4);
  background: white;
  max-width: 100%;
}

.pdf-loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  color: rgba(255,255,255,.85);
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  pointer-events: none;
}
.pdf-loading-ring {
  width: 38px; height: 38px;
  border: 3px solid rgba(255,255,255,.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pdf-error {
  position: absolute; inset: 0;
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,.85);
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  text-align: center; padding: 24px;
}
.pdf-error-icon {
  width: 56px; height: 56px;
  background: rgba(192,57,43,.25);
  border: 1.5px solid rgba(192,57,43,.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #f87171;
}
.pdf-error-icon svg { width: 24px; height: 24px; }
.pdf-error p { color: rgba(255,255,255,.7); }
.pdf-error .btn-reset {
  background: var(--gold); color: var(--navy);
  font-size: 11.5px; margin-top: 4px;
}
.pdf-error .btn-reset:hover { background: var(--gold-light); }

/* ── Sección de Anexos ── */
.modal-anexos-section {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border);
  background: var(--cream);
  flex-shrink: 0;
}

.modal-anexos-label { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-light); margin-bottom: 10px; }
.modal-anexos-list { display: flex; flex-direction: column; gap: 7px; }

.anexo-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--white); border: 1px solid var(--border); border-radius: 10px; transition: all .2s; cursor: pointer; text-decoration: none; }
.anexo-item:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.anexo-icon { width: 32px; height: 32px; border-radius: 7px; background: rgba(192,57,43,.08); border: 1px solid rgba(192,57,43,.18); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.anexo-icon svg { width: 15px; height: 15px; stroke: var(--red); fill: none; stroke-width: 1.8; }
.anexo-info { flex: 1; min-width: 0; }
.anexo-info strong { font-size: 12.5px; font-weight: 600; color: var(--navy); display: block; margin-bottom: 1px; }
.anexo-info span { font-size: 11px; color: var(--text-light); }
.anexo-dl { width: 26px; height: 26px; border-radius: 6px; background: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .2s; }
.anexo-dl svg { width: 12px; height: 12px; stroke: white; fill: none; stroke-width: 2.5; }
.anexo-item:hover .anexo-dl { background: var(--gold); }
.anexo-item:hover .anexo-dl svg { stroke: var(--navy); }

/* ── FOOTER ── */
footer { background: var(--navy); color: white; padding: 48px 32px 28px; margin-top: auto; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 28px; }
.footer-brand .fi { width: 44px; height: 44px; background: rgba(255,255,255,.1); border-radius: 10px; position: relative; margin-bottom: 16px; }
.footer-brand .fi::before { content: ''; position: absolute; inset: 7px; border: 2.5px solid rgba(255,255,255,.7); border-radius: 3px; }
.footer-brand h3 { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 400; color: white; margin-bottom: 4px; }
.footer-brand p  { font-size: 12.5px; color: rgba(255,255,255,.4); line-height: 1.6; max-width: 240px; }
.footer-brand address { font-style: normal; font-size: 11.5px; color: rgba(255,255,255,.35); line-height: 1.9; margin-top: 14px; }
.footer-brand address a { color: var(--gold-light); text-decoration: none; }
.footer-col h5 { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.28); margin-bottom: 14px; }
.footer-col a  { display: block; font-size: 13px; color: rgba(255,255,255,.55); text-decoration: none; margin-bottom: 9px; transition: color .2s; }
.footer-col a:hover { color: white; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom p { font-size: 11px; color: rgba(255,255,255,.24); }
.version-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 100px; padding: 4px 12px; font-size: 10px; color: rgba(255,255,255,.34); letter-spacing: .06em; }
.version-dot { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }

/* ── NAV LOGO ── */
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 16px 12px; }
.nav-logo img { height: 40px; width: auto; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .acta-row { grid-template-columns: 1fr; }
  .acta-info { border-right: none; border-bottom: 1px solid var(--border); }
  .acta-actions { flex-wrap: wrap; padding: 14px 16px; gap: 8px; }
  .btn-acta { flex: 1; justify-content: center; min-width: 80px; }
  .hero-stats { display: none; }

  .pdf-viewer-box { max-height: 95vh; border-radius: 16px; }
  .pdf-toolbar { gap: 6px; }
  .pdf-toolbar-left { display: none; }
  .pdf-fit-btn::after { display: none; }
}

@media (max-width: 640px) {
  .page-hero { padding: 40px 20px 36px; }
  .filters-bar { padding: 12px 20px; }
  .main-content { padding: 28px 20px 60px; }
  .header-sep, .header-section, .header-nav { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .acta-text { padding: 16px 18px; }
  .modal-overlay { padding: 0; align-items: flex-end; }
  .pdf-viewer-box { border-radius: 20px 20px 0 0; max-height: 96vh; }
  .pdf-viewport { min-height: 240px; padding: 12px; }
  .modal-header { padding: 16px 18px; }
  .modal-header-text h3 { font-size: 19px; }
  .btn-modal-dl span { display: none; }
  .btn-modal-dl { padding: 0 12px; }
}
