:root {
  color-scheme: dark;
  --bg: #050d0c;
  --bg-alt: #0a1816;
  --surface: #10211e;
  --surface-strong: #163430;
  --line: #22403b;
  --ink: #f2f7f4;
  --muted: #a9bab3;
  --green: #11857a;
  --accent: #d6ff5a;
  --accent-ink: #13211d;
  --button-bg: #f2f7f4;
  --button-ink: #082f2d;
  --glow: rgba(17, 133, 122, 0.35);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --radius: 20px;
  --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5f2;
  --bg-alt: #e8f3ec;
  --surface: #ffffff;
  --surface-strong: #e8f3ec;
  --line: #d9e2dc;
  --ink: #13211d;
  --muted: #55625c;
  --green: #0d7066;
  --accent: #0d7066;
  --accent-ink: #ffffff;
  --button-bg: #082f2d;
  --button-ink: #ffffff;
  --glow: rgba(13, 112, 102, 0.18);
  --shadow: 0 30px 70px rgba(23, 51, 43, 0.18);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f3f5f2;
    --bg-alt: #e8f3ec;
    --surface: #ffffff;
    --surface-strong: #e8f3ec;
    --line: #d9e2dc;
    --ink: #13211d;
    --muted: #55625c;
    --green: #0d7066;
    --accent: #0d7066;
    --accent-ink: #ffffff;
    --button-bg: #082f2d;
    --button-ink: #ffffff;
    --glow: rgba(13, 112, 102, 0.18);
    --shadow: 0 30px 70px rgba(23, 51, 43, 0.18);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

svg.filled {
  fill: currentColor;
  stroke: none;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

.narrow {
  width: min(780px, 100% - 32px);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--button-bg);
  color: var(--button-ink);
}

.skip:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Cabecera */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
}

.nav {
  display: flex;
  gap: 28px;
  margin-inline: auto;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

.nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.icon-button:hover {
  background: var(--surface);
}

.icon-moon {
  display: none;
}

:root[data-theme="light"] .icon-sun {
  display: none;
}

:root[data-theme="light"] .icon-moon {
  display: block;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .icon-sun {
    display: none;
  }
  :root:not([data-theme="dark"]) .icon-moon {
    display: block;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}

.button-light {
  background: var(--button-bg);
  color: var(--button-ink);
}

.show-sm {
  display: none;
}

/* Portada */
.hero {
  position: relative;
  padding: 72px 0 40px;
  isolation: isolate;
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto auto;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, var(--glow), transparent 65%);
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 48px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
  font-size: 15px;
}

.hero h1 {
  margin-top: 28px;
  font-size: clamp(42px, 6.4vw, 80px);
  font-weight: 800;
}

.accent {
  color: var(--accent);
}

.lead {
  max-width: 34em;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 21px);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  min-height: 60px;
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--button-bg);
  color: var(--button-ink);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.store + .store {
  background: transparent;
  color: var(--ink);
}

.store:hover {
  transform: translateY(-2px);
}

.store svg {
  width: 26px;
  height: 26px;
}

.store small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.75;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone {
  margin: 0;
  width: min(340px, 100%);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 46px;
  background: #050505;
  box-shadow: var(--shadow);
}

.phone img {
  width: 100%;
  border-radius: 37px;
}

