:root {
  --green: #42944a;
  --green-dark: #276331;
  --cream: #f7f5ef;
  --white: #ffffff;
  --black: #111111;
  --soft-black: #1b1b1b;
  --line: rgba(17, 17, 17, 0.12);
  --purple: #6a2e7e;
  --red: #b3261e;

  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Work Sans", sans-serif;

  --container: 1180px;
  --section: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--black);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(90%, var(--container));
  margin: 0 auto;
}

/* BOTÓN HAMBURGUESA */

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: none;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  position: relative;
  z-index: 1200;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--black);
  display: block;
  border-radius: 999px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 800;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* HEADER */

.header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 900;
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo img {
  width: 240px;
  height: auto;
}

.logo img.logo-anniversary {
  width: auto;
  height: 74px;
  max-width: none;
  margin-top: 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  margin-left: -16px;
}

.logo:hover .logo-anniversary {
  transform: translateY(-2px);
  opacity: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 42px);
  flex: 1;
  font-family: var(--font-heading);
  font-size: 0.89rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 1100;
  margin-left: auto;
}

.nav > a:not(.nav-login-link),
.nav-item > a {
  white-space: nowrap;
}

.nav a {
  text-decoration: none;
  position: relative;
}

.nav a::after {
  content: "";
  width: 0;
  height: 2px;
  background: var(--green);
  position: absolute;
  left: 0;
  bottom: -8px;
  transition: width 0.25s ease;
}

.nav a:hover::after {
  width: 100%;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  text-decoration: none;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  padding: 16px 0 10px;
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 1300;
}

.nav-dropdown a {
  display: block;
  padding: 13px 18px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-login-link {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(66, 148, 74, 0.24);
  border-radius: 999px;
  color: var(--green);
  background: rgba(66, 148, 74, 0.08);
  font-weight: 700;
  white-space: nowrap;
}

.nav-login-link:hover {
  color: var(--white);
  background: var(--green);
  transform: translateY(-1px);
}

.nav-login-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* HOME HUB */

.home-action-board {
  padding: 92px 0;
  position: relative;
  background:
    radial-gradient(
      circle at 18% 18%,
      rgba(66, 148, 74, 0.18),
      transparent 28%
    ),
    linear-gradient(180deg, #f6f3eb 0%, #ece4d6 100%);
  overflow: hidden;
}

.home-action-board::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='320' viewBox='0 0 420 320'%3E%3Cpolygon points='110,50 220,50 275,145 220,240 110,240 55,145' fill='none' stroke='rgba(66,148,74,0.09)' stroke-width='2'/%3E%3Cpolygon points='320,180 375,180 402,228 375,276 320,276 293,228' fill='none' stroke='rgba(66,148,74,0.07)' stroke-width='2'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='280' viewBox='0 0 360 280'%3E%3Cpolygon points='80,40 170,40 215,118 170,196 80,196 35,118' fill='none' stroke='rgba(66,148,74,0.08)' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size:
    540px 410px,
    470px 360px;
  background-position:
    0 0,
    180px 140px;
  opacity: 1;
}

.home-action-layout {
  display: grid;
  position: relative;
  grid-template-columns: 1.1fr 0.75fr 1.15fr;
  grid-template-rows: 260px 260px;
  gap: 30px;
  z-index: 2;
}

.home-action-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  min-height: 240px;
  isolation: isolate;
  box-shadow: 0 22px 54px rgba(17, 17, 17, 0.16);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.home-action-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.04);
  transition:
    transform 0.45s ease,
    filter 0.45s ease;
  z-index: -2;
}

.home-action-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(17, 17, 17, 0.04) 0%,
    rgba(17, 17, 17, 0.42) 44%,
    rgba(17, 17, 17, 0.92) 100%
  );
  z-index: -1;
}

.home-action-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 72px rgba(17, 17, 17, 0.26);
}

.home-action-card:hover::before {
  transform: scale(1.12);
  filter: saturate(1.18) contrast(1.08);
}

.home-action-card span {
  display: none;
}

.home-action-card h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.home-action-card p {
  margin-top: 12px;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.76);
}

.home-accion {
  grid-row: span 2;
  border-radius: 42px 0 0 0;
}

.home-accion::before {
  background-image: url("/assets/img/GALERIA22.avif");
}

.home-blog-feature {
  grid-row: span 2;
  border-radius: 0 0 42px 0;
  align-items: stretch;
}

.home-blog-feature strong {
  position: relative;
  display: inline-block;
  padding: 10px 22px 14px;
  background: rgba(17, 17, 17, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  font-family: var(--font-heading);
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.7;
  letter-spacing: -0.1em;
  color: #b7e0b9;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.42);
}

.home-blog-feature::before {
  background:
    radial-gradient(
      circle at 18% 18%,
      rgba(66, 148, 74, 0.22),
      transparent 26%
    ),
    linear-gradient(135deg, #121812 0%, #223426 100%);
  background-image: var(--home-blog-bg, url("/assets/img/GALERIA35.avif"));
}

.home-blog-feature::after {
  background: linear-gradient(
    to bottom,
    rgba(17, 17, 17, 0.32) 0%,
    rgba(17, 17, 17, 0.62) 42%,
    rgba(17, 17, 17, 0.96) 100%
  );
}

.home-blog-feature-content {
  max-width: 560px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.home-blog-feature h2 {
  font-size: clamp(1.35rem, 2.1vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  text-transform: none;
  max-width: 520px;
  padding-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-blog-feature p {
  max-width: 440px;
}

.home-blog-preview {
  margin-top: 28px;
  padding-bottom: 8px;
}

.home-blog-preview-image {
  width: 100%;
  height: 210px;
  margin-bottom: 18px;
  background-image: var(--home-blog-bg, url("/assets/img/GALERIA35.avif"));
  background-size: cover;
  background-position: center;
  filter: saturate(1.08) contrast(1.04);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.home-equipo {
  position: relative;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--black);
  color: var(--white);
  clip-path: polygon(23% 4%, 77% 4%, 100% 50%, 77% 96%, 23% 96%, 0 50%);
  overflow: hidden;
}

.home-equipo::before {
  display: block;
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("/assets/img/GALERIA1.avif") 0% 0% / 34% 34%,
    url("/assets/img/GALERIA2.avif") 50% 0% / 34% 34%,
    url("/assets/img/GALERIA3.avif") 100% 0% / 34% 34%,
    url("/assets/img/GALERIA4.avif") 0% 50% / 34% 34%,
    url("/assets/img/GALERIA5.avif") 50% 50% / 34% 34%,
    url("/assets/img/GALERIA6.avif") 100% 50% / 34% 34%,
    url("/assets/img/GALERIA7.avif") 0% 100% / 34% 34%,
    url("/assets/img/GALERIA8.avif") 50% 100% / 34% 34%,
    url("/assets/img/GALERIA9.avif") 100% 100% / 34% 34%;

  background-repeat: no-repeat;
  filter: blur(8px) saturate(1.05) contrast(1.05);
  transform: scale(1.12);
  opacity: 0.72;
  z-index: -2;
  transition:
    filter 0.45s ease,
    transform 0.45s ease,
    opacity 0.45s ease;
}

.home-equipo:hover::before {
  filter: blur(3px) saturate(1.12) contrast(1.08);
  transform: scale(1.06);
  opacity: 0.82;
}

.home-equipo::after {
  display: block;
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 36%,
      rgba(66, 148, 74, 0.38),
      transparent 42%
    ),
    linear-gradient(135deg, rgba(17, 17, 17, 0.62), rgba(17, 17, 17, 0.92));
  z-index: -1;
}

.home-equipo div {
  position: relative;
  z-index: 2;
  max-width: 320px;
}

.home-equipo h2 {
  font-size: clamp(2.2rem, 3.6vw, 3.8rem);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.48);
}

.home-equipo p {
  margin: 12px auto 0;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.42);
}

.home-gallery-card {
  border-radius: 34px 0 34px 0;
}

.home-gallery-card::before {
  background-image: var(--home-gallery-bg, url("/assets/img/CARTELES1.avif"));
  filter: blur(5px) saturate(1.05) contrast(1.05);
}

.home-gallery-card:hover::before {
  filter: blur(2px) saturate(1.12) contrast(1.08);
  transform: scale(1.08);
}

.home-gallery-card::after {
  background: linear-gradient(
    to bottom,
    rgba(17, 17, 17, 0.32) 0%,
    rgba(17, 17, 17, 0.58) 42%,
    rgba(17, 17, 17, 0.96) 100%
  );
}

.home-values-marquee {
  overflow: hidden;
  background: #111;
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes valuesMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.home-resources {
  padding: 72px 0;
  background:
    radial-gradient(
      circle at 12% 20%,
      rgba(255, 255, 255, 0.18),
      transparent 28%
    ),
    linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
}

.home-resources-inner {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 44px;
  align-items: center;
}

.home-resources h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 5.2rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.home-resources p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  max-width: 500px;
}

.home-resources-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-resources-links a {
  padding: 13px 17px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.home-resources-links a:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2);
}

.home-resources-links .all-docs-link {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
}

.home-resources-links .all-docs-link:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.home-values-track span {
  padding: 24px 64px;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 2.6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
  line-height: 0.9;
}

.home-values-track span:nth-child(odd) {
  color: #9ccc9f;
}

.home-values-track span:nth-child(even) {
  color: var(--white);
}

.home-values-track {
  display: flex;
  width: max-content;
  animation: valuesMarquee 34s linear infinite;
}

/* BANNER */

.banner {
  background: var(--black);
  border-bottom: 1px solid var(--line);
  margin-top: 0;
  margin-bottom: -20px;
  overflow: hidden;
  height: 210px;
}

.banner img {
  width: 100%;
  max-height: 190px;
  object-fit: cover;
}

/* HERO */

.hero {
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f6f2e8 0%, #ece3d5 58%, #e4dccf 100%);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero-inner {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(500px, 0.95fr) minmax(380px, 1.05fr);
  align-items: end;
  gap: 24px;
}

.hero-text {
  align-self: center;
  padding: 22px 0 58px;
  position: relative;
  z-index: 3;
  max-width: 760px;
}

.hero::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  height: 1px;

  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(66, 148, 74, 0.22) 18%,
    rgba(66, 148, 74, 0.22) 82%,
    transparent 100%
  );
}

/* HERO QUOTE */

.hero-quote {
  display: flex;
  flex-direction: column;

  gap: 14px;

  max-width: 620px;

  text-transform: uppercase;
}

.hero-quote-main {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5vw, 5.8rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.055em;
  color: var(--black);
  text-shadow:
    1px 1px 0 rgba(0, 0, 0, 0.16),
    2px 2px 0 rgba(0, 0, 0, 0.1),
    3px 3px 12px rgba(0, 0, 0, 0.08);
}

.hero-quote-sub {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.5vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--black);
  text-shadow:
    1px 1px 0 rgba(0, 0, 0, 0.16),
    2px 2px 0 rgba(0, 0, 0, 0.1),
    3px 3px 12px rgba(0, 0, 0, 0.08);
}

.hero-text cite {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #509d55;
  margin-top: 20px;
  margin-left: 2px;
}

.hero-buttons {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 65px;
}

.hero .btn.primary {
  background: var(--green);
  border-color: var(--green);
}

.hero .btn.secondary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.hero .btn {
  min-height: 62px;
  padding: 0 38px;
  font-size: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.22);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--green);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--green);
  color: var(--white);
}

.btn.secondary {
  background: transparent;
  color: var(--green);
}

.hero-image {
  align-self: end;
  justify-self: end;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
  margin-left: -70px;
  margin-right: -150px;
  margin-bottom: -120px;
}

.hero-image::before {
  content: "";
  position: absolute;
  width: 980px;
  height: 980px;
  right: -150px;
  bottom: -110px;
  background: radial-gradient(
    circle,
    rgba(253, 248, 246, 0.92) 0%,
    rgba(253, 248, 246, 0.86) 28%,
    rgba(246, 242, 232, 0.58) 52%,
    rgba(236, 227, 213, 0.24) 74%,
    rgba(246, 242, 232, 0) 92%
  );
  filter: blur(18px);
  z-index: -1;
  pointer-events: none;
}

.hero-image img {
  max-height: 1050px;
  max-width: 1050px;
  height: auto;
  width: auto;
  object-fit: contain;
  object-position: bottom right;
  margin-bottom: -50px;
  margin-right: -60px;
  margin-top: -80px;
  display: block;
}

/* ACCESOS */

.features {
  padding: var(--section) 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.feature {
  padding: 34px 28px;
  min-height: 160px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature:last-child {
  border-right: none;
}

.feature h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1;
  text-transform: uppercase;
}

.feature a {
  font-family: var(--font-heading);
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
  margin-top: 24px;
}

/* WHY */

.why {
  padding: var(--section) 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: -0.05em;
  text-align: center;
  margin-bottom: 44px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.why-item {
  background: var(--white);
  padding: 34px 26px;
  text-align: center;
}

.why-item strong {
  display: block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.why-item p {
  font-size: 0.95rem;
}

/* CTA AFILIACIÓN */

.cta {
  padding: var(--section) 0;
  background:
    linear-gradient(90deg, rgba(66, 148, 74, 0.1), transparent), var(--cream);
  border-bottom: 1px solid var(--line);
}

.cta-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  align-items: center;
}

.cta-copy h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.06em;
  margin-bottom: 18px;
}

.cta-copy p {
  max-width: 420px;
}

.cta-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.cta-box {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cta-box h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.cta-box p {
  font-size: 0.95rem;
  margin-bottom: 22px;
}

/* NEWS */

.news {
  padding: var(--section) 0;
  background: var(--white);
}

.news-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 30px;
  gap: 20px;
}

.news-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: -0.05em;
}

.news-head a {
  font-family: var(--font-heading);
  color: var(--green);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.85rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.news-card {
  border: 1px solid var(--line);
  background: var(--white);
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: grayscale(0.25);
}

.news-card-content {
  padding: 22px;
}

.news-card small {
  color: var(--green);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
}

.news-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.1;
  margin: 10px 0;
}

/* FOOTER */

.footer {
  background: var(--soft-black);
  color: var(--white);
  padding: 48px 0;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer strong {
  font-family: var(--font-heading);
  color: var(--green);
  font-size: 2rem;
}

/* SLIDER DIFERENCIAS PAG AFILIACION */

.som-diff-slider {
  background: var(--black);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.som-diff-slider::-webkit-scrollbar {
  display: none;
}

.som-diff-track {
  display: flex;
}

.som-diff-track::after {
  content: "";
  flex: 0 0 18px;
}

.som-diff-slide {
  min-width: min(720px, 64vw);
  height: clamp(420px, 65vh, 560px);
  scroll-snap-align: center;
  padding: clamp(28px, 4vw, 48px);
  padding-bottom: 36px;
  margin: 52px 18px;
  background:
    linear-gradient(135deg, rgba(66, 148, 74, 0.1), transparent 42%),
    var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 8px solid var(--green);
  border-radius: 0 0 38px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  position: relative;
}

.som-diff-slide:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: 42px;
  bottom: 34px;
  top: auto;
  transform: none;
  font-family: var(--font-heading);
  font-size: 3.2rem;
  color: var(--green);
  animation: arrowMoveX 1.2s infinite;
}

.som-diff-slide:last-child::after {
  content: none;
}

.som-diff-slide h3 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
  grid-area: title;
  align-self: center;
  white-space: normal;
  text-align: center;
  min-height: 1.85em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.som-diff-slide p {
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  line-height: 1.5;
  width: min(100%, 760px);
  margin-bottom: 0;
  text-align: left;
}

.som-diff-slide p:first-of-type {
  margin-top: 16px;
}

.som-diff-slide p strong {
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--green);
}

