/* ====== Fuente Montserrat Semibold para títulos ====== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600; /* Semibold */
}

/* ====== RESETEO BÁSICO ====== */
body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  height: 100%;
  overflow-x: hidden;
}

/* ====== VIDEO DE FONDO ====== */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* ====== HEADER ====== */
header {
  width: 100%;
  background: #000; /* fondo negro siempre */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transform: translateY(-100%);
  animation: slideDown 1s ease forwards;
}

/* Altura del header y separación global */
:root { --header-h: 100px; }
@media (max-width: 900px) { :root { --header-h: 80px; } }
body { padding-top: var(--header-h); }
/* Mantener banner como estaba */
.banner-inicio { margin-top: 0; }

@keyframes slideDown {
  to {
    transform: translateY(0);
  }
}

.logo {
  height: 80px;
  margin-right: 20px;
  transform: scale(0);
  animation: zoomIn 1s ease forwards;
  animation-delay: 0.5s;
}

@keyframes zoomIn {
  to {
    transform: scale(1);
  }
}

/* ====== HEADER ====== */
header {
  width: 100%;
  background: #000;              /* fondo negro siempre */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  position: fixed;                /* fijo para que acompañe el scroll */
  top: 0;
  left: 0;
  z-index: 10000;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

/* Fondo negro al hacer scroll */
header.header-solid { background: #000 !important; background-color: #000 !important; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
/* Alternativa robusta: clase en body */
body.scrolled header { background: #000 !important; box-shadow: 0 2px 10px rgba(0,0,0,0.3) !important; }

@keyframes slideDown {
  to {
    transform: translateY(0);
  }
}

.logo {
  height: 80px;
  margin-right: 20px;
  transform: scale(0);
  animation: zoomIn 1s ease forwards;
  animation-delay: 0.5s;
}

@keyframes zoomIn {
  to {
    transform: scale(1);
  }
}

/* ====== MENÚ ====== */
nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 40px;
}

nav ul li {
  margin: 0 15px;
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInUp 0.8s ease forwards;
}

nav ul li:nth-child(1) { animation-delay: 0.5s; }
nav ul li:nth-child(2) { animation-delay: 0.7s; }
nav ul li:nth-child(3) { animation-delay: 0.9s; }
nav ul li:nth-child(4) { animation-delay: 1.1s; }
nav ul li:nth-child(5) { animation-delay: 1.3s; }
nav ul li:nth-child(6) { animation-delay: 1.5s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav ul li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #F23805;
}

/* ====== BANNER ====== */
.banner-inicio {
  position: relative;
  width: 100%;
  height: 50vh; /* ocupa toda la pantalla */
  background: url("../img/serviciosbaner.png") no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 80px;
  overflow: hidden;
  animation: dropFromSky 1.5s ease forwards;
}

.banner-inicio::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4); /* capa oscura para contraste */
}

.banner-texto {
  position: relative;
  z-index: 2;
  color: white;
}

.banner-texto h1 {
  font-size: 70px;
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0;
  animation: dropFromSkyText 1.5s ease forwards;
  animation-delay: 0.3s; /* empieza un poco después del banner */
}

