/* ===== ESTILOS GENERALES ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0d1117;
  font-family: Arial, sans-serif;
  margin: 0;
  padding-top: 80px;   /* espacio igual a la altura del menú */
  color: #f5f7fa;
  overflow-x: hidden;
}

section {
  padding: 100px 20px 80px;
  max-width: 1200px;
  margin: 0 auto;
  scroll-margin-top: 80px;
}

/* ===== TÍTULOS ===== */
.contenedor-titulo {
  text-align: center;
  margin-bottom: 60px;
}

h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 38px;
  font-weight: bold;
  letter-spacing: 2px;
  margin: 0;
  color: #00f2fe;
}

h3::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: #00f2fe;
  margin: 10px auto 0;
}


/* ===== MENÚ / ESTRUCTURA NAV NUEVA ===== */
.menunav {
  position: fixed;        /* siempre fijo arriba */
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background:rgb(245, 245, 245);
  padding: 15px 5%;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6); /* sombra para dar profundidad */
}

.logo-nav {
  width: 130px;
}

/* Contenedor de enlaces (Escritorio) */
.menunav ul.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menunav ul.nav-links li {
  margin-left: 25px;
}

.menunav ul.nav-links li a {
  color: #8b949e;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  transition: color 0.3s ease;
}

.menunav ul.nav-links li a:hover {
  color: #1e00fe;
}

/* Ocultar el icono de menú en pantallas de PC */
.menu-icon {
  display: none;
  cursor: pointer;
  width: 30px; 
  height: auto;
}

/* ===== HERO ===== */
header {
  height: calc(100vh - 80px);
  min-height: 500px;
  background: url("../img/fondo.png") no-repeat center center/cover;
  display: flex;
  align-items: flex-end;   /* contenido abajo */
  justify-content: center; /* centrado horizontal */
  padding-bottom: 100px;   /* espacio desde el borde inferior */
}

.titular {
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  text-align: justify;
}

.titular h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 32px;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 15px;
  color: white;
}

.subtitular-tech {
  font-size: 15px;
  color: #a1b0cb;
  margin-bottom: 35px;
}



.btn-tech {
  text-decoration: none;
  color: white;
  padding: 15px 35px;
  background: #00f2fe;
  border-radius: 50px;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: bold;
}

.btn-tech:hover {
  background: #4facfe;
}



/* ===== SOBRE MÍ ===== */
.contenedor_sobremi {
  display: flex;
  align-items: center;
  gap: 50px;
  background: #161b22;
  padding: 40px;
  border-radius: 20px;
  border: 2px solid #00f2fe; /* borde celestito */
  box-shadow: 
    0 0 10px #00f2fe, 
    0 0 20px #00aaff; /* brillo neón */
}

.contenedor_sobremi img {
  width: 320px;
  border-radius: 12px;
}

.texto-sobremi p {
  font-size: 18px;
  line-height: 1.8;
  color: #dadee4;
  text-align: justify;
}

/* ===== SERVICIOS ===== */
.servicios {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* siempre 2 columnas */
  gap: 80px; /* espacio entre cajas */
  justify-items: center; /* centra cada servicio */
}


.servicios_tec {
  background: #161b22;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  border: 2px solid #00f2fe; /* borde celestito */
  box-shadow: 
    0 0 10px #00f2fe, 
    0 0 20px #00aaff; /* brillo neón */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicios_tec h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  margin-bottom: 15px;
  color: white;
}

.servicios_tec p {
  font-size: 15px;
  color: #8b949e;
  margin-bottom: 25px;
}

.servicios_tec img {
  width: 100%;
  max-width: 140px;
  height: 120px;
  object-fit: contain;
}

.servicios_tec:hover {
  transform: translateY(-8px); /* flotar suavemente */
  box-shadow: 
    0 0 20px #00f2fe, 
    0 0 40px #00aaff; /* más brillo al pasar el cursor */
}


/* ===== MAPA INTEGRADO ===== */
.map-container {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid #00aaff; /* marco celeste */
  box-shadow: 0 0 15px rgba(0,170,255,0.5); /* efecto neón */
}

.map-container iframe {
  width: 100%;
  height: 450px;
  display: block;
  border: none; /* mapa limpio y a color */
}


/* ===== PRODUCTOS ===== */
.owl-carousel img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
}