.som-diff-slide p:last-child strong {
  color: var(--red);
}

.intro-slide {
  background:
    linear-gradient(135deg, rgba(66, 148, 74, 0.18), transparent 42%),
    var(--cream);
}

.intro-slide h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5.2vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  max-width: 860px;
}

.intro-slide h2 span {
  color: var(--red);
}

.intro-slide p {
  margin-top: 28px;
  font-size: 1.35rem;
  max-width: 640px;
}

.slide-arrow {
  position: absolute;
  right: 42px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 5rem;
  color: var(--green);
  animation: arrowPulse 1.2s infinite;
}

.hex-badge {
  width: 84px;
  height: 76px;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  border: none;
  background: var(--green);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0;
  flex: 0 0 auto;
  align-self: center;
  margin: 0 0 26px 0;
}

@keyframes arrowMoveX {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(10px);
  }
  100% {
    transform: translateX(0);
  }
}

/* PÁGINA AFILIACIÓN */

.join-page {
  background: var(--cream);
}

.join-page .content-section {
  padding: 92px 0;
}

.join-page .content-section h2 {
  padding-bottom: 40px;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.join-page .split-content {
  grid-template-columns: 0.62fr 1.38fr;
  gap: 70px;
}

.join-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* HERO AFILIACIÓN */

.join-page .page-hero {
  position: relative;
  overflow: hidden;

  padding: 110px 0 82px;

  background:
    linear-gradient(135deg, rgba(66, 148, 74, 0.12), transparent 42%),
    url("/assets/img/som-banner-afiliacion.jpeg");

  background-repeat: no-repeat;
  background-position: 102% -55%;
  background-size: 65%;
}

.join-page .page-hero::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to right,
    var(--cream) 35%,
    rgba(247, 245, 239, 0.85) 55%,
    transparent 75%
  );

  pointer-events: none;
}

.join-hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 100px;

  background:
    linear-gradient(135deg, rgba(66, 148, 74, 0.08), transparent 42%),
    url("/assets/img/som-banner-afiliacion.jpeg");

  background-repeat: no-repeat;
  background-position: right top;
  background-size: 58%;
}

.join-hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 90px;
  align-items: end;
  position: relative;
  z-index: 2;
}

.join-hero-main h1 {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 8vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: -0.07em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.join-hero-main h1 span {
  color: var(--green);
}

.join-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(
    to right,
    var(--cream) 0%,
    rgba(247, 245, 239, 0.92) 38%,
    rgba(247, 245, 239, 0.55) 62%,
    transparent 88%
  );

  pointer-events: none;
}

.join-lead {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.25;
  max-width: 760px;
  margin-bottom: 18px;
}

.join-highlight {
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.join-sublead {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  max-width: 620px;
}

.join-benefits-panel {
  border-left: 8px solid var(--green);
  padding-left: 34px;
  padding-bottom: 8px;
}

.panel-kicker {
  display: block;
  font-family: var(--font-heading);
  color: var(--purple);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.join-benefits {
  list-style: none;
  display: grid;
  gap: 22px;
  position: relative;
  z-index: 2;
}

.join-benefits::before {
  content: "";
  position: absolute;
  inset: -30px;

  background: radial-gradient(
    circle,
    rgba(247, 245, 239, 0.78) 0%,
    rgba(247, 245, 239, 0.38) 45%,
    transparent 78%
  );

  filter: blur(26px);

  z-index: -1;
  pointer-events: none;
}

.join-benefits li {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  position: relative;
  padding-left: 34px;
}

.join-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  width: 16px;
  height: 16px;
  background: var(--green);
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
}

.join-card {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 28px 0;
  min-height: 390px;
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--line);
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.join-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.join-card.featured {
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(66, 148, 74, 0.35),
      transparent 34%
    ),
    var(--black);
  color: var(--white);
  border-color: var(--black);
}

.join-card:not(.featured) {
  background:
    linear-gradient(135deg, rgba(106, 46, 126, 0.08), transparent 42%),
    var(--cream);
}

.join-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--green);
}

.join-card:not(.featured)::before {
  background: var(--purple);
}

.join-card span {
  font-family: var(--font-heading);
  color: var(--green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.join-card:not(.featured) span {
  color: var(--purple);
}

.join-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin: 34px 0 28px;
}

.join-card p {
  font-size: 1.12rem;
  line-height: 1.45;
  max-width: 520px;
  margin-bottom: 42px;
}

.join-card .btn {
  width: 100%;
}

.join-card:not(.featured) .btn.secondary {
  color: var(--purple);
  border-color: var(--purple);
}

.join-card:not(.featured) .btn.secondary:hover {
  background: var(--purple);
  color: var(--white);
}

/* COMPLETAR AFILIACIÓN */

.complete-page {
  background: var(--cream);
}

.complete-hero {
  padding: 100px 0 72px;
  background:
    linear-gradient(135deg, rgba(66, 148, 74, 0.12), transparent 42%),
    var(--cream);
  border-bottom: 1px solid var(--line);
}

.complete-hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  align-items: end;
}

.complete-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  line-height: 0.88;
  letter-spacing: -0.07em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.complete-hero p {
  font-size: 1.25rem;
  max-width: 720px;
}

.complete-note {
  border-left: 8px solid var(--green);
  padding-left: 28px;
}

.complete-note strong {
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--green);
}

.complete-note p {
  font-size: 1rem;
  margin-top: 10px;
}

.complete-form-section {
  padding: 78px 0;
}

.complete-form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(28px, 5vw, 58px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.complete-form label {
  display: grid;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.complete-form input,
.complete-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 16px;
  font-family: var(--font-body);
  font-size: 1rem;
}

.complete-form textarea,
.legal-check {
  margin-top: 24px;
}

.legal-check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-body) !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.legal-check input {
  width: auto;
  margin-top: 4px;
}

.complete-form .btn {
  margin-top: 30px;
  width: 100%;
}

/* GRACIAS */

.thanks-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--cream);
}

.thanks-section {
  width: 100%;
  padding: 120px 0;
}

.thanks-section .container {
  max-width: 760px;
}

.thanks-section h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.9;
  text-transform: uppercase;
  margin: 18px 0 28px;
}

.thanks-section p:not(.eyebrow) {
  font-size: 1.2rem;
  line-height: 1.5;
  max-width: 620px;
  margin-bottom: 42px;
}

.fee-selector {
  margin-bottom: 42px;
}

.fee-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
  margin-top: 42px;
}

.fee-grid {
  display: grid;
  gap: 16px;
}

.fee-option {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.fee-option:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.fee-option input {
  margin-top: 4px;
  accent-color: var(--green);
}

.fee-option strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.fee-option span {
  font-size: 0.95rem;
  line-height: 1.4;
  color: rgba(17, 17, 17, 0.75);
}

/* AFILIACIÓN ONLINE (STRIPE) */

.online-membership-page {
  background: var(--cream);
}

.online-membership-hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 96px;
  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(66, 148, 74, 0.24),
      transparent 24%
    ),
    radial-gradient(
      circle at 88% 74%,
      rgba(66, 148, 74, 0.18),
      transparent 28%
    ),
    radial-gradient(
      circle at 72% 22%,
      rgba(111, 78, 145, 0.1),
      transparent 24%
    ),
    linear-gradient(135deg, #f7f5ef 0%, #edf5eb 52%, #f3efe5 100%);
  color: var(--black);
}

.online-membership-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(66, 148, 74, 0.1) 12%,
      transparent 24%
    ),
    linear-gradient(
      90deg,
      transparent 38%,
      rgba(66, 148, 74, 0.06) 48%,
      transparent 58%
    ),
    linear-gradient(
      90deg,
      transparent 72%,
      rgba(111, 78, 145, 0.08) 82%,
      transparent 92%
    );

  pointer-events: none;
}

.online-membership-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
  padding-top: 72px;
}

.online-membership-hero-inner::after {
  content: "";
  position: absolute;
  top: 42px;
  right: -80px;
  width: 180px;
  height: 180px;
  border-top: 2px solid rgba(66, 148, 74, 0.18);
  border-right: 2px solid rgba(66, 148, 74, 0.18);
  pointer-events: none;
}

.online-membership-hero .eyebrow {
  color: var(--green);
}

.online-membership-hero h1 {
  font-family: var(--font-heading);

  font-size: clamp(3.8rem, 7vw, 7.6rem);

  line-height: 0.86;
  letter-spacing: -0.08em;
  text-transform: uppercase;

  margin-bottom: 28px;
}

.online-membership-hero p:not(.eyebrow) {
  font-size: clamp(1.15rem, 2vw, 1.45rem);

  max-width: 700px;

  color: rgba(17, 17, 17, 0.72);
}

.online-membership-hero .back-link {
  color: var(--black);
  border-color: rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.48);
}

