/* ==========================
   RESET GLOBAL
========================== */
/* Elimina márgenes y paddings predeterminados y usa box-sizing border-box */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Altura completa para html y body */
html, body {
  height: 100%;
}

/* ==========================
   BODY
========================== */
/* Estructura general con columna y altura mínima, fuente, colores y fondo */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Montserrat", system-ui, sans-serif;
  background: #000;
  color: #e6f7ff;
}

/* ==========================
   NAVBAR
========================== */
header {
  background-color: #000;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 40px;
  height: auto;
}

.logo-text {
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #1e90ff;
}

/* Icono hamburguesa responsive */
.menu-icon {
  display: none;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}

/* ==========================
   MAIN / CONTACTO
========================== */
main {
  flex: 1; /* ocupa todo el espacio sobrante */
  padding: 20px;
}

/* Sección de contacto */
.contacto {
  flex: 1;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.contacto-title {
  font-size: 36px;
  margin-top: 1rem;
  margin-bottom: 10px;
  text-align: center;
}

.contacto-subtitle {
  font-size: 2rem;
  color: #aaa;
  margin-bottom: 2rem;
  margin-top: 1rem;
  text-align: center;
}

.contacto-grid {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  text-align: left;
}

/* Formulario y tarjeta de info */
.contacto-form,
.contacto-info {
  background: #111;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  flex: 1;
  min-width: 280px;
  max-width: 500px;
}

.contacto-form label {
  display: block;
  font-weight: bold;
  margin-top: 15px;
  color: #fff;
}

.contacto-form input,
.contacto-form textarea {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: 1px solid #1e90ff;
  border-radius: 8px;
  font-size: 15px;
  background: #000;
  color: #fff;
}

.contacto-form button {
  margin-top: 20px;
  width: 100%;
}

/* Bloques de información de contacto */
.contacto-info h2 {
  margin-bottom: 15px;
  font-size: 22px;
}

.info-block {
  background: #000;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  margin-bottom: 15px;
}

.info-block strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  color: #1e90ff;
}

.info-block a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

.info-block a:hover {
  color: #1e90ff;
  text-decoration: underline;
}

/* Redes sociales dentro de contacto */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links a {
  background: #1e1e1e;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.3s, color 0.3s;
  color: #fff;
}

.social-links a:hover {
  background: #1e90ff;
  color: #fff;
}

/* ==========================
   TARJETA CONSTRUCCIÓN HOME
========================== */
.construct-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  min-height: calc(100vh - 80px); /* altura menos navbar */
  background: #111;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.5);
  animation: fadeInCard 1s ease-out;
}

.construct-title {
  font-size: 3rem;
  margin: 20px 0 10px;
  color: #fff;
}

.construct-subtitle {
  font-size: 1.5rem;
  color: #aaa;
  margin-bottom: 30px;
}


/* Animación fade-in de la tarjeta */
@keyframes fadeInCard {
  0% { opacity: 0; transform: translateY(-50px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ==========================
   FOOTER
========================== */
footer {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
}

footer .social a {
  margin: 0 10px;
  color: #1e90ff;
  text-decoration: none;
}

footer .social a:hover {
  text-decoration: underline;
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    background-color: #000;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .menu-icon {
    display: block;
  }

  .contacto-grid {
    flex-direction: column;
    align-items: center;
  }
}
