@font-face {
  font-family: 'Helvetica';
  src: url('Helvetica.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Clash Display';
  src: url('ClashDisplay-Semibold.otf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --green-btn: #2e7d32;
  --green-hover: #1b5e20;
  --green-bg: #a8d5a2;
  --green-light: #e8f5e9;
  --lavender: #dde3f0;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-mid: #444;
  --text-light: #666;
  --nav-height: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Helvetica', Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

/* ── SPLASH SCREEN ── */
#splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--green-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#splash .splash-logo {
  font-family: 'Clash Display', sans-serif;
  font-size: 3.5rem;
  color: var(--text-dark);
  opacity: 0;
  transform: translateY(0);
  transition: none;
}

#splash.animate-logo .splash-logo {
  animation: splashFadeIn 0.7s ease forwards;
}

#splash.animate-slide .splash-logo {
  animation: splashSlideUp 0.6s cubic-bezier(.4,0,.2,1) forwards;
}

@keyframes splashFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes splashSlideUp {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-80px); }
}

#splash.done {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: var(--green-bg);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
}

nav.visible {
  opacity: 1;
  transition: opacity 0.5s ease, background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 16px rgba(0,0,0,0.08);
}

.logo {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.7rem;
  font-weight: bold;
  color: var(--text-dark);
  text-decoration: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-spacer { width: 40px; }

/* ── HAMBURGUESA ── */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 210;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── MENÚ FULLSCREEN (ver abajo) ── */

/* Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 290;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.nav-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* ── CARRUSEL (estilo galería flotante) ── */
.carousel-section {
  position: relative;
  margin-top: var(--nav-height);
  background: var(--lavender);
  padding: 48px 0 56px;
  overflow: hidden;
}

.carousel-viewport {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 520px;
}

/* Tarjeta central */
.slide {
  position: absolute;
  width: 62%;
  height: 100%;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  transition: transform 0.6s cubic-bezier(.4,0,.2,1), opacity 0.6s, z-index 0s;
  opacity: 0;
  transform: translateX(0) scale(0.82);
  pointer-events: none;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  z-index: 10;
  pointer-events: all;
}

.slide.prev-card {
  opacity: 0.45;
  transform: translateX(-55%) scale(0.82);
  z-index: 5;
}

.slide.next-card {
  opacity: 0.45;
  transform: translateX(55%) scale(0.82);
  z-index: 5;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.05) 60%, transparent 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  padding: 32px 36px;
  color: white;
}

.slide-content h2 {
  font-family: 'Clash Display', sans-serif;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.slide-content p {
  font-family: 'Helvetica', Arial, sans-serif;
  font-size: 0.95rem;
  opacity: 0.88;
  line-height: 1.5;
}

/* Flechas */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  color: var(--text-dark);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 20;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.carousel-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn.prev { left: 24px; }
.carousel-btn.next { right: 24px; }

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}

.dot.active {
  background: var(--green-btn);
  transform: scale(1.3);
}

/* ── BOTÓN ── */
.btn {
  display: inline-block;
  background: var(--green-btn);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  align-self: flex-start;
  font-family: 'Helvetica', Arial, sans-serif;
}

.btn:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
}

/* ── DIVISOR ENTRE SECCIONES ── */
.section-divider {
  height: 32px;
  background: var(--white);
  border-top: 1px solid #e8e8e8;
}

/* ── CONTRIBUTE ── */
.contribute {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.contribute-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 56px;
  background: var(--white);
}

.contribute-text h2 {
  font-family: 'Clash Display', Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
}

.contribute-text p {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 28px;
}

.contribute-image {
  overflow: hidden;
}

.contribute-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── QUOTE ── */
.quote-section {
  background: var(--white);
  text-align: center;
  padding: 72px 48px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.quote-text {
  font-family: 'Helvetica', Arial, sans-serif;
  font-size: 1.7rem;
  font-style: italic;
  color: var(--text-dark);
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 24px;
}

.quote-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.quote-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.quote-author-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.quote-author-title {
  font-size: 0.85rem;
  color: var(--text-light);
}

.quote-wiki-link {
  color: var(--text-dark);
  text-decoration: none;
  border-bottom: 1px dotted var(--text-light);
  transition: color 0.2s, border-color 0.2s;
}

.quote-wiki-link:hover {
  color: var(--green-btn);
  border-bottom-color: var(--green-btn);
}

/* ── SKY SEA LAND ── */
.sky-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
}

.protest-image {
  overflow: hidden;
}

.protest-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sky-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 56px;
  background: var(--white);
}

