* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}
html{scroll-behavior: smooth;
}



.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ===================================== */
/* HEADER ESTILO INDUSTRIAL PREMIUM */
/* ===================================== */

header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;

  /* degradado oscuro elegante */
  background: linear-gradient(to right, #c3c1c1, #2a2a2a);
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;

  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

/* cuando hace scroll */
header.scrolled {
  background:linear-gradient(to right, #c3c1c1, #2a2a2a);
  backdrop-filter: blur(8px);
}

/* contenedor interno */
.nav {
  width: 90%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===================================== */
/* LOGO */
/* ===================================== */

.logo img {
  height: 80px;
  width: auto;
}

/* ===================================== */
/* MENU */
/* ===================================== */

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: 0.3s ease;
}

/* hover elegante */
nav a:hover {
  color: #9091f2;
}

/* ===================================== */
/* BOTÓN CONTACTO */
/* ===================================== */

.btn-nav {
  background: #3322f4;
  padding: 8px 16px;
  border-radius: 5px;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-nav:hover {
  background: #0e084f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(199, 90, 0, 0.3);
}


body {
  margin:0;
  padding-top: 80px; 
  background: #ffffff;
  color:#333;
  line-height: 1.6;
}



.logo {
  display: flex;
  align-items: center;
  max-width: 180px;
}



nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  color: rgb(255, 255, 255);
  text-decoration: none;
}

.btn-nav {
  background: #3322f4;
  padding: 6px 12px;
  border-radius: 5px;
}

.hero{
  position: relative;
  color: white;
  padding: 120px 0;
text-align: center;
overflow: hidden;
}

/* Imagen de fondo */
.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  background: url("imagenes/ayp_1.jpg") center/cover no-repeat;
  filter: blur(4px);
  transform: translateY(var(--hero-offset, 0)) scale(1.1);
  z-index: 0;
}

/* Capa oscura encima */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

/* Contenido encima */
.hero .container {
  position: relative;
  z-index: 2;
}

.btn-primary {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 28px;
  background: #3322f4;
  color: #ffffff;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #0e084f;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(199, 90, 0, 0.35);
}

.btn-primary:active {
  color: #ffffff !important;
}

.section {
  padding: 80px 0;
  text-align: center;
}

.bg-light {
  background: #f4f4f4;
}

.bg-dark {
  background: #111;
  color: white;
}

.cards {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 8px;
  width: 300px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);

  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 200px;      /* Altura fija */
  object-fit: contain; /* Mantiene proporción */
  display: block;
  margin-bottom: 20px;
}

.card h3 {
  margin-bottom: 10px;
  min-height: 48px; /* Mantiene alineación aunque cambie el texto */
}

.two-columns {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.two-columns img {
  width: 100%;
  max-width: 500px;
  border-radius: 8px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: auto;
}



button {
  padding: 10px;
  border: none;
  background: #00aaff;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

footer {
  padding: 20px;
  background: #000;
  color: white;
  text-align: center;
}
.tecnologia-bg {
  position: relative;
  color: white;
  overflow: hidden;
}

/* GRID 3 COLUMNAS */
.servicios-grid {
  margin-top: 60px;
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

/* CARD INDIVIDUAL */
.servicio-card {
  background: rgba(255, 255, 255, 0.085);
  color:#111;
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 40px 25px;
  width: 300px;
  text-align: center;
  transition: all 0.4s ease;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Hover elegante */
.servicio-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
}

/* Imagen */
.servicio-card img {
  width: 70px;
  margin-bottom: 20px;
}

/* Título */
.servicio-card h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #ffffff;
}

/* Texto */
.servicio-card p {
  font-size: 14px;
  color: #ddd;
}

.tecnologia-bg::before {
  background: rgba(0, 0, 0, 0.65);
  content: "";
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 130%;
  background: url("imagenes/ayp_3.jpg") center/cover no-repeat;
  filter: blur(3px);
  transform: translateY(var(--parallax-offset, 0)) scale(1.1);
  z-index: 0;
}

.tecnologia-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.contenido-tecnologia {
  position: relative;
  z-index: 2;
}

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.lista-tecnologia {
  list-style: none;
  padding: 0;
  margin: 30px auto 0 auto;
  display: inline-block;
  text-align: left;
}

.lista-tecnologia li {
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lista-tecnologia li::before {
  content: "✔";
  color: #00aaff;
  font-weight: bold;
}

.contenido-tecnologia{
    max-width: 800px;
    margin: auto;
}


.contacto-section {
  background: #ffffff;
  color: #333;
  padding: 80px 0;
}

.contacto-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.contacto-info {
  flex: 1;
  min-width: 300px;
}

.contacto-info h2 {
  margin-bottom: 30px;
  font-size: 28px;
}

.contacto-item {
  margin-bottom: 25px;
}

.contacto-item h4 {
  margin-bottom: 8px;
  color: #3322f4;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.contacto-mapa {
  flex: 1;
  min-width: 300px;
  height: 350px;
  border-radius: 8px;
  overflow: hidden;
}

.contacto-info a{
    color: #333;
  text-decoration: none;
}




/* Oculto el botón en escritorio */
.menu-toggle {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 768px) {

  nav ul {
    flex-direction: column;
    background: #111;
    position: absolute;
    top: 100%;   /* mejor que 80px */
    right: 0;
    width: 200px;
    padding: 20px;
    display: none;
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
    height: 100%;
    align-items: center;
  }

}

/* ===================================== */
/* SECCIÓN NOSOTROS RESPONSIVE CORREGIDA */
/* ===================================== */

.nosotros-section {
  display: flex;

  align-items: stretch;
}

/* Ambas columnas flexibles */
.nosotros-texto,
.nosotros-imagen {
  flex: 1;
}

/* COLUMNA TEXTO */
.nosotros-texto {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px;
  text-align: center;
}

/* Control de ancho interno */
.nosotros-texto > * {
  max-width: 650px;
}

.nosotros-texto p {
  margin-bottom: 28px;
  line-height: 1.9;
  color: #555;
}
@media (min-width: 1200px) {
  .nosotros-texto p {
    line-height: 2.1;
  }
}

/* IMAGEN */
.nosotros-imagen {
  background: url("imagenes/ayp_2.jpg") center/cover no-repeat;
}

/* RESPONSIVE MEJORADO */
@media (max-width: 992px) {
  .nosotros-section {
    flex-direction: column;
  }

  .nosotros-imagen {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .nosotros-section {
    flex-direction: column;
  }

  .nosotros-texto {
    padding: 50px 30px;
  }

  .nosotros-imagen {
    height: 300px;
  }
}

/* Línea naranja debajo del título */
.nosotros-texto h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #3322f4;
  margin: 15px auto 30px auto;
  border-radius: 2px;

  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.6s ease;
}

/* Cuando el bloque tenga visible */
.nosotros-texto.animate-line h2::after {
  transform: scaleX(1);
}

/* sin espacio debajo del footer*/

@media (max-width: 768px) {
  .nosotros-section {
    min-height: auto;
  }
}

@media (max-width: 768px) {

  .contacto-section {
    padding: 50px 0;
  }

  .contacto-container {
    flex-direction: column;
  }

  .contacto-mapa {
    height: 250px;
  }

}

html, body{
  margin:0;
  padding: 0;
  overflow-x: hidden;
}