/* =============================================
   ASOCIACIÓN CULTURAL TERA — "Tierra y Pueblo"
   ============================================= */

:root {
  --color-verde:      #2D5A1B;
  --color-verde-claro:#4A8030;
  --color-ocre:       #C47B14;
  --color-ocre-claro: #E8A830;
  --color-terracota:  #B84D1E;
  --color-azul:       #4A7FA5;
  --color-crema:      #F5EFE0;
  --color-piedra:     #E8DFD0;
  --color-tierra:     #1C130A;
  --color-tierra-soft:#3D2E1A;
  --color-blanco:     #FDFAF5;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Crimson Pro', 'Georgia', serif;
  --font-ui:      'Raleway', 'Helvetica Neue', sans-serif;

  --shadow-sm:  0 2px 8px rgba(28,19,10,.10);
  --shadow-md:  0 4px 20px rgba(28,19,10,.15);
  --shadow-lg:  0 8px 40px rgba(28,19,10,.20);
  --radius:     8px;
  --radius-lg:  16px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--color-tierra);
  background-color: var(--color-crema);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--color-verde);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1rem; }
a { color: var(--color-terracota); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-ocre); }
img { max-width: 100%; height: auto; display: block; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-alt { background-color: var(--color-piedra); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header p {
  font-size: 1.2rem;
  color: var(--color-tierra-soft);
  max-width: 600px;
  margin: 0.75rem auto 0;
}

.section-label {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-terracota);
  margin-bottom: 0.5rem;
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 239, 224, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--color-ocre-claro);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img { width: 52px; height: 52px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; }
.logo-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-verde);
  line-height: 1.2;
}
.logo-sub {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ocre);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-tierra);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius);
  position: relative;
  transition: color var(--transition), background var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.875rem;
  right: 0.875rem;
  height: 2px;
  background: var(--color-terracota);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-link:hover { color: var(--color-verde); background: rgba(45,90,27,.07); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--color-verde); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-verde);
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-verde);
}

.hero-fields {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
}
.hero-fields .field-stripe {
  position: absolute;
  left: 0;
  right: 0;
}
.hero-fields .f1 { bottom: 0; height: 30%; background: var(--color-verde-claro); clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%); }
.hero-fields .f2 { bottom: 18%; height: 25%; background: var(--color-ocre-claro); clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%); opacity:.85; }
.hero-fields .f3 { bottom: 30%; height: 20%; background: var(--color-terracota); clip-path: polygon(0 50%, 100% 20%, 100% 100%, 0 100%); opacity:.7; }
.hero-fields .f4 { bottom: 40%; height: 20%; background: var(--color-azul); clip-path: polygon(0 60%, 100% 30%, 100% 100%, 0 100%); opacity:.5; }

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-crema);
  padding: 3rem 1.5rem;
}

.hero-logo {
  width: 130px;
  height: 130px;
  object-fit: contain;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,.4));
  animation: hero-float 6s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-title {
  color: var(--color-crema);
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
  margin-bottom: 0.5rem;
}
.hero-subtitle {
  font-family: var(--font-ui);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ocre-claro);
  margin-bottom: 1.5rem;
}
.hero-desc {
  font-size: 1.2rem;
  color: rgba(245,239,224,.85);
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--color-terracota);
  color: white;
  border-color: var(--color-terracota);
}
.btn-primary:hover {
  background: #9a3e14;
  border-color: #9a3e14;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184,77,30,.4);
}
.btn-outline {
  background: transparent;
  color: var(--color-crema);
  border-color: var(--color-crema);
}
.btn-outline:hover {
  background: var(--color-crema);
  color: var(--color-verde);
  transform: translateY(-2px);
}
.btn-sm {
  font-size: 0.75rem;
  padding: 0.5rem 1.25rem;
}
.btn-verde {
  background: var(--color-verde);
  color: white;
  border-color: var(--color-verde);
}
.btn-verde:hover {
  background: var(--color-verde-claro);
  border-color: var(--color-verde-claro);
  color: white;
  transform: translateY(-2px);
}

/* ── HERO WAVE ── */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
  z-index: 3;
}
.hero-wave svg { display: block; width: 100%; }

/* ── CARDS ── */
.card {
  background: var(--color-blanco);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border-left: 4px solid var(--color-terracota);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.card-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--color-verde) 0%, var(--color-verde-claro) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.card-body { padding: 1.5rem; }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  align-items: center;
}

