:root {
  --brand-dark: #0f3d2f;
  --brand-main: #1f6a43;
  --brand-accent: #b51f3f;
  --text: #1f1f1f;
  --muted: #5d5d5d;
  --surface: #ffffff;
  --surface-soft: #f4f8f5;
  --line: #d5e2da;
  --shadow: 0 12px 28px rgba(16, 61, 47, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 100% 0, #eef6f1 0, #f8fbf9 40%, #f7faf8 100%);
  line-height: 1.55;
}

h1,
h2,
h3,
.main-nav a,
.brand strong {
  font-family: "Sora", "Montserrat", "Segoe UI", sans-serif;
}

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

.link-underlined {
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 0;
  border: 1px solid #d9e6de;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.02rem;
}

.brand strong {
  font-size: 1rem;
  color: var(--brand-main);
  line-height: 1.1;
}

.brand span {
  font-size: 0.78rem;
  color: var(--muted);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  color: var(--brand-main);
  cursor: pointer;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.main-nav a {
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #274138;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--brand-accent);
}

.hero {
  padding: 4.5rem 0 3.4rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -110px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 106, 67, 0.14) 0%, rgba(31, 106, 67, 0.03) 68%, transparent 100%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.14;
  color: #113f30;
}

.hero p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 99px;
  padding: 0.34rem 0.85rem;
  background: #e8f0eb;
  color: var(--brand-main);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand-main);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  border-radius: 14px;
}

.hero-card h3 {
  margin: 0 0 0.45rem;
  color: #113f30;
}

.hero-card .btn {
  margin-top: 0.4rem;
}

.contact-quick-card {
  max-width: 410px;
  justify-self: end;
  padding: 0.95rem 1rem;
}

.contact-quick-card p {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
}

.contact-quick-card p:last-child {
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0.55rem 1rem;
  font-weight: 700;
}

.btn-primary {
  background: var(--brand-main);
  color: #fff;
}

.btn-primary:hover {
  background: #1a5839;
}

.btn-soft {
  background: #edf3ef;
  color: var(--brand-main);
  border: 1px solid #d3e2d8;
}

.section {
  padding: 2rem 0 3.2rem;
}

.section h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  color: #123f30;
}

.section-intro {
  margin-top: 0;
  margin-bottom: 1.2rem;
  color: var(--muted);
}

.video-carousel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.campaign-carousel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.campaign-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-y pinch-zoom;
}

.campaign-track::-webkit-scrollbar {
  display: none;
}

.campaign-track.is-draggable {
  cursor: grab;
}

.campaign-track.is-draggable.dragging {
  cursor: grabbing;
}

.campaign-slide {
  min-width: 100%;
  flex: 0 0 100%;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  scroll-snap-align: start;
}

.campaign-slide img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
}

.campaign-placeholder {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: #41524b;
}

.carousel-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-y pinch-zoom;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track.is-draggable {
  cursor: grab;
}

.carousel-track.is-draggable.dragging {
  cursor: grabbing;
}

.video-slide {
  min-width: 100%;
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.video-frame {
  width: 100%;
}

.video-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
}

.video-frame.horizontal {
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.video-frame.horizontal iframe {
  display: block;
  object-fit: contain;
  background: #000;
}

.video-frame.short {
  width: min(420px, 72%);
  margin: 0 auto;
}

.video-frame.short iframe {
  aspect-ratio: 9 / 16;
}

.video-slide.is-short .video-caption,
.video-slide.is-short .btn {
  width: min(420px, 72%);
  margin-left: auto;
  margin-right: auto;
}

.video-slide.is-short-group {
  min-width: 100%;
}

.video-slide.channel-cta {
  min-width: 100%;
}

.channel-card {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.4rem;
  background: linear-gradient(145deg, #f7fbf8, #eef5f1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
}

.channel-card h3 {
  margin: 0;
  color: #123f30;
  font-size: 1.35rem;
}

.channel-card p {
  margin: 0;
  color: #3a4b43;
}

.channel-card .btn {
  align-self: flex-start;
}

.shorts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.shorts-grid.one-up {
  max-width: 380px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

.short-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.short-item iframe {
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: 10px;
  background: #000;
}

.short-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-main);
}

.video-caption {
  margin-top: 0.6rem;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  color: #3f3f3f;
  font-size: 0.88rem;
}

.video-caption strong {
  max-width: 80%;
}

.video-slide .btn {
  margin-top: 0.45rem;
}

.carousel-controls {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}

.carousel-controls button {
  border: 1px solid var(--line);
  background: #fff;
  color: #274137;
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.carousel-controls button:hover {
  border-color: #9eb9aa;
  color: var(--brand-accent);
}

.carousel-controls button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1rem;
}

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

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

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

.cards-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-y pinch-zoom;
}

.cards-track::-webkit-scrollbar {
  display: none;
}

.cards-track.is-draggable {
  cursor: grab;
}

.cards-track.is-draggable.dragging {
  cursor: grabbing;
}

