/* --- VARIABLES --- */
:root {
  --bg-main: #0f172a;
  --bg-header: #020617;
  --accent: #10B981;
  --text: #f8fafc;
}

/* --- BASE --- */
body {
  font-family: system-ui;
  color: var(--text);
  margin: 0;
  background-color: var(--bg-main);
}

/* --- HEADER --- */
.header-main {
  background-color: var(--bg-header);
  padding: 20px;
  box-shadow: 0px 4px 15px var(--accent);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.title-main {
  font-size: 2rem;
}

.title-second-word {
  color: var(--accent);
}

.nav-main {
  display: flex;
  gap: 20px;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* --- LINKS --- */
a {
  color: #cbd5e1;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

/* --- CONTENEDOR --- */
.contact-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 20px;
}

/* --- CARD --- */
.contact-card {
  background: #020617;
  padding: 40px;
  border-radius: 15px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* --- FORM --- */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, textarea {
  padding: 12px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 1rem;
}

textarea {
  resize: none;
  height: 120px;
}

/* --- BOTÓN --- */
.btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.btn:hover {
  background: white;
  color: var(--accent);
}

/* --- RESPUESTA --- */
.respuesta {
  margin-top: 15px;
  color: var(--accent);
}

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 30px;
  background-color: var(--bg-header);
}

/* 📱 MOBILE */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .nav-main {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background-color: var(--bg-header);
    padding: 20px;
    text-align: center;
  }

  .nav-main.active {
    display: flex;
  }
}

/* 📲 TABLET */
@media (min-width: 769px) and (max-width: 1024px) {
  .contact-card {
    max-width: 600px;
  }
}