/* =========================
   🎨 ESTILOS GENERALES
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    background-image: url(wormz.png);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background-color: #ffffff;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================
   🧭 HEADER
========================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #1f4fa4;
  color: #fff;
  padding: 5px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.header-spacer {
  height: 80px; /* Para que el contenido no quede tapado por el header */
}

.header-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

header img {
  height: 50px;
}

header h1 {
  font-family: "Bangers", cursive;
  font-size: 40px;
  margin-left: 525px;
  margin-top: 9px;
  color: aqua;
}

/* =========================
   🌊 HERO
========================= */
.hero {
  position: relative;
  height: 100vh; /* ocupa toda la altura de la pantalla */
  background: 
    linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), /* capa semitransparente */
    url("fondo_hero.png") center/cover no-repeat; /* tu imagen */
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
}

.hero-content {
  z-index: 2;
  max-width: 600px;
  padding: 20px;
}

.hero h1 {
  font-family: "Bangers", cursive;
  font-size: 60px;
  margin-bottom: 10px;
  color: #00c8ff; /* celeste brillante */
}

.hero p {
  font-size: 20px;
  margin-bottom: 25px;
}

.btn-hero {
  display: inline-block;
  background-color: #1f4fa4;
  color: #fff;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-hero:hover {
  background-color: #008cd1;
}

/* Asegura que el carrusel quede justo debajo */
.hero + .carousel {
  margin-top: 100px;
}

#proyectos {
  padding: 40px 0;     /* espacio arriba y abajo */
  text-align: center;  /* centra el contenido inline como <h2> */
}

#proyectos h2 {
  color: #1f4fa4;
  font-family: "Bangers", cursive;
  font-size: 36px;
  margin-bottom: 200px;
  font-weight: bold;
  text-transform: uppercase;
  margin: 0 auto;
}


nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: #fff;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: aqua;
}

/* Botón menú (responsive) */
.navbar-toggler {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: #fff;
}

/* =========================
   📸 CARRUSEL
========================= */
.carousel-item img {
  height: 500px;
  object-fit: cover;
  margin-top: 20px; /* para que no quede tapado por el header */
}

/* =========================
   🏠 SECCIÓN NOSOTROS
========================= */
#nosotros {
  padding: 50px 0;
}

#nosotros h2 {
  color: #1f4fa4;
  font-family: "Bangers", cursive;
  font-size: 36px;
  margin-bottom: 10px;
}

#nosotros p {
  font-size: 1.125rem; /* Tamaño de letra un poco más grande */
  line-height: 1.8;
  color: #333; /* Gris oscuro para mejor lectura */
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.ubicacion-img {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  display: block;
  border-radius: 10px;
}

/* =========================
   📍 SECCIÓN CONTACTO
========================= */
.contacto {
  padding: 50px 20px;
  text-align: center;
}

.contacto h2 {
  font-family: "Bangers", cursive;
  font-size: 36px;
  margin-bottom: 10px;
  color: #1f4fa4;
}

.contacto h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.contenedor-contacto {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.mapa {
  flex: 1 1 400px;
}

.info-contacto {
  flex: 1 1 400px;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* dos columnas iguales */
  grid-template-rows: repeat(2, 1fr);    /* dos filas iguales */
  gap: 20px;
  height: 350px; /* igual que el alto del mapa */
  box-sizing: border-box;
}

.info-contacto .item {
  background: linear-gradient(135deg, #eaf2f9 0%, #d1e1f0 100%);
  box-shadow: 0 2px 10px rgba(0, 30, 60, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  padding: 20px;
  border-radius: 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.info-contacto h4 {
  margin-bottom: 5px;
  color: #1f4fa4;
}

.info-contacto .icon {
  font-size: 15px;
  margin-right: 10px;
}

.redes img {
  width: 20px;
  transition: transform 0.3s;
  margin-bottom: 10px;
}

.redes img:hover {
  transform: scale(1.2);
}

/* =========================
   💬 WHATSAPP
========================= */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.whatsapp-button img {
  width: 60px;
  height: 60px;
  transition: transform 0.3s;
}

.whatsapp-button img:hover {
  transform: scale(1.1);
}

/* =========================
   🦶 FOOTER
========================= */
footer {
  text-align: center;
  background: linear-gradient(135deg, #d0e2ff 0%, #b5d4ff 100%);
  padding: 20px 0;
  font-size: 14px;
}

footer a {
  color: #1f4fa4;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
}

/* =========================
   📱 RESPONSIVE
========================= */
@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    background-color: #1f4fa4;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    text-align: center;
    padding: 20px 0;
  }

  nav a {
    display: block;
    padding: 10px 0;
  }

  .navbar-toggler {
    display: block;
  }

  .carousel-item img {
    height: 300px;
  }
}

/* RESPONSIVE: para pantallas chicas (celulares) */
@media screen and (max-width: 576px) {
  #nosotros h2 {
    font-size: 2rem;
  }

  #nosotros p {
    font-size: 1rem;
    padding: 0 10px;
  }
}

