/*
 * SmartOrder landing page.
 * Look taken from the "Landing page" design: warm cream ground, deep teal brand (#0c6f6f, white text 6:1),
 * near-black green ink (#12231f) for dark bands, sand panels. Status hues are only used for order states.
 * No third-party CSS or fonts: Rubik is self-hosted (fonts.css).
 */
:root {
  --bg: #fbf7ef;
  --card: #fff;
  --sand: #f4eee2;
  --sand-deep: #ece4d6;
  --ink: #12231f;
  --text: #30403b;
  --muted: #4e5f59;
  --line: #e8dfcf;
  --line-strong: #cfc5b2;
  --brand: #0c6f6f;
  --brand-dark: #075c5c;
  --mint: #e4f3ec;
  --mint-ink: #0a5c4c;
  --amber: #fbf0dc;
  --amber-ink: #7a4f00;
  --sky: #e8f0fa;
  --sky-ink: #0b4f8a;
  --danger: #b3261e;
  --danger-soft: #fae9e1;
  --dark: #12231f;
  --dark-card: #1b302b;
  --on-dark: #b6c7c0;
  --field-line: #8a978f;
  --wrap: 72rem;
  --radius: 0.75rem;
  --shadow: 0 1px 2px rgba(18, 35, 31, 0.08), 0 18px 36px -16px rgba(18, 35, 31, 0.3);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  margin: 0;
}

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

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}

ol,
ul {
  list-style: none;
  padding: 0;
}

a {
  color: var(--brand);
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 700;
}

.wrap {
  margin: 0 auto;
  max-width: var(--wrap);
  padding: 0 1.25rem;
}

.skip {
  background: var(--ink);
  border-radius: 0 0 0.5rem 0;
  color: #fff;
  left: 0;
  padding: 0.75rem 1rem;
  position: absolute;
  top: -4rem;
  z-index: 20;
}

.skip:focus {
  top: 0;
}

