/* ========================================
   NETSIT - CSS Claro Intermedio y Responsivo
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #e0e6ed; /* Fondo intermedio, agradable */
  color: #333; 
  line-height: 1.6;
}

/* ===== Header ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: #ffffffcc; /* Blanco con transparencia suave */
  border-bottom: 2px solid #2FA4D7;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(6px);
}

header img {
  height: 50px;
}

nav a {
  color: #2FA4D7;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #1b6fa2;
}

/* ===== Hero ===== */
.hero {
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #d6e0f0; /* Azul claro suave */
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #ccc;
}

.hero-text h1 {
  font-size: 48px;
  color: #2FA4D7;
  margin-bottom: 15px;
}

.hero-text p {
  font-size: 20px;
  margin-bottom: 20px;
}

.btn {
  background: #2FA4D7;
  padding: 12px 30px;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
}

.btn:hover {
  background: #1b6fa2;
}

/* ===== Secciones ===== */
.section, .intro, .fotos {
  padding: 100px 20px 80px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.section h2, .intro h2 {
  font-size: 32px;
  margin-bottom: 25px;
  color: #2FA4D7;
}

/* ===== Cards ===== */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 30px;
}

.card {
  background: #ffffff;
  padding: 25px;
  width: 260px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.4s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ===== Galería ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

/* ===== Formulario ===== */
.form {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 30px;
}

.form input, .form textarea {
  width: 90%;
  max-width: 500px;
  padding: 12px;
  margin: 10px 0;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.form button {
  background: #2FA4D7;
  padding: 12px 25px;
  border-radius: 5px;
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.form button:hover {
  background: #1b6fa2;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 40px 20px;
  background: #ffffff;
  border-top: 2px solid #2FA4D7;
  color: #333;
}

/* ===== WhatsApp flotante ===== */
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  padding: 15px 20px;
  border-radius: 50px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  z-index: 1000;
}

/* ===== Mapa ===== */
.map iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 10px;
  margin-top: 30px;
}

/* ===== Canvas de estrellas / animación Starlink ===== */
canvas#stars {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
  width: 100%;
  height: 90vh;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1023px) {
  .hero-text h1 { font-size: 38px; }
  .hero-text p { font-size: 18px; }
  .cards { gap: 15px; }
  .card { width: 100%; }
}

@media (max-width: 767px) {
  header { flex-direction: column; padding: 10px 15px; }
  nav { margin-top: 10px; }
  nav a { margin: 0 10px; display: inline-block; }
  .hero-text h1 { font-size: 28px; }
  .hero-text p { font-size: 16px; }
  .cards { flex-direction: column; gap: 15px; }
  .gallery img { height: 150px; }
  .section, .intro, .fotos { padding: 70px 15px 50px; }
}

@media (min-width: 1024px) {
  .hero-text h1 { font-size: 60px; }
  .hero-text p { font-size: 24px; }
  .cards { justify-content: flex-start; }
  .card { width: 300px; }
  .gallery img { height: 250px; }
  .section, .intro, .fotos { padding: 120px 80px; text-align: left; }
  nav a { font-size: 18px; }
  header { padding: 20px 100px; }
  canvas#stars { height: 600px; }
}