/* ── BADGES ── */
.badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
}
.badge-verde    { background: rgba(45,90,27,.12);  color: var(--color-verde); }
.badge-ocre     { background: rgba(196,123,20,.15); color: #8a5800; }
.badge-terracota{ background: rgba(184,77,30,.12);  color: var(--color-terracota); }
.badge-azul     { background: rgba(74,127,165,.15); color: #2a5878; }
.badge-gris     { background: rgba(28,19,10,.08);   color: var(--color-tierra-soft); }

/* ── GRID LAYOUTS ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.75rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* ── EVENTOS ── */
.event-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
  background: var(--color-verde);
  color: white;
  border-radius: var(--radius);
  padding: 0.5rem;
  text-align: center;
  flex-shrink: 0;
}
.event-date-block .day {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
.event-date-block .month {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-card-horizontal {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--color-blanco);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-terracota);
  transition: transform var(--transition), box-shadow var(--transition);
}
.event-card-horizontal:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
.event-card-horizontal .event-info { flex: 1; min-width: 0; }
.event-card-horizontal h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.event-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--color-tierra-soft);
  font-family: var(--font-ui);
  margin-top: 0.5rem;
}
.event-meta-line span { display: flex; align-items: center; gap: 0.25rem; }

/* ── GALLERY ── */
.gallery-albums { display: flex; flex-direction: column; gap: 3rem; }
.album-header { margin-bottom: 1.25rem; }
.album-title {
  font-size: 1.4rem;
  color: var(--color-verde);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.album-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.4em;
  background: var(--color-terracota);
  border-radius: 2px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--color-piedra);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,19,10,.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay span {
  color: white;
  font-size: 0.85rem;
  font-family: var(--font-ui);
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10,8,4,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 0 80px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }
.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(245,239,224,.9);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  text-align: center;
  max-width: 600px;
}
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.25); }

/* ── FINANCES ── */
.finance-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.finance-stat {
  background: var(--color-blanco);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.finance-stat .amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 0.25rem;
}
.stat-ingresos .amount { color: var(--color-verde); }
.stat-gastos .amount   { color: var(--color-terracota); }
.stat-balance .amount  { color: var(--color-azul); }
.finance-stat .stat-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-tierra-soft);
}

.finance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  background: var(--color-blanco);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.finance-table th {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--color-verde);
  color: white;
  padding: 0.875rem 1.25rem;
  text-align: left;
}
.finance-table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--color-piedra);
}
.finance-table tr:last-child td { border-bottom: none; }
.finance-table tr:hover td { background: rgba(245,239,224,.5); }
.amount-ingreso { color: var(--color-verde); font-weight: 600; }
.amount-gasto   { color: var(--color-terracota); font-weight: 600; }

.bar-chart { margin-bottom: 2rem; }
.bar-item { margin-bottom: 0.875rem; }
.bar-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}
.bar-track {
  height: 10px;
  background: var(--color-piedra);
  border-radius: 5px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 1s cubic-bezier(.4,0,.2,1);
}
.bar-fill.ingreso { background: var(--color-verde-claro); }
.bar-fill.gasto   { background: var(--color-terracota); }

/* ── TABLÓN ── */
.tablon-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-btn {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--color-piedra);
  background: var(--color-blanco);
  color: var(--color-tierra-soft);
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--color-verde);
  background: var(--color-verde);
  color: white;
}

.announcement-card {
  background: var(--color-blanco);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-piedra);
  transition: box-shadow var(--transition);
  animation: card-in 0.4s ease both;
}
.announcement-card:hover { box-shadow: var(--shadow-md); }
.announcement-card.pinned { border-left-color: var(--color-ocre); background: rgba(232,168,48,.05); }
.announcement-card[data-type="denuncia"] { border-left-color: var(--color-terracota); }
.announcement-card[data-type="anuncio"]  { border-left-color: var(--color-verde); }
.announcement-card[data-type="noticia"]  { border-left-color: var(--color-azul); }

.announcement-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.announcement-meta {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--color-tierra-soft);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.pin-icon { color: var(--color-ocre); font-size: 0.9rem; flex-shrink: 0; }

/* ── SUBMISSION FORM ── */
.form-section {
  background: var(--color-blanco);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--color-terracota);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }

label {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-tierra-soft);
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-tierra);
  background: var(--color-crema);
  border: 2px solid var(--color-piedra);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-verde);
  box-shadow: 0 0 0 3px rgba(45,90,27,.12);
}
textarea { resize: vertical; min-height: 120px; }

.form-hint {
  font-size: 0.8rem;
  color: var(--color-tierra-soft);
  font-style: italic;
}

.form-success {
  background: rgba(45,90,27,.1);
  border: 2px solid var(--color-verde);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  color: var(--color-verde);
}
.form-error {
  background: rgba(184,77,30,.1);
  border: 2px solid var(--color-terracota);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  color: var(--color-terracota);
  margin-bottom: 1rem;
}

