/* Importa fuente Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: #0e0e0e;
  color: #d9e4ea;
  overflow-x: hidden;
  padding-top: 72px;
  /* espacio para navbar fijo */
}

body {
  background: url("../assets/fondoIndex.jpg") center/cover no-repeat fixed;
  background-size: cover;
  background-attachment: fixed;
}

/* Navbar */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: #000000;
  /* fondo sólido */
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  /* sombra suave */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}


.navbar-left .logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: #ffffff;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tech-icon {
  width: 24px;
  height: 24px;
  color: #00f5d4;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  color: #c2e9f3;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 6px rgba(0, 245, 212, 0.2);
}

.social-link:hover {
  color: #ffffff;
  background: rgba(0, 245, 212, 0.1);
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.35);
}

.social-link .icon {
  width: 20px;
  height: 20px;
  color: #00f5d4;
}

.menu-toggle {
  display: none;
  /* Oculto por defecto en escritorio */
}

/* Contact container y fondo */
.contact-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5rem 1rem;
  min-height: 100vh;
}

.glass-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 18, 18, 0.02);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1;
  border-radius: 0;
}

.contact-main {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  box-shadow: 0 0 18px rgba(0, 245, 212, 0.2);
  padding: 3rem 2.5rem;
  color: #e0f7fa;
  font-weight: 400;
  max-width: 600px;
  margin: 4rem auto 3rem;
}

/* Sección título */
.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  border-bottom: 3px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 0.4rem;
  letter-spacing: 0.6px;
}

.section-subtitle {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 2rem;
  color: #ffffff;
}

/* Formulario */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form label {
  font-weight: 600;
  font-size: 1rem;
  color: #00f5d4;
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form textarea {
  background: #121212;
  border: 1.8px solid rgba(0, 245, 212, 0.4);
  border-radius: 10px;
  color: #e0f7fa;
  font-size: 1rem;
  font-weight: 400;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s ease;
  font-family: 'Inter', sans-serif;
  resize: vertical;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #ffff;
  background: rgba(0, 245, 212, 0.12);
  box-shadow: 0 0 8px rgba(0, 245, 212, 0.5);
}

/* Placeholder */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #bebcbc;
  font-style: italic;
}

/* Botón */
.submit-btn {
  margin-top: 1rem;
  background: #0e0e0e;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 0.85rem 1.6rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(160, 240, 229, 0.4);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  align-self: center;
  letter-spacing: 0.6px;
}

.submit-btn:hover {
  background: #ffffff;
  color: #0e0e0e;
  box-shadow: 0 6px 22px rgba(255, 255, 255, 0.2);
}

/* Asterisco para campos requeridos */
.required {
  color: #ff6b6b;
  margin-left: 0.15rem;
}

/* Responsive Contact Section */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    margin-left: auto;
    background: none;
    border: none;
    color: #00f5d4;
    font-size: 1.8rem;
    cursor: pointer;
  }

  .hero-split {
    margin-top: 80px;
    min-height: calc(100dvh - 80px);
    height: 100svh;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .navbar-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    gap: 1rem;
  }

  .navbar-menu.active {
    display: flex;
  }

  .navbar-left {
    margin-bottom: 1rem;
    width: 100%;
    justify-content: center;
    display: flex;
  }

  .navbar-right {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    width: 100%;
  }

  .social-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.6rem 0.8rem;
    padding: 0.6rem 1rem;
  }

  .social-link:hover {
    color: #ffffff;
    background: rgba(0, 245, 212, 0.1);
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.35);
  }

  .contact-main {
    margin: 2rem 1rem 3rem;
    padding: 2rem 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .submit-btn {
    width: 100%;
    text-align: center;
  }
}