.eyebrow {
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.lead {
  font-size: 1.1875rem;
  line-height: 1.6;
  margin-top: 1.25rem;
  max-width: 36rem;
}

.lead--tight {
  margin-top: 0.75rem;
}

/* Buttons ------------------------------------------------------------------ */

.btn {
  align-items: center;
  border: 2px solid transparent;
  border-radius: var(--radius);
  display: inline-flex;
  font: inherit;
  font-weight: 500;
  justify-content: center;
  min-height: 3rem;
  padding: 0.5rem 1.5rem;
  text-decoration: none;
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out, transform 0.15s ease-out;
}

.btn--primary {
  background: var(--brand);
  box-shadow: 0 1px 2px rgba(18, 35, 31, 0.2), 0 8px 16px -8px rgba(12, 111, 111, 0.6);
  color: #fff;
  cursor: pointer;
}

.btn--primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.btn--ghost {
  background: var(--card);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.btn--small {
  min-height: 2.5rem;
  padding: 0.25rem 1.125rem;
}

.btn--block {
  width: 100%;
}

/* Header ------------------------------------------------------------------- */

.top {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.top__bar {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  min-height: 4rem;
}

.top__brand img {
  height: auto;
}

.top__nav {
  align-items: center;
  display: flex;
  gap: 1.5rem;
}

.top__link {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.top__link:hover {
  color: var(--brand-dark);
}

/* Hero --------------------------------------------------------------------- */

.hero {
  padding: 4.5rem 0 5rem;
}

.hero__grid {
  align-items: center;
  display: grid;
  gap: 3.5rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.pill {
  background: var(--mint);
  border-radius: 999px;
  color: var(--mint-ink);
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  padding: 0.25rem 0.875rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
}

.hero h1 span {
  color: var(--brand);
  display: block;
}

.hero__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 2rem;
}

.hero__note {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-top: 1.25rem;
}

.hero__caption {
  color: var(--muted);
  font-size: 0.8125rem;
  margin-top: 1rem;
  text-align: center;
}

.order {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 28rem;
  padding: 0 0 1.25rem;
  position: relative;
}

.order__head {
  align-items: flex-start;
  background: var(--brand);
  border-radius: 1.25rem 1.25rem 0 0;
  color: #fff;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.125rem 1.25rem;
}

.order__title {
  font-size: 1.25rem;
  font-weight: 700;
}

.order__sub {
  color: #d3ecea;
  font-size: 0.8125rem;
  margin-top: 0.125rem;
}

.order__items {
  padding: 0.5rem 1.25rem 0;
}

.order__items li {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 0.875rem;
  padding: 0.75rem 0;
}

.order__thumb,
.prod__img {
  border-radius: 0.625rem;
  flex: none;
  height: 2.5rem;
  width: 2.5rem;
}

.order__thumb--a,
.prod__img--a {
  background: var(--amber);
}

.order__thumb--b,
.prod__img--b {
  background: var(--sky);
}

.order__thumb--c,
.prod__img--c {
  background: var(--mint);
}

.prod__img--d {
  background: var(--danger-soft);
}

.order__name {
  color: var(--ink);
  flex: 1;
  font-weight: 500;
  line-height: 1.3;
}

.order__name small {
  color: var(--muted);
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
}

.order__qty {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
}

.order__foot {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.9375rem;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 1.25rem 0;
}

.order__actions {
  display: flex;
  gap: 0.5rem;
  margin-right: 4.5rem;
}

.order__btn {
  border: 1.5px solid var(--line-strong);
  border-radius: 0.5rem;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 0.875rem;
}

.order__btn--yes {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.order__leko {
  bottom: -1.25rem;
  height: auto;
  position: absolute;
  right: -0.5rem;
  width: 5.5rem;
}

/* Status chips ------------------------------------------------------------- */

.chip {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.3125rem 0.625rem;
  white-space: nowrap;
}

.chip--wait {
  background: var(--amber);
  color: var(--amber-ink);
}

.chip--ok {
  background: var(--mint);
  color: var(--mint-ink);
}

.chip--info {
  background: var(--sky);
  color: var(--sky-ink);
}

.chip--done {
  background: var(--brand);
  color: #fff;
}

.chip--current {
  background: var(--mint-ink);
  color: #fff;
}

/* ¿Te suena? --------------------------------------------------------------- */

.suena {
  background: var(--dark);
  color: var(--on-dark);
  padding: 5rem 0;
}

.suena h2 {
  color: #fff;
  text-align: center;
}

.suena__lead {
  margin: 0.75rem auto 0;
  max-width: 32rem;
  text-align: center;
}

.suena__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2.5rem;
}

.suena__grid li {
  background: var(--dark-card);
  border: 1px solid #2a443d;
  border-radius: 1rem;
  padding: 1.25rem;
}

.suena__grid strong {
  color: #fff;
  display: block;
  font-size: 1.0625rem;
  line-height: 1.35;
}

.suena__grid span {
  display: block;
  font-size: 0.9375rem;
  margin-top: 0.5rem;
}

/* Cómo funciona ------------------------------------------------------------ */

.como {
  padding: 5.5rem 0;
  scroll-margin-top: 4rem;
}

.steps {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.5rem;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.75rem;
}

.step__num {
  align-items: center;
  background: var(--brand);
  border-radius: 0.625rem;
  color: #fff;
  display: flex;
  font-weight: 700;
  height: 2.25rem;
  justify-content: center;
  margin-bottom: 1.25rem;
  width: 2.25rem;
}

.step p {
  margin-top: 0.5rem;
}

/* Funciones ---------------------------------------------------------------- */

.funciones {
  background: var(--sand);
  padding: 5.5rem 0;
  scroll-margin-top: 4rem;
}

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.card__icon {
  align-items: center;
  background: var(--mint);
  border-radius: 0.75rem;
  display: flex;
  height: 2.75rem;
  justify-content: center;
  margin-bottom: 1rem;
  width: 2.75rem;
}

.card__icon svg {
  fill: none;
  height: 1.375rem;
  stroke: var(--brand);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 1.375rem;
}

.card p {
  margin-top: 0.5rem;
}

/* Cliente ------------------------------------------------------------------ */

.cliente {
  padding: 5.5rem 0;
}

.cliente__grid {
  align-items: center;
  display: grid;
  gap: 4rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.checks {
  margin-top: 1.75rem;
}

.checks li {
  padding: 0.5rem 0 0.5rem 2rem;
  position: relative;
}

.checks li::before {
  background: var(--mint);
  border-radius: 50%;
  color: var(--mint-ink);
  content: "✓";
  font-size: 0.8125rem;
  font-weight: 700;
  height: 1.375rem;
  left: 0;
  line-height: 1.375rem;
  position: absolute;
  text-align: center;
  top: 0.6rem;
  width: 1.375rem;
}

.checks strong {
  color: var(--ink);
}

.handset {
  background: var(--card);
  border: 8px solid var(--ink);
  border-radius: 2rem;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 19rem;
  overflow: hidden;
}

.handset__bar {
  background: var(--brand);
  color: #fff;
  padding: 1rem 1.125rem;
}

.handset__bar strong,
.handset__bar small {
  display: block;
}

.handset__bar small {
  color: #d3ecea;
  font-size: 0.75rem;
}

.handset__grid {
  display: grid;
  gap: 0.625rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.875rem;
}

.prod {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.625rem;
}

.prod .prod__img {
  display: block;
  height: 3.5rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

.prod strong,
.prod small {
  display: block;
}

.prod strong {
  color: var(--ink);
  font-size: 0.8125rem;
  line-height: 1.25;
}

.prod small {
  color: var(--muted);
  font-size: 0.75rem;
}

.handset__cta {
  background: var(--brand);
  border-radius: 0.75rem;
  color: #fff;
  font-weight: 500;
  margin: 0 0.875rem 0.875rem;
  padding: 0.75rem;
  text-align: center;
}

/* Control ------------------------------------------------------------------ */

.control {
  background: var(--sand);
  padding: 5.5rem 0;
}

.control__grid {
  align-items: center;
  display: grid;
  gap: 4rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 28rem);
}

.rules {
  margin-top: 1.5rem;
}

.rules li {
  border-top: 1px solid var(--line-strong);
  padding: 0.875rem 0;
}

.rules strong {
  color: var(--ink);
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.settings__row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.settings dt {
  color: var(--muted);
  font-size: 0.9375rem;
}

.settings dd {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-weight: 500;
  gap: 0.5rem;
}

.switch {
  background: #b9bfb8;
  border-radius: 999px;
  display: inline-block;
  height: 1.25rem;
  position: relative;
  width: 2.25rem;
}

.switch::after {
  background: #fff;
  border-radius: 50%;
  content: "";
  height: 0.875rem;
  left: 0.1875rem;
  position: absolute;
  top: 0.1875rem;
  width: 0.875rem;
}

.path {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.specimen__tag {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 1rem;
}

/* Planes ------------------------------------------------------------------- */

.planes {
  background: var(--sand);
  padding: 5.5rem 0;
  scroll-margin-top: 4rem;
}

.planes h2,
.planes .eyebrow,
.planes .lead {
  text-align: center;
}

.planes .lead {
  margin-left: auto;
  margin-right: auto;
}

.plan-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2.5rem;
}

.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
}

.plan h3 {
  color: var(--ink);
  font-size: 1.125rem;
  margin: 0;
}

.plan__price {
  margin: 0.75rem 0 0;
}

.plan__price strong {
  color: var(--ink);
  font-size: 1.75rem;
  font-weight: 600;
}

.plan__price span {
  color: var(--muted);
  font-size: 0.9375rem;
}

.plan__yearly {
  color: var(--brand-dark);
  font-size: 0.875rem;
  margin: 0.375rem 0 0;
}

.plan__list {
  border-top: 1px solid var(--line);
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 1rem 0 0;
}

.plan__list li {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.plan__note {
  color: var(--muted);
  margin: 1.75rem auto 0;
  max-width: 40rem;
  text-align: center;
}

/* Preguntas ---------------------------------------------------------------- */

.preguntas {
  padding: 5.5rem 0;
  scroll-margin-top: 4rem;
}

.preguntas h2 {
  text-align: center;
}

.faq {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2.5rem;
}

.faq details {
  align-self: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.125rem 1.25rem;
}

.faq summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  padding-right: 1.75rem;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  color: var(--brand);
  content: "+";
  font-size: 1.375rem;
  line-height: 1;
  position: absolute;
  right: 0;
  top: 0;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin-top: 0.75rem;
}

/* Pide acceso -------------------------------------------------------------- */

.acceso {
  background: var(--brand);
  color: #fff;
  padding: 5.5rem 0;
  scroll-margin-top: 3rem;
}

.acceso__grid {
  align-items: center;
  display: grid;
  gap: 3.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 28rem);
}

.acceso__copy h2 {
  color: #fff;
}

.acceso__copy p {
  color: #fff;
  margin-top: 1rem;
  max-width: 30rem;
}

.acceso__copy a {
  color: #fff;
  font-weight: 500;
  text-underline-offset: 0.2em;
}

.acceso__copy :focus-visible,
.foot :focus-visible {
  outline-color: #fff;
}

.acceso__leko {
  height: auto;
  margin-bottom: 1rem;
  width: 6.5rem;
}

.acceso__card {
  background: var(--card);
  border-radius: 1.25rem;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.45);
  color: var(--text);
  padding: 1.75rem;
}

.field {
  margin-bottom: 1.125rem;
}

.field label {
  color: var(--ink);
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.field input,
.field textarea {
  background: #fff;
  border: 1.5px solid var(--field-line);
  border-radius: 0.625rem;
  color: var(--ink);
  font: inherit;
  min-height: 3rem;
  padding: 0.625rem 0.875rem;
  width: 100%;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(12, 111, 111, 0.25);
  outline-offset: 0;
}

.field--error input,
.field--error textarea {
  border-color: var(--danger);
}

.field__error {
  color: var(--danger);
  font-size: 0.875rem;
  margin-top: 0.375rem;
}

.alert {
  background: var(--danger-soft);
  border-radius: 0.625rem;
  color: #8f1d17;
  margin-bottom: 1.125rem;
  padding: 0.875rem 1rem;
}

.done h3 {
  font-size: 1.5rem;
}

.done p {
  color: var(--muted);
  margin-top: 0.5rem;
}

.hp {
  height: 1px;
  left: -9999px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

/* Footer ------------------------------------------------------------------- */

.foot {
  background: var(--dark);
  color: var(--on-dark);
  font-size: 0.9375rem;
  padding: 2rem 0;
}

.foot__bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
}

.foot__bar img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.foot a {
  color: #fff;
}

/* Phones and tablets ------------------------------------------------------- */

@media (max-width: 62rem) {
  .hero__grid,
  .cliente__grid,
  .control__grid,
  .acceso__grid {
    gap: 2.5rem;
    grid-template-columns: minmax(0, 1fr);
  }

  .suena__grid,
  .cards,
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .top__link--wide {
    display: none;
  }
}

@media (max-width: 40rem) {
  .hero {
    padding: 2.5rem 0 3.5rem;
  }

  .suena,
  .como,
  .funciones,
  .cliente,
  .control,
  .planes,
  .preguntas,
  .acceso {
    padding: 3.5rem 0;
  }

  .suena__grid,
  .cards,
  .plan-grid,
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }

  .order__actions {
    margin-right: 3.5rem;
  }

  .order__leko {
    width: 4.5rem;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 23.75rem) {
  .top__link {
    display: none;
  }
}

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

  .btn {
    transition: none;
  }
}
