/* =========================
   VARIABLES
========================= */
:root {
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.6);
}

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

/* =========================
   BASE
========================= */
html,
body {
  width: 100%;
  height: 100%;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: #000;
  color: var(--text);
  overflow-x: hidden;
}

/* =========================
   HEADER
========================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  padding: 24px 0;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
}

/* =========================
   MENÚ
========================= */
.main-nav {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 30;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* =========================
   HERO VIDEO
========================= */
.hero-video {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.video-bg {
  position: absolute;
  inset: 0;
}

.video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.77vh;
  height: 100vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)),
    rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 0 20px 48px;
}

/* =========================
   HERO TEXTOS Y BOTONES
========================= */
.hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(30px);
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: 0.04em;
  margin-bottom: 26px;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 34px;
  opacity: 0;
  transform: translateY(30px);
}

.hero-logos {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #fff;
  color: #000;
}

.hero-logos img {
  height: 52px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* =========================
   SECCIONES GENERALES
========================= */
.page-content {
  min-height: 100vh;
  padding: 140px 40px 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.page-content h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  margin-bottom: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 850px;
}

/* =========================
   CAUSA
========================= */
.cause-section {
  max-width: 1300px;
}

.cause-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cause-text h1 {
  margin-bottom: 28px;
}

.cause-text p {
  margin-bottom: 20px;
  max-width: 100%;
  color: var(--text);
}

.cause-text p:last-child {
  margin-bottom: 0;
}

/* =========================
   CARRUSEL
========================= */
.cause-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  cursor: pointer;
}

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

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 3;
  transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.carousel-btn.prev {
  left: 14px;
}

.carousel-btn.next {
  right: 14px;
}

/* =========================
   VIDEO EN CAUSA
========================= */
.causa-video {
  margin-top: 60px;
  width: 100%;
}

.causa-video video {
  width: 100%;
  max-width: 1000px;
  display: block;
  margin: 0 auto;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* =========================
   TROPA
========================= */
.crew-section {
  text-align: center;
}

.crew-intro {
  max-width: 700px;
  margin: 0 auto 50px;
  color: var(--muted);
}

.crew-contexto {
  max-width: 750px;
  margin: 0 auto 50px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
}

.crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px 30px;
  margin-top: 40px;
}

.crew-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.crew-photo {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 18px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.crew-card:hover .crew-photo {
  transform: scale(1.04);
  border-color: rgba(255, 255, 255, 0.55);
}

.crew-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.crew-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.4;
}

/* =========================
   LIGHTBOX TROPA
========================= */
.crew-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

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

.crew-modal {
  width: min(92vw, 900px);
  background: rgba(12, 12, 12, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
  position: relative;
}

.crew-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.crew-modal-close:hover {
  opacity: 1;
  transform: scale(1.08);
}

.crew-modal-content {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: center;
}

.crew-modal-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.crew-modal-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.crew-modal-text h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 18px;
}

.crew-modal-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 100%;
}

/* =========================
   PARTES DE GUERRA
========================= */
.guerra-section {
  max-width: 1300px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.video-item {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.video-item iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* =========================
   ADELITA
========================= */
.adelita-section {
  max-width: 1300px;
}

.adelita-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.adelita-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.adelita-logo img {
  width: 160px;
  opacity: 0.9;
}

.adelita-text h1 {
  margin-bottom: 20px;
}

.adelita-text p {
  margin-bottom: 18px;
  line-height: 1.7;
  color: var(--text);
}

.adelita-text p:last-child {
  margin-bottom: 0;
}

.adelita-video {
  width: 100%;
  display: grid;
  gap: 24px;
}

.adelita-video video {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  background: #000;
}

/* =========================
   LIGHTBOX IMÁGENES
========================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

/* =========================
   MODAL PRÓXIMAMENTE
========================= */
.modal-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

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

.modal-box {
  width: min(90vw, 520px);
  background: rgba(12, 12, 12, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 40px 28px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
  position: relative;
}

.modal-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.modal-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 360px;
  margin: 0 auto;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-close:hover {
  opacity: 1;
  transform: scale(1.08);
}

/* =========================
   FOOTER
========================= */
.site-footer {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 70px 40px 40px;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 50px;
  align-items: start;
}

.footer-logo {
  display: flex;
  align-items: flex-start;
}

.footer-logo img {
  width: 130px;
  opacity: 0.9;
}

.footer-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-block {
  min-width: 0;
}

.footer-block h3 {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-block p,
.footer-block a {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 6px;
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
}

.footer-block a:hover {
  color: var(--text);
}

/* =========================
   REDES FOOTER
========================= */
.footer-block a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-block i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.footer-block a:hover i {
  transform: scale(1.2);
}

/* =========================
   RESPONSIVE 900
========================= */
@media (max-width: 900px) {
  .cause-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .cause-carousel {
    aspect-ratio: 16 / 10;
  }

  .adelita-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .adelita-logo {
    text-align: center;
  }

  .adelita-logo img {
    width: 130px;
  }

  .adelita-text {
    text-align: center;
  }
}

/* =========================
   RESPONSIVE 768
========================= */
@media (max-width: 768px) {
  .site-header {
    padding: 16px 18px;
  }

  .main-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(280px, 84vw);
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu li {
    width: 100%;
  }

  .main-nav a {
    display: block;
    width: 100%;
    font-size: 0.9rem;
  }

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

  .crew-modal {
    padding: 24px 20px;
  }

  .crew-modal-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 22px;
  }

  .crew-modal-image {
    display: flex;
    justify-content: center;
  }

  .crew-modal-image img {
    max-width: 190px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-logo img {
    width: 120px;
  }

  .footer-info {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-block a {
    justify-content: center;
  }
}