/* ==========================================================================
   FUNDACIÓN ASISTENCIAL MARÍA ROSA — DESIGN SYSTEM & STYLESHEET
   Anti-slop, high-end agency craft, tactile micro-interactions, responsive.
   ========================================================================== */

:root {
  /* Brand Palette */
  --green-deep: #145238;       /* Institutional Forest Green */
  --green-brand: #1f6b45;      /* Vibrant Foliage Green */
  --green-tint: #eaf2ed;       /* Soft Mint Ambient Surface */
  --green-glow: rgba(20, 82, 56, 0.08);
  --green-border: rgba(20, 82, 56, 0.12);
  
  --red: #c8102e;              /* BAC Yo Me Uno Action Red */
  --red-hover: #9e0c24;
  --red-tint: #fbebee;

  --paper: #f8faf8;            /* Warm Off-White Paper Background */
  --card-bg: #ffffff;
  --ink: #111e16;              /* High-Contrast Charcoal Ink */
  --ink-secondary: #3d4f45;    /* Body Text Ink */
  --muted: #62756a;            /* Metadata & Captions */
  --line: rgba(20, 82, 56, 0.1);
  --white: #ffffff;

  /* Typography */
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Geometry & Double-Bezel */
  --outer-radius: 24px;
  --inner-radius: 18px;
  --card-radius: 18px;
  --pill-radius: 9999px;
  --wrap: min(1160px, calc(100% - 2.8rem));
  --header-height: 72px;

  /* Shadows (Ambient + Layered Direct) */
  --shadow-sm: 0 1px 3px rgba(20, 82, 56, 0.04), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(20, 82, 56, 0.07), 0 2px 8px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 40px -12px rgba(20, 82, 56, 0.12), 0 4px 16px -2px rgba(0, 0, 0, 0.04);

  /* Physics Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Reset & Document Setup */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--paper);
  color: var(--ink-secondary);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.68;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6, p, figure, ul, ol, dl, dd {
  margin: 0;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Accessibility Skip Link */
.skip {
  position: absolute;
  left: 1.5rem;
  top: -5rem;
  z-index: 100;
  background: var(--green-deep);
  color: #fff;
  padding: 0.65rem 1.2rem;
  border-radius: var(--pill-radius);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--green-brand);
  outline-offset: 3px;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* ==========================================================================
   NAVIGATION & FLOATING HEADER
   ========================================================================== */

.site-header {
  position: fixed;
  z-index: 50;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 1.8rem));
  height: var(--header-height);
  padding: 0 0.6rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(20, 82, 56, 0.12);
  border-radius: var(--pill-radius);
  box-shadow: 0 10px 30px rgba(20, 82, 56, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.icon-btn, .lang-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--green-deep);
  border-radius: var(--pill-radius);
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover, .lang-btn:hover {
  background: rgba(20, 82, 56, 0.06);
}
.icon-btn:active, .lang-btn:active {
  transform: scale(0.96);
}

.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  width: 20px;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green-deep);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.icon-btn[aria-expanded="true"] .burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.icon-btn[aria-expanded="true"] .burger span:nth-child(2) {
  opacity: 0;
}
.icon-btn[aria-expanded="true"] .burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.brand {
  display: flex;
  align-items: center;
  padding: 0 0.25rem;
}
.brand img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.lang-btn {
  height: 42px;
  padding: 0 0.95rem;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(20, 82, 56, 0.15);
}

/* ==========================================================================
   BUTTON SYSTEM (Tactile, Button-in-Button, Accessible)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 46px;
  padding: 0.4rem 1.15rem 0.4rem 1.3rem;
  background: var(--green-deep);
  color: #fff;
  border: 0;
  border-radius: var(--pill-radius);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(20, 82, 56, 0.15);
  transition: background 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover {
  background: var(--green-brand);
  box-shadow: 0 4px 14px rgba(20, 82, 56, 0.22);
}
.btn:active {
  transform: scale(0.97);
}

/* Button-in-Button Icon Circle */
.btn-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.btn:hover .btn-arrow {
  transform: translate(2px, -2px);
  background: rgba(255, 255, 255, 0.26);
}

/* Button Variants */
.btn-red, .btn-accent, .header-right .btn {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.28);
}
.btn-red:hover, .btn-accent:hover, .header-right .btn:hover {
  background: var(--red-hover);
  box-shadow: 0 6px 18px rgba(200, 16, 46, 0.38);
}

