/* Puedo Rodar — landing. Light theme (shadcn/zinc), compiled from the Claude
   Design "Landing v2" redesign into real classes: inline styles → classes,
   style-hover → :hover, keyframes, and max-width breakpoints (the source design
   was a fixed 1160px desktop mockup; the media-query syntax stays legacy
   `max-width` for older field phones, never the modern range form). */

:root {
  --ink: #09090b;
  --ink-2: #18181b;
  --muted: #71717a;
  --muted-2: #3f3f46;
  --faint: #a1a1aa;
  --border: #e4e4e7;
  --border-2: #f4f4f5;
  --panel: #fafafa;
  --green: #2f9e44;
  --green-600: #278239;
  --orange: #f08c00;
  --red: #e03131;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #fff;
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-600); }
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

@keyframes pr-pulse { 0%, 100% { opacity: .5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.35); } }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: 58px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark { width: 27px; height: 27px; border-radius: 7px; background: var(--green); display: flex; align-items: center; justify-content: center; flex: none; }
.brand-mark-sm { width: 22px; height: 22px; border-radius: 6px; }
.brand-name { font-weight: 600; font-size: 15.5px; letter-spacing: -.02em; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a { font-size: 13.5px; font-weight: 500; color: var(--muted); padding: 7px 11px; border-radius: 7px; transition: .15s; }
.nav > a:hover { color: var(--ink); background: var(--border-2); }
.nav .nav-cta { margin-left: 8px; color: #fff; background: var(--ink-2); padding: 7px 14px; border-radius: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.nav .nav-cta:hover { background: var(--green); color: #fff; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; padding: 12px 22px; border-radius: 9px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); transition: .15s; }
.btn-primary { color: #fff; background: var(--green); }
.btn-primary:hover { background: var(--green-600); color: #fff; }
.btn-secondary { color: var(--ink); background: #fff; border: 1px solid var(--border); padding: 12px 20px; }
.btn-secondary:hover { background: var(--border-2); color: var(--ink); }
.btn-light { color: var(--ink); background: #fff; }
.btn-light:hover { background: var(--border); color: var(--ink); }
.btn-ghost { color: #fafafa; background: transparent; border: 1px solid #3f3f46; padding: 12px 20px; }
.btn-ghost:hover { background: var(--ink-2); color: #fafafa; }

/* ===== Hero ===== */
.hero { position: relative; text-align: center; padding: 80px 24px 56px; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent);
}
.hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--muted-2);
  background: #fff; border: 1px solid var(--border);
  padding: 5px 6px 5px 14px; border-radius: 999px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
.hero-badge:hover { color: var(--muted-2); }
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.hero-badge-cta { display: inline-flex; align-items: center; gap: 3px; font-weight: 500; color: var(--green); background: #f0fdf4; border-radius: 999px; padding: 2px 9px; }
.hero h1 { font-weight: 700; font-size: clamp(34px, 7vw, 60px); line-height: 1.02; letter-spacing: -.045em; margin: 24px 0 0; text-wrap: balance; }
.hero-sub { font-size: 19px; line-height: 1.55; color: var(--muted); margin: 22px auto 0; max-width: 36em; text-wrap: pretty; }
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.hero-note { font-family: var(--mono); font-size: 12px; color: var(--faint); margin: 20px 0 0; }

/* ===== Product shot ===== */
.shot-wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px 80px; position: relative; z-index: 1; }
.shot { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 10px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .15); }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 6px 6px 12px; }
.shot-bar .d { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.shot-url { flex: 1; max-width: 280px; margin: 0 auto; text-align: center; font-family: var(--mono); font-size: 11.5px; color: var(--faint); background: var(--border-2); border-radius: 6px; padding: 4px 0; }
.shot-map { position: relative; height: 420px; border-radius: 9px; overflow: hidden; background: var(--panel) url("/hero-map.webp") center / cover no-repeat; }
.shot-fire { position: absolute; left: 20px; top: 20px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 8px 12px; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .08); }
.shot-fire span { font-weight: 500; font-size: 12px; color: #92400e; }
.shot-status { position: absolute; right: 20px; bottom: 20px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1); width: 224px; }
.shot-status-label { font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.shot-status-name { font-weight: 600; font-size: 16px; margin: 3px 0 11px; letter-spacing: -.02em; }
.shot-status-pill { display: inline-flex; align-items: center; gap: 7px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 7px; padding: 5px 11px; font-size: 12.5px; font-weight: 500; color: #15803d; }

/* ===== Bands & sections ===== */
.band { border-top: 1px solid var(--border); background: var(--panel); }
.section { padding: 76px 0; }
.section-head { max-width: 640px; }
.section-head.center { text-align: center; margin: 0 auto 40px; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--green); }
.section h2 { font-weight: 700; font-size: clamp(26px, 5vw, 36px); letter-spacing: -.035em; margin: 10px 0 0; }
.section-lead { font-size: 16px; color: var(--muted); margin: 12px 0 0; line-height: 1.55; }

/* ===== Features (bento) ===== */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px; transition: .15s; }
.feat:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .07), 0 2px 4px -2px rgba(0, 0, 0, .07); }
.feat-lg { grid-row: span 2; grid-column: 1; padding: 26px; display: flex; flex-direction: column; }
.feat-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--border-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--green); }
.feat-icon-accent { width: 42px; height: 42px; border-radius: 9px; background: #f0fdf4; border-color: #bbf7d0; }
.feat h3 { font-weight: 600; font-size: 16px; margin: 16px 0 0; letter-spacing: -.02em; }
.feat-lg h3 { font-size: 19px; margin-top: 18px; }
.feat p { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 7px 0 0; }
.feat-lg p { font-size: 14.5px; line-height: 1.6; margin-top: 8px; }
.gpx-demo { margin-top: auto; padding-top: 22px; }
.gpx-demo > div:first-child { }
.gpx-demo-top { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--panel); border: 1px solid var(--border); border-radius: 10px 10px 0 0; padding: 14px 14px 10px; margin-bottom: -1px; }
.gpx-demo-km { color: var(--green); }
.gpx-demo-bar { display: flex; gap: 3px; height: 8px; background: var(--panel); border-left: 1px solid var(--border); border-right: 1px solid var(--border); padding: 0 14px; }
.gpx-demo-bar span { border-radius: 2px; }
.gpx-demo-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); background: var(--panel); border: 1px solid var(--border); border-radius: 0 0 10px 10px; padding: 10px 14px 14px; }
.gpx-demo-legend span { display: inline-flex; align-items: center; gap: 5px; }
.gpx-demo-legend .d { width: 7px; height: 7px; border-radius: 50%; flex: none; }