.online-membership-options {
  padding: 92px 0;
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.membership-card {
  padding: 36px;

  background: rgba(255, 255, 255, 0.76);

  border: 1px solid rgba(17, 17, 17, 0.08);

  border-radius: 0 0 34px 0;

  display: flex;
  flex-direction: column;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.membership-card:hover {
  transform: translateY(-6px);

  box-shadow: 0 24px 54px rgba(17, 17, 17, 0.1);

  background: var(--white);
}

.membership-card.featured {
  background: linear-gradient(
    180deg,
    rgba(17, 17, 17, 0.96),
    rgba(17, 17, 17, 0.92)
  );

  color: var(--white);

  border-top: 5px solid var(--green);
}

.membership-card span {
  font-family: var(--font-heading);

  font-size: 0.76rem;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.1em;

  color: var(--green);
}

.membership-card h2 {
  font-family: var(--font-heading);

  font-size: clamp(3rem, 5vw, 5rem);

  line-height: 0.88;
  letter-spacing: -0.08em;

  margin: 18px 0;
}

.membership-card p {
  line-height: 1.6;
}

.membership-card ul {
  margin: 28px 0 36px;
  padding-left: 18px;

  display: grid;
  gap: 12px;
}

.membership-btn {
  margin-top: auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 16px 20px;

  background: var(--green);

  color: var(--white);
  text-decoration: none;

  font-family: var(--font-heading);
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.04em;

  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.membership-btn:hover {
  transform: translateY(-2px);

  filter: brightness(1.08);
}

.membership-note {
  margin-top: 42px;
}

.membership-note p {
  max-width: 720px;

  color: rgba(17, 17, 17, 0.66);

  line-height: 1.6;
}

/* CONDICIONES AFILIACIÓN */

.membership-conditions {
  margin-top: 56px;

  padding: 34px;

  background: linear-gradient(
    135deg,
    rgba(66, 148, 74, 0.08),
    rgba(66, 148, 74, 0.03)
  );

  border: 1px solid rgba(66, 148, 74, 0.12);

  border-left: 5px solid var(--green);
}

.membership-conditions h3 {
  font-family: var(--font-heading);

  font-size: 1.4rem;

  text-transform: uppercase;
  letter-spacing: -0.04em;

  margin-bottom: 22px;
}

.membership-conditions ol {
  display: grid;
  gap: 18px;

  padding-left: 18px;
}

.membership-conditions li {
  line-height: 1.7;

  color: rgba(17, 17, 17, 0.78);
}

.membership-conditions a {
  color: var(--green);
  font-weight: 600;
}

/* ASESORÍA JURÍDICA */

.legal-page {
  background: var(--cream);
}

.legal-hero {
  min-height: 720px;
  padding: 110px 0 90px;
  background:
    linear-gradient(
      to right,
      rgba(247, 245, 239, 0.98) 0%,
      rgba(247, 245, 239, 0.86) 42%,
      rgba(247, 245, 239, 0.5) 72%
    ),
    url("../assets/img/backgroundasesoria.jpeg");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.legal-hero-inner {
  max-width: 980px;
}

.legal-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  max-width: 900px;
  margin-bottom: 42px;
}

.legal-hero-panel {
  max-width: 620px;
  border-left: 8px solid var(--green);
  padding-left: 30px;
}

.legal-hero-panel p {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.35;
  margin-bottom: 28px;
}

.legal-info-section {
  padding: 84px 0;
}

.legal-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.legal-info-card {
  background: var(--white);
  padding: 34px 30px;
  min-height: 280px;
}

.legal-info-card h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  text-transform: uppercase;
  margin: 24px 0 18px;
}

.legal-info-card p,
.legal-info-card a {
  display: block;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

.legal-info-card a {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.legal-team-section {
  padding: 84px 0;
  background:
    linear-gradient(rgba(247, 245, 239, 0.55), rgba(247, 245, 239, 0.55)),
    url("../assets/img/backgroundletrados.jpeg");
  background-size: cover;
  background-position: center;
  background-blend-mode: lighten;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.legal-team-intro {
  margin-top: 24px;
  font-size: 1.1rem;
  line-height: 1.45;
  max-width: 420px;
}

.legal-team-inner {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 60px;
  align-items: center;
}

.legal-team-inner h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.legal-team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.legal-team-grid article {
  border-left: 8px solid var(--green);
  padding: 28px 30px;
  background: var(--cream);
}

.legal-team-grid h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 14px;
}

.legal-urgent-section {
  padding: 84px 0;
}

.legal-urgent-box {
  background: var(--black);
  color: var(--white);
  padding: clamp(36px, 6vw, 70px);
  border-radius: 0 0 42px 0;
}

.legal-urgent-box h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.legal-urgent-box p {
  font-size: 1.2rem;
  max-width: 620px;
  margin-bottom: 34px;
}

.legal-urgent-box h2 {
  color: var(--red);
}

.legal-urgent-box .btn.secondary {
  background: var(--white);
  border-color: var(--white);
  color: var(--green);
  font-weight: 800;
}

.legal-urgent-box .btn.secondary:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* QUÉ HACEMOS - ORGANIZACIÓN */

.about-page {
  background: var(--cream);
}

.about-hero .eyebrow {
  color: var(--purple);
  font-size: 0.99rem;
  letter-spacing: 0.22em;
  opacity: 0.95;
  text-align: justify;
  margin-left: 25px;
}

.about-hero {
  position: relative;
  overflow: hidden;

  padding: 120px 0 110px;

  background: linear-gradient(135deg, #2d6d35 0%, #42944a 42%, #2f7738 100%);

  border-bottom: none;
}

.about-hero-hex {
  position: absolute;
  top: 40px;
  left: -40px;
  width: 420px;
  height: 420px;
  z-index: 4;
  pointer-events: none;
  opacity: 0.75;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='25,6 75,6 100,50 75,94 25,94 0,50' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.about-hero::before {
  content: "";

  position: absolute;
  inset: 0;

  background-image: radial-gradient(
    rgba(255, 255, 255, 0.08) 1.2px,
    transparent 1.2px
  );

  background-size: 38px 38px;

  opacity: 0.55;

  mask-image: linear-gradient(to bottom, black, transparent 92%);

  pointer-events: none;
}

.about-hero::after {
  content: "SOM";

  position: absolute;

  right: -40px;
  bottom: -40px;

  font-family: var(--font-heading);
  font-size: clamp(10rem, 26vw, 28rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.12em;

  color: rgba(255, 255, 255, 0.07);

  pointer-events: none;
}

.about-hero-inner {
  max-width: 980px;
  position: relative;
  z-index: 2;
}

.about-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  margin-bottom: 30px;
  color: var(--white);
  max-width: 920px;
}

.about-hero p:not(.eyebrow) {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
}

/* QUÉ HACEMOS - BLOQUE QUIÉNES SOMOS */

.about-intro {
  padding: 92px 0;
  background:
    linear-gradient(135deg, rgba(66, 148, 74, 0.1), transparent 44%),
    var(--white);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.about-intro .eyebrow {
  padding-bottom: 20px;
  font-weight: 600;
  color: var(--purple);
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}

.about-statement {
  position: relative;
  padding: 42px 0;
}

.about-statement h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5.2vw, 5.2rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
  text-transform: uppercase;
  max-width: 560px;
  position: relative;
  z-index: 2;
}

.statement-mark {
  position: absolute;
  left: -18px;
  bottom: -18px;
  font-family: var(--font-heading);
  font-size: clamp(6rem, 14vw, 13rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.12em;
  color: rgba(66, 148, 74, 0.09);
  z-index: 1;
  pointer-events: none;
}

.about-text {
  border-left: 8px solid var(--green);
  padding-left: 34px;
}

.about-text p {
  font-size: 1.08rem;
  line-height: 1.65;
  margin-bottom: 22px;
}

.about-text p:first-child {
  font-size: 1.22rem;
  font-weight: 600;
}

/* QUÉ HACEMOS - NAVEGACIÓN INTERNA */

.about-nav-section {
  padding: 86px 0;
  background:
    radial-gradient(
      circle at 12% 20%,
      rgba(106, 46, 126, 0.08),
      transparent 28%
    ),
    var(--cream);
  border-bottom: 1px solid var(--line);
}

.about-nav-head .eyebrow {
  font-weight: 600;
  color: var(--purple);
}
.about-nav-head {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 42px;
}

.about-nav-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  max-width: 760px;
}

.about-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  background: transparent;
  border: none;
}

.about-nav-card {
  min-height: 300px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid var(--line);
  border-radius: 0 0 28px 0;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease;
}

.about-nav-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--green);
}

.about-nav-card:nth-child(2)::before {
  background: var(--purple);
}

.about-nav-card:nth-child(3)::before {
  background: var(--red);
}

.about-nav-card:hover {
  background: var(--white);
  transform: translateY(-6px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.1);
}

.about-nav-card span {
  font-family: var(--font-heading);
  color: var(--green);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-nav-card:nth-child(2) span {
  color: var(--purple);
}

.about-nav-card:nth-child(3) span {
  color: var(--red);
}

.about-nav-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 2.2vw, 2.35rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin: 44px 0 18px;
}

.about-nav-card p {
  font-size: 0.98rem;
  line-height: 1.48;
}

/* QUÉ HACEMOS - ORGANIZACIÓN */

.org-section {
  padding: 92px 0;
  background: linear-gradient(180deg, #e7e1d2 0%, #ddd5c2 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: visible;
}

.org-section::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 260px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(247, 245, 239, 0.35) 45%,
    rgba(247, 245, 239, 0.78) 72%,
    rgba(247, 245, 239, 0.96) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.org-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='220' viewBox='0 0 260 220'%3E%3Cpolygon points='55,25 135,25 175,95 135,165 55,165 15,95' fill='none' stroke='rgba(66,148,74,0.11)' stroke-width='2'/%3E%3Cpolygon points='200,20 240,20 260,55 240,90 200,90 180,55' fill='none' stroke='rgba(66,148,74,0.07)' stroke-width='2'/%3E%3Cpolygon points='185,145 230,145 252,182 230,218 185,218 162,182' fill='none' stroke='rgba(66,148,74,0.08)' stroke-width='2'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='260' viewBox='0 0 320 260'%3E%3Cpolygon points='80,40 160,40 200,110 160,180 80,180 40,110' fill='none' stroke='rgba(66,148,74,0.08)' stroke-width='2'/%3E%3Cpolygon points='250,130 292,130 314,168 292,206 250,206 228,168' fill='none' stroke='rgba(66,148,74,0.10)' stroke-width='2'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='210' height='180' viewBox='0 0 210 180'%3E%3Cpolygon points='42,18 102,18 132,70 102,122 42,122 12,70' fill='none' stroke='rgba(66,148,74,0.06)' stroke-width='2'/%3E%3Cpolygon points='150,95 195,95 210,128 195,160 150,160 132,128' fill='none' stroke='rgba(66,148,74,0.09)' stroke-width='2'/%3E%3C/svg%3E");

  background-repeat: repeat;
  background-size:
    310px 265px,
    470px 390px,
    380px 315px;

  background-position:
    0 0,
    130px 80px,
    70px 190px;

  opacity: 1;
}

.org-section .container {
  position: relative;
  z-index: 2;
}

.org-head {
  max-width: 820px;
  margin-bottom: 70px;
}

.stair-title {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: -0.07em;
  line-height: 0.9;
  margin-bottom: 28px;
}

.stair-title span {
  display: block;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  color: var(--black);
}

.stair-title span:nth-child(2) {
  margin-left: clamp(138px, 78vw, 146px);
}

.stair-title span:nth-child(3) {
  margin-left: clamp(450px, 78vw, 600px);
  color: var(--green);
}

.org-head p:not(.eyebrow) {
  font-size: 1.2rem;
}

.commission-block {
  margin-top: 72px;
}

.commission-block h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 34px;
  padding-bottom: 0;
  border-bottom: none;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

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

.person-card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 22px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.person-card.compact {
  min-height: unset;
  align-items: center;
  text-align: center;
  padding-bottom: 34px;
  justify-content: center;
  gap: 24px;
}

.person-card.compact h4 {
  text-align: center;
}

.person-card.compact > div:not(.person-placeholder) {
  width: 100%;
  margin: 0;
}

.person-card img,
.person-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--green);
}

.person-placeholder {
  display: grid;
  place-items: center;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  width: 170px;
  height: 170px;
  margin: 0 auto;
}

.person-card h4 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.person-card .role {
  color: var(--green);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.86rem;
  margin-bottom: 12px;
}

.person-card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.person-card:not(.flip-card) {
  align-items: center;
  text-align: center;
}

.person-card:not(.flip-card) > div:not(.person-placeholder) {
  width: 100%;
}

.person-card .person-placeholder {
  flex: 0 0 auto;
}

.commission-block:last-child .people-grid {
  align-items: stretch;
}

.commission-block:last-child .person-card {
  min-height: 360px;
}

.commission-block:last-child .flip-front {
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding-top: 0;
  height: 100%;
  min-height: 360px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.commission-block:last-child .flip-front .flip-hint {
  margin-top: 0;
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
}

.commission-block:last-child .flip-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  transform: translateY(8px);
}

.commission-block:last-child .flip-back {
  justify-content: center;
}

.commission-block:last-child .flip-inner {
  min-height: 360px;
}

/* ORGANIZACIÓN - RETRATOS Y FLIP CARDS */

.person-card img {
  width: 170px;
  height: 170px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  background: var(--black);
  margin: 0 auto;
  border: 6px solid var(--black);
}

.person-placeholder {
  width: 170px;
  height: 170px;
  margin: 0 auto;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  background: var(--green);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
}

.flip-card {
  perspective: 1200px;
  padding: 0;
  background: transparent;
  border: none;
}

.flip-inner {
  position: relative;
  width: 100%;
  min-height: 390px;
  transform-style: preserve-3d;
  transition: transform 0.7s ease;
}

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flip-front {
  align-items: center;
  text-align: center;
}

.flip-back {
  transform: rotateY(180deg);
  justify-content: center;

  background:
    linear-gradient(135deg, rgba(66, 148, 74, 0.18), rgba(66, 148, 74, 0.08)),
    var(--cream);
}

.flip-back p {
  font-size: 0.95rem;
  line-height: 1.55;
}

.flip-hint {
  margin-top: auto;
  font-family: var(--font-heading);
  color: var(--green);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.flip-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin: 0;
}

.flip-card.is-flipped .flip-inner {
  transform: rotateY(180deg);
}

/* QUÉ HACEMOS - SECCIONES SINDICALES */

/* SECCIONES SINDICALES */

.sections-section {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
  border-top: none;
  background:
    radial-gradient(circle at 90% 10%, rgba(66, 148, 74, 0.1), transparent 28%),
    linear-gradient(rgba(247, 245, 239, 0.82), rgba(247, 245, 239, 0.88)),
    url("/assets/img/GALERIA35.avif");
  background-size: 145%;
  background-position: center -60px;
  background-repeat: no-repeat;
}

.sections-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(
    to bottom,
    var(--white) 0%,
    rgba(247, 245, 239, 0.98) 0%,
    rgba(247, 245, 239, 0.82) 38%,
    rgba(247, 245, 239, 0.45) 68%,
    rgba(247, 245, 239, 0) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.sections-section::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(66, 148, 74, 0.08),
      transparent 34%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(66, 148, 74, 0.06),
      transparent 28%
    ),
    linear-gradient(
      to bottom,
      rgba(247, 245, 239, 0.18) 58%,
      rgba(247, 245, 239, 0.72) 78%,
      rgba(247, 245, 239, 0.96) 92%,
      rgba(247, 245, 239, 1) 100%
    );

  pointer-events: none;
  z-index: 1;
}

.sections-section .container {
  position: relative;
  z-index: 3;
}

.sections-head {
  max-width: 920px;
  margin: 0 auto 74px;
  text-align: center;
}

.sections-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(3.6rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  margin-bottom: 26px;
  color: transparent;
  -webkit-text-stroke: 2px var(--green);
  opacity: 0.9;
  position: relative;
  display: inline-block;
}

.sections-head h2::after {
  content: "";
  display: block;
  width: 120px;
  height: 2px;
  background: var(--green);
  margin: 22px auto 0;
  opacity: 0.55;
}

.sections-head p:not(.eyebrow) {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto;
  color: rgba(17, 17, 17, 0.72);
}

.sections-head .eyebrow {
  color: var(--purple);
  margin-bottom: 18px;
}

/* SECCIONES SINDICALES - HEXÁGONOS */

.sections-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 52px 70px;
  margin-top: 60px;
}

.section-card {
  width: 210px;
  height: 210px;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  background: rgba(255, 255, 255, 0.62);
  border: none;
  text-decoration: none;
  padding: 34px 28px;
  display: grid;
  grid-template-rows: 24px 64px 46px;
  align-content: center;
  justify-items: center;
  text-align: center;
  position: relative;
  color: var(--black);
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
  gap: 8px;
  margin: 0;
}

.section-card::before {
  display: none;
}

.section-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  clip-path: inherit;
  border: 1px dashed rgba(66, 148, 74, 0.65);
  pointer-events: none;
}

.section-card.active {
  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(255, 255, 255, 0.18),
      transparent 40%
    ),
    linear-gradient(135deg, var(--green), var(--green-dark));
  color: var(--white);
  grid-template-rows: 74px 46px;
}

.section-card.active h3 {
  height: 74px;
}

.section-card.active::after {
  border: none;
}

.section-card:hover {
  transform: translateY(-8px);
  filter: drop-shadow(0 18px 28px rgba(17, 17, 17, 0.14));
}

.section-card span {
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-card.active span {
  color: rgba(255, 255, 255, 0.86);
}

.section-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  max-width: 145px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: none;
  margin: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.section-card p {
  font-size: 0.74rem;
  line-height: 1.2;
  max-width: 130px;
  opacity: 0.72;
  height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.section-card p::before {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  background: currentColor;
  opacity: 0.55;
  margin: 0 auto 10px;
}

@media (hover: hover) and (pointer: fine) {
  .flip-card:hover .flip-inner {
    transform: rotateY(180deg);
  }
}

/* GALERÍA */

.gallery-page {
  background: var(--cream);
}

.gallery-hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 96px;
  background:
    linear-gradient(rgba(17, 17, 17, 0.86), rgba(17, 17, 17, 0.93)),
    url("/assets/img/GALERIA22.avif");
  background-size: cover;
  background-position: center 45%;
  color: var(--white);
}

.gallery-hero .eyebrow {
  color: var(--green);
}

.gallery-hero::after {
  content: "ARCHIVO";
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--font-heading);
  font-size: clamp(6rem, 10vw, 11rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.82;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.gallery-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
  padding-top: 72px;
}

.gallery-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
  color: var(--white);
}

.gallery-hero p:not(.eyebrow) {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
}

.posters-section,
.photo-section {
  padding: 92px 0;
}

.posters-section {
  background: var(--black);
  color: var(--white);
}

.photo-section {
  background: var(--black);
  border-top: none;
}

.photo-section .gallery-section-head h2 {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--green);
}

.photo-section .eyebrow {
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
}

.gallery-section-head {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr;
  gap: 50px;
  align-items: end;
  margin-bottom: 46px;
}

.gallery-section-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  color: inherit;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.poster-item {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 12px;
  display: block;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.poster-item:hover,
.photo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.14);
}

.poster-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.posters-section .gallery-section-head h2 {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--green);
}

.posters-section .eyebrow {
  color: var(--green);
  text-transform: uppercase;
  font-weight: 600;
}

/* GALERÍA - PAGINACIÓN FOTOS */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.photo-item {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  aspect-ratio: 4 / 3;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 42px;
}

.gallery-page-btn {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
}

.gallery-page-btn.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.photo-item {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0;
  cursor: pointer;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 28px;
}

.lightbox.show {
  display: flex;
}

.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  border: none;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-family: var(--font-heading);
}

.lightbox-close {
  top: 24px;
  right: 30px;
  font-size: 3rem;
}

.lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
  font-size: 5rem;
}

.lightbox-prev {
  left: 28px;
}

.lightbox-next {
  right: 28px;
}

/* BOTÓN VOLVER GALERÍA */

.back-link {
  position: absolute;
  top: 0;
  left: 0;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;

  color: var(--black);

  padding: 10px 18px;

  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.42);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.back-link:hover {
  transform: translateX(-4px);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(66, 148, 74, 0.35);
}

.gallery-hero .back-link {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.gallery-hero .back-link:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(66, 148, 74, 0.55);
}

/* DOCUMENTOS */

.documents-page {
  background: var(--cream);
}