.btn-secondary, .btn-line {
  background: transparent;
  color: var(--green-deep);
  box-shadow: inset 0 0 0 1.5px var(--green-deep);
}
.btn-secondary .btn-arrow, .btn-line .btn-arrow {
  background: rgba(20, 82, 56, 0.1);
}
.btn-secondary:hover, .btn-line:hover {
  background: var(--green-deep);
  color: #fff;
  box-shadow: 0 4px 14px rgba(20, 82, 56, 0.2);
}
.btn-secondary:hover .btn-arrow, .btn-line:hover .btn-arrow {
  background: rgba(255, 255, 255, 0.2);
}

.btn-white {
  background: #ffffff;
  color: var(--green-deep);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.btn-white .btn-arrow {
  background: rgba(20, 82, 56, 0.08);
}
.btn-white:hover {
  background: #f0f5f2;
}

.btn-white-line {
  background: transparent;
  color: #ffffff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85);
}
.btn-white-line .btn-arrow {
  background: rgba(255, 255, 255, 0.16);
}
.btn-white-line:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   NAVIGATION OVERLAY PANEL
   ========================================================================== */

.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(14, 46, 32, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: #fff;
  display: none;
  padding: 1.5rem 1.5rem 3rem;
  overflow-y: auto;
}
.nav-panel.is-open {
  display: block;
}
.nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.nav-top strong {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.nav-top button {
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.nav-top button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.nav-panel nav {
  display: grid;
  gap: 0.35rem;
  margin-top: 2rem;
  max-width: 680px;
}
.nav-panel a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
  font-weight: 600;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s, padding-left 0.2s;
}
.nav-panel a:hover {
  color: #ffffff;
  padding-left: 0.5rem;
}
.nav-panel a[aria-current="page"] {
  color: #79d6a3;
  font-weight: 700;
}
.nav-panel .btn {
  margin-top: 1.8rem;
  width: max-content;
}

/* ==========================================================================
   MAIN WRAPPER & HERO SECTIONS
   ========================================================================== */

main {
  padding-top: calc(var(--header-height) + 1.6rem);
}

/* Pill Eyebrow Badge */
.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.9rem;
  background: var(--green-tint);
  border: 1px solid var(--green-border);
  border-radius: var(--pill-radius);
  color: var(--green-deep);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-brand);
  box-shadow: 0 0 0 3px rgba(31, 107, 69, 0.2);
}

