:root {
  --verde: #2e7d32;
  --verde-oscuro: #1b5e20;
  --gris-claro: #f4f6f4;
  --texto: #333;
  --borde: #ddd;
  --max: 1100px;
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-alt: #f6faf6;
  --panel-soft: #fafafa;
  --card-text: #4c4c4c;
  --header-bg: #ffffff;
  --hero-bg: #1b5e20;
  --shadow-soft: rgba(27, 94, 32, 0.08);
  --shadow-strong: rgba(27, 94, 32, 0.14);
}

body.dark-theme {
  --verde: #66bb6a;
  --verde-oscuro: #7edc8e;
  --gris-claro: #112030;
  --texto: #e5e7eb;
  --borde: #2f3c4d;
  --bg: #0f172a;
  --panel: #111827;
  --panel-alt: #1a2433;
  --panel-soft: #18202d;
  --card-text: #d6dce5;
  --header-bg: #111827;
  --hero-bg: #0b1220;
  --shadow-soft: rgba(0, 0, 0, 0.4);
  --shadow-strong: rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--texto);
  line-height: 1.6;
  background: var(--bg);
  transition: background-color 0.25s ease, color 0.25s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--verde-oscuro);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2 {
  font-family: 'Roboto', Arial, sans-serif;
}

.green-text {
  color: var(--verde-oscuro);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.page-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@media (min-width: 800px) {
  .page-layout {
    flex-direction: row;
  }
}

.left-sidebar {
  background: var(--verde-oscuro);
  color: #fff;
  padding: 25px 20px;
  text-align: center;
  flex-shrink: 0;
}

@media (min-width: 800px) {
  .left-sidebar {
    width: 280px;
    min-width: 280px;
    padding: 30px 22px;
  }
}

.left-sidebar img {
  max-width: 260px;
  width: 100%;
  margin: 0 auto 20px;
  border-radius: 4px;
  display: block;
}

@media (min-width: 800px) {
  .left-sidebar img {
    max-width: 100%;
  }
}

.left-sidebar p {
  font-style: italic;
  margin: 14px 0;
  font-size: 1rem;
}

.left-sidebar p:last-of-type {
  font-style: normal;
  font-weight: 700;
  margin-top: 20px;
}

.main-column {
  flex: 1;
  min-width: 0;
}

header {
  background: var(--header-bg);
  border-bottom: 3px solid var(--verde);
  padding: 12px 0;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.header-brand {
  flex: 1;
  display: flex;
  justify-content: center;
}

header .logo img {
  height: 60px;
  width: auto;
}

.theme-toggle {
  appearance: none;
  border: 1px solid var(--borde);
  background: var(--panel);
  color: var(--texto);
  border-radius: 999px;
  width: 52px;
  height: 38px;
  font-size: 1.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--verde);
  outline-offset: 2px;
}

.hero-section {
  background: var(--hero-bg);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
}

.nav-like-link {
  color: #fff;
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.nav-like-link:hover,
.nav-like-link.active {
  background: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

main {
  padding: 0 0 40px;
}

#content-block {
  padding: 30px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.intro h1 {
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.intro .subtitulo {
  display: block;
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 400;
  color: var(--verde-oscuro);
}

.objectives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.objective-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-alt) 100%);
  border: 1px solid rgba(46, 125, 50, 0.18);
  border-radius: 18px;
  padding: 24px 18px 20px;
  box-shadow: 0 8px 20px var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.objective-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--verde) 0%, #8ecf87 100%);
}

.objective-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 28px var(--shadow-strong);
  border-color: rgba(46, 125, 50, 0.35);
}

.objective-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1;
}

.objective-card h3 {
  margin: 0 0 10px;
  color: var(--verde-oscuro);
  font-size: 1.15rem;
  font-family: 'Roboto', Arial, sans-serif;
}

.objective-card p {
  margin: 0;
  color: var(--card-text);
  line-height: 1.6;
  font-size: 0.96rem;
}

.doc-list {
  margin: 20px 0;
}

.doc-list a {
  font-weight: 700;
  color: #00008b;
}

.doc-list p {
  margin: 6px 0;
}

figure {
  margin: 25px auto;
  text-align: center;
  background: var(--panel-soft);
  border: 1px solid var(--borde);
  border-radius: 6px;
  padding: 10px;
  max-width: 320px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

figure:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

figure img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 4px;
  margin: 0 auto;
}

figcaption {
  font-size: 0.85rem;
  color: var(--card-text);
  margin-top: 8px;
  line-height: 1.3;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.gallery figure {
  margin: 0;
  text-align: center;
  background: var(--panel-soft);
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.gallery figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto;
}

.gallery figcaption {
  font-size: 0.9rem;
  color: var(--card-text);
  margin-top: 8px;
}

.video-wrap {
  margin: 25px auto;
  max-width: 320px;
  background: var(--panel-soft);
  border: 1px solid var(--borde);
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 40px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  animation-name: zoomIn;
  animation-duration: 0.3s;
}

@keyframes zoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.2s;
  cursor: pointer;
  user-select: none;
}

.close-modal:hover,
.close-modal:focus {
  color: #bbb;
  text-decoration: none;
}

.zoomable {
  cursor: pointer;
  transition: opacity 0.3s;
}

.zoomable:hover {
  opacity: 0.8;
}

.support-section {
  background: var(--gris-claro);
  padding: 35px 0;
  margin-top: 20px;
}

.support-section h2 {
  text-align: center;
  color: var(--verde-oscuro);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.support-section ul {
  margin: 0 0 20px 0;
  padding-left: 20px;
}

.support-section li {
  margin-bottom: 10px;
}

.info-card {
  background: var(--panel);
  border: 1px solid var(--borde);
  border-radius: 6px;
  padding: 18px;
  max-width: 400px;
  margin: 15px auto;
  text-align: center;
}

.info-card p {
  margin: 2px 0;
}

.legal-notes {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-top: 25px;
}

.legal-notes p {
  margin: 4px 0;
}

footer {
  background: var(--verde-oscuro);
  color: #fff;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
}

footer a {
  color: #fff;
  font-weight: 700;
}

.social-media {
  margin-top: 8px;
}