.documents-hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 96px;
  background:
    linear-gradient(rgba(17, 17, 17, 0.78), rgba(17, 17, 17, 0.88)),
    url("/assets/img/backgroundasesoria.jpeg");
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.documents-hero::after {
  content: "DOCS";
  position: absolute;
  right: -35px;
  top: -35px;
  bottom: auto;
  font-family: var(--font-heading);
  font-size: clamp(9rem, 19vw, 19rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.12em;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.documents-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 980px;
  padding-top: 72px;
}

.documents-hero .back-link {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.documents-hero .eyebrow {
  color: var(--green);
  font-weight: 600;
}

.documents-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(3.7rem, 7vw, 7.6rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.documents-hero p:not(.eyebrow) {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
}

.docs-category {
  padding: 86px 0;
  border-bottom: 1px solid var(--line);
}

.docs-category:nth-of-type(even) {
  background: var(--white);
}

.docs-category:nth-of-type(odd) {
  background:
    radial-gradient(circle at 90% 8%, rgba(66, 148, 74, 0.1), transparent 28%),
    var(--cream);
}

.docs-head {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 54px;
  align-items: end;
  margin-bottom: 42px;
}

.docs-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.laws-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #d7ead8 0%, #f0f5ec 48%, #cfe5d0 100%);
}

.laws-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 18% 25%,
      rgba(66, 148, 74, 0.38),
      transparent 22%
    ),
    radial-gradient(circle at 78% 68%, rgba(66, 148, 74, 0.3), transparent 24%),
    radial-gradient(
      circle at 52% 42%,
      rgba(66, 148, 74, 0.22),
      transparent 20%
    ),
    radial-gradient(
      circle at 32% 78%,
      rgba(66, 148, 74, 0.24),
      transparent 18%
    ),
    radial-gradient(circle at 92% 18%, rgba(66, 148, 74, 0.2), transparent 16%),
    radial-gradient(circle at 8% 88%, rgba(66, 148, 74, 0.18), transparent 20%),
    radial-gradient(circle at 66% 14%, rgba(66, 148, 74, 0.16), transparent 18%);
  filter: blur(28px);
  opacity: 0.85;
  pointer-events: none;
}

.laws-section .container {
  position: relative;
  z-index: 2;
}

.laws-section .docs-head h2 {
  color: transparent;
  -webkit-text-stroke: 4px var(--purple);
}

.budgets-section .docs-head h2 {
  color: var(--green);
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* TARJETAS DEFAULT CLARAS */

.doc-card {
  min-height: 230px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-top: 5px solid var(--green);
  border-radius: 0 0 28px 0;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  overflow: hidden;
  position: relative;
}

.doc-card:hover {
  transform: translateY(-5px);
  background: var(--white);
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.11);
}

.doc-card span {
  width: fit-content;
  padding: 7px 10px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.doc-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.2vw, 2.25rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin: 34px 0 14px;
  color: var(--black);
}

.doc-card p {
  font-size: 0.96rem;
  line-height: 1.45;
  color: rgba(17, 17, 17, 0.72);
}

.doc-card::after {
  content: "Abrir PDF →";
  margin-top: 24px;
  font-family: var(--font-heading);
  color: var(--green);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
}

/* TARJETAS OSCURAS DOC INTERNA */

.internal-docs .doc-card {
  background: linear-gradient(
    180deg,
    rgba(28, 28, 28, 0.96),
    rgba(14, 14, 14, 0.98)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 4px solid var(--green);
}

.internal-docs .doc-card:hover {
  transform: translateY(-6px);
  border-color: rgba(66, 148, 74, 0.32);
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(66, 148, 74, 0.08);
}

.internal-docs .doc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(rgba(255, 255, 255, 0.08) 1.4px, transparent 1.4px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size:
    16px 16px,
    32px 32px,
    32px 32px;
  opacity: 0.55;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.internal-docs .doc-card span {
  background: rgba(66, 148, 74, 0.18);
  border: 1px solid rgba(66, 148, 74, 0.22);
  color: #9ccc9f;
}

.internal-docs .doc-card h3 {
  color: var(--white);
}

.internal-docs .doc-card p {
  color: rgba(255, 255, 255, 0.68);
}

.internal-docs .doc-card::after {
  color: #9ccc9f;
}

/* ACTUALIDAD */

.news-page {
  background: var(--cream);
}

.news-hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 96px;
  background:
    linear-gradient(rgba(17, 17, 17, 0.72), rgba(17, 17, 17, 0.86)),
    url("/assets/img/GALERIA22.avif");
  background-size: cover;
  background-position: center 28%;
  color: var(--white);
}

.news-hero::after {
  content: "NEWS";
  position: absolute;
  right: -28px;
  bottom: -36px;
  font-family: var(--font-heading);
  font-size: clamp(9rem, 22vw, 24rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.12em;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.news-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 940px;
}

.news-hero .eyebrow {
  color: var(--green);
  text-transform: uppercase;
  font-weight: 600;
}

.news-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(3.8rem, 7.5vw, 8rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.news-hero p:not(.eyebrow) {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
}

.blog-section,
.som-news-section,
.video-section,
.press-section {
  padding: 88px 0;
}

.blog-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.18),
      transparent 24%
    ),
    radial-gradient(
      circle at 78% 72%,
      rgba(255, 255, 255, 0.1),
      transparent 28%
    ),
    linear-gradient(135deg, #1d3a25 0%, #42944a 52%, #24452d 100%);
  color: var(--white);
  border: none;
}

.blog-section::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.blog-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.22;
  pointer-events: none;
}

.blog-section .container {
  position: relative;
  z-index: 2;
}

.blog-section .news-section-head {
  max-width: 980px;
  margin: 0 auto 58px;
  text-align: center;
  position: relative;
}

.blog-section .news-section-head::before {
  content: "BLOG";
  position: absolute;
  top: -35px;
  left: -180px;
  font-family: var(--font-heading);
  font-size: clamp(5.2rem, 11vw, 10rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.08em;
  color: rgba(186, 255, 196, 0.18);
  pointer-events: none;
  z-index: 0;
}

.blog-section .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.blog-section .news-section-head h2 {
  position: relative;
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  z-index: 2;
}

.blog-section .news-section-head h2::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: -10px;
  width: 72%;
  height: 10px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.36),
    rgba(255, 255, 255, 0.08)
  );
  border-radius: 999px;
}

.blog-section .blog-grid {
  align-items: stretch;
}

.blog-section .blog-card {
  position: relative;
  min-height: 390px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 0 0 36px 0;
  box-shadow: 0 24px 54px rgba(17, 17, 17, 0.24);
}

.blog-section .blog-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.05);
  transform: scale(1.02);
  z-index: 1;
}

.blog-section .blog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(17, 17, 17, 0.02) 0%,
    rgba(17, 17, 17, 0.1) 34%,
    rgba(17, 17, 17, 0.62) 58%,
    rgba(17, 17, 17, 0.92) 100%
  );
  backdrop-filter: blur(0px);
  pointer-events: none;
  z-index: 2;
}

.blog-section .blog-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  mask-image: linear-gradient(to bottom, transparent 0%, black 38%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 38%);
  pointer-events: none;
  z-index: 3;
}

.blog-section .blog-card-content {
  position: relative;
  z-index: 4;
  padding: 26px;
  color: var(--white);
}

.blog-section .blog-card small,
.blog-section .blog-author {
  color: rgba(255, 255, 255, 0.76);
}

.blog-section .blog-card h3 {
  color: var(--white);
  font-size: 1.75rem;
  line-height: 0.95;
}

.blog-section .blog-card p {
  color: rgba(255, 255, 255, 0.78);
}

.blog-section .blog-card:hover img {
  transform: scale(1.07);
}

.blog-section .blog-card img {
  transition: transform 0.45s ease;
}

.blog-section .blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 70px rgba(17, 17, 17, 0.32);
}

.blog-section .blog-all-link {
  margin-top: 42px;
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.blog-section .blog-all-link:hover {
  background: var(--black);
  border-color: var(--black);
}

.news-section-head {
  max-width: 860px;
  margin-bottom: 44px;
}

.news-section-head.centered {
  margin: 0 auto 56px;
  text-align: center;
}

.news-section-head h2,
.video-copy h2 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6.5vw, 6.4rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.news-section-head p:not(.eyebrow),
.video-copy p:not(.eyebrow) {
  font-size: 1.12rem;
  line-height: 1.55;
  max-width: 680px;
}

.blog-placeholder {
  border: 1px dashed rgba(17, 17, 17, 0.24);
  background:
    linear-gradient(135deg, rgba(66, 148, 74, 0.08), transparent 42%),
    var(--cream);
  padding: clamp(34px, 5vw, 62px);
  border-radius: 0 0 36px 0;
}

.blog-placeholder h3 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.som-news-section {
  background:
    radial-gradient(
      circle at 12% 16%,
      rgba(66, 148, 74, 0.16),
      transparent 28%
    ),
    linear-gradient(180deg, #f7f5ef 0%, #e9e1d2 100%);
}

.som-news-section .news-section-head h2 {
  color: transparent;
  -webkit-text-stroke: 2px var(--green);
}

.som-news-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}

.som-news-card {
  min-height: 220px;
  background: linear-gradient(
    180deg,
    rgba(17, 17, 17, 0.96),
    rgba(17, 17, 17, 0.88)
  );
  color: var(--white);
  text-decoration: none;
  padding: 24px 18px;
  border-radius: 0 0 28px 0;
  border-top: 5px solid var(--green);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.som-news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.2);
}

.som-news-card span {
  font-family: var(--font-heading);
  color: #9ccc9f;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.som-news-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.85;
  letter-spacing: -0.08em;
}

.som-news-card p {
  font-family: var(--font-heading);
  color: #9ccc9f;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.video-section {
  background: var(--black);
  color: var(--white);
}

.video-inner {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 58px;
  align-items: center;
}

.video-copy .eyebrow {
  color: var(--green);
  font-weight: 600;
  text-transform: uppercase;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* PRENSA */

.press-section {
  position: relative;
  overflow: hidden;

  background: linear-gradient(180deg, #111 0%, #181818 100%);

  color: var(--white);
}

.press-section::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at 18% 24%,
      rgba(66, 148, 74, 0.16),
      transparent 26%
    ),
    radial-gradient(circle at 82% 72%, rgba(66, 148, 74, 0.12), transparent 24%);

  pointer-events: none;
}

.press-section .container {
  position: relative;
  z-index: 2;
}

.press-section .news-section-head h2 {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.82);
}

.press-section .news-section-head p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.press-groups {
  display: grid;
  gap: 26px;
}

.press-group {
  position: relative;

  display: grid;
  grid-template-columns: 0.5fr 1.5fr;
  gap: 34px;

  padding: 34px;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.03)
  );

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-left: 5px solid var(--green);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  overflow: hidden;
}

.press-group::before {
  content: "";

  position: absolute;
  inset: 0;

  background: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);

  background-size: 18px 18px;

  opacity: 0.42;

  pointer-events: none;
}

.press-group h3 {
  position: relative;
  z-index: 2;

  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-transform: uppercase;

  color: var(--white);
}

.press-links {
  position: relative;
  z-index: 2;

  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.press-links a {
  padding: 12px 16px;

  border: 1px solid rgba(255, 255, 255, 0.1);

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.04)
  );

  color: rgba(255, 255, 255, 0.88);

  text-decoration: none;

  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;

  text-transform: uppercase;
  letter-spacing: 0.04em;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.press-links a:hover {
  transform: translateY(-3px);

  background: var(--green);

  border-color: rgba(66, 148, 74, 0.42);

  color: var(--white);
}

/* VÍDEOS */

.video-archive-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  padding: 14px 18px;
  border: 1px solid rgba(255, 70, 70, 0.28);
  background: linear-gradient(
    180deg,
    rgba(220, 38, 38, 0.96),
    rgba(140, 12, 12, 0.94)
  );
  box-shadow: 0 10px 28px rgba(140, 12, 12, 0.24);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.video-archive-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 90, 90, 0.44);
  background: linear-gradient(
    180deg,
    rgba(240, 48, 48, 0.98),
    rgba(165, 18, 18, 0.96)
  );
  box-shadow: 0 14px 34px rgba(165, 18, 18, 0.32);
}

.facebook-card {
  border-top-color: #1877f2;
}

.facebook-card .video-platform {
  color: #1877f2;
}

.youtube-card {
  border-top-color: #ff2b2b;
}

.youtube-card .video-platform {
  color: #ff2b2b;
}

.videos-page {
  background: var(--black);
}

.videos-hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 96px;
  background:
    linear-gradient(rgba(17, 17, 17, 0.78), rgba(17, 17, 17, 0.92)),
    url("/assets/img/GALERIA22.avif");
  background-size: cover;
  background-position: center 28%;
  color: var(--white);
}

.videos-hero::after {
  content: "PLAY";
  position: absolute;
  right: -24px;
  bottom: -38px;
  font-family: var(--font-heading);
  font-size: clamp(9rem, 22vw, 24rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.12em;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.videos-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
  padding-top: 72px;
}

.videos-hero .back-link {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.videos-hero .eyebrow {
  color: var(--green);
  margin-bottom: 21px;
  z-index: 2;
}

.videos-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(3.7rem, 7vw, 7.6rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.videos-hero p:not(.eyebrow) {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
}

.videos-list-section {
  position: relative;
  overflow: hidden;
  padding: 92px 0;
  background:
    radial-gradient(
      circle at 14% 22%,
      rgba(66, 148, 74, 0.22),
      transparent 28%
    ),
    radial-gradient(
      circle at 84% 78%,
      rgba(111, 78, 145, 0.1),
      transparent 34%
    ),
    radial-gradient(
      circle at 62% 12%,
      rgba(255, 255, 255, 0.03),
      transparent 26%
    ),
    linear-gradient(180deg, #152019 0%, #1d2b22 48%, #24352b 100%);
}

.videos-list-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.025),
    transparent
  );
  pointer-events: none;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.video-card {
  min-height: 250px;
  padding: 26px;
  background: linear-gradient(
    180deg,
    rgba(42, 42, 42, 0.78),
    rgba(58, 58, 58, 0.68)
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 5px solid transparent;
  color: var(--white);
  text-decoration: none;
  border-radius: 0 0 30px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.video-card:hover {
  transform: translateY(-6px);
  background: linear-gradient(
    135deg,
    rgba(66, 148, 74, 0.22),
    rgba(255, 255, 255, 0.04)
  );
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28);
}

.video-card span {
  font-family: var(--font-heading);
  color: #9ccc9f;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.video-card h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 2.4vw, 2.7rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.video-card p {
  font-family: var(--font-heading);
  color: #9ccc9f;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.featured-video-card {
  grid-column: span 2;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(66, 148, 74, 0.24),
      transparent 38%
    ),
    linear-gradient(180deg, rgba(42, 42, 42, 0.78), rgba(58, 58, 58, 0.68));
}

.facebook-card {
  border-top-color: #1877f2;
}

.facebook-card .video-platform {
  color: #1877f2;
}

.youtube-card {
  border-top-color: #ff2b2b;
}

.youtube-card .video-platform {
  color: #ff2b2b;
}

/* BLOG */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.blog-card {
  display: block;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 0 0 28px 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.blog-card-content {
  padding: 24px;
}

.blog-card small {
  color: var(--green);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
}

.blog-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  line-height: 1;
  margin: 12px 0;
}

.blog-card p {
  font-size: 0.96rem;
  line-height: 1.45;
}

.blog-all-link {
  margin-top: 38px;
}

/* POSTS BLOG */

.post-page {
  background: var(--cream);
  padding: 90px 0;
}

.post-article {
  max-width: 900px;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.post-author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--green);
}

.post-author span {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(17, 17, 17, 0.66);
}

.post-back {
  position: static;
  margin-bottom: 42px;
}

.post-main-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  margin-bottom: 42px;
}