.sky-text h2 {
  font-family: 'Clash Display', Arial, sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.sky-text p {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 28px;
}

/* ── NEWSLETTER MINIMALISTA ── */
.newsletter {
  background: var(--white);
  padding: 120px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background 0.8s ease;
}

.newsletter.in-view {
  background: #2e7d32;
}

.newsletter-inner {
  position: relative;
  z-index: 2;
  max-width: 540px;
  margin: 0 auto;
}

.newsletter h3 {
  font-family: 'Clash Display', Arial, sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--white);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.1s, transform 0.7s ease 0.1s;
}

.newsletter p.sub {
  font-family: 'Helvetica', Arial, sans-serif;
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin: 12px 0 36px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.25s, transform 0.7s ease 0.25s;
}

.newsletter .email-row {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.4s, transform 0.7s ease 0.4s;
  display: flex;
  max-width: 420px;
  margin: 0 auto 16px;
}

.newsletter.in-view h3,
.newsletter.in-view p.sub,
.newsletter.in-view .email-row {
  opacity: 1;
  transform: translateY(0);
}

.newsletter .email-row input {
  flex: 1;
  padding: 13px 18px;
  border: none;
  border-radius: 6px 0 0 6px;
  font-size: 0.95rem;
  font-family: 'Helvetica', Arial, sans-serif;
  outline: none;
  background: rgba(255,255,255,0.15);
  color: white;
}

.newsletter .email-row input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter .email-row input:focus { background: rgba(255,255,255,0.25); }

.newsletter .email-row button {
  background: white;
  color: var(--green-btn);
  border: none;
  padding: 13px 22px;
  border-radius: 0 6px 6px 0;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Helvetica', Arial, sans-serif;
  transition: background 0.2s;
}

.newsletter .email-row button:hover { background: #f0f0f0; }

/* ── FOOTER ── */
footer {
  background: #1a1a1a;
  text-align: center;
  padding: 24px 48px 20px;
  font-family: 'Helvetica', Arial, sans-serif;
}

.footer-main {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}

.footer-legal {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ── FADE IN ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .carousel-viewport { height: 380px; }
  .slide { width: 80%; }
  .slide-content h2 { font-size: 1.4rem; }
  .contribute, .sky-section { grid-template-columns: 1fr; }
  .contribute-image { height: 260px; }
  .contribute-text, .sky-text { padding: 48px 24px; }
  .protest-image { order: 2; height: 260px; }
  .sky-text { order: 1; padding: 48px 24px; }
  .newsletter { padding: 80px 24px; }
  .newsletter h3 { font-size: 1.4rem; }
}

/* ── AVISO LEGAL EN MENÚ ── */
.fullmenu-legal {
  padding: 20px 64px 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: auto;
}

.fullmenu-legal p {
  font-family: 'Helvetica', Arial, sans-serif;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  max-width: 340px;
}

/* ── MENÚ FULLSCREEN ── */
.fullmenu {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: translateY(-100%);
  transition: transform 0.55s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}

.fullmenu.open {
  transform: translateY(0);
  pointer-events: all;
}

.fullmenu-left {
  display: flex;
  align-items: center;
  padding: 80px 64px;
  background: #0d0d0d;
  position: relative;
  z-index: 2;
  transition: background 0.35s ease;
}

.fullmenu-left ul {
  list-style: none;
  width: 100%;
}

.fullmenu-left ul li a {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: bold;
  text-decoration: none;
  color: #ffffff;
  display: block;
  padding: 10px 0;
  line-height: 1.1;
  transition: color 0.2s ease;
  position: relative;
}

/* Línea animada debajo del link */
.fullmenu-left ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

.fullmenu-left ul li a:hover::after {
  width: 100%;
}

.fullmenu-right {
  position: relative;
  overflow: hidden;
  background: #111;
}

.fullmenu-img-wrap {
  position: absolute;
  inset: 0;
}

.fullmenu-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.35s ease;
}

.fullmenu-close {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 600;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease 0.2s, background 0.2s;
}

.fullmenu.open .fullmenu-close {
  opacity: 1;
}

.fullmenu-close:hover {
  background: rgba(255,255,255,0.22);
}

.fullmenu-overlay {
  position: fixed;
  inset: 0;
  z-index: 490;
  pointer-events: none;
}

.fullmenu-overlay.visible {
  pointer-events: all;
}

/* ── CARRUSEL HORIZONTAL ── */
.carousel-section {
  position: relative;
  margin-top: var(--nav-height);
  background: var(--lavender);
  padding: 48px 0 72px;
  overflow: hidden;
}

