
:root {
  --rojo: #8F2628;
  --gris-oscuro: #6A7778;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: Arial, sans-serif;
  overflow-y: auto;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

.section {
  position: relative;
  /* min-height: 110vh; */ /* Remove this line */
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  overflow: hidden;
}
.fullscreen-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  z-index: -2;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: -1;
}

.overlay-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 900px;
  padding: 20px;
  text-align: center;
}

.logo {
  max-width: 260px;
  opacity: 0;
  transform: translateY(10px);
}

h2 {
  color: var(--rojo);
  margin-bottom: 15px;
  font-size: 2.2rem;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  margin-top: 14px;
  background: var(--rojo);
  color: white;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s, transform 0.15s;
}
.btn:hover {
  background: #6b1d1e;
  transform: translateY(-2px);
}

footer {
  background: var(--gris-oscuro);
  color: white;
  text-align: center;
  padding: 15px;
}

/* Dots */
.dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
}
.dots .dot.active {
  background: var(--rojo);
  transform: scale(1.2);
}

/* Logo fijo pequeño */
#logo-fixed {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 10000;
  opacity: 0;
  transform: translateX(-30px) scale(0.6);
  pointer-events: none;
}
#logo-fixed img {
  max-width: 80px;
  height: auto;
}

/* Agregar esto al final del archivo */
#logo-fixed {
  display: block; /* Asegurar que es visible */
}

.overlay-content .logo {
  opacity: 1 !important; /* Forzar visibilidad inicial */
  transform: none !important;
  animation: fadeIn 1.5s ease-out; /* Animación alternativa */
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* En styles.css */
@media (max-width: 768px) {
  .section {
    min-height: 100vh;
    height: auto;
    scroll-snap-align: none;
  }
  
  .overlay-content {
    padding: 40px 20px;
  }
  
  .dots {
    display: none; /* Ocultar dots en móvil */
  }
  
  /* Reducir animaciones en móvil */
  .overlay-content > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}


/* Estilos para la página de equipo */
.team-hero {
  position: relative;
}

.team-hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.team-hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Efecto hover mejorado para miembros */
.team-member {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.team-member:hover {
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Lightbox personalizado */
.lightbox .lb-image {
  border: 5px solid var(--rojo);
}

.lb-data .lb-caption {
  font-size: 1.2rem;
  color: white;
}

/* Responsive */
@media (max-width: 600px) {
  .team-hero {
    height: 50vh;
  }
  
  .team-hero-content h1 {
    font-size: 2rem;
  }
  
  .member-image {
    height: 250px;
  }
}