/* -------------------- TIPOGRAFÍA Y BASE -------------------- */
body {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  background-color: #ffffff;
  color: #222222;
}

body.elisa-fondo::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/Elisa.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(100%);
  z-index: -1;
}

body.antonio-fondo::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/Antonio.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(100%);
  z-index: -1;
}

body.carmen-fondo::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/Carmen.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(100%);
  z-index: -1;
}

body.chema-fondo::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/Jose.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(100%);
  z-index: -1;
}

body.edgar-fondo::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/Edgar.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(100%);
  z-index: -1;
}

body.manuel-fondo::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/Manolo.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(100%);
  z-index: -1;
}

body.pacita-fondo::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/Pacita.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(100%);
  z-index: -1;
}

body.zadquiel-fondo::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/Zadquiel.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(100%);
  z-index: -1;
}

body.moha-fondo::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/Moha.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(100%);
  z-index: -1;
}


/* -------------------- CABECERA -------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: #cccccc;
  color: #111111;
  font-family: "Courier New", Courier, monospace;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

header h1 {
  font-size: 2.5rem;
  margin: 0;
}

/* -------------------- NAVEGACIÓN -------------------- */
nav {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background-color: #e0e0e0;
  font-family: "Courier New", Courier, monospace;
  color: #111;
  z-index: 999;
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 1rem 0;
  margin: 0;
}

nav li {
  margin: 0 20px;
}

nav a {
  color: #111;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #555;
  text-decoration: underline;
}

/* -------------------- CONTENIDO -------------------- */
main {
  padding-top: 170px;
  padding-left: 20px;
  padding-right: 20px;
}

/* -------------------- SECCIONES DE VÍDEO -------------------- */
.video-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 60px 3%;
  gap: 40px;
  background-color: rgba(240, 240, 240, 0.9);
  backdrop-filter: blur(3px);
  border-radius: 16px;
  margin: 60px auto;
  width: 90%;
  box-shadow: 0 4px 12px rgba(80, 80, 80, 0.3);
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s ease forwards;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.video-section.reverse {
  flex-direction: row-reverse;
  animation-delay: 0.3s;
}

.video-section.center {
  flex-direction: column;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  animation-delay: 0.6s;
}

.video-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.video-wrapper video {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}



/* Animación clave */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* -------------------- VÍDEO -------------------- */
.video-box {
  flex: 1 1 65%;
  max-width: 720px;
  min-width: 320px;
  position: relative;
}

.video-box h2, .video-box p {
  text-align: center;
  max-width: 90%;
  margin: 0.8rem auto;
}

.video-box.full {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.video-box video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-box video:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}


/* -------------------- TEXTO -------------------- */
.text-box {
  flex: 1 1 30%;
  min-width: 280px;
  max-width: 400px;
  background-color: rgba(240, 240, 240, 0.95);
  padding: 20px;
  border-radius: 10px;
  font-family: "Courier New", Courier, monospace;
  font-size: 1 rem;
  line-height: 1.7;
  color: #222;
  box-shadow: 0 4px 12px rgba(100, 100, 100, 0.2);
  text-align: center;
}

.text-box.center-text {
  margin-top: 20px;
  max-width: 700px;
}

/* -------------------- ENLACES -------------------- */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* -------------------- FOOTER -------------------- */
#main-footer {
  background-color: #cccccc;
  color: #000;
  text-align: center;
  padding: 20px 10px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9rem;
  border-top: 4px solid #888888;
  margin-top: 40px;
}


/* -------------------- MODOS OSCUROS -------------------- */
.video-section.dark {
  background-color: rgba(30, 30, 30, 0.9);
  color: white;
}

.text-box.dark-text {
  background-color: rgba(60, 60, 60, 0.85);
  color: #fff;
}




/* -------------------- MEDIA QUERIES -------------------- */

/* -------------------- MEDIA QUERIES OPTIMIZADAS -------------------- */

@media (max-width: 1024px) {
  .video-section {
    padding: 30px 4%;
    gap: 30px;
  }

  .video-box,
  .video-box.full,
  .text-box {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 768px) {
  header {
    height: 70px;
    font-size: 1.4rem;
    padding: 0 10px;
  }

  header h1 {
    font-size: 1.8rem;
  }

  nav {
    flex-direction: column;
    padding: 10px 0;
  }

  nav ul {
    flex-direction: column;
    gap: 12px;
    padding: 0.5rem 0;
  }

  nav li {
    margin: 0;
  }

  nav a {
    font-size: 1rem;
  }

  main {
    padding-top: 160px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .video-section {
    flex-direction: column !important;
    text-align: center;
    padding: 30px 5%;
    gap: 20px;
  }

  .text-box {
    padding: 15px;
    font-size: 1rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  header {
    height: 60px;
    font-size: 1.2rem;
  }

  header h1 {
    font-size: 1.4rem;
  }

  nav a {
    font-size: 0.95rem;
  }

  .video-section {
    padding: 20px 6%;
    gap: 15px;
  }

  .text-box {
    padding: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .video-box video {
    border-radius: 10px;
  }
}







