main {
  padding-top: 0rem;
}
section {
  scroll-margin-top: 100px;
}
/* ================= BODY ================= */

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111;
  line-height: 1.6;

  /* Empuja el contenido debajo del header fijo */
  padding-top: 80px;
}
/* ================= HEADER ================= */
.logo img {
  height: 50px;      /* ajusta aquí */
  width: auto;
}
body > header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eaeaea;
  z-index: 1000;  
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111;
  cursor: pointer;
}

/* Menú */
.menu ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.menu a {
  text-decoration: none;
  font-weight: 500;
  color: #333;
  position: relative;
  transition: color 0.3s ease;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #2563eb; /* azul tech */
  transition: width 0.3s ease;
}

.menu a:hover {
  color: #2563eb;
}

.menu a:hover::after {
  width: 100%;
}

/* ================= HOME ================= */

#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Texto */
.home-content h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.home-content p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37,99,235,0.3);
}

/* Imagen */
.home-image img {
  width: 100%;
  max-width: 520px;
  margin-left: 10%;
}

/* ================= SERVICIOS ================= */

#servicios {
  background: #f9fafb;
}

.servicios-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

/* Header */
.servicios-header {
  text-align: center;
  margin-bottom: 4rem;
}

.servicios-header h2 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.servicios-header p {
  color: #555;
  font-size: 1.1rem;
}

/* Cards */
.servicios-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.servicio-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.1);
}

/* Icono (placeholder elegante) */
.servicio-icono {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  margin-bottom: 1.5rem;
}
.servicio-icono img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* CLAVE */
}
/* Texto */
.servicio-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.servicio-card p {
  color: #555;
  line-height: 1.6;
}

/* ================= CLIENTES ================= */

#clientes {
  background: #ffffff;
}

.clientes-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

/* Header */
.clientes-header {
  text-align: center;
  margin-bottom: 4rem;
}

.clientes-header h2 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.clientes-header p {
  font-size: 1.1rem;
  color: #555;
}

/* Grid */
.clientes-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

/* Card */
.cliente-card {
  background: #f9fafb;
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cliente-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.1);
}

/* Logo placeholder */
.cliente-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Texto */
.cliente-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.cliente-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ================= CONTACTO ================= */

#contacto {
  background: #f9fafb;
}

.contacto-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;

  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

/* ===== Formulario ===== */

.contacto-form {
  background: #ffffff;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.contacto-form h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.contacto-form form > div {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.contacto-form label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.contacto-form input,
.contacto-form textarea {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-family: inherit;
  font-size: 1rem;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
  outline: none;
  border-color: #2563eb;
}

/* Botón */
.contacto-form button {
  margin-top: 1rem;
  padding: 0.9rem;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contacto-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37,99,235,0.3);
}

/* ===== WhatsApp ===== */

.contacto-whatsapp {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;
  padding: 3rem;
  border-radius: 16px;
  text-align: center;
}

.contacto-whatsapp h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.contacto-whatsapp p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn-whatsapp {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: #22c55e;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(34,197,94,0.4);
}

/* ================= FOOTER ================= */

footer {
  background: #0f172a; /* azul oscuro elegante */
  color: #cbd5f5;
  text-align: center;
  padding: 2rem;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* ================= RESPONSIVE 768px ================= */

@media (max-width: 768px) {

  /* HEADER */
  .header-container {
    padding: 1rem;
  }

  .menu ul {
    gap: 1.2rem;
  }

  /* HOME */
  .home-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-content h1 {
    font-size: 2.4rem;
  }

  .home-image img {
    max-width: 420px;
    margin: 2rem auto 0;
  }

  /* SERVICIOS */
  .servicios-cards {
    grid-template-columns: 1fr;
  }

  /* CLIENTES */
  .clientes-cards {
    grid-template-columns: 1fr;
  }

  /* CONTACTO */
  .contacto-container {
    grid-template-columns: 1fr;
  }

  .contacto-whatsapp {
    margin-top: 2rem;
  }

}
/* ================= RESPONSIVE 480px ================= */

@media (max-width: 480px) {

  /* GENERAL */
  body {
    padding-top: 70px;
  }

  section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* HEADER */
  .logo img {
    height: 32px;
  }

  .menu ul {
    gap: 0.8rem;
  }

  .menu a {
    font-size: 0.9rem;
  }

  /* HOME */
  #home {
    min-height: auto;
  }

  .home-container {
    padding: 3rem 1rem;
  }

  .home-content h1 {
    font-size: 2rem;
  }

  .home-content p {
    font-size: 1rem;
  }

  .btn-primary {
    width: 100%;
    text-align: center;
  }

  .home-image img {
    max-width: 100%;
  }

  /* SERVICIOS */
  .servicios-container,
  .clientes-container,
  .contacto-container {
    padding: 4rem 1rem;
  }

  .servicio-card,
  .cliente-card {
    padding: 2rem;
  }

  /* CONTACTO */
  .contacto-form {
    padding: 2rem;
  }

  .btn-whatsapp {
    width: 100%;
  }

}

/* ===== BOTÓN HAMBURGUESA ===== */

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {

  .menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    width: 100%;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }

  .menu ul {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .menu-toggle {
    display: block;
  }

  .menu.active {
    display: block;
  }
}