.post-article h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.6vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  text-transform: none;
  margin-bottom: 22px;
  max-width: 20ch;
}

.post-date {
  font-family: var(--font-heading);
  color: var(--green);
  font-weight: 700;
  margin-bottom: 30px;
}

.post-excerpt {
  font-size: 1.35rem;
  line-height: 1.45;
  margin-bottom: 42px;
}

.post-body p {
  font-size: 1.08rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

.post-body h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  margin: 46px 0 20px;
}

.post-body h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  line-height: 1;
  margin: 34px 0 16px;
}

.post-body strong {
  font-weight: 700;
}

.post-body em {
  font-style: italic;
}

.post-body blockquote {
  border-left: 6px solid var(--green);
  padding-left: 24px;
  margin: 34px 0;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  line-height: 1.25;
}

.blog-author {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: rgba(17, 17, 17, 0.58);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 64px;
}

.post-nav-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.post-nav-card.next {
  text-align: right;
}

.post-nav-card span {
  display: block;
  font-family: var(--font-heading);
  color: var(--green);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 10px;
}

.post-nav-card strong {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1;
  text-transform: uppercase;
}

/* POSTS LIKES Y COMMENTS */

.post-like-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 38px;
  flex-wrap: wrap;
}

.post-like-btn {
  padding: 12px 18px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
}

.post-like-btn.liked {
  background: var(--green);
  color: var(--white);
}

#postLikeCount {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--green);
}

.post-share-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
}

.post-share-box > span {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.56);
}

.post-share-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.post-share-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 17, 17, 0.28);
  background: rgba(36, 160, 93, 0.08);
}

.post-share-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.post-share-facebook {
  background: var(--white);
  border-color: rgba(17, 17, 17, 0.12);
}

.post-share-facebook img {
  filter: invert(39%) sepia(98%) saturate(2653%) hue-rotate(203deg)
    brightness(98%) contrast(93%);
}

.post-share-facebook:hover {
  background: rgba(24, 119, 242, 0.08);
  border-color: rgba(24, 119, 242, 0.3);
}

.post-share-instagram {
  background: var(--white);
  border-color: rgba(17, 17, 17, 0.12);
}

.post-share-instagram-icon {
  width: 18px;
  height: 18px;
  display: block;
  background:
    radial-gradient(circle at 30% 107%, #fdf497 0 5%, #fd5949 45%),
    linear-gradient(135deg, #833ab4 0%, #c13584 45%, #e1306c 70%, #f77737 100%);
  mask: url("/assets/icons/instagram.svg") center / contain no-repeat;
  -webkit-mask: url("/assets/icons/instagram.svg") center / contain no-repeat;
}

.post-share-instagram:hover {
  background: rgba(193, 53, 132, 0.08);
  border-color: rgba(193, 53, 132, 0.3);
}

.post-share-linkedin {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #0a66c2;
}

.post-comments {
  margin-top: 80px;
  padding-top: 50px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.post-comments h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 28px;
}

#commentsList {
  display: grid;
  gap: 16px;
  margin-bottom: 42px;
}

.comment-form {
  display: grid;
  gap: 16px;
  margin-bottom: 42px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
}

.comment-form textarea {
  min-height: 140px;
  resize: vertical;
}

.comment-item {
  padding: 24px 30px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 0 0 22px 0;
}

.comment-meta {
  display: flex;
  justify-content: flex-start;
  gap: 18px;
  margin-bottom: 10px;
  color: var(--green);
}

.comment-meta strong {
  font-family: var(--font-heading);
}

.comment-meta span {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: rgba(17, 17, 17, 0.52);
  text-transform: uppercase;
}

.comment-item strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.comment-item p {
  line-height: 1.65;
  color: rgba(17, 17, 17, 0.76);
}

/* MODO OSCURO EN POSTS */

.post-page.dark-mode {
  background:
    radial-gradient(
      circle at top left,
      rgba(66, 148, 74, 0.1),
      transparent 22%
    ),
    linear-gradient(180deg, #1a1d1b 0%, #202421 42%, #171917 100%);
  color: rgba(245, 245, 240, 0.86);
}

.post-page.dark-mode .post-article h1,
.post-page.dark-mode .post-body h2,
.post-page.dark-mode .post-body h3 {
  color: rgba(255, 255, 252, 0.96);
}

.post-page.dark-mode .post-body p,
.post-page.dark-mode .post-excerpt {
  color: rgba(245, 245, 240, 0.78);
}

.post-page.dark-mode .post-date,
.post-page.dark-mode .post-author span {
  color: rgba(255, 255, 255, 0.56);
}

.post-page.dark-mode .post-nav-card {
  background: #1b1b1b;
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.post-page.dark-mode .theme-toggle {
  background: #1b1b1b;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.08);
}

.post-page.dark-mode .post-body blockquote {
  border-left-color: rgba(120, 220, 130, 0.58);
  color: rgba(255, 255, 255, 0.92);
}

.post-page.dark-mode .comment-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.post-page.dark-mode .comment-meta span,
.post-page.dark-mode .comment-item p {
  color: rgba(255, 255, 255, 0.68);
}

.post-page.dark-mode .post-share-box > span {
  color: rgba(255, 255, 255, 0.62);
}

.post-page.dark-mode .post-share-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.post-page.dark-mode .post-share-btn:not(.post-share-facebook):not(
    .post-share-instagram
  ):hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

/* BLOG PAGES */

.blog-archive-hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 96px;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(66, 148, 74, 0.22),
      transparent 28%
    ),
    linear-gradient(135deg, #f7f5ef 0%, #edf5eb 52%, #f3efe5 100%);
}

.blog-archive-hero-inner {
  position: relative;
  max-width: 920px;
  padding-top: 72px;
}

.blog-archive-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(3.8rem, 7vw, 7.6rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.blog-archive-hero p:not(.eyebrow) {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  max-width: 720px;
  color: rgba(17, 17, 17, 0.72);
}

.blog-archive-section {
  position: relative;
  overflow: hidden;
  padding: 92px 0;
  background:
    radial-gradient(
      circle at 14% 18%,
      rgba(66, 148, 74, 0.12),
      transparent 26%
    ),
    radial-gradient(
      circle at 82% 76%,
      rgba(66, 148, 74, 0.08),
      transparent 24%
    ),
    linear-gradient(180deg, #f8f6ef 0%, #efe9dc 100%);
}

.blog-archive-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );
  opacity: 0.5;
  pointer-events: none;
}

.blog-archive-section .blog-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.88),
    rgba(248, 244, 235, 0.94)
  );
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.08);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.blog-archive-section .blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 58px rgba(17, 17, 17, 0.14);
}

.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 46px;
  flex-wrap: wrap;
}

.blog-page-btn {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: var(--cream);
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
}

.blog-page-btn.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* BOTÓN MODO OSCURO BLOG */

.theme-toggle {
  margin-bottom: 38px;
  padding: 12px 18px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.78);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

/* CONTACTO PÁGINA PRINCIPAL */

.contact-page {
  background:
    radial-gradient(
      circle at 14% 18%,
      rgba(66, 148, 74, 0.13),
      transparent 26%
    ),
    radial-gradient(
      circle at 86% 78%,
      rgba(111, 78, 145, 0.08),
      transparent 28%
    ),
    linear-gradient(180deg, #f7f5ef 0%, #ebe5d8 100%);
}

.contact-hero {
  padding: 120px 0 90px;

  background:
    radial-gradient(
      circle at 16% 18%,
      rgba(66, 148, 74, 0.18),
      transparent 24%
    ),
    linear-gradient(135deg, #f6f4ee 0%, #ebe4d7 100%);
}

.contact-hero {
  position: relative;
  overflow: hidden;

  padding: 120px 0 90px;

  background:
    linear-gradient(135deg, rgba(66, 148, 74, 0.18), transparent 42%), #151f18;

  color: var(--white);
}

.contact-hero::after {
  content: "CONTACTO";

  position: absolute;

  right: -42px;
  bottom: -30px;

  font-family: var(--font-heading);

  font-size: clamp(6rem, 16vw, 17rem);

  font-weight: 700;

  letter-spacing: -0.1em;

  color: rgba(255, 255, 255, 0.06);

  pointer-events: none;
}

.contact-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.contact-hero .eyebrow {
  color: #9ccc9f;
}

.contact-hero h1 {
  font-family: var(--font-heading);

  font-size: clamp(4rem, 8vw, 8rem);

  line-height: 0.86;

  letter-spacing: -0.08em;

  margin-bottom: 26px;
}

.contact-hero p:not(.eyebrow) {
  max-width: 720px;

  color: rgba(255, 255, 255, 0.78);

  font-size: 1.2rem;

  line-height: 1.55;
}

.contact-grid {
  display: grid;
  align-items: start;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  padding: 92px 0 54px;
}

.contact-form-wrap {
  align-self: start;
}

/* CONTACTO CONTENIDO INFO */

.contact-info {
  display: grid;
  gap: 14px;
}

.contact-card,
.contact-form-wrap {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.84),
    rgba(248, 244, 235, 0.92)
  );

  border: 1px solid rgba(17, 17, 17, 0.08);

  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.07);

  border-radius: 0 0 30px 0;
}

.contact-card {
  padding: 22px 24px;
}

.contact-form-wrap {
  padding: 26px;
  align-self: start;
}

.contact-card span {
  display: block;

  margin-bottom: 16px;

  font-family: var(--font-heading);

  font-size: 0.9rem;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.08em;

  color: var(--green);
}

.contact-card a {
  text-decoration: none;

  line-height: 1.6;

  font-size: 1.04rem;
}

/* CONTACTO RRSS */

.contact-socials {
  display: flex;
  gap: 14px;
}

.contact-socials a {
  width: 68px;
  height: 68px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.78),
    rgba(245, 240, 232, 0.92)
  );

  border: 1px solid rgba(17, 17, 17, 0.08);

  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.06);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-socials a:hover {
  transform: translateY(-3px);

  box-shadow: 0 16px 30px rgba(17, 17, 17, 0.1);
}

.contact-socials img {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}

.contact-socials a:nth-child(1) img {
  filter: invert(32%) sepia(98%) saturate(1700%) hue-rotate(203deg)
    brightness(97%) contrast(95%);
  width: 36px;
  height: 36px;
}

.contact-socials a:nth-child(2) img {
  width: 33px;
  height: 33px;
}

.contact-socials a:nth-child(3) img {
  filter: none;
  width: 28px;
  height: 28px;
}

/* CONTACTO FORMULARIO */

.contact-form-head {
  margin-bottom: 26px;
}

.contact-form-head h2 {
  font-family: var(--font-heading);

  font-size: clamp(2rem, 4vw, 3.6rem);

  line-height: 0.92;

  letter-spacing: -0.06em;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;

  padding: 16px 18px;

  border: 1px solid rgba(17, 17, 17, 0.12);

  background: rgba(255, 255, 255, 0.74);

  font: inherit;
}

.contact-form textarea {
  min-height: 199px;
  font-size: 1rem;
  resize: vertical;
}

/* CONTACTO: MAPA */

.contact-map-section {
  padding: 0 0 92px;
}

.contact-map-card {
  overflow: hidden;

  border-radius: 0 0 36px 0;

  border: 1px solid rgba(17, 17, 17, 0.1);

  box-shadow: 0 24px 54px rgba(17, 17, 17, 0.1);
}

.contact-map-card iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

/* CONTACTO - WHATSAPP */

.whatsapp-card {
  position: relative;

  overflow: hidden;

  background: linear-gradient(
    135deg,
    rgba(22, 32, 25, 0.96),
    rgba(34, 48, 38, 0.94)
  );

  color: var(--white);

  border-left: none;

  border-top: 5px solid #25d366;
}

.whatsapp-card::after {
  content: "";

  position: absolute;

  right: -18px;
  bottom: 10px;

  width: 190px;
  height: 190px;

  background: url("/assets/icons/whatsapp.png") no-repeat center;

  background-size: contain;

  opacity: 0.08;

  pointer-events: none;
}

.whatsapp-card h2 {
  position: relative;
  z-index: 2;

  font-family: var(--font-heading);

  font-size: 2rem;

  line-height: 0.92;

  letter-spacing: -0.06em;

  margin-bottom: 14px;
}

.whatsapp-card p {
  position: relative;
  z-index: 2;

  color: rgba(255, 255, 255, 0.74);

  line-height: 1.6;

  margin-bottom: 22px;
}

.whatsapp-btn {
  position: relative;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 22px;

  border-radius: 999px;

  background: #25d366;

  color: var(--white) !important;

  text-decoration: none;

  font-family: var(--font-heading);

  font-size: 0.86rem !important;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.05em;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.whatsapp-btn:hover {
  transform: translateY(-3px);

  background: #2be06d;

  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.28);
}

/* SITE FOOTER GENERAL */

/* FOOTER */

.site-footer {
  background: #101510;
  color: var(--white);
  padding: 42px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 120px;
  height: auto;
}

.footer-brand p {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.footer-socials a {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.footer-socials a:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.14);
}

.footer-socials img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.footer-socials a:nth-child(1) img {
  filter: invert(32%) sepia(98%) saturate(1700%) hue-rotate(203deg)
    brightness(97%) contrast(95%);
}

.footer-socials a:nth-child(3) img {
  filter: invert(1);
}

.footer-legal {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-legal a:hover {
  color: var(--white);
}

.footer-cookie-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: 0.25s ease;
}

.footer-cookie-link:hover {
  color: var(--white);
}

/* =================================================================
   COOKIES
  ===============================================================*/

.cookie-banner {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 32px));
  background: rgba(17, 17, 17, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 22px;
  z-index: 5000;
  color: var(--white);

  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
}

.cookie-banner.show {
  opacity: 1;
  pointer-events: auto;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cookie-content p {
  margin: 0;
  line-height: 1.5;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  transition: 0.25s ease;
}

.cookie-btn.primary {
  background: var(--green);
  color: var(--white);
}

.cookie-btn.primary:hover {
  transform: translateY(-2px);
}

.cookie-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

/*======================================================
 COOKIE MODAL
 =================================================*/

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.68);

  display: none;
  align-items: center;
  justify-content: center;

  padding: 18px;
  z-index: 7000;
}

.cookie-modal .cookie-btn.secondary {
  background: rgba(17, 17, 17, 0.06);
  color: var(--black);
}

