:root {
  --ink: #3e3e3e;
  --muted: #6f6f6f;
  --paper: #ffffff;
  --soft: #fafafa;
  --section: #f1f2f3;
  --orange: #cc5f16;
  --orange-hot: #ff6701;
  --navy: #072538;
  --deep: #090046;
  --white: #ffffff;
  --line: #dddddd;
  --shadow: 0 18px 48px rgba(62, 62, 62, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Roboto", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  position: relative;
  padding: 18px 18px 38px;
  background: var(--paper);
}

.hero::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 34%;
  content: "";
  background: linear-gradient(180deg, rgba(250, 250, 250, 0), var(--soft));
  pointer-events: none;
}

.brand-strip,
.hero-grid,
.section-inner,
.form-inner,
.footer-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  margin: 0 auto;
}

.brand-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
}

.brand-logo {
  object-fit: contain;
}

.brand-logo-habilidades {
  width: 116px;
}

.brand-logo-cbtd {
  width: 92px;
}

.brand-connector {
  flex: 1;
  height: 1px;
  min-width: 36px;
  background: linear-gradient(90deg, rgba(204, 95, 22, 0.18), rgba(204, 95, 22, 0.56));
}

.hero-grid {
  display: grid;
  gap: 22px;
  padding-top: 22px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--orange);
  font-family: "Open Sans Hebrew Condensed", sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Open Sans Hebrew Condensed", sans-serif;
  letter-spacing: 0;
  line-height: 0.96;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 48px;
  font-weight: 600;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 1rem;
}

.hero-cta,
.lead-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  cursor: pointer;
  font-family: "Open Sans Hebrew Condensed", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.hero-cta {
  width: 100%;
  padding: 0 24px;
  box-shadow: 0 14px 34px rgba(204, 95, 22, 0.22);
}

.hero-cta:hover,
.lead-form button:hover {
  transform: translateY(-2px);
  background: var(--orange-hot);
}

.hero-media {
  position: relative;
  min-height: 268px;
}

.hero-media::before {
  content: none;
}

.hero-media::after {
  content: none;
}

.hero-media img {
  position: relative;
  z-index: 1;
  width: min(74vw, 340px);
  margin: 0 auto;
  filter: drop-shadow(0 24px 34px rgba(62, 62, 62, 0.14));
}

.why-section {
  margin-top: 0;
  padding: 42px 18px 22px;
  text-align: center;
  background: var(--soft);
}

.why-section h2,
.form-copy h2 {
  max-width: 850px;
  margin-right: auto;
  margin-bottom: 22px;
  margin-left: auto;
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 600;
}

.benefit-grid {
  display: grid;
  gap: 12px;
}

.benefit-item {
  padding: 18px;
  border: 1px solid rgba(19, 42, 45, 0.12);
  border-radius: 8px;
  background: var(--white);
  text-align: center;
}

.benefit-marker {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--orange);
  font-family: "Open Sans Hebrew Condensed", sans-serif;
  font-size: 1.28rem;
  font-weight: 600;
}

.benefit-item h3 {
  margin-bottom: 8px;
  color: var(--orange);
  font-family: "Open Sans Hebrew Condensed", sans-serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1;
}

.benefit-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-section {
  margin-top: 0;
  padding: 34px 18px;
  background: var(--section);
}

.form-inner {
  display: grid;
  gap: 22px;
  color: var(--white);
  text-align: center;
}

.form-copy p {
  color: var(--muted);
}

.form-copy .section-kicker {
  color: var(--orange);
}

.form-copy h2 {
  color: var(--ink);
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(62, 62, 62, 0.1);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: left;
}

.form-honeypot {
  display: none;
}