/* ===== CONTACTO ===== */
.contacto {
  background: #161b22;
  border-radius: 20px;
  padding: 60px 40px;
}

.subtitle-form {
  color: #e6eaef;
  font-size: 16px;
  margin-bottom: 40px;
}

.form-contacto {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group.full-width {
  grid-column: span 2;
}

.form-contacto label {
  font-size: 14px;
  font-weight: bold;
  color: white;
  margin-bottom: 8px;
}



.form-contacto input,
.form-contacto textarea {
  background: #1f242c;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 14px;
  color: white;
  font-size: 15px;
}

.form-contacto textarea {
  height: 150px;
  resize: vertical;
}

.btn-enviar {
  grid-column: span 2;
  background: #00f2fe;
  border: none;
  border-radius: 8px;
  padding: 16px;
  color: white;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.btn-enviar:hover {
  background: #4facfe;
}



/* ===== FOOTER ===== */
.footer {
  background: black;
  padding: 60px 5% 30px;
  margin-top: 80px;
  color: white;
  
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  
}

.footer-logo img {
  width: 160px;
}

.footer-section h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  color: white;
  margin-bottom: 25px;
  
}

.footer-section a, .footer-section p {
  color: #8b949e;
  font-size: 14px;
  text-decoration: none;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-section a:hover {
  color: #00f2fe;
}

/* ===== WHATSAPP FLOTANTE ===== */
.botonw a {
  position: fixed;
  bottom: 30px;
  right: 30px;
}

.botonw a img {
  width: 60px;
  height: 60px;
}






/* ==========================================================================
   MÓDULO RESPONSIVE: TABLETS (Pantallas menores a 992px)
   ========================================================================== */
@media (max-width: 992px) {
    /* SOBRE MÍ: Cambia de fila a columna */
    .contenedor_sobremi {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 30px 20px;
    }

    .titular{
      text-align: center;
      margin-top: auto;
    }

    .contenedor_sobremi img {
        width: 100%;
        max-width: 280px; /* Se escala bonito en tablets */
    }

    .texto-sobremi p {
        text-align: left; /* Evita que el texto justificado se vea raro centrado */
    }
}


/* ==========================================================================
   MÓDULO RESPONSIVE: TELÉFONOS (Pantallas menores a 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* GENERALES */
    section {
        padding: 60px 15px 40px; /* Menos espacio muerto en móviles */
    }

    h3 {
        font-size: 28px; /* Títulos más legibles en pantallas chicas */
    }

    /* MENÚ DE NAVEGACIÓN (Hamburguesa preparado) */
    .menu-icon {
        display: block; /* Ahora sí aparece el icono en móviles */
    }

    /* Modificamos los enlaces para que se oculten o colapsen */
    .menunav ul.nav-links {
        display: none; /* Nota: Necesitarás un par de líneas de JS para alternar esto con un "display: flex" o "active" */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #0a0f1a;
        flex-direction: column;
        padding: 20px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .menunav ul.nav-links li {
        margin: 15px 0;
        text-align: center;
    }

    /* HERO (HEADER) */
    header {
        height: auto;
        min-height: calc(100vh - 80px);
        padding-bottom: 60px;
        align-items: center; /* Centramos el contenido verticalmente en celular */
    }

    .titular h1 {
        font-size: 24px;
        line-height: 1.3;
    }

    .subtitular-tech {
        font-size: 14px;
    }

    

    /* FORMULARIO DE CONTACTO */
    .form-contacto {
        grid-template-columns: 1fr; /* Todo pasa a una sola columna */
        gap: 15px;
    }

    .input-group.full-width {
        grid-column: span 1; /* Reseteamos el span para que ocupe solo su fila */
    }

    .btn-enviar {
        grid-column: span 1;
    }

    .contacto {
        padding: 40px 20px;
    }

    /* MAPA INTEGRADO */
    .map-container iframe {
        height: 300px; /* Reducimos la altura en celulares */
    }

    /* FOOTER */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .footer-section a, .footer-section p {
        justify-content: center; /* Centra los iconos de contacto con el texto */
    }

    /* WHATSAPP FLOTANTE */
    .botonw a {
        bottom: 20px;
        right: 20px;
    }

    .botonw a img {
        width: 50px;
        height: 50px; /* Ligeramente más pequeño para no estorbar la lectura */
    }
  .servicios {
    grid-template-columns: 1fr; /* una sola columna en móviles */
  }

}

