/* Talleres de motos en Popayán — Móvil primero, ligero y accesible */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-alt: #f1f3f6;
  --text: #181c20;
  --muted: #4b5563;
  --border: #d8dee6;
  --accent: #c93d0b;
  --accent-hover: #a53107;
  --accent-soft: #fff2ec;
  --wa: #157347;
  --wa-hover: #0f5a36;
  --tel: #1e293b;
  --tel-hover: #0f172a;
  --ok-bg: #e7f6ec;
  --ok-text: #14532d;
  --warn-bg: #fef3c7;
  --warn-text: #7c2d12;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  --max-w: 1040px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a:hover {
  color: var(--accent-hover);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
  font-weight: 700;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

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

.brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.25rem;
}

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

.site-nav a.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
}

.site-nav a.nav-cta:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* Main */
main {
  padding: 1.4rem 0 2.5rem;
}

h1 {
  margin: 0 0 0.65rem;
  font-size: 1.75rem;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

h2 {
  margin: 1.8rem 0 0.75rem;
  font-size: 1.35rem;
  line-height: 1.28;
}

h3 {
  margin: 1.25rem 0 0.45rem;
  font-size: 1.1rem;
  line-height: 1.35;
}

p {
  margin: 0 0 0.9rem;
}

.lead {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 68ch;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumbs li::after {
  content: "/";
  margin-left: 0.35rem;
  color: #9ca3af;
}

.breadcrumbs li:last-child::after {
  content: "";
  margin: 0;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Notice banner for sample data */
.notice-sample {
  background: var(--warn-bg);
  color: var(--warn-text);
  border: 1px solid #f59e0b;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
}

/* Filters */
.filters-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1.1rem 0 1.25rem;
  box-shadow: var(--shadow);
}

.filters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid #bfc7d1;
  border-radius: var(--radius-sm);
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.filters-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--surface-alt);
  font-size: 0.95rem;
  color: var(--muted);
}

.btn-reset {
  background: var(--surface-alt);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
}

.btn-reset:hover {
  background: #e5e9f0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  line-height: 1.25;
}

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

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

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

.btn-wa:hover {
  background: var(--wa-hover);
  color: #fff;
}

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

.btn-tel:hover {
  background: var(--tel-hover);
  color: #fff;
}

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

.btn-outline:hover {
  background: var(--surface-alt);
  color: var(--text);
}

/* Badges & Tags */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  line-height: 1.3;
}

.badge-featured {
  background: var(--accent);
  color: #fff;
}

.badge-type {
  background: var(--surface-alt);
  color: var(--text);
  border: 1px solid var(--border);
}

.badge-ok {
  background: var(--ok-bg);
  color: var(--ok-text);
}

.badge-warn {
  background: var(--warn-bg);
  color: var(--warn-text);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.5rem 0;
}

.tag {
  display: inline-block;
  font-size: 0.84rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--surface-alt);
  color: var(--text);
  text-decoration: none;
  border: 1px solid #e2e6ec;
}

a.tag:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-hover);
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.taller-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}

.taller-card.is-featured {
  border-color: var(--accent);
  border-left: 5px solid var(--accent);
}

.taller-card[hidden] {
  display: none;
}

.card-title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  line-height: 1.28;
}

.card-title a {
  color: var(--text);
  text-decoration: none;
}

.card-title a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.card-meta {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.card-meta strong {
  color: var(--text);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--surface-alt);
}

.card-actions .btn {
  flex: 1 1 auto;
  min-width: 110px;
}

.empty-state {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin-top: 1rem;
}

/* CTA Strip */
.cta-strip {
  background: var(--accent-soft);
  border: 1px solid #f5c2ae;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-strip h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.cta-strip p {
  margin: 0;
  color: var(--muted);
}

/* Explore links */
.explore-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  margin-top: 1.5rem;
}

.explore-section h2 {
  margin-top: 0;
}

.explore-group {
  margin-bottom: 1.1rem;
}

.explore-group:last-child {
  margin-bottom: 0;
}

.explore-group h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--muted);
}

.pill-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill-link {
  display: inline-block;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.pill-link:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-hover);
}

/* Detail page (ficha) */
.detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
}

.detail-actions .btn {
  flex: 1 1 180px;
}

.info-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 0;
}

.info-row {
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--surface-alt);
}

.info-row dt {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
}

.info-row dd {
  margin: 0;
  font-size: 1.02rem;
}

.source-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1.25rem;
  font-size: 0.94rem;
}

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

.claim-box {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Guides & Prose */
.prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  max-width: 76ch;
  box-shadow: var(--shadow);
}

.prose h1 {
  margin-bottom: 0.5rem;
}

.prose-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
  margin: 0 0 1rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose blockquote {
  margin: 1.2rem 0;
  padding: 0.85rem 1rem;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

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

.guide-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}

.guide-card h2,
.guide-card h3 {
  margin: 0 0 0.45rem;
}

.guide-card h2 a,
.guide-card h3 a {
  text-decoration: none;
  color: var(--text);
}

.guide-card h2 a:hover,
.guide-card h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Plans (/registra/) */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}

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

.plan-card.plan-featured {
  border: 2px solid var(--accent);
}

.plan-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0.4rem 0 0.85rem;
}

.plan-card ul {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.plan-card li {
  margin-bottom: 0.4rem;
}

.disclaimer-box {
  background: var(--surface-alt);
  border-left: 4px solid var(--tel);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  max-width: 640px;
  box-shadow: var(--shadow);
}

.form-stack {
  display: grid;
  gap: 0.9rem;
}

/* Redirect page (/ir/*) */
.redirect-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}

.redirect-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.35rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
}

.redirect-card h1 {
  font-size: 1.45rem;
}

.redirect-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.2rem;
}

/* Responsive */
@media (min-width: 640px) {
  h1 {
    font-size: 2.1rem;
  }

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

  .field-search {
    grid-column: 1 / -1;
  }

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

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

@media (min-width: 820px) {
  .filters-grid {
    grid-template-columns: 2fr repeat(4, 1fr);
  }

  .field-search {
    grid-column: auto;
  }

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

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