.carousel-track-wrap {
  overflow: hidden;
  padding: 0 12%;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.55s cubic-bezier(.4,0,.2,1);
}

.slide {
  flex: 0 0 76%;
  height: 480px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
  opacity: 0.45;
  transform: scale(0.96);
  transition: opacity 0.5s ease, transform 0.5s ease;
  position: relative;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.05) 60%, transparent 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  padding: 32px 36px;
  color: white;
}

.slide-content h2 {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.9rem;
  font-weight: bold;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.slide-content p {
  font-family: 'Helvetica', Arial, sans-serif;
  font-size: 0.92rem;
  opacity: 0.88;
  line-height: 1.5;
}

/* Flechas */
.carousel-btn {
  position: absolute;
  top: calc(50% - 24px);
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  color: var(--text-dark);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 20;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.carousel-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

/* Barras de progreso */
.carousel-bars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding: 0 12%;
}

.bar-item {
  flex: 1;
  max-width: 120px;
  height: 3px;
  background: rgba(0,0,0,0.15);
  border-radius: 99px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0%;
  background: var(--green-btn);
  border-radius: 99px;
  transition: width 0.1s linear;
}

.bar-item.active .bar-fill {
  width: 100%;
}

/* ── RESPONSIVE CARRUSEL ── */
@media (max-width: 768px) {
  .carousel-track-wrap { padding: 0 6%; }
  .slide { flex: 0 0 88%; height: 340px; }
  .slide-content h2 { font-size: 1.4rem; }
  .fullmenu { grid-template-columns: 1fr; }
  .fullmenu-right { display: none; }
  .fullmenu-left { padding: 80px 36px; }
}
/* ── FOOTER ── */
footer {
  background: #1a1a1a;
  padding: 20px 48px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

footer .footer-inner span:first-child {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  font-family: 'Helvetica', Arial, sans-serif;
}

.footer-legal {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  font-family: 'Helvetica', Arial, sans-serif;
  max-width: 600px;
}

/* ── HERO SECTION ── */
.hero-section {
  position: relative;
  background: var(--lavender);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 72px;
  overflow: hidden;
}

/* Logo grande en el hero */
.hero-logo-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  pointer-events: none;
  z-index: 2;
}

.hero-logo {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(5rem, 14vw, 13rem);
  font-weight: bold;
  color: var(--text-dark);
  opacity: 1;
  letter-spacing: -2px;
  user-select: none;
  white-space: nowrap;
  transition: opacity 0.1s linear, transform 0.1s linear;
}

/* Carrusel dentro del hero */
.hero-section .carousel-track-wrap {
  position: relative;
  z-index: 3;
  overflow: hidden;
  padding: 0 12%;
}

.hero-section .carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.55s cubic-bezier(.4,0,.2,1);
}

.hero-section .slide {
  flex: 0 0 76%;
  height: 480px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
  opacity: 0.45;
  transform: scale(0.96);
  transition: opacity 0.5s ease, transform 0.5s ease;
  position: relative;
}

.hero-section .slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-section .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.05) 55%, transparent 100%);
}

.hero-section .slide-content {
  position: relative;
  z-index: 2;
  padding: 28px 32px;
  color: white;
  width: 100%;
}

.hero-section .slide-content h2 {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.9rem;
  font-weight: bold;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.hero-section .slide-content p {
  font-size: 0.92rem;
  opacity: 0.88;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* Etiqueta de categoría en slide */
.slide-category-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 10px;
  border-radius: 999px;
  color: white;
  margin-bottom: 10px;
  align-self: flex-start;
}

/* Barras y flechas dentro del hero */
.hero-section .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  color: var(--text-dark);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 20;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.hero-section .carousel-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.08);
}

.hero-section .carousel-btn.prev { left: 24px; }
.hero-section .carousel-btn.next { right: 24px; }

.hero-section .carousel-bars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding: 0 12%;
  position: relative;
  z-index: 3;
}

/* ── NEWSLETTER FULLSCREEN ── */
.newsletter {
  background: var(--white);
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background 0.8s ease;
}

.newsletter.in-view {
  background: #2e7d32;
}

.newsletter-inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
  width: 100%;
  padding: 0 24px;
}

.newsletter h3 {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: bold;
  color: var(--white);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.1s, transform 0.7s ease 0.1s;
  margin-bottom: 12px;
}

.newsletter p.sub {
  font-family: 'Helvetica', Arial, sans-serif;
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.25s, transform 0.7s ease 0.25s;
}