.cards-slide {
  min-width: 100%;
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.cards-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid.one-up {
  grid-template-columns: 1fr;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.48rem;
  color: #123f30;
  font-size: 1.05rem;
}

.card time,
.meta {
  display: inline-block;
  margin-bottom: 0.48rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card p {
  margin: 0 0 0.7rem;
  color: #3a3a3a;
}

.card-media {
  margin: 0.4rem 0 0.75rem;
  border-radius: 10px;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  background: #fff;
  display: block;
}

.party-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #fff;
  padding: 0.45rem;
  border-radius: 10px;
  margin-bottom: 0.65rem;
}

.card a {
  color: var(--brand-main);
  font-weight: 700;
}

.feed-list {
  display: grid;
  gap: 1rem;
}

.feed-item.is-hidden {
  display: none;
}

.feed-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.feed-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feed-card-link:hover,
.feed-card-link:focus-visible {
  transform: translateY(-2px);
  border-color: #b9cec1;
  box-shadow: 0 16px 30px rgba(16, 61, 47, 0.14);
}

.feed-card-inner {
  padding: 1rem;
}

.feed-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.feed-type {
  border-radius: 999px;
  padding: 0.17rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid #d3e1d8;
  background: #edf4ef;
  color: #365246;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.feed-title {
  margin: 0;
  color: #123f30;
  font-size: clamp(1.08rem, 1.8vw, 1.26rem);
  line-height: 1.24;
}

.feed-media {
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.feed-media img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  display: block;
}

.feed-excerpt {
  margin: 0;
  color: #35443d;
}

.feed-actions {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.load-more-wrap {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.feed-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0.48rem 0.82rem;
  background: #edf3ef;
  border: 1px solid #d3e2d8;
  color: var(--brand-main);
  font-weight: 700;
  font-size: 0.92rem;
}

.highlight {
  border-left: 4px solid var(--brand-accent);
}

.feed-status {
  margin-bottom: 0.8rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #dfebe3;
  background: #f7fbf8;
  color: #496054;
  font-size: 0.9rem;
}

.feed-status.error {
  border-color: #efc8d1;
  background: #fff7f9;
  color: #8a2440;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.badge {
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 0.18rem 0.52rem;
  background: #eef4f0;
  color: #355447;
  border: 1px solid #dce8e1;
}

.program-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.program-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.program-block h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: #123f30;
}

.program-block ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #3f3f3f;
}

.program-block li + li {
  margin-top: 0.32rem;
}

.people-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.person-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.person-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #fff;
  display: block;
}

.person-card div {
  padding: 0.9rem 1rem 1rem;
}

.person-card h3 {
  margin: 0 0 0.45rem;
  color: #123f30;
}

.person-card p {
  margin: 0;
  color: #3e3e3e;
}

.person-card .btn {
  margin-top: 0.25rem;
}

.candidate-photo {
  margin: 0 0 1rem;
  border-radius: 12px;
  overflow: hidden;
}

.candidate-photo img {
  width: 100%;
  max-height: 760px;
  object-fit: contain;
  background: #fff;
  display: block;
}

.single-featured-media {
  margin: 0 0 1rem;
  border-radius: 12px;
  overflow: hidden;
}

.single-featured-media img {
  width: 100%;
  max-height: 900px;
  object-fit: contain;
  background: #fff;
  display: block;
}

.social-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.social-link {
  height: 70px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(16, 61, 47, 0.16);
}

.social-link img {
  width: 28px;
  height: 28px;
  display: block;
}

.social-link.instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b);
}

.social-link.twitter {
  background: #111;
}

.social-link.tiktok {
  background: #000;
}

.social-link.facebook {
  background: #1877f2;
}

.social-link.whatsapp {
  background: #25d366;
}

.social-link.youtube {
  background: #ff0000;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.1rem;
  display: grid;
  gap: 0.8rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: #2d2d2d;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #ccdcd2;
  border-radius: 10px;
  padding: 0.62rem 0.75rem;
  font: inherit;
  color: #202020;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #c7e1d4;
  border-color: var(--brand-main);
}

.article-wrap {
  max-width: 780px;
}

.hero-single-entry {
  padding-bottom: 1rem;
}

.section-single-entry {
  padding-top: 0.65rem;
}

.article-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.3rem;
}

.article-body p {
  margin: 0 0 1rem;
  color: #303030;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.press-note-subtitle {
  margin-top: 0;
  margin-bottom: 1.2rem;
  font-size: 1.25rem;
  line-height: 1.35;
  color: #2f3a35;
}

.press-note-body {
  padding: 1.1rem;
}

.press-note-pdf iframe {
  width: 100%;
  min-height: 760px;
  border: 0;
  border-radius: 8px;
}

.field-hidden {
  display: none !important;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #f7fbf8;
}

.footer-inner {
  padding: 1.1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #4d4d4d;
}

.footer-links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-3,
  .grid-4,
  .program-grid,
  .people-grid {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

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

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

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .campaign-slide img {
    aspect-ratio: auto;
    max-height: 62vh;
    object-fit: contain;
    background: #fff;
  }

  .contact-quick-card {
    max-width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 560px) {
  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shorts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    display: none;
    position: absolute;
    right: 4%;
    top: 68px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 12px;
    min-width: 240px;
    padding: 0.8rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .main-nav.open {
    display: flex;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-single-entry {
    padding-bottom: 0.7rem;
  }

  .section-single-entry {
    padding-top: 0.35rem;
  }

  /* Feed estilo RRSS: imagen más compacta en móvil */
  .feed-card {
    border-radius: 12px;
  }

  .feed-card-inner {
    padding: 0.85rem 0.9rem;
  }

  .feed-title {
    font-size: 1.06rem;
    line-height: 1.28;
  }

  .feed-media img {
    height: auto;
    max-height: 280px;
    object-fit: contain;
  }

  /* Entrada individual: imagen destacada menos dominante en móvil */
  .single-featured-media img {
    max-height: 360px;
    object-fit: contain;
  }
}
