/* ==========================================================================
   RESPONSABILIDAD SOCIAL — estilos propios (usa los tokens de home.css)
   Hereda de tc-home: variables, .section, .reveal, .btn-*, etc.
   ========================================================================== */

/* ---------- NAVBAR: más opaco sobre el hero oscuro ---------- */
.navbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
}

/* ---------- HERO ---------- */
.rs-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-dark) 0%, #0a3a2a 55%, #064e3b 100%);
  color: #fff;
  padding: 128px 2rem 64px;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.rs-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.rs-hero-dots {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px, 64px 64px, 64px 64px;
  opacity: 0.4;
  pointer-events: none;
}

/* Motivo geométrico decorativo en el fondo (Olas / Hojas orgánicas en marca de agua) */
.rs-hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='leaf-pattern' width='120' height='120' patternUnits='userSpaceOnUse'%3E%3Cpath d='M60 0 C90 30, 90 90, 60 120 C30 90, 30 30, 60 0 Z' fill='none' stroke='%23ffffff' stroke-width='1.2' stroke-dasharray='4 4'/%3E%3Cpath d='M0 60 C30 90, 90 90, 120 60 C90 30, 30 30, 0 60 Z' fill='none' stroke='%2334d399' stroke-width='1'/%3E%3Ccircle cx='60' cy='60' r='16' fill='none' stroke='%23ffffff' stroke-width='0.8'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23leaf-pattern)'/%3E%3C/svg%3E");
}

.rs-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.rs-hero-orb-1 { width: 480px; height: 480px; background: rgba(16, 185, 129, 0.25); top: -160px; right: -120px; }
.rs-hero-orb-2 { width: 360px; height: 360px; background: rgba(6, 182, 212, 0.20); bottom: -140px; left: -80px; }

.rs-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 992px) {
  .rs-hero-inner { grid-template-columns: 1.5fr 1fr; }
}

.rs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1rem;
  font-weight: 500;
}
.rs-breadcrumb a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color 0.2s; }
.rs-breadcrumb a:hover { color: #fff; }

.rs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #6ee7b7;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.32rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.9rem;
}
.rs-eyebrow svg { width: 14px; height: 14px; }

.rs-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 0.85rem;
}

.rs-hero-lead {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
}

/* Badge ODS — Glassmorphic sofisticado integrado */
.rs-hero-badge {
  position: relative;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  max-width: 280px;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.rs-hero-badge:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.4);
}

.rs-hero-badge-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rs-hero-badge-icon svg { width: 28px; height: 28px; stroke: #34d399; }

.rs-hero-badge h3 {
  font-family: var(--font-display);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.rs-hero-badge p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .rs-hero { padding: 96px 1.25rem 48px; min-height: auto; }
  .rs-hero-badge { display: none; }
}

/* ---------- SUBNAV STICKY ---------- */
.rs-subnav {
  position: sticky;
  top: 110px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.rs-subnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 0.6rem;
  padding: 0.8rem 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.rs-subnav-inner::-webkit-scrollbar { display: none; }
.rs-subnav-link {
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-page);
  border: 1px solid var(--card-border);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.rs-subnav-link:hover { color: var(--navy-brand); border-color: rgba(0, 84, 154, 0.25); background: var(--navy-light); }
.rs-subnav-link.active { color: #059669; background: #ecfdf5; border-color: #059669; }

@media (max-width: 768px) {
  .rs-subnav { top: 72px; }
}

/* ---------- KICKER DE SECCIÓN ---------- */
.rs-kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}
.rs-kicker .bar { width: 32px; height: 2px; border-radius: 2px; background: currentColor; }
.rs-kicker.is-emerald { color: var(--accent-emerald); }
.rs-kicker.is-cyan { color: var(--accent-cyan); }
.rs-kicker.is-violet { color: var(--accent-violet); }
.rs-kicker.is-navy { color: var(--navy-brand); }

.rs-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -0.25px;
  line-height: 1.12;
  margin-bottom: 0.5rem;
}

.rs-lead-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 1.5rem;
}

/* ---------- ACTIVITY CARDS ---------- */
.rs-activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .rs-activities-grid {
    grid-template-columns: 1fr;
  }
}

.rs-activity-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px -16px rgba(0, 84, 154, 0.08);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.rs-activity-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 84, 154, 0.12);
  box-shadow: 0 16px 40px -18px rgba(0, 84, 154, 0.14);
}

