/* Cazavértices — web
   Los colores son los de la app (lib/theme/app_theme.dart): el verde de marca,
   el ámbar de los visitados y el fondo verdoso casi blanco. Sin fuentes
   externas: la del sistema es la misma que la app usa en el iPhone. */

:root {
  --brand: #0e7c66;
  --brand-strong: #0a6655;
  --brand-deep: #074a3d;
  --accent: #e0a32e;
  --accent-ink: #8a5d0c;
  --bg: #f7f9f7;
  --bg-alt: #edf3f0;
  --surface: #ffffff;
  --ink: #101614;
  --ink-soft: #3c4743;
  --muted: #5d6a65;
  --line: #d9e3df;
  --contour: rgba(14, 124, 102, 0.13);
  --shadow: 0 1px 2px rgba(16, 22, 20, 0.06), 0 12px 32px rgba(16, 22, 20, 0.08);
  --phone-shadow: 0 30px 60px -18px rgba(7, 74, 61, 0.45), 0 12px 24px -12px rgba(16, 22, 20, 0.3);
  --radius: 20px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4fc9ae;
    --brand-strong: #6fd8c0;
    --brand-deep: #0b3a31;
    --accent: #f0b84a;
    --accent-ink: #f0b84a;
    --bg: #0f1513;
    --bg-alt: #141c19;
    --surface: #18211e;
    --ink: #eef3f1;
    --ink-soft: #c9d4cf;
    --muted: #94a39d;
    --line: #26322e;
    --contour: rgba(79, 201, 174, 0.10);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    --phone-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.7), 0 12px 24px -12px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--brand);
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 10px;
}

.skip:focus {
  left: 8px;
}

/* ---------- Cabecera ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
}

.site-header.is-plain,
.site-header:has(+ main .page) {
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}

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

.brand img {
  width: 34px;
  height: 34px;
  box-shadow: 0 2px 6px rgba(7, 74, 61, 0.25);
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.nav a:hover {
  color: var(--brand);
}

@media (max-width: 820px) {
  .nav {
    display: none;
  }

  .site-header .btn {
    margin-left: auto;
  }
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-strong);
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .btn-primary,
  .btn-primary:hover {
    color: #062b23;
  }
}

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

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

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
  border-radius: 12px;
}

/* El botón de la tienda mientras la app no está publicada: se ve, pero no
   engaña. Cuando haya enlace, se cambia por la insignia oficial de Apple. */
.store-soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 22px 0 18px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}

.store-soon svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.store-soon span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-soon small {
  font-size: 12px;
  opacity: 0.75;
}

.store-soon strong {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* ---------- Curvas de nivel ---------- */

.contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--contour);
  pointer-events: none;
}

/* ---------- Portada ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px);
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.hero h1 {
  font-size: clamp(38px, 4.4vw, 58px);
  font-weight: 850;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero .lead {
  margin-top: 22px;
  font-size: clamp(18px, 1.6vw, 20px);
  color: var(--ink-soft);
  max-width: 34em;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.hero .note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 520px;
}

.hero-phones .phone {
  width: min(300px, 62%);
}

.hero-phones .phone-back {
  position: absolute;
  top: 46px;
  right: 2%;
  width: min(262px, 52%);
  transform: rotate(5deg);
  opacity: 0.97;
}

.hero-phones .phone-front {
  position: relative;
  transform: translateX(-22%) rotate(-3deg);
  z-index: 1;
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero-phones {
    min-height: 0;
    margin-top: 8px;
  }

  .hero-phones .phone-front {
    transform: translateX(-16%) rotate(-3deg);
  }

  .hero-phones .phone-back {
    top: 30px;
    right: 6%;
  }
}

/* ---------- Móvil ---------- */

.phone {
  position: relative;
  padding: 9px;
  border-radius: 50px;
  background: #0d1311;
  box-shadow: var(--phone-shadow), inset 0 0 0 1.5px #2b3532;
}

.phone img {
  width: 100%;
  border-radius: 41px;
  aspect-ratio: 660 / 1434;
  object-fit: cover;
  background: var(--bg-alt);
}

@media (max-width: 520px) {
  .phone {
    padding: 6px;
    border-radius: 36px;
  }

  .phone img {
    border-radius: 30px;
  }
}

/* ---------- Cifras ---------- */