/* New Agency Editorial Hero (index.html) */
.hero-agency {
  padding: 1.2rem 0 3.5rem;
}
.hero-header-content {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.2rem;
}
.hero-header-content h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.8rem);
  line-height: 1.1;
  color: var(--green-deep);
  margin-bottom: 1.1rem;
}
.hero-lead {
  font-size: clamp(1.1rem, 1.8vw, 1.28rem);
  color: var(--ink-secondary);
  line-height: 1.62;
  margin: 0 auto 1.8rem;
  max-width: 680px;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Hero Showcase Frame (Double-Bezel Architecture) */
.hero-showcase {
  margin-top: 1.8rem;
}
.bezel {
  background: rgba(20, 82, 56, 0.05);
  border: 1px solid rgba(20, 82, 56, 0.12);
  border-radius: var(--outer-radius);
  padding: 0.55rem;
  box-shadow: var(--shadow-lg);
}
.bezel-core {
  background: var(--card-bg);
  border-radius: var(--inner-radius);
  overflow: hidden;
  position: relative;
}
.hero-banner-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}
.hero-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  background: #ffffff;
  border-top: 1px solid rgba(20, 82, 56, 0.08);
  font-size: 0.92rem;
  color: var(--ink-secondary);
}
.caption-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--green-deep);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Key Stats Strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}
.stat-pill-card {
  background: #ffffff;
  border: 1px solid rgba(20, 82, 56, 0.1);
  border-radius: var(--card-radius);
  padding: 1.4rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.stat-pill-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-pill-card strong {
  display: block;
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 800;
  color: var(--green-deep);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat-pill-card span {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  margin-top: 0.45rem;
}
.stat-pill-card small {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.25rem;
}
.stat-pill-card.pending {
  background: #f0f4f1;
}

/* Page Headers (Secondary Pages) */
.page-head {
  background: linear-gradient(135deg, var(--green-deep) 0%, #17422f 100%);
  color: #fff;
  padding: 3.5rem 0 3.2rem;
  border-radius: 0 0 28px 28px;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
}
.page-head h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 0.75rem;
}
.page-head p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  max-width: 640px;
  line-height: 1.6;
}

/* Secondary Cover (Flor Azul & Cocina Cover Banner) */
.cover-agency {
  margin: 1.2rem auto 2.5rem;
}
.cover-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: #ffffff;
  border: 1px solid rgba(20, 82, 56, 0.12);
  border-radius: var(--outer-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cover-media {
  position: relative;
  background: var(--green-tint);
}
.cover-media img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  max-height: 520px;
  object-fit: cover;
  object-position: center 30%;
}
.cover-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  color: #ffffff;
  padding: 1.2rem 1.2rem 0.8rem;
  font-size: 0.88rem;
}
.cover-content {
  padding: 3rem 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cover-content h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  color: var(--green-deep);
  margin-bottom: 0.9rem;
}
.cover-content p {
  color: var(--ink-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   BLOCKS, SECTIONS & TYPOGRAPHY
   ========================================================================== */

.block, .section-spacing {
  padding: 4.5rem 0;
}
.block-white {
  background: #ffffff;
}

.section-head {
  margin-bottom: 2.2rem;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--green-deep);
  margin-bottom: 0.6rem;
}
.section-head p {
  color: var(--ink-secondary);
  font-size: 1.08rem;
  max-width: 680px;
}

/* Bento & Card Grids */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.card-project {
  background: #ffffff;
  border: 1px solid rgba(20, 82, 56, 0.1);
  border-radius: var(--outer-radius);
  padding: 0.5rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card-project:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.card-project-inner {
  border-radius: var(--inner-radius);
  overflow: hidden;
  background: #ffffff;
}
.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--green-tint);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.6s var(--ease);
}
.card-project:hover .card-media img {
  transform: scale(1.035);
}
.card-body {
  padding: 1.4rem 1.4rem 1.6rem;
}
.card-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  display: block;
}
.card-body h3 {
  font-size: 1.45rem;
  color: var(--green-deep);
  margin-bottom: 0.6rem;
}
.card-body p {
  color: var(--ink-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

/* Institutional Split Block */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.split-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--green-deep);
  margin-bottom: 1rem;
}
.split-content p {
  font-size: 1.05rem;
  line-height: 1.68;
  color: var(--ink-secondary);
  margin-bottom: 1.2rem;
}

.logo-showcase-plate {
  background: #ffffff;
  border: 1px solid rgba(20, 82, 56, 0.12);
  border-radius: var(--outer-radius);
  padding: 2.8rem 2rem;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
}
.logo-showcase-plate img {
  max-width: 260px;
  height: auto;
  object-fit: contain;
}

/* Steps & Feature Triads */
.cards-3, .steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature-box {
  background: #ffffff;
  border: 1px solid rgba(20, 82, 56, 0.1);
  border-radius: var(--card-radius);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.feature-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-box strong, .feature-box h3 {
  display: block;
  font-size: 1.2rem;
  color: var(--green-deep);
  margin-bottom: 0.45rem;
}
.feature-box p {
  color: var(--ink-secondary);
  font-size: 0.98rem;
  line-height: 1.58;
}

/* Photo Shot Showcase */
.shot-frame {
  margin-top: 1.5rem;
}
.shot-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(20, 82, 56, 0.1);
}
.shot-frame figcaption {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.5rem;
  padding-left: 0.2rem;
}