/* ===== Cómo reportar un cierre (pasos) ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; }
.step-num { position: absolute; top: 20px; right: 20px; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--faint); }
.step-icon { width: 42px; height: 42px; border-radius: 9px; background: #f0fdf4; border: 1px solid #bbf7d0; display: flex; align-items: center; justify-content: center; color: var(--green); flex: none; }
.step h3 { font-weight: 600; font-size: 16.5px; margin: 16px 0 0; letter-spacing: -.02em; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 7px 0 0; }
.step-demo { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border-2); flex: 1; display: flex; flex-direction: column; }
/* Paso 1 — elección de tipo + mini-mapa con el área dibujada */
.step-types { display: flex; gap: 6px; }
.step-types button { flex: 1; font-family: var(--mono); font-size: 11.5px; padding: 7px 0; border-radius: 7px; border: 1px solid var(--border); background: #fff; color: var(--muted); cursor: default; }
.step-types button.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.step-map { position: relative; margin-top: 10px; flex: 1; min-height: 150px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #eef1ea; }
.step-map svg { display: block; width: 100%; height: 100%; }
.step-hint { font-size: 11.5px; color: var(--faint); margin: 9px 0 0; text-align: center; }
/* Paso 2 — mini parte (réplica de ReportForm) */
.step-form { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 12px; display: grid; gap: 8px; }
.step-form-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.step-form-label { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.step-form-value { font-size: 12.5px; font-weight: 500; color: var(--ink); background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 4px 9px; }
.step-form-field { display: grid; gap: 5px; }
.step-form-text { margin: 0; font-size: 12.5px; color: var(--muted-2); background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 6px 9px; line-height: 1.4; }
.step-photos { display: flex; gap: 5px; }
.step-photos i { width: 26px; height: 26px; border-radius: 5px; background: var(--border-2); border: 1px solid var(--border); display: block; }
/* Paso 3 — publicado (réplica de shot-status-pill) + votos de la comunidad */
.step-pub { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 14px; text-align: center; }
.step-pub-pill { display: inline-flex; align-items: center; gap: 7px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 7px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; color: #15803d; }
.step-pub-note { font-size: 11.5px; color: var(--muted); margin: 9px 0 0; }
.step-votes { display: flex; gap: 6px; margin-top: 12px; }
.step-vote { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 8px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--muted-2); cursor: default; }
.step-vote span { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.step-vote--confirm { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }
.step-vote--confirm span { color: #15803d; }

/* ===== Cobertura ===== */
.cov { max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.cov-head { display: grid; grid-template-columns: 1fr auto; padding: 11px 16px; background: var(--panel); border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
/* Flat list of community rows, one per line at full width. A single column keeps
   every row aligned — with 19 (odd) communities a two-column split left an
   uneven, dangling last row. The `<!-- COMMUNITIES -->` marker produces the list. */
.communities { display: flex; flex-direction: column; }
.community { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--border-2); color: var(--ink); transition: .12s; }
.community:last-child { border-bottom: none; }
.community:hover { background: var(--panel); color: var(--ink); }
.c-name { font-size: 14px; font-weight: 500; }
.c-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.c-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.c-green .c-pill { color: #15803d; background: #f0fdf4; border: 1px solid #bbf7d0; }
.c-green .c-dot { background: #2f9e44; }
.c-orange .c-pill { color: #b45309; background: #fffbeb; border: 1px solid #fde68a; }
.c-orange .c-dot { background: #f08c00; }
.c-red .c-pill { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; }
.c-red .c-dot { background: #e03131; }
.c-gray .c-pill { color: #52525b; background: var(--border-2); border: 1px solid var(--border); }
.c-gray .c-dot { background: #a1a1aa; }
.cov-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin-top: 24px; font-size: 12.5px; color: var(--muted); }
.cov-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cov-legend .dot { width: 8px; height: 8px; border-radius: 50%; }

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: 8px; }
details { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; font-weight: 500; font-size: 15px; color: var(--ink); list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary .chev { flex: none; color: var(--faint); transition: transform .2s; }
details[open] summary .chev { transform: rotate(180deg); }
details p { margin: 0; padding: 0 18px 18px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* ===== CTA ===== */
.cta { position: relative; overflow: hidden; background: var(--ink); border-radius: 16px; padding: 56px 40px; text-align: center; margin: 76px 0; }
.cta-bg { position: absolute; inset: 0; background-image: radial-gradient(#27272a 1px, transparent 1px); background-size: 20px 20px; opacity: .6; }
.cta-inner { position: relative; z-index: 1; }
.cta h2 { font-weight: 700; font-size: clamp(26px, 4.5vw, 32px); letter-spacing: -.035em; color: #fafafa; text-wrap: balance; }
.cta p { font-size: 16px; color: var(--faint); margin: 12px auto 0; max-width: 32em; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 40px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-name { font-weight: 600; font-size: 14px; color: var(--ink); }
/* wrap: con los enlaces legales el pie pasó de 3 a 5 destinos y en móvil no
   caben en una fila. Sin esto cada enlace se parte en varias líneas y el
   último se sale por la derecha (.footer-row sí envuelve, .footer-links no). */
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: 14px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer-legal { font-family: var(--mono); font-size: 11.5px; color: var(--faint); line-height: 1.5; margin: 20px auto 0; }

/* ===== Responsive (source design was 1160px desktop-only) ===== */
@media (max-width: 900px) {
  .hero { padding: 56px 20px 40px; }
  .shot-map { height: 340px; }
  .section { padding: 56px 0; }
}
@media (max-width: 720px) {
  .nav a:not(.nav-cta) { display: none; }
  .bento { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .feat-lg { grid-row: auto; grid-column: auto; }
  .shot-status { width: 180px; }
}
@media (max-width: 640px) {
  .cta { padding: 44px 24px; margin: 56px 0; }
  .shot-map { height: 280px; }
  .shot-fire span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}
