/* =========================
   Reset / Base
========================= */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scrollbar-width: none; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #eaf6ff;
  background: #0B0D0F;
  overflow-x: hidden;
}

a { color: inherit; }

/* =========================
   Background decor
========================= */
.bg-decor { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.blob {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .25;
}
.blob.b1 { top: -140px; left: -140px; background: #33ff99; }
.blob.b2 { bottom: -180px; right: -180px; background: #ffc14d; }

.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 30% 10%, rgba(0,0,0,.8), rgba(0,0,0,0) 55%);
  opacity: .6;
}

/* =========================
   Topbar
========================= */
.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(16px, 6vw, 80px);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.back:hover {
  transform: translateX(-2px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
}
.back__icon {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  font-size: 18px;
}
.back__text { font-family: "Comfortaa", sans-serif; font-weight: 600; letter-spacing: .2px; }

.topbar__profile #avatar{
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  cursor: pointer;
  border: solid 3px rgba(255,255,255,.75);
}

/* =========================
   Layout
========================= */
.page {
  position: relative;
  z-index: 2;
  padding: 0 clamp(16px, 6vw, 80px) 80px;
}

.hero {
  padding: 22px 0 26px;
  max-width: 980px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Comfortaa", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
}
.hero__title {
  margin: 14px 0 10px;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  letter-spacing: 1px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.05;
}
.hero__subtitle {
  margin: 0;
  max-width: 72ch;
  color: rgba(234, 246, 255, .75);
  font-size: 16px;
}

.panel {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: start;
  max-width: 1080px;
}

.panel__card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  box-shadow: 0 16px 50px rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
  padding: 18px;
}

.panel__head {
  padding: 10px 10px 0;
}
.panel__title {
  margin: 0;
  font-family: "Comfortaa", sans-serif;
  font-weight: 700;
  font-size: 20px;
}
.panel__desc {
  margin: 8px 0 0;
  color: rgba(234,246,255,.70);
  font-size: 14px;
}

/* =========================
   Form
========================= */
.form { padding: 12px 10px 10px; }

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }

.field__label {
  font-size: 13px;
  color: rgba(234,246,255,.80);
  font-weight: 600;
}

.field__input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: #eaf6ff;
  outline: none;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.field__input::placeholder { color: rgba(234,246,255,.40); }

.field__input:focus {
  border-color: rgba(255, 193, 77, .65);
  background: rgba(0,0,0,.28);
  transform: translateY(-1px);
}

.field__textarea {
  resize: none;
  min-height: 140px;
  line-height: 1.35;
}

.field__hint {
  font-size: 12px;
  color: rgba(234,246,255,.55);
}

.btn {
  margin-top: 14px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 13px 14px;
  cursor: pointer;
  color: #0c1114;
  font-weight: 800;
  letter-spacing: .2px;
  box-shadow: 0 14px 35px rgba(0,0,0,.25);
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-1px);  }
.btn:active { transform: translateY(0px); }

.btn__shine {
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  transition: transform .6s ease;
}
.btn:hover .btn__shine { transform: translateX(120%); }

/* Message */
.message {
  margin: 12px 0 0;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  min-height: 18px;
}
.success { color: #7CFFB3; }
.error { color: #FF7C7C; }

/* =========================
   Side cards
========================= */
.panel__side { display: grid; gap: 12px; }

.sidecard {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 14px;
}
.sidecard--soft {
  background: rgba(0,0,0,.18);
}
.sidecard__title {
  margin: 0 0 8px;
  font-family: "Comfortaa", sans-serif;
  font-weight: 800;
  font-size: 15px;
}
.sidecard__text {
  margin: 0;
  color: rgba(234,246,255,.70);
  font-size: 13px;
  line-height: 1.45;
}

/* =========================
   Footer (tu estructura)
========================= */
footer {
  position: relative;
  z-index: 2;
  background: #030303;
  padding: 25px;
}

.container-footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 25px;
}

.titulo-footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.titulo-footer h1 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  color: #fff;
  font-size: 8px;
  scale: 6;
}

.titulo-footer p {
  color: #fff;
  font-size: 15px;
  text-align: center;
}

.footer-nav {
  margin-top: 50px;
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  text-decoration: none;
  color: #fff;
}

.social-titulo {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.social-titulo h3 {
  color: #ffffff70;
}

.social-footer {
  display: flex;
  padding: 15px;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 50px;
  border-bottom: solid 1px #ffffff48;
}

.social-footer a { text-decoration: none; }

.social-footer a img {
  max-width: 50px;
  filter: invert(1);
  transition: transform .25s ease;
}
.social-footer a img:hover { transform: scale(1.15); }

.creditos {
  margin-top: 55px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.creditos h3,
.creditos a {
  color: #fff;
  font-weight: 100;
  font-size: 15px;
  opacity: 0.5;
}

/* =========================
   Responsive
========================= */
@media (max-width: 900px) {
  .panel { grid-template-columns: 1fr; }
  .panel__side { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .form__grid { grid-template-columns: 1fr; }
  .topbar { padding: 18px 16px; }
  .page { padding: 0 16px 70px; }
}