/* Full Bleed CTA Band */
.cta-band {
  background: linear-gradient(135deg, var(--green-deep) 0%, #0d3825 100%);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
  border-radius: 28px;
  margin: 3rem auto;
  width: var(--wrap);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 0.8rem;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 1.8rem;
}

/* ==========================================================================
   FORMS, TABLES & DOCUMENTS
   ========================================================================== */

.form-card {
  background: #ffffff;
  border: 1px solid rgba(20, 82, 56, 0.12);
  border-radius: var(--card-radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
form {
  display: grid;
  gap: 1.1rem;
}
label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
input, select, textarea {
  width: 100%;
  background: var(--paper);
  border: 1.5px solid rgba(20, 82, 56, 0.14);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green-brand);
  background: #ffffff;
}
textarea {
  min-height: 8.5rem;
  resize: vertical;
}

/* Contact List */
.contact-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}
.contact-item-card {
  background: #ffffff;
  border: 1px solid rgba(20, 82, 56, 0.1);
  border-radius: var(--card-radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.contact-item-card strong {
  display: block;
  color: var(--green-deep);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}
.contact-item-card p, .contact-item-card span {
  color: var(--muted);
  font-size: 0.92rem;
}
.contact-item-card a {
  display: inline-block;
  color: var(--green-brand);
  font-weight: 700;
  margin-top: 0.45rem;
}
.contact-item-card a:hover {
  text-decoration: underline;
}

/* Governance Table */
.gov-table-wrapper {
  background: #ffffff;
  border: 1px solid rgba(20, 82, 56, 0.12);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 1.5rem;
}
.gov-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.gov-table th {
  background: var(--green-deep);
  color: #ffffff;
  padding: 1rem 1.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.gov-table td {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid rgba(20, 82, 56, 0.08);
  font-size: 1rem;
  color: var(--ink);
}
.gov-table tr:nth-child(even) td {
  background: rgba(20, 82, 56, 0.02);
}
.gov-table tr:last-child td {
  border-bottom: 0;
}

/* Document List */
.doc-list {
  display: grid;
  gap: 0.85rem;
}
.doc-item {
  background: #ffffff;
  border: 1px solid rgba(20, 82, 56, 0.1);
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}
.doc-item h3 {
  font-size: 1.08rem;
  color: var(--green-deep);
}
.doc-item p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.tag-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: #f0f4f1;
  color: var(--muted);
  border-radius: var(--pill-radius);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  background: #0f3825;
  color: #e5ede8;
  padding: 4.5rem 0 2rem;
  margin-top: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.foot-brand img {
  height: 52px;
  width: auto;
  background: #ffffff;
  border-radius: 10px;
  padding: 6px;
  margin-bottom: 1.1rem;
}
.foot-brand p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 320px;
}
.foot-col strong {
  display: block;
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.foot-col ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.foot-col a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  transition: color 0.2s, padding-left 0.2s;
}
.foot-col a:hover {
  color: #ffffff;
  padding-left: 0.25rem;
}
.legal-bar {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Mobile-First Tuning)
   ========================================================================== */

@media (max-width: 960px) {
  :root {
    --header-height: 64px;
  }
  .site-header {
    top: 0.6rem;
    height: var(--header-height);
  }
  .bento-grid, .split-grid, .cover-card, .foot-grid, .stats-strip, .cards-3, .steps-grid, .contact-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .cover-media img {
    min-height: 260px;
    max-height: 340px;
  }
  .cover-content {
    padding: 2rem 1.5rem;
  }
  .block, .section-spacing {
    padding: 3.5rem 0;
  }
  .cta-band {
    width: calc(100% - 1.6rem);
    padding: 3.5rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .hero-header-content h1 {
    font-size: 2.1rem;
  }
  .hero-lead {
    font-size: 1.05rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-caption {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-head {
    padding: 2.8rem 0 2.2rem;
  }
  .page-head h1 {
    font-size: 1.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- NUEVOS COMPONENTES: FLOR AZUL Y GALERIA FOTOGRAFICA --- */
.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .cards-2 {
    grid-template-columns: 1fr;
  }
}

.notice-box {
  background: rgba(20, 82, 56, 0.04);
  border: 1px solid rgba(20, 82, 56, 0.15);
  border-left: 4px solid var(--green-brand);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #374151;
}
.notice-box strong {
  color: var(--green-brand);
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-card {
  background: #ffffff;
  border: 1px solid rgba(20, 82, 56, 0.1);
  border-radius: var(--outer-radius);
  padding: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  display: flex;
  flex-direction: column;
}
.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.gallery-card-inner {
  border-radius: var(--inner-radius);
  overflow: hidden;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.gallery-card-media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--green-tint);
  position: relative;
}
.gallery-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-card:hover .gallery-card-media img {
  transform: scale(1.04);
}
.gallery-card-caption {
  padding: 0.9rem 1rem 1.1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #4b5563;
  flex: 1;
}
.gallery-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-brand);
  margin-bottom: 0.25rem;
  display: block;
}