.hero .phone {
  transform: rotate(2deg);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.facts strong {
  display: block;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.01em;
}

.facts span {
  color: var(--muted);
  font-size: 15px;
}

/* Secciones */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.eyebrow {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section h2 {
  margin-top: 12px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
}

.section-lead {
  max-width: 40em;
  margin-top: 16px;
  color: var(--muted);
  font-size: 19px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.feature {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--accent);
}

.feature h3 {
  margin-top: 20px;
  font-size: 21px;
}

.feature p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

.checks {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 34px;
  color: var(--muted);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

.phone-sm {
  width: 100%;
  padding: 7px;
  border-radius: 34px;
}

.phone-sm img {
  border-radius: 28px;
}

.install {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  margin-top: 40px;
}

.tour {
  display: grid;
  gap: 96px;
  margin-top: 64px;
}

.tour-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 64px;
}

.tour-row > .phone {
  justify-self: center;
  width: min(300px, 100%);
}

.tour-row:nth-child(even) > :first-child {
  order: 2;
}

.phone-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.phone-pair .phone-sm:nth-child(2) {
  transform: translateY(32px);
}

.tour-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tour-copy h3 {
  margin-top: 16px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
}

.tour-copy > p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
}

.tour-copy .checks {
  margin-top: 22px;
}

.install-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.install-card > p {
  color: var(--muted);
}

.install-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.install-head svg {
  width: 28px;
  height: 28px;
}

.install-head h3 {
  font-size: 22px;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}

.steps li {
  position: relative;
  padding-left: 44px;
  color: var(--muted);
  counter-increment: paso;
}

.steps li::before {
  content: counter(paso);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.steps strong {
  color: var(--ink);
}

.steps a,
.note a {
  display: inline-block;
  margin-left: 4px;
  color: var(--accent);
  font-weight: 700;
}

.note {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 15px;
}

.after-title {
  margin-top: 48px;
  font-size: 24px;
}

.after {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.after-item {
  display: flex;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.after-item p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}

.after-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--surface-strong);
  color: var(--accent);
  font-weight: 800;
}

.contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-card:hover {
  border-color: var(--green);
}

.contact-card svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.contact-card small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.faq {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 26px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 0 22px;
  color: var(--muted);
}

.faq a {
  color: var(--ink);
  font-weight: 600;
}

.cta {
  padding-top: 24px;
}

.cta-box {
  padding: 56px 32px;
  border-radius: 28px;
  background: linear-gradient(145deg, #0f5c54 0%, #082f2d 58%, #061f1d 100%);
  color: #f2f7f4;
  text-align: center;
}

.cta-box h2 {
  margin: 0;
}

.cta-box p {
  margin-top: 12px;
  color: #d5e6dd;
}

.cta-box .store-buttons {
  justify-content: center;
}

.cta-box .store {
  border-color: rgba(255, 255, 255, 0.25);
  background: #f2f7f4;
  color: #082f2d;
}

.cta-box .store + .store {
  background: transparent;
  color: #f2f7f4;
}

.site-footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.footer-row nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-row a {
  text-decoration: none;
}

.footer-row a:hover {
  color: var(--ink);
}

/* Tableta */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 48px;
  }
  .hero-visual {
    margin-top: 8px;
  }
  .hero .phone {
    width: min(300px, 80%);
    transform: none;
  }
  .features,
  .contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .install,
  .after {
    grid-template-columns: 1fr;
  }
  .tour {
    gap: 72px;
  }
  .tour-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .tour-row:nth-child(even) > :first-child {
    order: 0;
  }
  .tour-row > .phone {
    width: min(280px, 78%);
  }
  .phone-pair {
    max-width: 520px;
    width: 100%;
    justify-self: center;
  }
}

/* Móvil */
@media (max-width: 760px) {
  .hide-sm {
    display: none;
  }
  .show-sm {
    display: inline-grid;
  }
  .header-row {
    gap: 12px;
  }
  .header-actions {
    margin-left: auto;
  }
  .nav {
    display: none;
    position: absolute;
    inset: 72px 0 auto;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 14px 0;
    font-size: 18px;
    border-bottom: 1px solid var(--line);
  }
  .nav a:last-child {
    border-bottom: 0;
  }
  .section {
    padding: 72px 0;
  }
  .features,
  .contact {
    grid-template-columns: 1fr;
  }
  .facts {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 48px;
  }
  .store {
    flex: 1 1 180px;
  }
  .cta-box {
    padding: 44px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .store {
    transition: none;
  }
}
