/* colaboraPe · colaborape.pe — CSS propio. Colores y tipografías de la marca (assets/brand/LEEME-marca.md). */
:root {
  --red: #C8401A;
  --red-dark: #A83313;
  --yellow: #FFC145;
  --cream: #FFF3E4;
  --ink: #1F1A17;
  --muted: #5C534D;
  --border: #E7DED4;
  --surface2: #F6F1EB;
  --ok: #0B6B4B;
  --ok-bg: #DDF1E7;
  --radius: 14px;
  --font-title: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--red-dark); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-top: 1.4em; }
h3, .h3 { font-size: 1.25rem; }
.h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.center-box { text-align: center; padding-top: 72px; padding-bottom: 72px; max-width: 640px; }

/* Accesibilidad: foco visible y "saltar al contenido" */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
main:focus { outline: none; }

/* Encabezado */
.site-header { border-bottom: 1px solid var(--border); background: #fff; position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand img { display: block; height: 40px; width: auto; }
.nav { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav a { display: inline-block; padding: 10px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--cream); color: var(--red-dark); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 2px solid transparent; font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer; background: var(--surface2); color: var(--ink); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-danger { background: #8E1B0B; color: #fff; }
.btn-danger:hover { background: #6F1407; color: #fff; }
.btn-ghost { background: #fff; border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-lg { min-height: 56px; font-size: 1.1rem; padding: 14px 28px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Inicio */
.hero { background: var(--cream); padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-art { display: none; text-align: center; }
.hero-art img { border-radius: 64px; box-shadow: 0 18px 50px rgba(200, 64, 26, .25); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .8rem; color: var(--red-dark); margin-bottom: .5em; }
.section { padding: 40px 0; }
.section-alt { background: var(--surface2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.step-n { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); color: var(--ink); align-items: center; justify-content: center; font: 800 1.1rem var(--font-title); margin-bottom: 8px; }
.cols { display: grid; gap: 28px; }
.ticks { padding-left: 1.2em; }

/* Páginas de texto */
.prose { padding-top: 32px; padding-bottom: 56px; }
.prose.narrow { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.legal blockquote { margin: 1em 0; padding: .8em 1em; background: var(--cream); border-left: 4px solid var(--yellow); border-radius: 8px; }
.updated { color: var(--muted); font-weight: 600; }
.notice { background: #FFF6D6; border: 1px solid var(--yellow); border-radius: 12px; padding: 12px 16px; }
.table-wrap { overflow-x: auto; margin: 1em 0; border: 1px solid var(--border); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
thead th { background: var(--surface2); }
tbody th { font-weight: 600; white-space: nowrap; }
code { background: var(--surface2); padding: 1px 6px; border-radius: 6px; }
.faq { border: 1px solid var(--border); border-radius: 12px; padding: 4px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
.faq[open] { background: var(--cream); }

/* Formularios */
label { display: block; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=tel], input[type=email], input[type=number], select, textarea { width: 100%; min-height: 48px; padding: 10px 14px; font: 1rem var(--font-body); color: var(--ink); background: #fff; border: 2px solid #B9AEA4; border-radius: 12px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--yellow); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin: 12px 0; }
.check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--red); flex: none; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 18px 18px; margin: 0 0 18px; }
legend { font: 800 1.1rem var(--font-title); padding: 0 8px; }
.field { margin-bottom: 4px; }
.phone-field { display: flex; align-items: stretch; }
.phone-field .prefix { display: flex; align-items: center; padding: 0 14px; background: var(--surface2); border: 2px solid #B9AEA4; border-right: 0; border-radius: 12px 0 0 12px; font-weight: 700; }
.phone-field input { border-radius: 0 12px 12px 0; }
.error { color: #9B1C0A; background: #FDECE8; border: 1px solid #F3B7AA; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.error[hidden], [hidden] { display: none !important; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin: 12px 0; }
.card ul { padding-left: 1.2em; margin: 0; }
.two-cols { display: grid; gap: 14px; }
.big-number { font-size: 1.6rem; }

/* Evento */
.event { padding-top: 24px; padding-bottom: 56px; }
.event-grid { display: grid; gap: 24px; }
.poster { width: 100%; max-width: 520px; border-radius: 20px; display: block; background: var(--yellow); aspect-ratio: 1 / 1; object-fit: cover; }
.poster-fallback { display: flex; align-items: center; justify-content: center; background: var(--red); }
.poster-fallback img { width: 40%; border-radius: 28px; }
.invited { background: var(--cream); border: 1px solid var(--yellow); border-radius: 999px; display: inline-block; padding: 8px 18px; }
.cause { font-weight: 600; color: var(--red-dark); }
.facts { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.fact-k { display: inline-block; min-width: 72px; font-weight: 700; color: var(--muted); }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.dishes { list-style: none; padding: 0; margin: 0 0 20px; }
.dish { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.dish div { display: flex; flex-direction: column; }
.price { font-weight: 800; white-space: nowrap; }
.cta { margin: 20px 0 8px; }

/* Pie */
.site-footer { background: var(--ink); color: #F6EFE9; padding: 36px 0 28px; margin-top: 24px; }
.footer-grid { display: grid; gap: 22px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer a { color: #FFE2A8; display: inline-block; padding: 6px 0; }
.site-footer a:hover { color: #fff; }
.footer-note, .footer-copy { color: #D8CBC1; font-size: .9rem; margin: 8px 0 0; }

@media (min-width: 760px) {
  .hero { padding: 72px 0; }
  .hero-grid { grid-template-columns: 1.4fr 1fr; }
  .hero-art { display: block; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cols { grid-template-columns: 1fr 1fr; }
  .two-cols { grid-template-columns: 1fr 1fr; }
  .event-grid { grid-template-columns: minmax(280px, 1fr) 1.2fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
