/* Reset some defaults */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  line-height: 1.6;
}

/* Link Styles */
a {
  text-decoration: none;
  color: inherit;
}

/* Shooting stars container: covers header, pointer-events off */
.shooting-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}
/* Style for each shooting star */
.shooting-star {
  position: absolute;
  width: 4px;
  height: 300px;
  background: linear-gradient(white, rgba(255, 255, 255, 0));
  opacity: 0.8;
  transform: rotate(225deg);
  animation: shoot 1s linear forwards;
}
/* Keyframes for the shooting animation */
@keyframes shoot {
  0% {
    transform: translate(0px, 0px) rotate(225deg);
    opacity: 1;
  }
  100% {
    transform: translate(-400px, 400px) rotate(225deg);
    opacity: 0;
  }
}
/* Ensuring the header content sits above the shooting stars */
h1, p, a.cta {
  position: relative;
  z-index: 10;
}

/* Header / Hero Section con fondo de cielo nocturno y estrellas fugaces */
header {
  position: relative;
  overflow: hidden;
  background: #000; /* fondo negro, como el cielo de noche */
  color: #ffffff;
  text-align: center;
  padding: 100px 20px;
}

/* Estilos para el título y demás elementos del header */
header h1 {
  font-size: 3em;
  margin-bottom: 10px;
  position: relative; /* para que queden por encima de las estrellas */
  z-index: 1;
}

header p {
  font-size: 1.5em;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

header .cta {
  background: #444;
  color: #fff;
  padding: 10px 20px;
  border-radius: 3px;
  display: inline-block;
  position: relative;
  z-index: 1;
}


/* Navigation */
nav {
  background: #444;
  text-align: center;
  padding: 10px 0;
}

nav a {
  color: #fff;
  margin: 0 15px;
  font-weight: 600;
}

/* Section Styles */
section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2em;
}

/* Grid Layout for Cards */
.section-grid {
  display: grid;
  grid-auto-flow: column; /* Fuerza a que los items se organicen en columnas */
  grid-auto-columns: minmax(280px, 1fr); /* Define el ancho mínimo de cada item */
  gap: 20px;
  overflow-x: scroll;  /* Habilita el desplazamiento horizontal */
  overflow-y: hidden;  /* Oculta el overflow vertical */
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.section-grid.active {
  cursor: grabbing;
}

.card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Opcional: estilos específicos para las tarjetitas de contacto */
.contact-card {
  text-align: center;
  background: #f1f1f1;
  padding: 20px;
  border: 1px solid #ddd;
}
.contact-card h3 {
  margin-bottom: 10px;
}
.contact-card a {
  color: #444;
  font-weight: bold;
  text-decoration: underline;
}

/* Footer */
footer {
  background: #444;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

footer p {
  margin: 5px 0;
}

footer a {
  color: #fff;
  margin: 0 5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  header {
    padding: 80px 20px;
  }
  header h1 {
    font-size: 2.5em;
  }
  header p {
    font-size: 1.2em;
  }
}
