:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --text: #edf2f7;
  --muted: #9aa6b2;
  --primary: #22c55e;
  --primary-dark: #16a34a;
  --card: #121821;
  --border: #1f2937;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

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

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  background-image: url("../assets/body.djn.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 18px;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.hero {
  padding: 0 0 80px;
  background: radial-gradient(circle at top, #1a1f29 0%, #0b0d10 55%);
}

.hero__content {
  max-width: 520px;
}

.hero .container {
  display: grid;
  gap: 36px;
}

.topbar {
  background: #000000;
  color: #ffffff;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px clamp(16px, 4vw, 48px);
}

.topbar__inner.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: none;
  margin: 0;
}

.topbar .brand {
  margin-bottom: 0;
}

.topbar__contact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: nowrap;
  margin-left: auto;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 500;
}

.contact-item a {
  color: #ffffff;
  text-decoration: none;
}

.contact-item a:hover {
  color: #e5e7eb;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.brand__logo {
  width: 80px;
  height: auto;
  border-radius: 0;
}

.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  border-radius: 4px;
  background: transparent;
}

.icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(212, 175, 55, 0.15);
  color: var(--primary);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.page-unified .eyebrow {
  color: #6b7280;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.section {
  margin: 72px 0;
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.section p {
  color: var(--muted);
  margin-bottom: 24px;
}

.form {
  background: var(--card);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  border: 1px solid var(--border);
  width: 100%;
}

.field {
  display: grid;
  gap: 8px;
  width: 100%;
}

label {
  font-weight: 500;
}

input,
select,
textarea {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  background: #0f141b;
  color: var(--text);
  width: 100%;
  max-width: 100%;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 100%;
}

.btn--primary {
  background: var(--primary);
  color: #1b1b1b;
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(212, 175, 55, 0.35);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.page-light .btn--ghost {
  border-color: #d1d5db;
  color: #111827;
}

.page-light .btn--ghost:hover {
  border-color: #9ca3af;
}

.btn--dark {
  background: #0b0d10;
  color: #ffffff;
  border: 1px solid #0b0d10;
}

.btn--dark:hover {
  transform: translateY(-1px);
}

.btn--disabled,
.btn--disabled:hover {
  background: #9ca3af;
  border-color: #9ca3af;
  color: #ffffff;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn--contacto {
  background: #22c55e;
  color: #0b0d10;
  border: none;
  box-shadow: 0 10px 20px rgba(34, 197, 94, 0.25);
}

.btn--contacto:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(34, 197, 94, 0.32);
}

.hint {
  color: var(--primary);
  font-weight: 500;
}

.footer {
  background: #0b0d10;
  color: #e2e8f0;
  padding: 56px 0 0;
  border-top: 1px solid #1f2530;
}

.footer__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding-bottom: 32px;
}

.footer__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer__logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

.footer__desc {
  color: #94a3b8;
}

.footer__col h4 {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: #f8fafc;
}

.footer__col p,
.footer__col a {
  color: #cbd5f5;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cbd5f5;
}

.footer__social:hover {
  color: #ffffff;
}

.footer__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.footer__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #22c55e;
  color: #0b0d10;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 32px rgba(34, 197, 94, 0.35);
  z-index: 1200;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

.footer__col a:hover {
  color: #ffffff;
}

.footer__bottom {
  border-top: 1px solid #1f2530;
  padding: 16px 0 24px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

.page-light {
  background-color: #f5f7fb;
  background-image: url("../assets/body.djn.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #1b1b1b;
}

.page-light .topbar__contact {
  color: var(--text);
}

.page-light .contact-item a {
  color: var(--text);
}

.page-light .contact-item a:hover {
  color: #ffffff;
}

.page-light .hero {
  background: transparent;
}

.page-light input,
.page-light select,
.page-light textarea {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
}

@media (max-width: 900px) {
  body {
    background-attachment: scroll;
  }

  .page-light {
    background-attachment: scroll;
  }

  .topbar__inner {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .topbar__contact {
    justify-content: flex-end;
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .topbar__inner {
    padding-left: 16px;
    padding-right: 16px;
    align-items: center;
    grid-template-columns: auto 1fr;
  }

  .brand {
    margin-bottom: 0;
  }

  .brand__logo {
    width: 96px;
    border-radius: 0;
  }

  .topbar__contact {
    width: auto;
    flex-wrap: nowrap;
    gap: 8px;
    flex-direction: row;
    align-items: flex-end;
    text-align: right;
    justify-content: flex-end;
    justify-self: end;
  }

  .contact-item {
    font-size: 0.75rem;
    justify-content: flex-end;
  }

  .icon {
    width: 16px;
    height: 16px;
  }


  .contact-item a,
  .btn--contacto {
    white-space: nowrap;
  }

  .btn--contacto {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .form {
    padding: 18px;
  }
}

.page-light .form,
.page-light .table-wrapper {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.page-light th {
  background: #f3f4f6;
}