.lead-form label {
  display: block;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.label-text {
  display: inline;
}

.label-text span {
  color: var(--orange);
}

.form-row {
  display: grid;
  gap: 14px;
}

.lead-form input,
.lead-form select {
  width: 100%;
  min-height: 50px;
  margin-top: 7px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: var(--soft);
  color: var(--ink);
}

.iti {
  display: block;
  width: 100%;
  margin-top: 7px;
}

.iti input {
  margin-top: 0;
}

.lead-form .iti input {
  padding-left: 104px !important;
}

.lead-form .iti__selected-country {
  width: auto;
  min-height: auto;
  margin: 0;
  padding: 0 10px 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
}

.lead-form .iti__selected-country:hover,
.lead-form .iti__selected-country:focus {
  background: transparent;
  transform: none;
}

.lead-form .iti__selected-dial-code {
  color: var(--ink);
  font-weight: 700;
}

.lead-form .iti__arrow {
  border-top-color: var(--ink);
}

.lead-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--orange) 50%), linear-gradient(135deg, var(--orange) 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 12px) 21px;
  background-repeat: no-repeat;
  background-size: 6px 6px;
  padding-right: 42px;
}

.lead-form input:focus,
.lead-form select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(204, 95, 22, 0.16);
}

.lead-form .is-invalid {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(204, 95, 22, 0.16);
}

.lead-form button {
  width: 100%;
  margin-top: 4px;
  background: var(--orange);
  color: var(--white);
}

.lead-form button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.form-status {
  margin: 0;
  color: var(--orange);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}

.form-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer {
  padding: 26px 18px 34px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.84rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.footer img {
  width: 72px;
}

.footer p {
  margin-bottom: 0;
}

.thanks-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: var(--soft);
}

.thanks-section {
  width: min(100%, 620px);
  text-align: center;
}

.thanks-logo {
  width: 180px;
  margin: 0 auto 28px;
}

.thanks-section h1 {
  margin-right: auto;
  margin-left: auto;
}

.thanks-section p:not(.eyebrow) {
  max-width: 460px;
  margin: 0 auto 24px;
  color: var(--muted);
}

.thanks-section .hero-cta {
  width: auto;
}

.admin-body {
  min-height: 100vh;
  background: var(--soft);
  color: var(--ink);
}

.admin-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 22px;
}

.admin-header {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-header img {
  width: 170px;
}

.admin-header h1 {
  color: var(--ink);
  font-size: clamp(2.2rem, 12vw, 4rem);
  text-align: left;
}

.admin-auth,
.admin-panel {
  border: 1px solid rgba(62, 62, 62, 0.1);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.admin-auth {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.admin-auth label {
  display: grid;
  gap: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-auth input,
.admin-actions select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
}

.admin-auth button,
.admin-actions button,
.admin-table button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-panel {
  padding: 16px;
}

.admin-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-status,
.admin-queue {
  color: var(--muted);
  font-size: 0.94rem;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.admin-summary article {
  border: 1px solid rgba(62, 62, 62, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: var(--soft);
}

.admin-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 1.8rem;
}

.admin-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

.admin-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(62, 62, 62, 0.1);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.admin-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  background: var(--section);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-synced {
  background: #dff7eb;
  color: #12613a;
}

.status-failed,
.status-dead {
  background: #ffe2d3;
  color: #9f3300;
}

.status-processing,
.status-queued {
  background: #fff2c7;
  color: #745800;
}

@media (min-width: 720px) {
  .hero {
    min-height: 720px;
    padding: 24px 28px 54px;
  }

  .brand-logo-habilidades {
    width: 150px;
  }

  .brand-logo-cbtd {
    width: 124px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: 34px;
    min-height: 570px;
  }

  .hero-copy {
    align-items: flex-start;
    text-align: left;
  }

  .hero-cta {
    width: auto;
  }

  .discount-card {
    max-width: 470px;
  }

  .hero-media {
    min-height: 500px;
  }

  .hero-media img {
    width: min(38vw, 430px);
  }

  .why-section {
    padding: 70px 28px 36px;
  }

  .benefit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .form-section {
    padding: 54px 28px;
  }

  .form-inner {
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.72fr);
    align-items: start;
    text-align: left;
  }

  .lead-form {
    padding: 22px;
  }

  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-shell {
    padding: 34px;
  }

  .admin-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .admin-auth {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .admin-actions {
    grid-template-columns: minmax(220px, 1fr) auto auto;
    align-items: center;
  }

  .admin-summary {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
