/* =======================================================
   SAFETY TALKS – CSS RESPONSIVO COMPLETO
   ======================================================= */

html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  color: #fff;
  background: #292929;
}

/* =======================================================
   🔹 HEADER Y MENÚ SUPERIOR
   ======================================================= */
.top-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  padding: 12px 20px;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-nav img {
  width: 140px;
  height: auto;
}

.nav-menu ul {
  display: flex;
  gap: 35px;
  list-style: none;
}
.nav-menu a {
  text-decoration: none;
  color: #e0e0e0;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}
.nav-menu a:hover { color: #ccc; }
.nav-menu .active a { color: #fff; font-weight: 700; }

/* BOTÓN HAMBURGUESA */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 2000;
}

/* =======================================================
   🔹 HERO VIDEO HOME
   ======================================================= */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}
.hero-content {
  position: absolute;
  bottom: 8%;         /* Lo baja hacia el borde inferior */
  left: 5%;           /* Pegado a la izquierda */
  transform: none;    /* Quitamos el centrado */
  text-align: left;   /* Alineación natural */
  z-index: 2;
}
.hero-content h1 {
  font-size: 3.5rem;
  letter-spacing: 2px;
  color: #fff;
}
.hero-content p { color: #ddd; margin-top: 10px; }
.logo img {
  width: 420px;       /* Ajusta según veas en pantalla */
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

/* =======================================================
   🔹 MENÚ LATERAL HOME
   ======================================================= */
/* ===== SIDE MENU ===== */
.side-menu {
 position: absolute;
  top: 30vh;
  right: 12vw;       /* ← Ajuste ideal */
  transform: none;
  display: flex;
  flex-direction: column;
  gap: 1.2vw;
  z-index: 3;
}

.side-menu a {
  background: rgba(60,60,60,0.85);
  color: #fff;
  padding: 0.9vw 2vw;        /* Escala en pantallas grandes */
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  font-size: 1.1vw;          /* Se ve fino en alta resolución */
  transition: all 0.3s ease;
}
.side-menu a:hover {
  background: #666;
  transform: translateX(-5px);
}

/* =======================================================
   💻 TABLETS (≤1024px)
   ======================================================= */
@media (max-width: 1024px) {
  .hero video { height: 60vh; }
  .hero-content h1 { font-size: 2.8rem; }
  .side-menu { right: 20px; }

  .nosotros-contenido, .mvv {
    max-width: 90%;
    margin: 60px auto;
  }

  .clientes-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
  }
}

/* =======================================================
   📱 MÓVILES (≤768px)
   ======================================================= */
@media (max-width: 768px) {
  body { font-size: 15px; }

  /* Header */
  .menu-toggle { display: block; margin-right: 10px; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 50px;
    right: 0px;
    width: 220px;
    background: rgba(0,0,0,0.9);
    padding: 20px 20px;
    text-align: left;
    z-index: 1500;
  }
  .nav-menu.open { display: block; }
  .nav-menu ul {
    flex-direction: column;
    gap: 15px;
  }
  .nav-menu a {
    display: block;
    color: #fff;
    font-size: 0.9rem;
  }
  .logo img {
    width: 300px;
    margin-bottom: 10px;
}

  /* Hero */
  .hero video { height: 100vh; }
  .hero-content h1 { font-size: 2rem; }
 
   .hero-content {
    position: absolute;
    top: 15%;             /* Ajusta según gusto */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    z-index: 50;
  }

  .hero-content img {
    width: 270px;
    max-width: 300px;
  }

  /* OCULTAR POR COMPLETO EL SIDE MENU DE ESCRITORIO */
  .side-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  /* ======================
     MENÚ FLOTANTE MOBILE
  ====================== */

  .mobile-floating-menu {
    position: absolute;
    top: 45%;              /* Controla qué tan abajo va */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 80%;
    z-index: 60;
  }

  .mobile-floating-menu a {
    background: rgba(60,60,60,0.85);
    padding: 14px 32px;
    border-radius: 40px;
    text-align: center;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
  }

  /* Asegurar que el HEADER de móvil esté siempre arriba */
  header {
    z-index: 100 !important;
    position: absolute;
    top: 0;
    width: 100%;
  }


  /* Nosotros / Misión / Clientes */
  .mvv { display: flex; flex-direction: column; gap: 30px; padding: 0 20px; }
  .nosotros-contenido { padding: 0 15px; text-align: center; }
  .clientes-grid { flex-direction: column; align-items: center; }
  .clientes-grid img { width: 200px; }

  /* Footer */
  footer { text-align: center; padding: 40px 20px; }
  .footer-content {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .hero video,
  .hero::before,
  .hero::after,
  .hero-content {
    pointer-events: none !important;
  }

  .side-menu {
    pointer-events: auto !important;
  }
}

/* =======================================================
   📱 MINI PANTALLAS (≤480px)
   ======================================================= */
@media (max-width: 480px) {
  .top-nav { padding: 8px 0; }
  .side-menu { right: 20%;top: 50%;}
  .nav-menu { right: 0px; width: 185px; }
  .hero video { height: 100vh; }
  .hero-content h1 { font-size: 1.6rem; }
  .hero-content p { font-size: 0.9rem; }
  footer { font-size: 0.85rem; }
}