.newsletter-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.4s, transform 0.7s ease 0.4s;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-fields input[type="text"],
.newsletter-fields input[type="email"] {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: 'Helvetica', Arial, sans-serif;
  background: rgba(255,255,255,0.15);
  color: white;
  outline: none;
  transition: background 0.2s;
}

.newsletter-fields input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-fields input:focus { background: rgba(255,255,255,0.25); }

.newsletter .email-row {
  display: flex;
}

.newsletter .email-row input {
  flex: 1;
  border-radius: 8px 0 0 8px;
}

.newsletter .email-row button {
  background: white;
  color: var(--green-btn);
  border: none;
  padding: 14px 24px;
  border-radius: 0 8px 8px 0;
  font-weight: 700;
  font-family: 'Helvetica', Arial, sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.newsletter .email-row button:hover { background: #f0f0f0; }

.newsletter.in-view h3,
.newsletter.in-view p.sub,
.newsletter.in-view .newsletter-fields {
  opacity: 1;
  transform: translateY(0);
}

.newsletter-msg {
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 14px;
  min-height: 20px;
  color: rgba(255,255,255,0.9);
  opacity: 0;
  transition: opacity 0.3s;
}

.newsletter-msg.show { opacity: 1; }

@media (max-width: 768px) {
  .hero-section .carousel-track-wrap { padding: 0 6%; }
  .hero-section .slide { flex: 0 0 88%; height: 340px; }
  .hero-section .slide-content h2 { font-size: 1.4rem; }
}
/* ── NAV VISIBLE (desktop) ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 32px;
  background: var(--green-bg);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
  gap: 0;
}

nav.scrolled {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 16px rgba(0,0,0,0.08);
}

nav .logo {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-dark);
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 40px;
}

/* Nav links — visible on desktop */
.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  flex: 1;
  align-items: center;
}

.nav-links li a {
  font-family: 'Helvetica', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-dark);
  padding: 6px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
  display: block;
}

/* Pastel hover per link */
.nav-links li:nth-child(1) a:hover { color: #2e7d32; background: #c8e6c9; }
.nav-links li:nth-child(2) a:hover { color: #e65100; background: #ffe0b2; }
.nav-links li:nth-child(3) a:hover { color: #1565c0; background: #bbdefb; }
.nav-links li:nth-child(4) a:hover { color: #6a1b9a; background: #e1bee7; }

/* Active link */
.nav-links li a.active {
  font-weight: 700;
}

/* Compact auth area */
.nav-auth-compact {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}

.btn-auth-compact {
  font-family: 'Helvetica', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--green-btn);
  background: transparent;
  color: var(--green-btn);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-auth-compact:hover { background: var(--green-btn); color: white; }

/* Avatar-only button */
.btn-avatar-only {
  background: none;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  padding: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, transform 0.15s;
}

.btn-avatar-only:hover {
  border-color: var(--green-btn);
  transform: scale(1.05);
}

.btn-avatar-only .btn-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Hide hamburger on desktop, show on mobile */
nav .hamburger { display: none; }

/* ── LATEST POSTS SECTION ── */
.latest-posts-section {
  background: #f7f7f5;
  padding: 72px 48px 80px;
}

.latest-posts-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
}

.latest-posts-title {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: bold;
  color: var(--text-dark);
}

.latest-posts-link {
  font-family: 'Helvetica', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-btn);
  text-decoration: none;
  transition: color 0.2s;
}

.latest-posts-link:hover { color: var(--green-hover); }

.latest-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.latest-post-card {
  border-radius: 14px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.latest-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.latest-post-card.skeleton {
  height: 340px;
  background: #e8e8e8;
  animation: shimmer 1.4s infinite;
  pointer-events: none;
}

.latest-post-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.latest-post-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.latest-post-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  color: white;
  margin-bottom: 9px;
  align-self: flex-start;
}

.latest-post-title {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 8px;
  flex: 1;
}

.latest-post-excerpt {
  font-family: 'Helvetica', Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── RESPONSIVE nav ── */
@media (max-width: 768px) {
  .nav-links { display: none; }

  /* Padding simétrico en móvil */
  nav { padding: 0 20px; }

  /* Hamburger al extremo izquierdo */
  nav .hamburger {
    display: flex;
    flex-shrink: 0;
    margin-right: 0;
  }

  /* Logo: centrado absolutamente, no participa en el flujo flex */
  nav .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  /* El grupo derecho (avatar/login) al extremo derecho */
  .nav-right-group {
    margin-left: auto;
    flex-shrink: 0;
  }

  .nav-auth-compact { margin-right: 0; }

  .latest-posts-section { padding: 48px 20px 60px; }
  .latest-posts-grid { grid-template-columns: 1fr; }
}