/* ============================
   VARIABLES Y BASE
============================ */
:root {
  --primary: #5f85db;
  --secondary: #c89eff;
  --bg: #0f0f17;
  --text: #fff;
  --form-bg: #1a1a25;
  --input-bg: #222233;
  --border: #444;
  --hover: #7da2f8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================
   HEADER
============================ */
header {
  background: var(--form-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 25px;
  position: relative;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

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

header .logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

header .logo h1 {
  font-size: 20px;
  color: var(--secondary);
}

/* NAV LINKS */
nav {
  display: flex;
  gap: 25px;
}

nav a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* BURGER MENU */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  width: 25px;
  height: 3px;
  background: var(--text);
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* Burger animación */
.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive header */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  nav {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--form-bg);
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  nav.active {
    max-height: 200px;
  }

  nav a {
    padding: 10px 0;
    width: 100%;
    text-align: center;
    border-top: 1px solid var(--border);
  }
}

/* ============================
   MAIN CONTENT
============================ */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 10px;
}

.container {
  background: var(--form-bg);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.container h2 {
  color: var(--secondary);
  margin-bottom: 20px;
}

/* LOGO EN FORMULARIOS */
.logo-container img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
}

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

.hidden {
  display: none;
}

.input-icon {
  position: relative;
  width: 100%;
}

.input-icon i {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: var(--secondary);
}

.input-icon input {
  width: 100%;
  padding: 10px 10px 10px 35px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border 0.3s ease;
}

.input-icon input:focus {
  border-color: var(--primary);
}

/* SELECT */
select {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px;
  font-size: 15px;
  outline: none;
  transition: border 0.3s ease;
}
select:focus {
  border-color: var(--primary);
}

/* BOTONES */
button {
  background: var(--primary);
  color: var(--text);
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
  background: var(--hover);
  transform: scale(1.03);
}

/* LINKS */
p {
  font-size: 14px;
  color: #aaa;
}

p a {
  color: var(--secondary);
  text-decoration: none;
}

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

/* ============================
   FOOTER
============================ */
footer {
  background: var(--form-bg);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 15px 0;
  margin-top: auto;
}

footer .redes {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
}

footer .redes a {
  color: var(--text);
  font-size: 18px;
  transition: color 0.3s ease;
}

footer .redes a:hover {
  color: var(--hover);
}

footer p {
  font-size: 14px;
  color: #bbb;
}

/* ============================
   RESPONSIVE FORM
============================ */
@media (max-width: 500px) {
  .container {
    width: 90%;
    padding: 25px 20px;
  }
  header .logo h1 {
    font-size: 18px;
  }
  .container h2 {
    font-size: 18px;
  }
}