.cookie-modal.show {
  display: flex;
}

.cookie-modal-box {
  width: min(680px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--cream);
  color: var(--black);
  border-radius: 0 0 28px 0;
  border-top: 6px solid var(--green);
  padding: 34px;
  padding-bottom: 34px;
}

.cookie-modal-box h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  gap: 22px;

  padding: 22px 0;

  border-top: 1px solid var(--line);
}

.cookie-option strong {
  display: block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cookie-option p {
  margin: 0;
  color: rgba(17, 17, 17, 0.7);
  line-height: 1.5;
}

.cookie-option input {
  width: 24px;
  height: 24px;
  accent-color: var(--green);
  flex: 0 0 auto;
}

.external-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;

  gap: 18px;

  min-height: 320px;

  padding: 28px;

  background: rgba(17, 17, 17, 0.06);
}

.external-placeholder iframe {
  display: none;
}

.external-placeholder.loaded iframe {
  display: block;
}

.external-placeholder.loaded .external-message {
  display: none;
}

/* =========================================================
   DASHBOARD GENERAL
========================================================= */

.dashboard-page {
  background: #f3f1ea;
  min-height: 100vh;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  min-height: 100vh;
  max-width: 100%;
}

.dashboard-main {
  padding: 42px;
  min-width: 0;
}

.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.dashboard-panel {
  display: none;
  min-width: 0;
}

.dashboard-panel .admin-comment-card {
  background: rgba(255, 255, 255, 0.84);
}

.dashboard-panel.active {
  display: block;
}

.dashboard-panel-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.dashboard-panel-head span {
  color: rgba(17, 17, 17, 0.54);
  margin-top: 10px;
  line-height: 1.4;
}

.dashboard-list {
  display: grid;
  gap: 18px;
}

/* =========================================================
   DASHBOARD SIDEBAR
========================================================= */

.dashboard-sidebar {
  background: #111111;
  color: white;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  height: 100vh;
}

.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
}

.affiliate-menu-toggle {
  display: none;
}

.dashboard-brand img {
  width: 42px;
  height: auto;
}

.dashboard-brand span {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dashboard-nav-item {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.74);
  font: inherit;
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.2s ease;
}

.dashboard-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.dashboard-nav-item.active {
  background: var(--green);
  color: white;
  font-weight: 700;
}

.dashboard-logout {
  margin-top: auto;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  min-height: 52px;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.2s ease;
}

.dashboard-logout:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* =========================================================
   DASHBOARD LOGIN Y ESTADOS DE SESIÓN
========================================================= */

.dashboard-login {
  max-width: 720px;
}

.dashboard-login-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.dashboard-login-actions .btn {
  min-width: 220px;
}

.dashboard-login h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.dashboard-login p {
  color: rgba(17, 17, 17, 0.64);
  margin-bottom: 24px;
}

.dashboard-login-row {
  display: flex;
  gap: 12px;
}

.dashboard-login-row input {
  flex: 1;
  min-height: 56px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  padding: 0 18px;
  font: inherit;
  background: white;
}

.dashboard-login-remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: rgba(17, 17, 17, 0.72);
  cursor: pointer;
  user-select: none;
}

.dashboard-login-remember input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-red);
}

.dashboard-logged-out .dashboard-shell {
  grid-template-columns: 1fr;
}

.dashboard-logged-out .dashboard-sidebar {
  display: none;
}

.dashboard-logged-out .dashboard-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

[hidden] {
  display: none !important;
}

.dashboard-logged-in .dashboard-shell {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
}

.dashboard-logged-in .dashboard-sidebar {
  display: flex;
}

.dashboard-logged-in .dashboard-main {
  display: block;
  min-height: auto;
}

/* =========================================================
   DASHBOARD — CABECERAS, TÍTULOS Y TOOLBARS
========================================================= */

.dashboard-header p {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 12px;
  font-weight: 700;
}

.dashboard-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.dashboard-header-compact {
  margin-bottom: 18px;
}

.dashboard-section-hero {
  margin-bottom: 32px;
}

.dashboard-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.dashboard-section-title {
  margin-bottom: 18px;
}

.dashboard-toolbar {
  margin-bottom: 22px;
}

.dashboard-toolbar input,
.dashboard-toolbar select {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 16px;
  padding: 0 18px;
  font: inherit;
  background: rgba(255, 255, 255, 0.86);
}

.dashboard-toolbar label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--green);
}

.dashboard-empty {
  background: rgba(255, 255, 255, 0.76);
  border: 1px dashed rgba(17, 17, 17, 0.12);
  border-radius: 24px;
  padding: 28px;
  color: rgba(17, 17, 17, 0.6);
}

.dashboard-section-title h3 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--green);
  margin-bottom: 6px;
}

.dashboard-section-title p {
  color: rgba(17, 17, 17, 0.62);
}

.dashboard-header-compact p {
  margin-bottom: 0;
}

.dashboard-header-compact h1 {
  display: none;
}

.dashboard-section-hero p {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 12px;
  font-weight: 700;
}

.dashboard-section-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 8vw, 7.5rem);
  line-height: 0.84;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

/* =========================================================
   DASHBOARD - CARDS, FORMULARIOS Y BOTONES COMUNES
========================================================= */

.admin-form-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.06);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 28px;
}

.admin-form-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--green);
  margin-bottom: 18px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.admin-form-card input,
.admin-form-card textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 14px;
  padding: 0 16px;
  font: inherit;
  background: white;
}

.admin-form-card textarea {
  min-height: 110px;
  padding: 16px;
  resize: vertical;
  margin-bottom: 16px;
}

.admin-form-message {
  margin-top: 14px;
  color: rgba(17, 17, 17, 0.66);
}

.inline-admin-form {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 22px;
}

.inline-admin-form h4 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--green);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.inline-admin-form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.inline-admin-form input,
.inline-admin-form textarea,
.inline-admin-form select {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 14px;
  padding: 0 14px;
  font: inherit;
  background: white;
}

.inline-admin-form input[type="file"] {
  padding: 13px 14px;
  cursor: pointer;
}

.admin-comment-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.06);
  border-radius: 24px;
  padding: 24px;
}

.admin-comment-card small {
  display: block;
  margin-bottom: 10px;
  color: rgba(17, 17, 17, 0.5);
  text-transform: uppercase;
  font-size: 0.82rem;
}

.admin-comment-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--green);
  margin-bottom: 10px;
}

.admin-comment-card p {
  line-height: 1.7;
  margin-bottom: 18px;
}

.admin-comment-actions {
  display: flex;
  gap: 12px;
}

.admin-comments-list,
#affiliateProfile,
#paymentsList,
#documentsList,
#legalCasesList {
  display: grid;
  gap: 18px;
}

.btn.danger {
  background: #b42318;
  color: white;
  border: 1px solid #b42318;
}

.btn.danger:hover {
  filter: brightness(0.94);
}

/* =========================================================
   ADMIN - AFILIADOS: LISTADO Y VISTAS
========================================================= */

.affiliate-admin-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.affiliate-mode-btn {
  min-height: 64px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: 0.2s ease;
}

.affiliate-mode-btn:hover,
.affiliate-mode-btn.active {
  background: var(--green);
  color: var(--white);
}

.affiliate-admin-view {
  margin-top: 24px;
  max-width: 100%;
  min-width: 0;
}

.affiliate-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.06);
  border-radius: 24px;
  padding: 24px;

  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.affiliate-card small {
  display: block;
  margin-bottom: 8px;
  color: rgba(17, 17, 17, 0.5);
  text-transform: uppercase;
  font-size: 0.78rem;
}

.affiliate-card h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--green);
  margin-bottom: 6px;
}

.affiliate-card p {
  margin: 0;
  color: rgba(17, 17, 17, 0.68);
}

/* =========================================================
   ADMIN — COMENTARIOS
========================================================= */

.comment-admin-view {
  margin-top: 24px;
}

.comment-mode-btn {
  min-height: 64px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: 0.2s ease;
}

.comment-mode-btn:hover,
.comment-mode-btn.active {
  background: var(--green);
  color: var(--white);
}

/* =========================================================
   ADMIN - AFILIADOS: FICHA
========================================================= */

.affiliate-detail-layout {
  display: grid;
  gap: 24px;
  margin-top: 22px;
}

.affiliate-detail-main,
.affiliate-detail-block {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 24px;
  padding: 24px;
}

.affiliate-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.affiliate-detail-item {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 18px;
  padding: 18px;
}

.affiliate-detail-item small {
  display: block;
  margin-bottom: 8px;
  color: rgba(17, 17, 17, 0.5);
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.affiliate-detail-item strong {
  font-family: var(--font-heading);
  color: var(--black);
  font-size: 1.1rem;
}

.affiliate-detail-list {
  display: grid;
  gap: 14px;
}

.affiliate-detail-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 18px;
  padding: 18px;
}

.affiliate-detail-card small {
  display: block;
  margin-bottom: 8px;
  color: rgba(17, 17, 17, 0.5);
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
}

.affiliate-detail-card h4 {
  font-family: var(--font-heading);
  color: var(--green);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.affiliate-detail-card p {
  margin: 0;
  color: rgba(17, 17, 17, 0.68);
  line-height: 1.5;
}

.affiliate-profile-actions {
  margin-top: 22px;
}

.affiliate-card-actions {
  margin-top: 16px;
  flex-wrap: wrap;
}

#editAffiliateForm {
  margin-top: 24px;
}

/* =========================================================
   ADMIN - AFILIADOS: ALTAS Y BAJAS
========================================================= */

.membership-events-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
  margin: 18px 0 24px;
  max-width: 100%;
  min-width: 0;
}

.membership-events-summary .admin-comment-card h3 {
  font-size: 1.85rem;
  line-height: 1;
}

.membership-events-summary .admin-comment-card {
  min-width: 0;
  padding: 16px;
}

.membership-events-summary .admin-comment-card small {
  overflow-wrap: anywhere;
}

.membership-events-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  max-width: 100%;
  min-width: 0;
}

.membership-events-controls label {
  display: grid;
  gap: 6px;
  flex: 1 1 118px;
  min-width: 0;
  color: rgba(17, 17, 17, 0.56);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.membership-events-controls label:first-child {
  flex: 0 1 105px;
}

.membership-events-controls input,
.membership-events-controls select {
  min-width: 0;
  min-height: 40px;
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--black);
  font: 0.9rem/1.2 var(--font-body);
  text-transform: none;
}

.membership-comparison-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
  max-width: 100%;
  min-width: 0;
}

.membership-comparison-summary article,
.membership-chart-card {
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 14px;
  min-width: 0;
}

.membership-comparison-summary small,
.membership-comparison-summary span {
  display: block;
  color: rgba(17, 17, 17, 0.58);
}

.membership-comparison-summary small {
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.membership-comparison-summary strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-heading);
  color: var(--green);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.membership-chart-card {
  margin-bottom: 24px;
  max-width: 100%;
  overflow: hidden;
}

.membership-events-chart {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.membership-chart-bars {
  display: grid;
  grid-auto-columns: minmax(30px, 1fr);
  grid-auto-flow: column;
  gap: 7px;
  min-height: 210px;
  min-width: max-content;
  align-items: end;
}

.membership-chart-bucket {
  display: grid;
  grid-template-rows: 155px auto;
  gap: 8px;
  min-width: 30px;
}

.membership-chart-values {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
}

.membership-chart-bar {
  display: block;
  width: 9px;
  min-height: 4px;
  border-radius: 8px 8px 0 0;
  background: var(--green);
}

.membership-chart-bar.cancellation {
  background: #b42318;
}

.membership-chart-bar.balance {
  background: #1d4ed8;
}

.membership-chart-bar.balance.negative {
  background: #b42318;
}

.membership-chart-bucket small {
  color: rgba(17, 17, 17, 0.56);
  font-size: 0.66rem;
  text-align: center;
}

.membership-chart-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: rgba(17, 17, 17, 0.62);
  font-size: 0.82rem;
}

.membership-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.membership-chart-legend i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
}

.membership-chart-legend i.cancellation {
  background: #b42318;
}

.membership-chart-legend i.balance {
  background: #1d4ed8;
}

.membership-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  min-width: 0;
}

@media (min-width: 1025px) and (max-width: 1180px) {
  .dashboard-logged-in .dashboard-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .dashboard-main {
    padding: 30px;
  }

  .membership-events-controls label {
    flex-basis: 108px;
  }
}

/* =========================================================
   ADMIN — DOCUMENTOS INTERNOS
========================================================= */

.document-admin-view {
  margin-top: 24px;
}

.document-mode-btn {
  min-height: 64px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: 0.2s ease;
}

.document-mode-btn:hover,
.document-mode-btn.active {
  background: var(--green);
  color: var(--white);
}

.document-card-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: rgba(17, 17, 17, 0.56);
  font-size: 0.9rem;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.documents-grid .affiliate-detail-card {
  min-height: 100%;
}

.documents-grid .affiliate-detail-card h4 {
  font-size: 1.15rem;
  line-height: 1.1;
}

.documents-grid .affiliate-detail-card p {
  word-break: break-word;
}

.documents-grid .admin-comment-actions {
  margin-top: 18px;
  flex-direction: column;
  align-items: stretch;
}

.documents-grid .btn {
  width: 100%;
}

.selected-documents-list {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.selected-document-item {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 16px;
  padding: 16px;
}

.selected-document-item small {
  display: block;
  margin-bottom: 8px;
  color: rgba(17, 17, 17, 0.5);
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 700;
}

.selected-document-item input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  background: white;
}

/* =========================================================
   ADMIN - BLOG
========================================================= */

.blog-admin-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.blog-admin-actions .btn {
  min-width: 220px;
}

.blog-admin-view {
  margin-top: 24px;
}

.blog-post-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.06);
  border-radius: 24px;
  padding: 24px;

  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 18px;
  align-items: center;
}

.blog-post-thumb {
  width: 140px;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(17, 17, 17, 0.08);
}

