/* Tokens / Variables */
:root {
  --bg: #0a0a0a;
  --surface: #101010;
  --fg: #f5f5f5;
  --muted: #bdbdbd;
  --line: #222;
  --ring: #e5e5e5;
  --ok: #b7ffb7;
  --err: #ff9b9b;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --wpp: #25d366;
}

/* General */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, Arial, sans-serif;
  background: linear-gradient(180deg, #000 0%, var(--bg) 100%);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Utilidades */
.container {
  width: min(1080px, 92%);
  margin: 0 auto;
  padding: 48px 0;
}

.muted {
  color: var(--muted);
}

h1 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  font-size: clamp(28px, 3.2vw, 40px);
}

/* Language Bar */
.language-bar {
  background-color: #000;
  padding: 2px 0;
  position: relative;
  z-index: 1000;
}

.language-bar__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.language-bar__social {
  display: flex;
  gap: 15px;
}

.language-bar__social a {
  color: #fff;
  font-size: 18px;
  transition: color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

.language-bar__social a:hover {
  color: #888;
  transform: translateY(-2px);
}

.language-selector {
  position: relative;
}

.language-selector__toggle {
  background: transparent;
  border: none;
  color: #fff;
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-selector__toggle:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.language-selector__toggle i {
  font-size: 12px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-selector.is-open .language-selector__toggle {
  border-color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
}

.language-selector.is-open .language-selector__toggle i {
  transform: rotate(180deg);
}

.language-selector__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  min-width: 80px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  overflow: hidden;
}

.language-selector.is-open .language-selector__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.language-selector__option {
  width: 100%;
  background: none;
  border: none;
  padding: 8px 12px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  transition: all 0.2s ease;
  position: relative;
}

.language-selector__option:hover {
  background: #f5f5f5;
  color: #333;
  transform: translateX(4px);
  border-left: none;
}

.language-selector__option:first-child {
  border-radius: 12px 12px 0 0;
}

.language-selector__option:last-child {
  border-radius: 0 0 12px 12px;
}

.language-selector__option.is-active {
  background-color: #f0f0f0;
  color: #333;
  font-weight: 500;
  border-left: none;
}

.language-selector__option .flag {
  font-size: 18px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.language-selector__option span:last-child {
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Header y Navbar */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 100;
  padding: 1rem 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Criar um container para menu + ícone em desktop */
.navbar__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar__logo a {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  text-decoration: none;
}

.navbar__logo span {
  font-weight: 400;
}

.navbar__logo strong {
  color: #111;
  font-weight: 700;
}

.navbar__menu ul {
  list-style: none;
  display: flex;
  align-items: center;
  padding: 0;
}

.navbar__menu li {
  margin-left: 1rem;
  display: flex;
  align-items: center;
}

.navbar__menu a {
  width: 100%;
  background: none;
  border: none;
  padding: 8px 12px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #333;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
}

.navbar__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: #111;
  transition: width 0.3s ease;
}

.navbar__menu a:hover {
  color: #111;
}

.navbar__menu a:hover::after {
  width: 100%;
}

.navbar__menu a.active {
  color: #111;
  font-weight: 600;
}

.navbar__menu a.active::after {
  width: 100%;
}

.navbar__mobile-btn {
  background: none;
  border: none;
  color: #111;
  font-size: 2rem;
  cursor: pointer;
  display: none;
}

/* Navbar Menu Icon */
.navbar-menu-icon {
  position: relative;
  display: none;
  align-items: center;
}



.menu-icon-btn {
  background: none;
  border: none;
  color: #777;
  font-size: 1.1rem;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

.menu-icon-btn:hover {
  color: #111;
  background: #f5f5f5;
}

.menu-icon-dropdown {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 200px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 20px;
}

.menu-dropdown-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 24px 30px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.menu-dropdown-logo img {
  max-width: 80px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.navbar-menu-icon.active .menu-icon-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.menu-icon-dropdown a {
  width: 100%;
  background: none;
  border: none;
  padding: 12px 24px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #333;
  transition: all 0.2s ease;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

.menu-icon-dropdown a:hover {
  background: #f5f5f5;
  color: #333;
  transform: translateX(4px);
  border-left: none;
}

.menu-icon-dropdown a.active {
  background-color: #f0f0f0;
  color: #333;
  font-weight: 600;
  border-left: none;
}

.menu-icon-dropdown a::after {
  content: "";
  position: absolute;
  left: 1rem;
  bottom: 0.5rem;
  width: 0%;
  height: 2px;
  background: #111;
  transition: width 0.3s ease;
}

.menu-icon-dropdown a:hover {
  background: transparent;
  color: #111;
}

.menu-icon-dropdown a:hover::after {
  width: calc(100% - 2rem);
}

/* Controle dos dropdowns por resolução */
/* Por padrão: esconder ambos os dropdowns */
.mobile-dropdown {
  display: none;
}

.desktop-dropdown {
  display: none;
}

/* CELULAR (max-width: 640px): mostrar dropdown completo */
@media (max-width: 640px) {
  .navbar__menu {
    display: none !important;
  }
  
  .navbar-menu-icon {
    display: flex !important;
  }
  
  .navbar__mobile-btn {
    display: none !important;
  }
  
  .mobile-dropdown {
    display: flex;
  }
  
  .desktop-dropdown {
    display: none;
  }
}

/* TABLET (641px-1024px): mostrar dropdown completo */
@media (min-width: 641px) and (max-width: 1024px) {
  .navbar__menu {
    display: none !important;
  }
  
  .navbar-menu-icon {
    display: flex !important;
  }
  
  .navbar__mobile-btn {
    display: none !important;
  }
  
  .mobile-dropdown {
    display: flex;
  }
  
  .desktop-dropdown {
    display: none;
  }
}

/* DESKTOP (min-width: 1025px): mostrar navbar__menu + dropdown limitado */
@media (min-width: 1025px) {
  .navbar__menu {
    display: flex !important;
  }
  
  .navbar-menu-icon {
    display: flex !important;
  }
  
  .navbar__mobile-btn {
    display: none !important;
  }
  
  .mobile-dropdown {
    display: none;
  }
  
  .desktop-dropdown {
    display: flex;
  }
}

/* Card */
.card {
  background: linear-gradient(180deg, var(--surface), #0e0e0e);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow);
}

/* Botones */
a.btn,
a.btn:link,
a.btn:visited {
  text-decoration: none;
}

a.btn:hover,
a.btn:focus {
  text-decoration: none;
}

a.btn:active {
  text-decoration: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  line-height: 1;
  border: 1px solid var(--fg);
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition:
    transform 0.06s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.btn--primary {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

.btn--primary:hover {
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--fg);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
}

.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Campos de formulario */
.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid.duo {
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .form-grid.duo {
    grid-template-columns: 1fr 1fr;
  }
}

.full {
  grid-column: 1 / -1;
}

.form-group {
  text-align: left;
}

.form-group label {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.form-success {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 16px;
  background: #0f0f0f;
  margin-bottom: 16px;
}

.form-success h2 {
  margin: 0 0 0.5rem;
}

.form-success .wizard-actions .btn {
  width: 160px;
  justify-content: center;
}

.rgpd-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 12px;
}

.rgpd-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  transform: none;
  margin: 0;
  accent-color: var(--wpp);
}

.rgpd-row input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.35);
  border-radius: 4px;
  /* solo para que el halo se vea bonito */
}

.rgpd-row label {
  margin: 0;
  line-height: 1.35;
}

input,
select,
textarea {
  width: 100%;
  background: #0f0f0f;
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.06s ease;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #7a7a7a;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(229, 229, 229, 0.18);
}

/* Grupos / Checklist */
.step > * + * {
  margin-top: 16px;
  /* ritmo base */
}

.group {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #0f0f0f;
  margin-bottom: 16px;
}

.group legend {
  padding: 0 6px;
  color: var(--muted);
  font-weight: 700;
}

.checks-grid {
  display: grid;
  gap: 10px;
}

@media (min-width: 640px) {
  .checks-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  appearance: auto;
  accent-color: #fff;
  transform: translateY(2px);
}

.check label {
  line-height: 1.3;
}

/* Chips */
.chips-columns {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .chips-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .chips-columns {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

.group__title {
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.chips {
  display: grid;
  gap: 0.5rem;
}

.chip-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip {
  display: inline-block;
  border: 1px solid var(--line);
  background: #0f0f0f;
  color: var(--fg);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.06s ease,
    color 0.2s ease;
  user-select: none;
}

.chip:focus,
.chip:focus-visible {
  outline: 2px solid rgba(229, 229, 229, 0.4);
  outline-offset: 2px;
}

.chip-input:checked + .chip {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
  transform: translateY(-1px);
}

/* Domain / Hosting */
.domain-hosting {
  display: grid;
  gap: 16px;
}

.dh-item {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #0f0f0f;
  gap: 20px;
}

@media (min-width: 768px) {
  .dh-item {
    grid-template-columns: minmax(240px, 360px) 1fr;
  }
}

.dh-help {
  color: var(--muted);
  margin: 0;
}

.radio {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: 10px;
}

.radio input[type="radio"] {
  accent-color: #fff;
}

/* Wizard / Steps / Progreso */
.progress {
  height: 6px;
  background: #0f0f0f;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 14px;
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  background: #fff;
  width: 0%;
  transition: width 0.25s ease;
}

.steps {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  counter-reset: stepcount;
}

.steps li {
  position: relative;
  padding: 0.35rem 0.8rem 0.35rem 2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
  background: #0f0f0f;
}

.steps li::before {
  counter-increment: stepcount;
  content: counter(stepcount);
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #151515;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
}

.steps li.active {
  color: #0a0a0a;
  background: #fff;
  border-color: #fff;
}

.steps li.active::before {
  background: #0a0a0a;
  color: #fff;
  border-color: #0a0a0a;
}

/* Wizard actions */
.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.wizard-actions.end {
  justify-content: flex-end;
}

/* Step sections (PE: visibles sin JS) */
.step {
  display: block;
  margin-bottom: 18px;
}

body.js .step {
  display: none;
}

body.js .step.active {
  display: block;
}

/* Footer */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: #050505;
  text-align: center;
  color: var(--muted);
}

/* Botones flotante */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--fg);
  background: transparent;
  color: var(--fg);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.06s ease;
  z-index: 60;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #151515;
  transform: translateY(-1px);
}

.whatsapp-button {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  font-size: 20px;
  z-index: 60;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* Accesibilidad visual / Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Errores y estado */
.form-errors {
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 200;
  font-size: 15px;
}

.field-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--fg);
}

.is-invalid {
  border-color: var(--fg) !important;
  box-shadow: 0 0 0 3px rgba(250, 248, 248, 0.18) !important;
}

.chip.is-invalid {
  border-color: var(--err);
  box-shadow: 0 0 0 3px rgba(255, 155, 155, 0.18);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Neutraliza el color de autocompletar del navegador */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--fg);
  -webkit-box-shadow: 0 0 0 1000px #0f0f0f inset;
  /* mismo fondo que tus inputs */
  transition: background-color 9999s ease-out 0s;
  /* truco para Chrome */
  caret-color: var(--fg);
}

/* Quebra de linha responsiva - força terceiro elemento para nova linha apenas em celular */
@media (max-width: 767px) {
  .steps {
    flex-wrap: wrap;
  }
  
  .steps li:nth-child(3) {
    flex-basis: 100%;
    margin-top: 0.5rem;
  }
}

/* Responsividade do nome na barra de navegação */
.name-text-mobile {
  display: none;
}

/* Tablet: 768px - 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
  .name-text-desktop {
    display: none;
  }
  
  .name-text-mobile {
    display: inline;
  }
}

/* Mobile: até 767px */
@media (max-width: 767px) {
  .name-text-desktop {
    display: none;
  }
  
  .name-text-mobile {
    display: inline;
  }
}