/* ====== ANIMACIÓN DEL TÍTULO ====== */
@keyframes dropFromSkyText {
  0% {
    transform: translateY(-200px);
    opacity: 0;
  }
  60% {
    transform: translateY(30px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ====== BUNKER ====== */
.bunker {
  width: 100%;
  height: 100vh; /* 🔹 ocupa toda la pantalla */
  margin: 0;     /* 🔹 sin márgenes */
  padding: 0;    /* 🔹 sin padding */
  display: flex;
  justify-content: center;
  align-items: center;
  
}

.bunker-img.desktop {
  display: block;
}

.bunker-img.mobile {
  display: none;
}



.bunker-contenido {
  background: rgba(0, 0, 0, 0.9); 
  width: 100%;
  height: 100%;
  border-radius: 0;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* ✅ centra verticalmente */
  align-items: center;       /* ✅ centra horizontalmente */
  padding: 0;                /* ❌ quita padding que empujaba hacia abajo */
}

.bunker-contenido h2 {
  font-size: 36px;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: dropFromSkyText 1.5s ease forwards;
}

.bunker-img {
  max-width: 100%;     /* 🔹 nunca más ancha que el contenedor */
  max-height: 80%;    /* 🔹 nunca más alta que el contenedor */
  height: auto;        /* 🔹 mantiene proporción */
  object-fit: contain; /* 🔹 ajusta la imagen dentro sin deformarse */
  border-radius: 15px;
  animation: fadeIn 2s ease forwards;
}



/* ====== ANIMACIONES ====== */
@keyframes dropFromSkyText {
  0% { transform: translateY(-200px); opacity: 0; }
  60% { transform: translateY(20px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ====== BUNKER NEGRO ====== */
.bunker-negro {
  width: 100%;
  height: 100vh; /* ocupa toda la altura de la página */
  display: flex;
  background-color: #fff; /* fondo negro */
  color: #000;
}

/* Columna izquierda (imagen) */
.bunker-izquierda {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bunker-img {
  width: 100%;
  max-width: 1000px; /* imagen grande */
  height: auto;
  border-radius: 15px;
  animation: fadeIn 2s ease forwards;
}

/* Columna derecha (texto) */
.bunker-derecha {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.bunker-derecha h2 {
  font-size: 48px;
  text-transform: uppercase;
  letter-spacing: 3px;
  animation: dropFromSkyText 1.5s ease forwards;
}

/* ====== ANIMACIONES ====== */
@keyframes dropFromSkyText {
  0% { transform: translateY(-200px); opacity: 0; }
  60% { transform: translateY(20px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ====== BUNKER SIMPLE (SIN ANIMACIONES) ====== */
.bunker-simple {
  width: 100%;
  height: 100vh;          /* ocupa casi toda la pantalla */
  display: flex;
  background: rgba(0, 0, 0, 0.9); /* fondo negro con ligera transparencia */
  color: #ffffff;
}

/* Columna izquierda (título) */
.bunker-simple-izq {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.bunker-simple-izq h2 {
  font-size: 42px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Columna derecha (imagen) */
.bunker-simple-der {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bunker-simple-img {
  width: 100%;        /* imagen grande */
  max-width: 1000px;  /* límite de tamaño */
  height: auto;
  border-radius: 10px;
}

/* ====== BUNKER CENTRADO ====== */
.bunker-centro {
  width: 100%;
  height: 120vh;                 /* ocupa toda la altura de la pantalla */
  background-color: #fff;        /* fondo negro */
  color: #000;
  display: flex;
  flex-direction: column;        /* 🔹 título arriba, imagen abajo */
  justify-content: center;       /* centra verticalmente */
  align-items: center;           /* centra horizontalmente */
  text-align: center;
  gap: 30px;                     /* espacio entre título e imagen */
}

.bunker-centro h2 {
  font-size: 48px;
  text-transform: uppercase;
  letter-spacing: 3px;
  animation: dropFromSkyText 1.5s ease forwards;
}

.bunker-centro .bunker-centro-img {
  width: 100%;
  max-width: 1000px;              /* ajusta tamaño de la imagen */
  height: auto;
  border-radius: 15px;
  animation: fadeIn 2s ease forwards;
}

.bunker-centro .btn-servicios {
  display: inline-block;
  padding: 15px 30px;
  margin-top: 10px;
  background: #F23805;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s, background 0.3s;
}

.bunker-centro .btn-servicios:hover {
  background: #d12e04;
  transform: scale(1.1);
}

/* ====== FOOTER ====== */
footer {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  z-index: 1;
  background: rgba(0,0,0,0.6);
}

.footer-top {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.footer-item h3 {
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: bold;
  position: relative;
}

.footer-item h3::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background-color: #F23805;
  border-radius: 3px;
}

.footer-item p {
  font-size: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 15px;
  font-size: 14px;
}

.social-icons {
  margin: 15px 0;
}

.social-icons a {
  margin: 0 10px;
  font-size: 22px;
  color: #fff;
  transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: #1e90ff;
}

.footer-title-link {
  display: block;
  font-size: 40px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  margin-bottom: 30px;
  text-align: center;
  transition: color 0.3s, transform 0.3s;
}

.footer-title-link:hover {
  color: #F23805;
  transform: scale(1.05);
}

/* ====== BARRA INFERIOR IZQUIERDA ====== */
.barra-redes {
  position: fixed;
  bottom: 20px;                  /* 🔹 se pega abajo */
  left: 20px;                    /* 🔹 se pega a la izquierda */
  background: rgba(0, 0, 0, 0.9); /* fondo negro */
  padding: 10px 15px;
  border-radius: 10px;           /* bordes redondeados */
  display: flex;
  flex-direction: row;           /* 🔹 en fila horizontal */
  align-items: center;
  gap: 15px;                     /* separación entre iconos */
  z-index: 2000;
}

/* Íconos dentro de la barra */
.barra-redes a img {
  width: 35px;
  height: 35px;
  transition: transform 0.3s, filter 0.3s;
  cursor: pointer;
}

/* Hover: efecto zoom y color */
.barra-redes a img:hover {
  transform: scale(1.2);
  filter: brightness(1) invert(0);   /* recupera color original */
}

/* ====== ICONOS DE REDES EN EL FOOTER ====== */
.footer-bottom .social-icons {
  display: flex;
  justify-content: center;
  gap: 20px; /* separación entre íconos */
  margin: 15px 0;
}

.footer-bottom .social-icons a img {
  width: 35px;
  height: 35px;
  transition: transform 0.3s, filter 0.3s;
  cursor: pointer;
}

.footer-bottom .social-icons a img:hover {
  transform: scale(1.2);
  filter: brightness(1) invert(0); /* recupera color original */
}


/* ====== MARCA DE AGUA ====== */
.marca-agua {
  position: fixed;
  bottom: 20px;
  right: 20px;
  opacity: 0.4;
  z-index: 9999;
  pointer-events: none;
  width: 250px;
}

/* Ocultar botón hamburguesa en pantallas grandes (PC) */
#menu-toggle {
  display: none;
  font-size: 30px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 110;
  position: fixed;
  top: 15px;
  right: 20px;
}

@media (max-width: 768px) {

  /* Bunker de Niveles de Seguridad */
  .bunker-niveles {
    height: auto !important;
    min-height: 0 !important;  /* quita mínimos altos */
    padding: 10px 5px !important; 
    margin: 0 auto !important;
    box-sizing: border-box;
    overflow: hidden; /* evita huecos extras */
  }

  .bunker-niveles .bunker-contenido {
    padding: 10px 0 !important;
    margin: 0 auto !important;
  }

  /* Ajustar el grupo de niveles */
  .bunker-niveles .niveles-container {
    display: flex;
    flex-direction: column; /* apilados uno debajo del otro */
    gap: 12px; /* poca separación */
    align-items: center;
  }

  .bunker-niveles .nivel-card {
    margin: 0 auto !important;
    padding: 8px !important;
    width: 95%;
    max-width: 320px;
  }


  /* Evitar overflow horizontal global */
  body, html {
    overflow-x: hidden;
  }

  /* Header */
  header {
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 100;
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  #menu-toggle {
    display: block;
    font-size: 2.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 110;
    position: relative;
  }

  /* Menú hamburguesa */
  nav#menu-nav {
    position: fixed;
    top: 0;
    right: -260px; /* oculto fuera de pantalla */
    width: 260px;
    height: 100vh;
    background-color: rgba(0,0,0,0.95);
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    transition: right 0.3s ease;
    z-index: 105;
    box-sizing: border-box;
  }

  nav#menu-nav.active {
    right: 0;
  }

  nav#menu-nav ul {
    flex-direction: column;
    gap: 20px;
    padding-left: 20px;
    margin: 0;
  }

  nav#menu-nav ul li {
    margin: 0;
    opacity: 1 !important;
    transform: translateY(0) !important;
    list-style: none;
  }

  nav#menu-nav ul li a {
    font-size: 1.2rem;
    color: white;
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  nav#menu-nav ul li a:hover {
    color: #F23805;
  }

  /* Títulos */
  .banner-texto h1 {
    font-size: 1.75rem !important;
    padding: 0 15px;
    text-align: center;
    letter-spacing: 1.5px;
    max-width: 100vw;
    box-sizing: border-box;
    margin: 0 auto 15px;
  }

  .bunker-contenido h2,
  .bunker-derecha h2,
  .bunker-simple-izq h2,
  .bunker-centro h2 {
    font-size: 1.375rem !important;
    padding: 0 15px;
    text-align: center;
    letter-spacing: 1.5px;
    max-width: 100vw;
    box-sizing: border-box;
    margin: 0 auto 15px;
  }

  /* Imágenes */
  .bunker-img,
  .bunker-simple-img,
  .bunker-centro-img,
  #Imagen\ representativa {
    width: 90%;
    max-width: 400px;
    height: auto;
    margin: 0 auto 20px auto;
    display: block;
    border-radius: 10px;
    object-fit: contain;
    box-sizing: border-box;
  }

  #Imagen\ representativa {
    max-width: 300px;
  }

  /* Columnas apiladas */
  .bunker-negro,
  .bunker-simple {
    flex-direction: column;
    height: auto;
    padding: 20px 0;
    box-sizing: border-box;
  }

  .bunker-izquierda,
  .bunker-derecha,
  .bunker-simple-izq,
  .bunker-simple-der {
    flex: none;
    width: 100%;
    margin-bottom: 20px;
    box-sizing: border-box;
  }

  /* Ajustes de padding y altura */
  .banner-inicio {
    padding-left: 15px !important;
    height: 40vh !important;
    box-sizing: border-box;
  }

  .bunker-contenido {
    padding-top: 40px !important;
    box-sizing: border-box;
  }

  .bunker-img.desktop {
    display: none; /* oculta en mobile */
  }
  
  .bunker-img.mobile {
    display: block; /* muestra en mobile */
    max-width: 100%;
    height: auto;
  }

  .bunker-centro {
    height: auto !important;
    padding: 30px 15px !important;
    box-sizing: border-box;
  }

  .bunker-centro .btn-servicios {
    padding: 12px 25px !important;
    font-size: 1rem !important;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    cursor: pointer;
  }
}

/* ====== Responsive adjustments (aligned with Inicio/estilos.css) ====== */
@media (max-width: 768px) {
  /* Header / logo / menu */
  header { padding: 8px 12px; }
  .logo { height: 60px; margin-right: 10px; }
  #menu-toggle { display: block; }
  nav ul { flex-direction: column; gap: 12px; align-items: center; }

  /* Banners */
  .banner-nosotros, .banner-inicio, .banner, .img-section { height: 220px; }

  /* Layouts become single column */
  .info-container, .servicios-grid, .clientes-logos, .servicios-container {
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 20px;
    padding: 18px;
  }

  /* Images scale nicely */
  .info-imagen img, .servicio-img img, .logo-cliente, .img-rectangular img { max-width: 100%; height: auto; }

  /* Buttons full width on small screens */
  .boton, .boton-info, .boton-ver-todos, .servicio-btn, .btn-info { width: 100%; display: inline-block; box-sizing: border-box; }

  /* Footer and modal */
  footer .footer-top { flex-direction: column; gap: 18px; }
  .modal-content { width: 92%; max-width: 520px; }

  /* Bottom-left social bar & watermark */
  .barra-redes { left: 12px; bottom: 18px; }
  .marca-agua { display: none; }
}

@media (min-width: 769px) {
  /* Desktop: show desktop menu, larger logo and banner */
  #menu-toggle { display: none; }
  nav ul { display: flex; flex-direction: row; gap: 30px; }
  .logo { height: 80px; }
  .banner-nosotros, .banner-inicio, .banner, .img-section { height: 320px; }

  /* Multi-column grids on desktop */
  .servicios-grid { grid-template-columns: repeat(3, 1fr); }
  .clientes-logos { flex-wrap: nowrap; align-items: center; }
  .info-container { flex-direction: row; align-items: center; gap: 40px; }

  /* Watermark visible on large screens */
  .marca-agua { display: block; opacity: 0.08; }
}
/* ====== Footer Color Overrides (White BG, Black Text) ====== */
footer {
  background: #ffffff !important;
  color: #000000 !important;
}
footer a,
footer .footer-title-link,
footer .footer-item h3,
footer .footer-item p,
footer .footer-bottom {
  color: #000000 !important;
}
/* Remove any dark overlay on footer */
footer::before {
  display: none !important;
  background: transparent !important;
}