.blog-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-card small {
  display: block;
  margin-bottom: 8px;
  color: rgba(17, 17, 17, 0.5);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

.blog-post-card h3 {
  font-family: var(--font-heading);
  color: var(--green);
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.blog-post-card p {
  margin: 0;
  color: rgba(17, 17, 17, 0.66);
  line-height: 1.5;
}

.blog-post-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/*BLINDAR HERO DESKTOP*/

@media (min-width: 761px) {
  .hero-inner {
    grid-template-columns: minmax(560px, 1.05fr) minmax(360px, 0.95fr);
    grid-template-areas:
      "text image"
      "buttons image";
    column-gap: 0;
  }

  .hero-text {
    grid-area: text;
    align-self: end;
    padding: 82px 0 0;
    max-width: 820px;
  }

  .hero-quote {
    max-width: 760px;
  }

  .hero-quote-main {
    font-size: clamp(3.8rem, 5.8vw, 6.6rem);
  }

  .hero-quote-sub {
    font-size: clamp(2rem, 3vw, 3.2rem);
  }

  .hero-buttons {
    grid-area: buttons;
    justify-content: flex-start;
    align-self: start;
    margin-top: 28px;
    padding-bottom: 54px;
  }

  .hero-image {
    grid-area: image;
    margin-left: -130px;
  }
}

@media (min-width: 1025px) {
  .hero-inner {
    transform: scale(0.92);
    transform-origin: bottom center;
  }
}

/* ==========================================================
  RESPONSIVE - TABLET 
 =========================================================*/

@media (max-width: 1024px) {
  /* ==========================================================
  GLOBAL - TABLET
 =========================================================*/

  .container {
    width: min(92%, var(--container));
  }

  /* ==========================================================
  HEADER - TABLET
 =========================================================*/

  .menu-toggle {
    display: flex;
  }

  .header {
    position: sticky;
    top: 0;
    z-index: 900;
  }

  .header-inner {
    position: relative;
  }

  .nav {
    position: fixed;
    top: 96px;
    right: 24px;
    height: auto;
    width: min(420px, 48vw);

    background:
      linear-gradient(
        145deg,
        rgba(66, 148, 74, 0.14),
        rgba(247, 245, 239, 0.98) 42%
      ),
      var(--cream);

    border: 1px solid var(--line);
    border-top: 6px solid var(--green);
    border-radius: 0 0 24px 24px;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 26px 20px;
    gap: 0;
    z-index: 1100;

    transform: translateX(calc(100% + 40px));
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.35s ease,
      opacity 0.25s ease;
    box-shadow: -18px 24px 60px rgba(0, 0, 0, 0.16);
  }

  .nav.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    width: 100%;
    margin: 0;
    padding: 18px 0;
    text-align: right;
    border-bottom: 1px solid var(--line);
    font-size: 1.12rem;
    position: relative;
    transition:
      color 0.2s ease,
      transform 0.2s ease,
      letter-spacing 0.2s ease;
  }

  .nav a:hover {
    color: var(--green);
    transform: translateX(-10px);
    letter-spacing: 0.08em;
  }

  .nav a::before {
    content: "";
    position: absolute;
    right: -26px;
    top: 50%;
    width: 5px;
    height: 0;
    background: var(--green);
    transform: translateY(-50%);
    transition: height 0.2s ease;
  }

  .nav a:hover::before {
    height: 58%;
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav a::after {
    display: none;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item > a {
    display: block;
    width: 100%;
  }

  .nav-dropdown {
    position: static;
    width: 100%;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 4px solid var(--green);
    margin: 0;
    padding: 0 0 0 14px;
    background: transparent;
    transition:
      max-height 0.3s ease,
      opacity 0.2s ease;
  }

  .nav-item.open .nav-dropdown {
    opacity: 1 !important;
    max-height: 500px !important;
    pointer-events: auto !important;
    margin: 0 0 10px;
  }

  .nav-dropdown a {
    white-space: normal;
    font-size: 0.9rem;
    padding: 12px 0 12px 16px;
    display: block;
    width: 100%;
  }

  /* ==========================================================
  HOME - HERO - TABLET
 =========================================================*/
  .hero-inner {
    grid-template-columns: 0.6fr 1.4fr;
    min-height: 520px;
  }

  .hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
  }

  .hero-image img {
    max-height: 650px;
    max-width: 680px;
  }

  /* ==========================================================
  HOME - SECCIONES - TABLET
 =========================================================*/
  .features-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-inner {
    grid-template-columns: 1fr;
  }

  /* ==========================================================
  QUÉ HACEMOS - TABLET
 =========================================================*/

  .about-hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
  }
  .about-nav-grid,
  .people-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  /* NEWS TABLET */

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

  .video-inner {
    grid-template-columns: 1fr;
  }

  /* VIDEOS TABLET */
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* DASHBOARD BLOG TABLET */

  .blog-post-card {
    grid-template-columns: 110px 1fr;
  }

  .blog-post-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }

  /* DASHBOARD GRID DOCUMENTOS TABLET */

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

@media (min-width: 761px) and (max-width: 1024px) and (orientation: portrait) {
  body {
    overflow-x: hidden;
  }

  .header-inner {
    min-height: 78px;
    width: 100%;
    padding: 0 14px;
    justify-content: center;
    gap: 0;
  }

  .logo {
    margin-left: 0;
    justify-content: center;
    gap: 8px;
  }

  .logo img {
    width: 144px;
  }

  .logo img.logo-anniversary {
    height: 48px;
    width: auto;
    margin-top: 4px;
  }

  .menu-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    flex: 0 0 auto;
  }

  .nav {
    top: 78px;
    right: 16px;
    left: 16px;
    width: auto;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    transform: translateY(-14px);
    visibility: hidden;
  }

  .nav.active {
    transform: translateY(0);
    visibility: visible;
  }

  .nav a {
    text-align: left;
    font-size: 1rem;
  }

  .nav a:hover {
    transform: none;
    letter-spacing: inherit;
  }

  .nav a::before {
    display: none;
  }

  .nav-item,
  .nav-item > a {
    display: block;
    width: 100%;
  }

  .nav-dropdown {
    position: static;
    width: 100%;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 4px solid var(--green);
    margin: 0;
    padding: 0 0 0 14px;
    background: transparent;
    transition:
      max-height 0.3s ease,
      opacity 0.2s ease;
  }

  .nav-item.open .nav-dropdown {
    opacity: 1 !important;
    max-height: 500px !important;
    pointer-events: auto !important;
    margin: 0 0 10px;
  }

  .nav-dropdown a {
    white-space: normal;
    font-size: 0.9rem;
    padding: 12px 0 12px 16px;
  }

  .nav-login-link {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    border-radius: 16px;
    margin-top: 10px;
    padding: 14px 16px;
    font-size: 1rem;
  }

  .nav-login-link:hover {
    transform: none;
    letter-spacing: normal;
  }

  .nav-login-link::before {
    display: none;
  }

  .banner {
    margin-top: 0;
    margin-bottom: 0;
    height: auto;
    line-height: 0;
  }

  .banner img {
    height: auto;
    width: 100%;
    max-height: none;
    object-fit: contain;
    display: block;
  }

  .hero {
    min-height: auto;
    padding: 34px 0 0;
    overflow: hidden;
    position: relative;
  }

  .hero-inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    grid-template-areas: none;
    align-items: start;
    column-gap: 0;
    row-gap: 0;
    width: 100%;
    min-height: 560px;
    padding: 58px 0 96px;
    position: relative;
    transform: none;
    overflow: hidden;
  }

  .hero-text {
    grid-area: auto;
    grid-column: 1;
    grid-row: 1;
    z-index: 4;
    width: min(58vw, 440px);
    max-width: 100%;
    padding: 0 0 0 28px;
  }

  .hero-quote {
    max-width: 100%;
    gap: 8px;
  }

  .hero-quote-main {
    font-size: clamp(2.6rem, 7vw, 3.6rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
  }

  .hero-quote-sub {
    font-size: clamp(1.45rem, 3.8vw, 1.9rem);
    line-height: 0.95;
  }

  .hero-text cite {
    margin-top: 14px;
    font-size: 0.72rem;
    letter-spacing: 0.09em;
  }

  .hero-image {
    grid-area: auto;
    grid-column: 1;
    grid-row: 1 / span 2;
    position: absolute;
    right: -46px;
    bottom: -24px;
    z-index: 2;
    width: min(58vw, 500px);
    overflow: visible;
    margin: 0;
    transform: none;
  }

  .hero-image::before {
    content: "";
    position: absolute;
    width: 160%;
    height: 160%;
    right: -18%;
    bottom: -10%;
    z-index: -1;
    background: radial-gradient(
      circle,
      rgba(253, 248, 246, 0.78) 0%,
      rgba(246, 242, 232, 0.34) 48%,
      rgba(0, 0, 0, 0) 70%
    );
    filter: none;
  }

  .hero-image img {
    width: 100% !important;
    max-width: none !important;
    max-height: none;
    height: auto;
    display: block;
    margin: 0 !important;
    transform: none;
    transform-origin: bottom right;
  }

  .hero-buttons {
    grid-area: auto;
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    width: min(66vw, 520px);
    padding: 0 0 0 28px;
    z-index: 10;
    margin-top: 34px;
    transform: none;
  }

  .hero-buttons .btn {
    flex: 1;
    max-width: 220px;
    min-height: 52px;
    justify-content: center;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .home-action-board {
    padding: 56px 0 64px;
    margin-top: 0;
  }

  .home-action-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 22px;
  }

  .home-action-card,
  .home-accion,
  .home-blog-feature,
  .home-gallery-card {
    grid-row: auto;
    min-height: 260px;
    padding: 24px;
    border-radius: 0 0 30px 0;
  }

  .home-equipo {
    clip-path: none;
  }

  .home-action-card h2 {
    font-size: clamp(2rem, 6vw, 3.4rem);
  }

  .home-blog-feature strong {
    font-size: clamp(3rem, 8vw, 4.4rem);
  }

  .home-blog-feature-content {
    justify-content: flex-end;
  }

  .home-blog-preview {
    display: none;
  }

  .features-grid,
  .why-grid,
  .cta-options,
  .join-options,
  .legal-team-grid,
  .about-nav-grid,
  .people-grid,
  .small-grid,
  .docs-grid,
  .photo-grid,
  .blog-grid,
  .membership-grid,
  .poster-grid,
  .som-news-grid,
  .videos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-inner,
  .home-resources-inner,
  .join-hero-inner,
  .complete-hero-inner,
  .form-grid,
  .legal-info-grid,
  .legal-team-inner,
  .about-intro-grid,
  .docs-head,
  .gallery-section-head,
  .contact-grid,
  .video-inner,
  .press-group {
    grid-template-columns: 1fr;
  }

  .join-hero,
  .legal-hero,
  .about-hero,
  .gallery-hero,
  .documents-hero,
  .news-hero,
  .videos-hero,
  .contact-hero,
  .blog-archive-hero,
  .online-membership-hero {
    padding: 72px 0 62px;
  }

  .join-hero-main h1,
  .legal-hero h1,
  .about-hero h1,
  .gallery-hero h1,
  .documents-hero h1,
  .news-hero h1,
  .videos-hero h1,
  .contact-hero h1,
  .blog-archive-hero h1,
  .online-membership-hero h1 {
    font-size: clamp(3rem, 9vw, 5rem);
  }

  .section-title,
  .news-head h2,
  .docs-head h2,
  .gallery-section-head h2,
  .news-section-head h2,
  .video-copy h2 {
    text-align: left;
    font-size: clamp(2.6rem, 7vw, 4.4rem);
  }

  .about-hero-hex {
    left: 0;
    width: 340px;
    height: 340px;
  }

  .about-hero::after {
    display: none;
  }

  .stair-title span:nth-child(2),
  .stair-title span:nth-child(3) {
    margin-left: 0;
  }

  .feature:nth-child(2n) {
    border-right: none;
  }

  .section-card {
    width: min(210px, 28vw);
    height: min(210px, 28vw);
  }

  .sections-grid {
    gap: 34px 42px;
  }
}

/* =========================================================
   MOBILE RESPONSIVE
========================================================= */

