* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #05070d;
  color: white;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* =========================================
   ZONA PRINCIPAL (HERO)
   ========================================= */
.hero {
  min-height: 100vh;
  padding: 40px 8% 40px;
  background: radial-gradient(circle at top, #101827, #05070d 65%);
}

.video-section {
  max-width: 900px;
  margin: 0 auto 50px;
}

.video-box {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 0 45px rgba(0, 140, 255, 0.18);
  background: #111;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.25);
}

.video-box video,
.video-box img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   SECCIÓN DE PORTAFOLIO (TUS APPS)
   ========================================= */
.divisiones-section {
  padding: 20px 0 60px;
}

.divisiones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.division-info {
  padding: 30px;
  text-align: center;
  background: linear-gradient(145deg, #070b14, #101827);
}

.division-info h3 {
  font-size: 24px;
  color: #d4af37;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.division-info p {
  color: #b6bcc8;
  font-size: 14px;
  line-height: 1.6;
  min-height: 85px;
}

.btn-ver-catalogo {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: transparent;
  color: #d4af37;
  border: 1px solid #d4af37;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
}

.btn-ver-catalogo:hover:not([disabled]) {
  background: #d4af37;
  color: #05070d;
}

/* =========================================
   PÁGINAS INTERNAS (YNEPAY, MOCHILA, ETC)
   ========================================= */
.content-container {
  padding: 40px 8%;
  max-width: 1000px;
  margin: 0 auto;
  min-height: 80vh;
}

.product-detail {
  background: linear-gradient(145deg, #070b14, #101827);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 24px;
  padding: 50px;
  margin-bottom: 40px;
  box-shadow: 0 0 45px rgba(0, 140, 255, 0.18);
}

.product-detail.alternative-bg {
  background: linear-gradient(145deg, #101827, #05070d);
}

.product-detail h1 {
  color: #d4af37;
  font-size: 32px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.product-detail .subtitle {
  font-size: 18px;
  color: #008cff;
  margin-bottom: 30px;
  font-weight: bold;
}

.text-block p {
  color: #b6bcc8;
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.8;
  text-align: justify;
}

.text-block h2 {
  color: #d4af37;
  font-size: 22px;
  margin: 35px 0 15px;
}

.text-block ul {
  list-style-position: inside;
  color: #b6bcc8;
  margin-bottom: 20px;
}

.text-block ul li {
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 15.5px;
}

.text-block ul li strong {
  color: white;
}

/* =========================================
   MODAL DE CONTACTO / COTIZACIÓN
   ========================================= */
.modal-interes {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-interes.activo {
  display: flex;
}

.modal-contenido {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(145deg, #070b14, #101827);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 22px;
  padding: 28px;
  position: relative;
  box-shadow: 0 0 45px rgba(0, 140, 255, 0.22);
}

.cerrar-modal {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  color: white;
  border: none;
  font-size: 28px;
  cursor: pointer;
  transition: color 0.2s;
}

.cerrar-modal:hover {
  color: #d4af37;
}

.modal-contenido h2 {
  color: #d4af37;
  margin-bottom: 12px;
  font-size: 20px;
}

.modal-contenido p {
  color: #b6bcc8;
  line-height: 1.5;
  margin-bottom: 20px;
  font-size: 13px;
}

.label-consulta {
  display: block;
  color: #d4af37;
  font-size: 13px;
  margin-bottom: 8px;
  text-align: left;
}

.modal-contenido input,
.modal-contenido textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 140, 255, 0.35);
  background: #05070d;
  color: white;
  outline: none;
  font-family: inherit;
  transition: border-color 0.3s;
}

.modal-contenido input:focus,
.modal-contenido textarea:focus {
  border-color: #d4af37;
}

.modal-contenido textarea {
  min-height: 110px;
  resize: none;
}

.enviar-solicitud {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: #d4af37;
  color: #05070d;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.enviar-solicitud:hover {
  background: transparent;
  color: #d4af37;
}

.mensaje-exito {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

/* =========================================
   AJUSTES GENERALES RESPONSIVOS
   ========================================= */
@media (max-width: 900px) {
  .divisiones-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .hero {
    padding: 20px 5% 40px;
  }

  .product-detail {
    padding: 25px;
  }
  
  .product-detail h1 {
    font-size: 26px;
  }
}

/* =========================================
   NUEVO MENÚ: SIDEBAR (LAPTOP) / TOPBAR (MÓVIL)
   ========================================= */

/* 1. MODO LAPTOP / ESCRITORIO (Pantallas grandes) */
@media (min-width: 769px) {
  body {
    /* Mueve todo el contenido hacia la derecha para hacerle espacio a la barra lateral */
    padding-left: 260px; 
  }
  
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh; /* Ocupa toda la altura */
    background-color: #05070d; /* Fondo negro */
    border-right: 1px solid rgba(212, 175, 55, 0.2); /* Borde dorado tenue */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 40px;
    z-index: 1000;
  }

  .navbar .logo {
    color: #d4af37;
    font-size: 28px;
    font-weight: bold;
    padding: 0 20px 30px 25px;
    width: 100%;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 20px;
    letter-spacing: 2px;
  }

  /* Ocultar cosas de celular en la PC */
  .menu-toggle, .close-menu { display: none; } 
  #overlayMenu { display: none !important; }

  #menuPrincipal { width: 100%; display: block; }
  #menuPrincipal ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
  
  #menuPrincipal ul li a {
    display: block;
    padding: 16px 30px;
    color: #b6bcc8;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  #menuPrincipal ul li a:hover, #menuPrincipal ul li a.active {
    background-color: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    border-left: 4px solid #d4af37;
  }
}

/* 2. MODO CELULAR (Pantallas pequeñas) */
@media (max-width: 768px) {
  body { 
    /* Empuja el contenido hacia abajo para que no lo tape la barra superior */
    padding-top: 75px; 
  }
  
  .navbar {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    height: 75px;
    background-color: #05070d;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    justify-content: space-between; /* Logo izquierda, Icono derecha */
    align-items: center;
    padding: 0 25px;
    z-index: 1000;
  }

  .navbar .logo { 
    color: #d4af37; 
    font-size: 24px; 
    font-weight: bold; 
    letter-spacing: 1px;
  }
  
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    color: #d4af37; /* Icono dorado */
    font-size: 32px;
    cursor: pointer;
  }

  /* El panel que se desliza desde la derecha */
  #menuPrincipal {
    position: fixed;
    top: 0;
    right: -300px; /* Escondido afuera de la pantalla */
    width: 260px;
    height: 100vh;
    background-color: #070b14;
    border-left: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 1001;
    transition: right 0.3s ease;
    padding-top: 80px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.8);
  }

  #menuPrincipal.activo { right: 0; } 
  
  #menuPrincipal ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
  #menuPrincipal ul li a {
    display: block;
    padding: 18px 25px;
    color: #b6bcc8;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-transform: uppercase;
    font-size: 14px;
  }

  #menuPrincipal ul li a:hover, #menuPrincipal ul li a.active {
    color: #d4af37;
  }

  .close-menu {
    display: block; position: absolute; top: 15px; right: 25px;
    font-size: 40px; background: none; border: none; color: #d4af37; cursor: pointer;
  }

  #overlayMenu { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 999; }
  #overlayMenu.activo { display: block; }
}