:root {
  --bg-color: #0e1117;
  --text-color: #f0f0f0;
  --accent-color: #3498db;
  --font-family: 'Segoe UI', Tahoma, sans-serif;
}

.top-bar {
  background-color: #2c3e50; /* gris oscuro profesional */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  height: 50px;
  font-family: var(--font-family);
  font-weight: 600;
  color: #ecf0f1; /* texto claro */
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar .logo img {
  height: 30px;
  width: auto;
}

.top-bar .nav-links a {
  color: #ecf0f1;
  margin-left: 1.5rem;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.top-bar .nav-links a:hover {
  color: var(--accent-color);
}

.hero {
  height: 90vh; /* 90% altura viewport */
  display: flex;
  justify-content: center;
  align-items: center;
  background: black; /* fondo opcional */
  overflow: hidden;
}

#hero-video {
  max-height: 900vh;
  max-width: 100vw;
  object-fit: contain; /* que no se recorte */
  display: block;
}

#play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(44, 62, 80, 0.8); /* color gris oscuro semitransparente */
  color: #ecf0f1;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease;
}

#play-button:hover {
  background: rgba(52, 152, 219, 0.9); /* acento azul */
}


/* Responsive para que en móvil los enlaces estén un poco más juntos */
@media (max-width: 480px) {
  .top-bar {
    padding: 0.5rem 1rem;
  }
  .top-bar .nav-links a {
    margin-left: 1rem;
    font-size: 0.9rem;
  }
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Fondo patrón diagonal con parallax */
@keyframes scroll-background {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -30000px 0; /* Igual al tamano del patrón */
  }
}

.pattern-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background-image: repeating-linear-gradient(45deg, #3C3C3D 0 4px, transparent 2px 20px);
  background-repeat: repeat;
  background-position: 0 0;
  z-index: -1;
  opacity: 0.25;
  animation: scroll-background 1800s linear infinite; /* Ajusta la velocidad aquí */
  transform: translateY(0);
  will-change: background-position, transform;
}


/* Separador azul entre secciones */
.separator {
  height: 10px;
  background-color: var(--accent-color);
  margin: 0;
}

.separador2 {
  position: relative;
  text-align: center;
  margin: 3rem 0;
}

.separador2::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  border-top: 1px solid #ccc;
  z-index: 1;
}

.separador-texto2 {
  position: relative;
  display: inline-block;
  padding: 0.3rem 1rem;
  background-color: white; /* Cambia si tu fondo no es blanco */
  font-weight: bold;
  color: #555;
  z-index: 2;
}

/* Secciones */
.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
}
#hero-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
}
.video-item {
  width: 100%;
}
.video-item video {
  width: 40%;
  margin: 0 auto;
  display: block;
  border-radius: 8px;
}
.caption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: FFFFFF;
  text-align: center;
}

.gallery {
  padding: 2rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.grid img {
  width: 100%;
  border-radius: 6px;
}

footer {
  background: var(--text-color);
  color: var(--bg-color);
  padding: 1.5rem 2rem;
  text-align: center;
}
footer a {
  color: var(--accent-color);
  margin: 0 1rem;
  text-decoration: none;
  font-weight: bold;
  
  
}

/* Animaciones */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media(max-width: 768px) {
  .video-item {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .video-item video {
    width: 100%;
  }
}

/* ---------- Intro animada ---------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@800&display=swap');

#intro-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-color);      /* mismo fondo oscuro del sitio */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 1;
  transition: opacity 0.6s ease-out;
}

/* cuadrado flexible que se adapta al viewport */
.intro-canvas {
  width: min(70vmin, 450px);
  height: min(70vmin, 450px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#logo-svg {
  width: 100%;
  height: auto;
}

.cls-1 {
  fill: none;
  stroke: var(--text-color); /* trazos claros */
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* texto */
#logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--text-color);
  font-size: 3.5rem;
  margin-top: 1.2rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}


/* keyframes para dibujar los paths */
@keyframes draw {
  to { stroke-dashoffset: 0; }
}

/* estado final: overlay oculto */
#intro-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.video-16-9-wrapper {
  width: 40%;
  max-width:;               /* controla ancho máximo del lienzo 16:9 */
  aspect-ratio: 16 / 9;           /* lienzo 16:9 */
  background-color: black;        /* bordes negros */
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1rem auto;
  border-radius: 8px;
}

.video-16-9-wrapper video {
  height: 100%;                  /* el vídeo ocupa toda la altura del lienzo */
  width: auto;                   /* el ancho se adapta proporcionalmente */
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin: 0;
}

/* Fullscreen sigue igual */
.video-16-9-wrapper video:fullscreen,
.video-16-9-wrapper video:-webkit-full-screen,
.video-16-9-wrapper video:-moz-full-screen {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