@media (max-width: 760px) {
  :root {
    --section: 48px;
  }

  body {
    overflow-x: hidden;
  }

  /* =========================================================
   MOBILE — HOME
========================================================= */

  .container {
    width: min(92%, var(--container));
  }

  .header-inner {
    min-height: 78px;
    width: 100%;
    padding: 0 14px;
    justify-content: center;
    gap: 0;
  }

  .logo {
    margin-left: 0;
    justify-content: center;
    gap: 8px;
  }

  .logo img {
    width: 144px;
  }

  .logo img.logo-anniversary {
    height: 48px;
    width: auto;
    margin-top: 4px;
  }

  .menu-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    flex: 0 0 auto;
  }

  .nav {
    top: 78px;
    right: 16px;
    left: 16px;
    width: auto;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }

  .nav a {
    text-align: left;
    font-size: 1rem;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item > a {
    display: block;
    width: 100%;
  }

  .nav-dropdown {
    position: static;
    width: 100%;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 4px solid var(--green);
    margin: 0;
    padding: 0 0 0 14px;
    background: transparent;
    transition:
      max-height 0.3s ease,
      opacity 0.2s ease;
  }

  .nav-item.open .nav-dropdown {
    opacity: 1 !important;
    max-height: 500px !important;
    pointer-events: auto !important;
    margin: 0 0 10px;
  }

  .nav-dropdown a {
    white-space: normal;
    font-size: 0.9rem;
    padding: 12px 0;
    display: block;
    width: 100%;
    padding-left: 16px;
  }

  .nav-login-link {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    border-radius: 16px;
    margin-top: 10px;
    padding: 14px 16px;
    font-size: 1rem;
  }

  .nav-login-link:hover {
    transform: none;
    letter-spacing: normal;
  }

  .nav-login-link::before {
    display: none;
  }

  .banner {
    margin-top: 0;
    margin-bottom: 0;
    height: auto;
  }

  .banner img {
    height: auto;
    width: 100%;
    object-fit: contain;
    display: block;
  }

  /* =========================================================
   MOBILE — HERO
========================================================= */

  .hero {
    min-height: auto;
    padding: 34px 0 0px;
    overflow: hidden;
    position: relative;
  }

  .hero-inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto !important;
    align-items: end;
    column-gap: 0;
    row-gap: 0;
    width: 100%;
    padding: 20px 0;
    position: relative;
  }

  .hero-text {
    grid-column: 1;
    grid-row: 1;
    z-index: 4;
    padding-left: 15px;
  }

  .hero-quote {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    gap: 8px;
  }

  .hero-quote-main {
    font-size: clamp(2rem, 9.5vw, 3.4rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
  }

  .hero-quote-sub {
    font-size: clamp(1.15rem, 5.4vw, 1.8rem);
    line-height: 0.95;
  }

  .hero-text cite {
    display: block;
    margin-top: 14px;
    font-size: 0.68rem;
    letter-spacing: 0.09em;
  }

  .hero-image {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: visible;
    transform: translateX(-115px) translateY(-170px);
  }

  .hero-image::before {
    content: "";
    position: absolute;
    width: 350vw;
    height: 350vw;
    right: -8vw;
    bottom: 4vw;
    z-index: -1;
    background: radial-gradient(
      circle,
      rgba(0, 0, 0, 0.05) 0%,
      rgba(0, 0, 0, 0) 70%
    );
  }

  .hero-image img {
    width: 155% !important;
    max-width: none !important;
    height: auto;
    display: block;
    margin-left: -35% !important;
    margin-top: -38px !important;
    margin-bottom: -15px !important;
    transform: scale(1.65);
    transform-origin: bottom right;
  }

  .hero-buttons {
    grid-column: 1 / span 2 !important;
    grid-row: 2 !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0 15px;
    z-index: 10;
    margin-top: -45px;
    transform: translateY(-115px);
  }

  .hero-buttons .btn {
    flex: 1;
    max-width: 200px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    white-space: nowrap;
    text-decoration: none;
  }

  .btn {
    min-height: 52px;
    padding-inline: 20px;
  }

  .home-action-board {
    padding: 10px 0;
    margin-top: -75px;
  }

  .home-action-layout {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 18px;
  }

  .home-action-card,
  .home-accion,
  .home-blog-feature,
  .home-gallery-card {
    grid-row: auto;
    min-height: 260px;
    border-radius: 0 0 28px 0;
  }

  .home-equipo {
    clip-path: none;
    border-radius: 0 0 28px 0;
  }

  .home-action-card h2 {
    font-size: clamp(2rem, 11vw, 3.5rem);
  }

  .home-blog-feature strong {
    font-size: clamp(3.2rem, 18vw, 5rem);
  }

  .home-blog-preview-image {
    height: 160px;
  }

  /* =========================================================
    GRIDS GENERALES MOBILE
========================================================= */
  .features-grid,
  .why-grid,
  .cta-inner,
  .cta-options,
  .news-grid,
  .home-resources-inner,
  .join-hero-inner,
  .join-options,
  .complete-hero-inner,
  .form-grid,
  .legal-info-grid,
  .legal-team-inner,
  .legal-team-grid,
  .about-intro-grid,
  .about-nav-head,
  .about-nav-grid,
  .people-grid,
  .small-grid,
  .docs-head,
  .docs-grid,
  .gallery-section-head,
  .photo-grid,
  .blog-grid,
  .contact-grid,
  .membership-grid,
  .video-inner,
  .press-group {
    grid-template-columns: 1fr;
  }

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

  /* ===============================================
   MOBILE — VÍDEOS GRID 
  ============================================== */

  .videos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .video-card {
    min-height: 190px;
    padding: 18px 14px;
  }

  .video-card h2 {
    font-size: clamp(1.25rem, 6vw, 1.75rem);
    line-height: 0.9;
  }

  .video-card span,
  .video-card p {
    font-size: 0.68rem;
  }

  .featured-video-card {
    grid-column: 1 / -1;
    min-height: 230px;
  }

  .section-title,
  .news-head h2,
  .docs-head h2,
  .gallery-section-head h2,
  .news-section-head h2,
  .video-copy h2 {
    text-align: left;
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .join-hero,
  .legal-hero,
  .about-hero,
  .gallery-hero,
  .documents-hero,
  .news-hero,
  .videos-hero,
  .contact-hero,
  .blog-archive-hero,
  .online-membership-hero {
    padding: 64px 0 54px;
  }

  .join-hero-main h1,
  .legal-hero h1,
  .about-hero h1,
  .gallery-hero h1,
  .documents-hero h1,
  .news-hero h1,
  .videos-hero h1,
  .contact-hero h1,
  .blog-archive-hero h1,
  .online-membership-hero h1 {
    font-size: clamp(3rem, 14vw, 4.8rem);
  }

  .about-hero .eyebrow {
    margin-left: 0;
    text-align: left;
  }

  .stair-title span:nth-child(2),
  .stair-title span:nth-child(3) {
    margin-left: 0;
  }

  .section-card {
    width: min(190px, 46vw);
    height: min(190px, 46vw);
  }

  .sections-grid {
    gap: 22px;
  }

  .post-page {
    padding: 52px 0;
  }

  .post-main-image {
    max-height: 320px;
    margin-bottom: 28px;
  }

  .post-article h1 {
    max-width: none;
    font-size: clamp(2.3rem, 11vw, 3.8rem);
  }

  .post-excerpt {
    font-size: 1.12rem;
  }

  .post-like-box {
    align-items: flex-start;
  }

  .post-share-box {
    width: 100%;
    margin-left: 0;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .post-nav-card.next {
    text-align: left;
  }

  .comment-meta {
    flex-direction: column;
    gap: 4px;
  }

  .contact-socials {
    flex-wrap: wrap;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand,
  .footer-socials,
  .footer-legal {
    justify-content: center;
  }

  .footer-brand {
    flex-direction: column;
  }

  /* =========================================================
   AFILIACIÓN ONLINE - CONDICIONES MOBILE
========================================================= */

  .membership-conditions {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 24px 20px;
  }

  .membership-conditions,
  .membership-conditions * {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .membership-conditions ol {
    padding-left: 20px;
  }

  /* =========================================================
   AFILIACIÓN MOBILE - SLIDES SOM
========================================================= */

  .som-diff-track {
    gap: 16px;
    padding: 0 14px;
  }

  .som-diff-slide {
    min-width: 88vw;
    max-width: 88vw;

    padding: 34px 24px 72px;

    justify-content: flex-start;
    align-items: flex-start;
  }

  .som-diff-slide h3 {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
    line-height: 0.92;

    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;

    margin-bottom: 28px;
  }

  .som-diff-slide p {
    width: 100%;
    font-size: 1.05rem;
    line-height: 1.42;
  }

  .som-diff-slide:not(:last-child)::after {
    right: 22px;
    bottom: 18px;

    top: auto;

    font-size: 2.5rem;
  }

  /* =========================================================
   SECCIONES SINDICALES MOBILE
========================================================= */

  .sections-section {
    padding: 38px 0 52px;
    background-position: center -20px;
    background-size: cover;
  }

  .sections-section::after {
    height: 55px;
    background: linear-gradient(
      to bottom,
      var(--white) 0%,
      rgba(247, 245, 239, 0.82) 45%,
      rgba(247, 245, 239, 0) 100%
    );
  }

  .sections-section::before {
    background:
      radial-gradient(
        circle at 20% 18%,
        rgba(66, 148, 74, 0.06),
        transparent 28%
      ),
      linear-gradient(
        to bottom,
        rgba(247, 245, 239, 0.12) 35%,
        rgba(247, 245, 239, 0.62) 78%,
        rgba(247, 245, 239, 0.96) 100%
      );
  }

  .sections-head {
    margin-bottom: 22px;
  }

  .sections-head h2 {
    font-size: clamp(2.6rem, 13vw, 4rem);
    line-height: 0.9;
    margin-bottom: 14px;
  }

  .sections-head p:not(.eyebrow) {
    font-size: 1.05rem;
    line-height: 1.45;
    margin-top: 16px;
  }

  .sections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    justify-items: center;
    margin-top: 34px;
  }

  .section-card {
    width: min(150px, 42vw);
    height: min(150px, 42vw);
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
  }

  .section-card span {
    height: auto;
    font-size: 0.58rem;
    line-height: 1;
    letter-spacing: 0.08em;
  }

  .section-card h3 {
    font-size: 0.98rem;
    line-height: 1;
    height: auto;
    max-width: 110px;
    margin: 0;
  }

  .section-card p {
    font-size: 0.62rem;
    max-width: 112px;
    height: auto;
    line-height: 1.15;
    justify-content: center;
    overflow-wrap: break-word;
  }

  .section-card p::before {
    margin-bottom: 6px;
  }

  .section-card.active h3 {
    transform: translateY(6px);
  }

  .section-card:not(.active) {
    gap: 2px;
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .section-card:not(.active) span {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -2px;
    font-size: 0.52rem;
  }

  .section-card:not(.active) h3 {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    line-height: 0.95;
    margin-top: 0;
  }

  .section-card:not(.active) p {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    line-height: 1.05;
  }

  /* =========================================================
   GALERÍA MOBILE
========================================================= */

  .posters-section {
    padding-bottom: 34px;
  }

  .photo-section {
    padding-top: 34px;
  }

  .gallery-section-head {
    margin-bottom: 26px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .photo-item {
    aspect-ratio: 1 / 1;
  }

  /* =========================================================
   CONTACTO MOBILE
========================================================= */

  .contact-grid,
  .contact-info,
  .contact-card,
  .contact-form-wrap,
  .contact-form,
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .contact-grid {
    gap: 18px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }

  .contact-card,
  .contact-form-wrap,
  .contact-info {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
  }

  .contact-form-wrap,
  .contact-card {
    padding: 20px 16px;
    width: calc(100% - 20px);
    margin-inline: auto;
  }

  .contact-card a,
  .contact-card p,
  .contact-form-head h2 {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contact-socials {
    max-width: 100%;
    overflow: hidden;
  }

  .contact-card a[href^="mailto:"] {
    font-size: 0.92rem;
  }

  /* =========================================================
   ACTUALIDAD MOBILE
========================================================= */

  .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 22px;
  }

  .blog-card {
    width: calc(100% - 20px);
    max-width: 100%;
    margin-inline: auto;
    box-sizing: border-box;
    overflow: hidden;
  }

  .blog-card img {
    width: 100%;
    height: auto;
    display: block;
  }

  .blog-grid .blog-card:nth-child(n + 4) {
    display: none;
  }

  .blog-section .blog-card {
    width: calc(100% - 36px);
  }

  .blog-section .news-section-head {
    padding-inline: 18px;
  }

  .blog-section .blog-all-link {
    margin-left: 18px;
    width: calc(100% - 36px);
    max-width: 420px;
  }

  .blog-section .news-section-head::before {
    left: 18px;
    top: -52px;
    font-size: clamp(5.8rem, 28vw, 8rem);
    opacity: 0.26;
  }

  /* ====================================================
 COOKIES MOBILE
 =================================================*/

  .cookie-banner {
    bottom: 14px;
    width: calc(100% - 18px);
    padding: 18px;
    border-radius: 18px;
  }

  .cookie-content {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }

  .cookie-banner.show {
    opacity: 1;
    pointer-events: auto;
  }

  .cookie-modal-box {
    padding: 24px 20px;
  }

  .cookie-option {
    flex-direction: column;
  }

  .cookie-option input {
    margin-top: 8px;
  }

  .cookie-modal {
    align-items: flex-end;
  }

  .cookie-modal-box {
    max-height: 85vh;
    border-radius: 24px 24px 0 0;
  }

  .cookie-modal .cookie-actions {
    flex-direction: column;
  }

  .cookie-modal .cookie-btn {
    width: 100%;
  }

  /* ===============================================
   ADMIN Y AFILIADOS ÁREA PRIVADA MOBILE
   ============================================*/

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: relative;
    height: auto;
    padding: 20px;
  }

  .dashboard-brand {
    margin-bottom: 22px;
  }

  .dashboard-logout {
    margin-top: 18px;
  }

  .dashboard-header h1 {
    font-size: clamp(2.6rem, 13vw, 4.2rem);
  }

  .dashboard-nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
  }

  .dashboard-nav-item {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .dashboard-main {
    padding: 24px 18px;
  }

  .dashboard-login-actions {
    flex-direction: column;
  }

  .dashboard-login-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-login-row,
  .dashboard-panel-head,
  .admin-comment-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-logged-in .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-logged-in .dashboard-sidebar {
    display: flex;
    position: relative;
    height: auto;
  }

  .affiliate-dashboard-page.dashboard-logged-in .dashboard-shell {
    padding-top: 88px;
  }

  .affiliate-dashboard-page.dashboard-logged-in #affiliateSidebar {
    position: fixed;
    inset: 0 0 auto 0;
    height: 88px;
    padding: 10px 18px;
    z-index: 1200;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: visible;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .affiliate-dashboard-page.dashboard-logged-in #affiliateSidebar .dashboard-brand {
    width: min(68vw, 280px);
    margin: 0;
    justify-content: center;
    gap: 12px;
    text-align: center;
  }

  .affiliate-dashboard-page.dashboard-logged-in #affiliateSidebar .dashboard-brand img {
    width: 52px;
  }

  .affiliate-dashboard-page.dashboard-logged-in
    #affiliateSidebar
    .dashboard-brand
    span {
    font-size: 1.24rem;
    line-height: 0.95;
    text-transform: uppercase;
  }

  .affiliate-dashboard-page.dashboard-logged-in .affiliate-menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 34px;
    position: absolute;
    left: 16px;
    top: 50%;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    transform: translateY(-50%);
  }

  .affiliate-dashboard-page.dashboard-logged-in .affiliate-menu-toggle span {
    width: 32px;
    height: 3px;
    display: block;
    border-radius: 999px;
    background: white;
    transition:
      transform 0.22s ease,
      opacity 0.22s ease;
  }

  .affiliate-dashboard-page.dashboard-logged-in
    .affiliate-menu-toggle.is-open
    span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .affiliate-dashboard-page.dashboard-logged-in
    .affiliate-menu-toggle.is-open
    span:nth-child(2) {
    opacity: 0;
  }

  .affiliate-dashboard-page.dashboard-logged-in
    .affiliate-menu-toggle.is-open
    span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .affiliate-dashboard-page.dashboard-logged-in #affiliateSidebar .dashboard-nav,
  .affiliate-dashboard-page.dashboard-logged-in #affiliateSidebar .dashboard-logout {
    position: fixed;
    left: 0;
    width: min(84vw, 320px);
    background: #111111;
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    z-index: 1190;
  }

  .affiliate-dashboard-page.dashboard-logged-in #affiliateSidebar .dashboard-nav {
    top: 88px;
    bottom: 86px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 18px;
    overflow-x: hidden;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .affiliate-dashboard-page.dashboard-logged-in #affiliateSidebar .dashboard-nav-item {
    width: 100%;
    white-space: normal;
    flex: 0 0 auto;
  }

  .affiliate-dashboard-page.dashboard-logged-in #affiliateSidebar .dashboard-logout {
    bottom: 0;
    height: 86px;
    margin: 0;
    border-radius: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .affiliate-dashboard-page.dashboard-logged-in
    #affiliateSidebar.is-open
    .dashboard-nav,
  .affiliate-dashboard-page.dashboard-logged-in
    #affiliateSidebar.is-open
    .dashboard-logout {
    transform: translateX(0);
  }

  .dashboard-logged-out .dashboard-main {
    padding: 24px 18px;
  }

  .affiliate-card {
    grid-template-columns: 1fr;
  }

  .affiliate-card .btn {
    width: 100%;
  }

  .affiliate-admin-actions {
    grid-template-columns: 1fr;
  }

  .affiliate-detail-grid {
    grid-template-columns: 1fr;
  }

  .inline-admin-form-grid {
    grid-template-columns: 1fr;
  }

  .document-mode-btn {
    width: 100%;
  }

  .blog-admin-actions {
    flex-direction: column;
  }

  .blog-admin-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .blog-post-card {
    grid-template-columns: 1fr;
  }

  .blog-post-thumb {
    width: 100%;
  }

  .blog-post-actions {
    flex-direction: column;
  }

  .blog-post-actions .btn {
    width: 100%;
  }

  .comment-mode-btn {
    width: 100%;
  }

  .dashboard-section-hero h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .documents-grid {
    grid-template-columns: 1fr;
  }

  .membership-events-grid,
  .membership-events-summary,
  .membership-comparison-summary {
    grid-template-columns: 1fr;
  }

  .membership-events-controls label,
  .membership-events-controls label:first-child {
    flex-basis: 100%;
  }
}

@media (min-width: 761px) and (max-width: 1024px) {
  .dashboard-logged-in .dashboard-shell {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .dashboard-main {
    padding: 24px;
  }

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

@media (max-width: 1024px) {
  .nav .nav-item.has-dropdown.open > .nav-dropdown {
    display: block;
    height: auto;
    max-height: 500px !important;
    opacity: 1 !important;
    overflow: visible;
    pointer-events: auto !important;
  }
}
