/* ====== Estilo general ====== */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
  }
  
  h2, h3, h4 {
    margin-bottom: 10px;
    font-weight: 600;
    color: #1a1a1a;
  }
  
  a {
    color: #0077cc;
    text-decoration: none;
  }
  a:hover {
    text-decoration: underline;
  }
  
  /* ====== Hero ====== */
  .hero {
    background: linear-gradient(135deg, #0077cc, #00aacc);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
  }
  .hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }
  .hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
  }
  
  /* ====== Servicios ====== */
  .services {
    padding: 60px 20px;
    text-align: center;
  }
  .services h3 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #0077cc;
  }
  .services .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
  }
  .services article {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .services article:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  }
  .services h4 {
    color: #0077cc;
    margin-bottom: 15px;
  }
  
  /* ====== Contacto ====== */
  .contact {
    background: #0077cc;
    color: #fff;
    padding: 50px 20px;
    text-align: center;
  }
  .contact a {
    color: #fff;
    font-weight: bold;
  }
  .contact p {
    margin: 10px 0;
  }
  
  /* ====== Footer (ejemplo si quieres añadir estilo) ====== */
  footer {
    background: #111;
    color: #aaa;
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
  }
  footer a {
    color: #00aacc;
  }

/* ====== Header fijo ====== */
.site-header {
  background: #0077cc;
  color: #fff;
  padding: 15px 0;
  position: fixed;   /* cambia sticky por fixed */
  top: 0;
  left: 0;
  width: 100%;       /* ocupa todo el ancho */
  z-index: 1000;     /* se asegura de estar encima */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

main.container {
  margin-top: 90px; /* añade espacio para que el contenido no quede oculto debajo */
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand a {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.main-nav a:hover {
  background: rgba(255,255,255,0.2);
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}