.facts {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.facts ul {
  list-style: none;
  margin: 0;
  padding: 28px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.facts strong {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--brand);
  line-height: 1.1;
}

.facts span {
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 760px) {
  .facts ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Secciones ---------- */

.section {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 820;
}

.section-head p {
  margin-top: 16px;
  font-size: 19px;
  color: var(--ink-soft);
}

/* ---------- Características ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

.feature + .feature {
  margin-top: clamp(72px, 10vw, 140px);
}

.feature-media {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}

.feature-media .phone {
  width: min(300px, 70%);
}

.feature-media.pair .phone {
  width: min(260px, 47%);
}

.feature-media.pair .phone:last-child {
  margin-top: 56px;
}

.feature:nth-child(even) .feature-media {
  order: 2;
}

.feature h3 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
}

.feature .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--brand);
  font-weight: 700;
  font-size: 15px;
}

.feature .tag svg {
  width: 22px;
  height: 22px;
}

.feature p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 18px;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.checks li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-soft);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 14%, transparent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7c66' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

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

@media (max-width: 860px) {
  .feature {
    grid-template-columns: 1fr;
  }

  .feature:nth-child(even) .feature-media {
    order: 0;
  }

  .feature-media .phone {
    width: min(280px, 72%);
  }
}

/* ---------- Rejilla de extras ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.card .icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
}

.card .icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Tarjeta para compartir ---------- */

.share {
  position: relative;
  overflow: hidden;
  background: #0c1311;
  color: #eef3f1;
  --contour: rgba(79, 201, 174, 0.10);
}

.share .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

.share h2 {
  color: #fff;
}

.share .kicker {
  color: #f0b84a;
}

.share p {
  margin-top: 16px;
  color: #c3cfca;
  font-size: 18px;
}

.share figure {
  margin: 0;
  justify-self: center;
  width: min(440px, 100%);
}

.share figure img {
  border-radius: 22px;
  box-shadow: 0 30px 80px -20px rgba(224, 163, 46, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

@media (max-width: 860px) {
  .share .wrap {
    grid-template-columns: 1fr;
  }
}

/* ---------- Privacidad ---------- */

.privacy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.privacy .card {
  background: var(--surface);
}

.privacy-cta {
  margin-top: 36px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 860px) {
  .privacy {
    grid-template-columns: 1fr;
  }
}

/* ---------- Gratis y PRO ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 36px);
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.plan-pro {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow);
}

.plan header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.plan h3 {
  font-size: 26px;
  font-weight: 820;
}

.plan .price {
  font-size: 15px;
  font-weight: 650;
  color: var(--muted);
}

.plan-pro .price {
  color: var(--accent-ink);
}

.plan > p {
  margin-top: 8px;
  color: var(--muted);
}

.plan .checks {
  margin-top: 22px;
}

@media (max-width: 760px) {
  .plans {
    grid-template-columns: 1fr;
  }
}

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

.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  font-size: 18px;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}

.faq details p {
  padding: 0 0 22px;
  color: var(--ink-soft);
}

.faq details p + p {
  margin-top: -8px;
}

/* ---------- Llamada final ---------- */

.final {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.final .wrap {
  position: relative;
}

.final img.app-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  border-radius: 22px;
  box-shadow: 0 16px 36px -10px rgba(7, 74, 61, 0.5);
}

.final p {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--ink-soft);
  font-size: 19px;
}

.final .actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* ---------- Pie ---------- */

.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  color: var(--muted);
}

.site-footer .top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.site-footer nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}

.site-footer nav a:hover {
  color: var(--brand);
}

.site-footer .legal {
  margin-top: 28px;
  display: grid;
  gap: 8px;
  max-width: 860px;
}

.site-footer .legal a {
  color: inherit;
}

/* ---------- Páginas de texto (privacidad) ---------- */

.page {
  padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px);
}

.page .wrap {
  max-width: 780px;
}

.page h1 {
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 850;
}

.page .updated {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.page .summary {
  margin-top: 32px;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
}

.page .summary p {
  font-size: 18px;
  color: var(--ink);
}

.page .summary p + p {
  margin-top: 10px;
}

.page h2 {
  margin-top: 48px;
  font-size: 25px;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.page h3 {
  margin-top: 28px;
  font-size: 19px;
  font-weight: 720;
  letter-spacing: -0.01em;
}

.page p,
.page li {
  color: var(--ink-soft);
}

.page p {
  margin-top: 14px;
}

.page ul {
  margin: 14px 0 0;
  padding-left: 22px;
}

.page li + li {
  margin-top: 8px;
}

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

.table-scroll {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 560px;
}

.page th,
.page td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.page th {
  background: var(--bg-alt);
  color: var(--ink);
  font-weight: 650;
}

.page tr:last-child td {
  border-bottom: 0;
}

.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.not-found p {
  margin: 14px auto 28px;
  color: var(--ink-soft);
  max-width: 30em;
}
