/* Landing y ayuda de CronoVet. Tokens tomados de app/src/styles.scss. Sin dependencias externas.
   Nunito (OFL 1.1, ver assets/fonts/OFL-Nunito.txt) alojada aquí en lugar de Google Fonts. */

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/nunito-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/nunito-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/nunito-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/nunito-latin-800-normal.woff2') format('woff2');
}

:root {
  --color-brand: #e96c2e; /* logotipo, acentos e iconos */
  --color-primary-ink: #a8481a; /* texto y botones con texto blanco (5,8:1 sobre blanco) */
  --color-accent: #f5a623; /* insignia beta, como en la app */
  --color-bg: #fffbf5;
  --color-surface: #ffffff;
  --color-text: #2a1c12;
  --color-text-muted: #6b5a4d; /* 6,6:1 sobre el fondo crema */
  --color-border: #ece3d8;
  --color-tint: #fdeee4;
  --radius-md: 14px;
  --radius-pill: 999px;
  --font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.95rem);
  margin-top: 0;
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  background: var(--color-text);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 1600px) {
  .wrap {
    max-width: 1440px;
  }
}

section {
  padding: 56px 0;
}

.section--tint {
  background: var(--color-tint);
}

.lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

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

/* Cabecera */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 5;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
}

.badge-beta {
  display: inline-block;
  background: var(--color-accent);
  color: #2a1c12;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  vertical-align: middle;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-main a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
}

.nav-main a:hover {
  text-decoration: underline;
}

.nav-toggle {
  display: none;
}

.lang-switch {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.lang-switch a {
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 6px;
}

.lang-switch a[aria-current='true'] {
  color: var(--color-text);
  font-weight: 800;
  text-decoration: underline;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

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

.btn--primary:hover {
  background: #8f3d14;
}

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

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

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Hero */
.hero {
  padding: 48px 0 40px;
}

.hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.beta-note {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 22px 0 0;
  max-width: 560px;
}

.beta-note p:last-child {
  margin-bottom: 0;
}

.shot {
  margin: 0;
}

.shot img {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: 5px 10px 15px rgba(0, 0, 0, 0.3);
}

.shot figcaption {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* Tarjetas */
.cards {
  display: grid;
  gap: 20px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.card--tall {
  display: flex;
  flex-direction: column;
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-tint);
  color: var(--color-primary-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card ul,
.checklist {
  padding-left: 1.2em;
  margin: 0 0 0.5em;
}

.card li,
.checklist li {
  margin-bottom: 6px;
}

.status {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.status--available {
  background: #e4f3e6;
  color: #1e5a2b;
}

.status--pending {
  background: #fdf0d5;
  color: #6b4700;
}

.status--future {
  background: var(--color-border);
  color: var(--color-text);
}

.compare {
  display: grid;
  gap: 20px;
}

/* Imagen de contenido con marco */
.frame {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 8px;
  overflow: hidden;
}

.frame img {
  border-radius: 10px;
}

/* Pasos */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  display: grid;
  gap: 16px;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 56px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding-top: 16px;
  padding-bottom: 16px;
  padding-right: 18px;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary-ink);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 {
  margin-bottom: 6px;
}

.steps p:last-child {
  margin-bottom: 0;
}

/* Preguntas frecuentes */
.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.faq summary:focus-visible {
  border-radius: 6px;
}

.faq details > *:not(summary) {
  margin-top: 10px;
}

.faq details p:last-child {
  margin-bottom: 0;
}

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0 0 8px;
  list-style: none;
}

.topics a {
  display: inline-block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
}

/* Avisos de notificaciones (ayuda) */
.notice-cards {
  display: grid;
  gap: 16px;
}

.notice-card {
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left-width: 6px;
}

.notice-card--free {
  border-left-color: var(--color-brand);
}

.notice-card--plus {
  border-left-color: var(--color-accent);
}

.notice-card--android {
  border-left-color: var(--color-text-muted);
}

.notice-card h3 {
  margin-bottom: 8px;
}

.notice-card p:last-child {
  margin-bottom: 0;
}

/* Pie */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
  font-size: 0.95rem;
}

.site-footer__grid {
  display: grid;
  gap: 16px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  color: var(--color-text);
}

/* Pequeñas pantallas: menú plegable sin JavaScript (casilla + etiqueta) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-main a.btn--primary,
.nav-main a.btn--primary:hover {
  color: #fff;
  text-decoration: none;
}

.menu-check:focus-visible + .nav-toggle {
  outline: 3px solid var(--color-text);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    font-weight: 800;
    cursor: pointer;
    color: var(--color-text);
  }

  .nav-main {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 8px 16px 16px;
  }

  .nav-main a {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .menu-check:checked ~ .nav-main {
    display: flex;
  }

  .site-header {
    position: sticky;
  }

  .site-header__inner {
    position: relative;
  }
}

/* Breakpoints */
@media (min-width: 640px) {
  .cards--2,
  .compare {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__grid {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
  }

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

  .notice-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Barra beta superior */
.beta-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 8px 0;
  font-size: 0.95rem;
}

.beta-bar p {
  margin: 0;
}

/* Capturas ampliables */
.shot-link {
  display: block;
  border-radius: var(--radius-md);
  cursor: zoom-in;
}

.shot-link:focus-visible {
  outline: 3px solid var(--color-text);
  outline-offset: 3px;
}

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(42, 28, 18, 0.85);
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  background: var(--color-surface);
}

.lightbox__close {
  display: block;
  margin: 0 0 8px auto;
  min-height: 44px;
  padding: 8px 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

/* Capturas de móvil */
.phones__grid {
  display: grid;
  gap: 28px;
  justify-items: center;
  margin-top: 24px;
}

.phone {
  margin: 0;
  width: 100%;
  max-width: 260px;
  text-align: center;
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: 5px 10px 15px rgba(0, 0, 0, 0.3);
}

.phone figcaption {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 8px;
}

@media (min-width: 640px) {
  .phones__grid {
    grid-template-columns: repeat(2, minmax(0, 260px));
    justify-content: center;
  }
}