/* Barra superior de color por tema */
.rs-activity-card::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-emerald), var(--accent-teal));
}
.rs-activity-card.theme-cyan::before {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal));
}
.rs-activity-card.theme-violet::before {
  background: linear-gradient(90deg, var(--accent-violet), var(--navy-accent));
}

/* Carrusel de imágenes integrado en la card */
.rs-card-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f5f9;
}

.rs-card-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.rs-card-carousel-slide {
  min-width: 100%;
  height: 100%;
  cursor: pointer;
}

.rs-card-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.rs-card-carousel-slide:hover img {
  transform: scale(1.03);
}

/* Placeholder cuando no hay fotos */
.rs-card-no-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
}
.rs-card-no-photo svg { width: 32px; height: 32px; opacity: 0.4; }
.rs-card-no-photo span { font-size: 0.72rem; font-weight: 600; }

/* Flechas del carrusel */
.rs-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 3;
}
.rs-carousel-arrow svg { width: 14px; height: 14px; }
.rs-carousel-arrow.prev { left: 8px; }
.rs-carousel-arrow.next { right: 8px; }
.rs-card-carousel:hover .rs-carousel-arrow { opacity: 1; }
.rs-carousel-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.1); }

/* Dots del carrusel */
.rs-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 3;
}
.rs-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.rs-carousel-dot.active {
  background: #fff;
  transform: scale(1.3);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

/* Contenido de la card */
.rs-activity-body {
  padding: 1.25rem 1.4rem 1.4rem;
}

.rs-activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  transition: all 0.4s var(--ease-spring);
}
.rs-activity-icon.bg-emerald { background: rgba(16, 185, 129, 0.1); color: var(--accent-emerald); }
.rs-activity-icon.bg-cyan { background: rgba(6, 182, 212, 0.1); color: var(--accent-cyan); }
.rs-activity-icon.bg-violet { background: rgba(139, 92, 246, 0.1); color: var(--accent-violet); }
.rs-activity-icon svg { width: 20px; height: 20px; }

.rs-activity-card:hover .rs-activity-icon {
  transform: scale(1.1) rotate(3deg);
}
.rs-activity-card:hover .rs-activity-icon.bg-emerald { background: var(--accent-emerald); color: #fff; }
.rs-activity-card:hover .rs-activity-icon.bg-cyan { background: var(--accent-cyan); color: #fff; }
.rs-activity-card:hover .rs-activity-icon.bg-violet { background: var(--accent-violet); color: #fff; }

.rs-activity-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 0.45rem;
  letter-spacing: -0.3px;
}

.rs-activity-desc {
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Indicador de articulación */
.rs-activity-collab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.75rem;
  padding: 0.3rem 0.65rem;
  background: #f8fafc;
  border: 1px solid var(--card-border);
  border-radius: 100px;
}
.rs-activity-collab svg { width: 12px; height: 12px; }

/* ---------- VIDEO SECTION ---------- */
.rs-video-container {
  max-width: 900px;
  margin: 1.5rem auto 0;
}

.rs-video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.rs-video-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rs-video-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy-dark) 0%, #0a3a2a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.rs-video-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease-spring);
  cursor: pointer;
}
.rs-video-play-btn svg { width: 28px; height: 28px; fill: #fff; }
.rs-video-play-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.rs-video-placeholder span {
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- SEPARADOR TEMÁTICO ---------- */
.rs-divider {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.rs-divider hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-border), transparent);
  margin: 2.5rem 0 0;
}

/* ---------- LIGHTBOX MODAL ---------- */
.rs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.rs-lightbox.open { opacity: 1; visibility: visible; }

.rs-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.rs-lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }
.rs-lightbox-close svg { width: 20px; height: 20px; }

.rs-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rs-lightbox.open img { transform: scale(1); }

.rs-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.rs-lightbox-nav:hover { background: rgba(255, 255, 255, 0.3); }
.rs-lightbox-nav svg { width: 20px; height: 20px; }
.rs-lightbox-nav.prev { left: 1.5rem; }
.rs-lightbox-nav.next { right: 1.5rem; }

/* ---------- REVEAL ANIMATION ---------- */
.rs-page .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.rs-page .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered cards */
.rs-activity-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo),
              box-shadow 0.3s ease, border-color 0.3s ease;
}
.rs-activity-card.visible {
  opacity: 1;
  transform: translateY(0);
}