/* ── YEAR SELECTOR ── */
.year-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.year-tab {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border: 2px solid var(--color-piedra);
  background: var(--color-blanco);
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--color-tierra-soft);
}
.year-tab:hover, .year-tab.active {
  background: var(--color-verde);
  border-color: var(--color-verde);
  color: white;
}

/* ── STATS ROW (homepage) ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  text-align: center;
}
.stat-item {
  padding: 1.5rem 1rem;
  animation: card-in 0.5s ease both;
}
.stat-item .number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-crema);
  line-height: 1;
}
.stat-item .label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,239,224,.7);
  margin-top: 0.25rem;
}

/* ── SECTION DIVIDERS ── */
.wave-divider {
  line-height: 0;
  overflow: hidden;
}
.wave-divider svg { display: block; width: 100%; }

/* ── FOOTER ── */
.site-footer {
  background: var(--color-verde);
  color: var(--color-crema);
  padding-top: 0;
}
.footer-wave {
  line-height: 0;
  background: var(--color-crema);
}
.footer-wave svg { display: block; }

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-crema);
}
.footer-logo { width: 48px; height: 48px; object-fit: contain; }
.footer-brand strong { display: block; font-family: var(--font-display); }
.footer-brand span { font-family: var(--font-ui); font-size: 0.75rem; opacity: 0.7; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}
.footer-links a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: rgba(245,239,224,.7);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--color-ocre-claro); }

.footer-social {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  align-items: flex-start;
}
.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(245,239,224,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-crema);
  transition: background var(--transition);
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover { background: var(--color-terracota); color: white; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(245,239,224,.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(245,239,224,.5);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-admin-link { color: rgba(245,239,224,.3); }
.footer-admin-link:hover { color: rgba(245,239,224,.6); }

/* ── PAGE HERO (interior pages) ── */
.page-hero {
  background: var(--color-verde);
  padding: 4rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.page-hero h1 { color: var(--color-crema); }
.page-hero p  { color: rgba(245,239,224,.75); font-size: 1.15rem; max-width: 520px; }
.page-hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  line-height: 0;
}
.page-hero-wave svg { display: block; }

/* ── ANIMATIONS ── */
@keyframes card-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in { animation: card-in 0.5s ease both; }

.grid-3 > *, .grid-2 > *, .grid-4 > * {
  animation: card-in 0.4s ease both;
}
.grid-3 > *:nth-child(2), .grid-2 > *:nth-child(2), .grid-4 > *:nth-child(2) { animation-delay: 0.1s; }
.grid-3 > *:nth-child(3), .grid-2 > *:nth-child(3), .grid-4 > *:nth-child(3) { animation-delay: 0.15s; }
.grid-3 > *:nth-child(4), .grid-2 > *:nth-child(4), .grid-4 > *:nth-child(4) { animation-delay: 0.2s; }
.grid-3 > *:nth-child(5), .grid-4 > *:nth-child(5) { animation-delay: 0.25s; }
.grid-3 > *:nth-child(6), .grid-4 > *:nth-child(6) { animation-delay: 0.3s; }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-tierra-soft);
}
.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.empty-state h3 { color: var(--color-tierra-soft); margin-bottom: 0.5rem; }

/* ── PAGINATION / MORE LINK ── */
.section-more {
  text-align: center;
  margin-top: 2.5rem;
}

/* ── NOTICE BANNER ── */
.notice {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.notice-success { background: rgba(45,90,27,.1); color: var(--color-verde); border-left: 3px solid var(--color-verde); }
.notice-error   { background: rgba(184,77,30,.1); color: var(--color-terracota); border-left: 3px solid var(--color-terracota); }
.notice-info    { background: rgba(74,127,165,.1); color: #2a5878; border-left: 3px solid var(--color-azul); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .finance-summary { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-social { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(245,239,224,.98);
    backdrop-filter: blur(12px);
    padding: 1rem;
    gap: 0.25rem;
    border-bottom: 2px solid var(--color-ocre-claro);
    box-shadow: var(--shadow-md);
  }
  .site-nav.open { display: flex; }
  .nav-link { width: 100%; padding: 0.75rem 1rem; }
  .nav-link::after { display: none; }

  .hero { min-height: 70vh; }
  .hero-logo { width: 90px; height: 90px; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: auto; }

  .section { padding: 3rem 0; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .finance-table { font-size: 0.875rem; }
  .finance-table th, .finance-table td { padding: 0.625rem 0.75rem; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: 1fr; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}
