/* Desvariantdo: estilo retro de garaje, inspirado en las Derbi de los 70-80. */
/* Fuentes alojadas en el propio servidor (sin llamadas a Google). Licencia SIL OFL. */
@font-face { font-family: 'Anton'; src: url('/fonts/anton.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Permanent Marker'; src: url('/fonts/marker.woff2') format('woff2'); font-weight: 400; font-display: swap; }
:root {
  --ink: #16130f;
  --ink-2: #2a251e;
  --paper: #f4ecdc;
  --paper-2: #ebe0c9;
  --card: #fffaf0;
  --red: #d51c3e;
  --red-dark: #a8132f;
  --green: #49bc39;
  --muted: #6c6252;
  --line: #d9ccb2;
  --radius: 10px;
  --shadow: 0 1px 0 rgba(0,0,0,.04), 0 8px 24px -12px rgba(40,25,10,.25);
  --head: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --brush: 'Permanent Marker', 'Comic Sans MS', cursive;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.05; letter-spacing: .01em; margin: 0 0 .5em; text-transform: uppercase; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mt { margin-top: 2.5rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* Botones */
.btn { display: inline-block; background: var(--red); color: #fff; border: 2px solid var(--red); border-radius: 999px; padding: .7em 1.4em; font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .45em 1em; font-size: .9rem; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-ghost-dark { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost-dark:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: #fff; border-color: #fff; }
.tag { display: inline-block; background: var(--green); color: var(--ink); font: 700 .7rem/1 var(--body); text-transform: uppercase; letter-spacing: .05em; padding: .35em .6em; border-radius: 4px; vertical-align: middle; }
.tag-muted { background: var(--paper-2); color: var(--muted); }

/* Cabecera */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 4px solid var(--red); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--paper); padding: 3px; box-shadow: 0 0 0 2px var(--green); flex: none; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { font: 400 1.5rem/1 var(--head); text-transform: uppercase; letter-spacing: .03em; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: #e9e0cd; text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current] { color: #fff; }
.nav a[aria-current] { box-shadow: 0 2px 0 var(--green); }
.nav .btn { color: #fff; }
.nav-sep { width: 1px; height: 22px; background: rgba(255,255,255,.2); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 68px 0 auto 0; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; transform: translateY(-120%); transition: transform .25s; border-bottom: 4px solid var(--red); }
  .nav.open { transform: none; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1.05rem; }
  .nav a[aria-current] { box-shadow: inset 3px 0 0 var(--green); padding-left: 12px; }
  .nav .btn { margin-top: 14px; text-align: center; border-bottom: 0; }
  .nav-sep { display: none; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Avisos */
.flash { max-width: 1128px; margin: 16px auto 0; padding: 12px 16px; border-radius: var(--radius); font-weight: 500; width: calc(100% - 32px); }
.flash-ok { background: #e3f1d9; color: #234d12; border: 1px solid #b9d9a3; }
.flash-err { background: #fbe1dd; color: #7a1610; border: 1px solid #f0b6ad; }

/* Portada */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: clamp(56px, 10vw, 120px) 0 clamp(72px, 12vw, 140px); }
.hero-has-img { background: linear-gradient(90deg, rgba(22,19,15,.92) 0%, rgba(22,19,15,.65) 55%, rgba(22,19,15,.35) 100%), var(--hero-img) center/cover no-repeat, var(--ink); }
.hero-in { position: relative; z-index: 2; max-width: 1160px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.hero-logo { justify-self: center; width: min(100%, 400px); aspect-ratio: 1; border-radius: 50%; background: var(--paper); padding: 6%; box-shadow: 0 0 0 6px var(--green), 0 0 0 12px var(--ink), 0 0 0 15px var(--red), 0 24px 60px rgba(0,0,0,.5); }
.hero-logo { position: relative; height: auto; min-height: 0; overflow: hidden; }
/* La imagen va en absoluto para que su tamaño no estire el círculo (Safari ignora aspect-ratio si el contenido es más alto). */
.hero-logo img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; }
@media (max-width: 760px) {
  .hero { padding-bottom: 104px; }
  .stripes { bottom: 22px; height: 40px; }
  .hero-in { grid-template-columns: 1fr; gap: 28px; }
  .hero-logo { order: -1; width: 190px; height: 190px; padding: 5%; box-shadow: 0 0 0 4px var(--green), 0 0 0 8px var(--ink), 0 0 0 10px var(--red), 0 16px 40px rgba(0,0,0,.5); }
}
.hero h1 { font-size: clamp(2.4rem, min(11vw, 6.5vw + 1rem), 6rem); overflow-wrap: anywhere; line-height: .9; margin-bottom: .2em; color: var(--paper); text-shadow: 4px 4px 0 var(--red); }
.eyebrow { color: var(--green); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; margin-bottom: 1rem; }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); max-width: 40ch; color: #e6dcc8; }
.lead.dark { color: var(--muted); max-width: none; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.stripes { position: absolute; right: -60px; bottom: 28px; width: min(70%, 720px); height: 54px; z-index: 1; background: linear-gradient(var(--green) 0 33%, transparent 33% 50%, var(--red) 50% 83%, transparent 83%); transform: skewX(-24deg); opacity: .95; }
.hero-has-img .stripes { opacity: .8; }

/* Secciones */
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink-2); color: #efe6d4; }
.section-dark h2 { color: var(--paper); }
.section-dark a:not(.btn) { color: var(--green); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 1.4rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.more { font-weight: 600; text-decoration: none; }
.page-head { background: var(--ink); color: #fff; padding: clamp(40px, 7vw, 72px) 0; border-bottom: 6px solid var(--green); }
.page-head h1 { color: var(--paper); margin-bottom: .2em; }
.page-head .lead { margin: 0; }
.empty { background: var(--card); border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }
.back { display: inline-block; margin-bottom: 1rem; text-decoration: none; font-weight: 600; }
.meta { color: var(--muted); font-size: .9rem; margin: 0 0 .3em; }

/* Tarjetas */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(40,25,10,.4); }
.card-img { position: relative; aspect-ratio: 16/10; background: var(--ink-2); }
.card-img img, .card-img .img-ph { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 20px; }
.card-body h3 { margin-bottom: .3em; }
.card-body p:last-child { margin-bottom: 0; }
.past .card { opacity: .78; }
.img-ph { display: grid; place-items: center; background: repeating-linear-gradient(-45deg, var(--ink-2) 0 14px, #332d24 14px 28px); }
.img-ph span { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); padding: 6px; box-shadow: 0 0 0 3px var(--green); }
.img-ph span img { width: 100%; height: 100%; object-fit: contain; }
.badge-date { position: absolute; top: 12px; left: 12px; background: var(--paper); color: var(--ink); border-radius: 8px; padding: 6px 10px 5px; text-align: center; line-height: 1; box-shadow: 0 4px 12px rgba(0,0,0,.25); border-top: 4px solid var(--red); }
.bd-d { display: block; font: 400 1.7rem/1 var(--head); }
.bd-m { display: block; font-weight: 700; text-transform: uppercase; font-size: .72rem; letter-spacing: .06em; margin-top: 2px; }
.bd-y { display: block; font-size: .68rem; color: var(--muted); }

/* Quiénes somos */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.about-photos img, .about-photos .img-ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.about-photos .img-ph { grid-column: span 2; aspect-ratio: 16/10; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

/* Banda final */
.cta-band { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; inset: auto -40px 0 auto; width: 50%; height: 100%; background: repeating-linear-gradient(-60deg, rgba(0,0,0,.08) 0 18px, transparent 18px 36px); pointer-events: none; }
.cta-in { position: relative; z-index: 1; text-align: center; }
.cta-in h2 { color: #fff; }
.cta-in p { font-size: 1.1rem; }

/* Galería */
.gallery { columns: 3 260px; column-gap: 12px; }
.gallery-item { display: block; margin-bottom: 12px; border-radius: 8px; overflow: hidden; break-inside: avoid; background: var(--ink-2); }
.gallery-item img { width: 100%; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-strip { columns: 4 200px; }
@media (max-width: 600px) { .gallery { columns: 2; column-gap: 8px; } .gallery-item { margin-bottom: 8px; } }
.pin { width: 14px; height: 14px; vertical-align: -2px; fill: var(--red); margin-right: 2px; }
.lightbox { position: fixed; inset: 0; background: rgba(10,8,6,.94); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img { max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: 6px; }
.lightbox figcaption { color: #e6dcc8; margin-top: 10px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; cursor: pointer; line-height: 1; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* Concentración */
.event-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 1rem 0; }
.event-facts div { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 8px; padding: 10px 14px; }
.event-facts span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.event-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 1.5rem; }
.hero-img { width: 100%; border-radius: var(--radius); margin: 0 0 1.5rem; box-shadow: var(--shadow); }
.prose { font-size: 1.05rem; }
.prose p { overflow-wrap: anywhere; }

/* Foro */
.forum-top { margin-bottom: 1.2rem; }
.thread-list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.thread-list li + li { border-top: 1px solid var(--line); }
.thread-list a { display: block; padding: 14px 18px; text-decoration: none; color: inherit; }
.thread-list a:hover { background: #fff; }
.thread-list .pinned { background: #fff5d8; }
.t-title { display: block; font-weight: 600; font-size: 1.05rem; color: var(--ink); overflow-wrap: anywhere; }
.t-meta { display: block; color: var(--muted); font-size: .85rem; }
.thread-title { font-size: clamp(1.7rem, 5vw, 2.6rem); overflow-wrap: anywhere; }
.posts { display: flex; flex-direction: column; gap: 12px; margin-bottom: 1.5rem; }
.post { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.post-admin { border-left: 4px solid var(--red); }
.post header { margin-bottom: .5rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.post-date { margin-left: auto; }
.post .prose { font-size: 1rem; }
.post .prose p:last-child { margin-bottom: 0; }

/* Formularios */
.form label { display: block; font-weight: 600; margin: 14px 0 6px; }
.form input:not([type=checkbox]), .form textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; font: inherit; color: var(--ink); }
.form input:focus, .form textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(73,188,57,.45); }
.form .btn { margin-top: 18px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-top: 18px; }
.form .check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.card-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 22px 24px; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.card-form h2 { margin-top: 18px; font-size: 1.5rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.small-form { max-width: 460px; }

/* Pie */
.site-footer { background: var(--ink); color: #c9bfab; padding: 40px 0 24px; border-top: 6px solid var(--red); }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.footer-in .muted { color: #9b917f; margin: 8px 0 0; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { color: #e6dcc8; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.site-footer .small { color: #8a806f; }

/* ---------- Toques propios del club ---------- */
.kicker { font-family: var(--brush); color: var(--red); font-size: 1.25rem; margin: 0 0 .2em; transform: rotate(-2deg); display: inline-block; }
.section-dark .kicker, .next-ride .kicker { color: var(--green); }
.eyebrow { font-family: var(--brush); letter-spacing: .02em; text-transform: none; font-size: 1.3rem; font-weight: 400; transform: rotate(-2deg); display: inline-block; }

/* Humo de escape en la portada */
.smoke { position: absolute; left: 4%; bottom: 40px; width: 220px; height: 220px; pointer-events: none; z-index: 1; }
.smoke span { position: absolute; bottom: 0; left: 0; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle, rgba(230,220,200,.18), rgba(230,220,200,0) 70%); animation: puff 7s linear infinite; opacity: 0; }
.smoke span:nth-child(2) { animation-delay: 1.75s; left: 20px; }
.smoke span:nth-child(3) { animation-delay: 3.5s; left: -10px; }
.smoke span:nth-child(4) { animation-delay: 5.25s; left: 30px; }
@keyframes puff { 0% { transform: translate(0, 0) scale(.4); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(140px, -200px) scale(2.6); opacity: 0; } }
.hero::before { content: ''; position: absolute; right: 8%; top: 50%; width: 520px; height: 520px; transform: translateY(-50%); background: radial-gradient(circle, rgba(213,28,62,.22), rgba(213,28,62,0) 65%); z-index: 1; pointer-events: none; }

/* Cinta que corre bajo la portada */
.ticker { background: var(--green); color: var(--ink); overflow: hidden; white-space: nowrap; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.ticker-track { display: inline-flex; gap: 22px; padding: 9px 0; animation: ticker 38s linear infinite; font: 400 1.15rem/1 var(--head); text-transform: uppercase; letter-spacing: .04em; }
.ticker i { font-style: normal; color: var(--red); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Próxima parada con cuenta atrás */
.next-ride { background: var(--ink-2); color: #efe6d4; padding: 26px 0; border-bottom: 4px solid var(--red); }
.next-in { display: flex; align-items: center; gap: 24px 36px; flex-wrap: wrap; }
.next-info { flex: 1 1 280px; min-width: 0; }
.next-info h2 { margin: 0 0 .2em; font-size: clamp(1.5rem, 4vw, 2.2rem); }
.next-info h2 a { color: var(--paper); text-decoration: none; }
.next-info h2 a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); }
.meta-light { color: #c9bfab; margin: 0; }
.countdown { display: flex; gap: 10px; }
.countdown div { background: var(--ink); border: 2px solid #3a332a; border-radius: 10px; padding: 8px 12px 6px; min-width: 70px; text-align: center; }
.countdown b { display: block; font: 400 2.1rem/1 var(--head); color: var(--paper); }
.countdown span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #a99f8c; }

/* Aletas de culata como textura de fondo */
.fins { background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 10px, transparent 10px 26px); }
.fins-head { background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 8px, transparent 8px 22px); }
.stats { display: flex; flex-wrap: wrap; gap: 16px 48px; margin-top: 48px; padding-top: 28px; border-top: 1px dashed rgba(255,255,255,.15); }
.stats b { display: block; font: 400 3rem/1 var(--head); color: var(--green); }
.stats span { color: #c9bfab; }

/* El garaje */
.bike-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.bike-card { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.bike-card::after { content: ''; position: absolute; top: 12px; right: -34px; width: 120px; height: 18px; background: linear-gradient(var(--green) 0 50%, var(--red) 50%); transform: rotate(35deg); opacity: .9; }
.bike-img { display: block; aspect-ratio: 4/3; background: var(--ink-2); }
.bike-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.bike-card:hover .bike-img img { transform: scale(1.04); }
.bike-card figcaption { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 2px; }
.bike-card strong { font: 400 1.3rem/1.1 var(--head); text-transform: uppercase; }
.bike-name { font-family: var(--brush); color: var(--red); font-size: 1.1rem; }
.bike-year { display: inline-block; background: var(--ink); color: var(--paper); font-size: .75rem; font-weight: 700; padding: 2px 7px; border-radius: 4px; width: max-content; }
.bike-owner { color: var(--muted); font-size: .9rem; }
.bike-desc { font-size: .92rem; margin-top: 4px; overflow-wrap: anywhere; }
.garage-empty { padding: 36px 24px; }
.garage-empty strong { font: 400 1.4rem/1.2 var(--head); text-transform: uppercase; color: var(--ink); }
.my-bikes { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.my-bike { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.my-bike img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; }
.my-bike > div { flex: 1; min-width: 0; }
.form-error { color: #8a1a12; background: #fbe1dd; border-radius: 8px; padding: 8px 12px; margin: 12px 0 0; }

/* Apuntados */
.going-tag { display: inline-block; margin: 6px 0 0; background: #e5f5df; color: #245d17; font-size: .8rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.rsvp { margin-top: 2rem; background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--green); border-radius: var(--radius); padding: 18px 20px 20px; }
.rsvp h2 { font-size: 1.6rem; margin-bottom: .2em; }
.rsvp-count b { font: 400 2.2rem/1 var(--head); color: var(--red); vertical-align: -3px; }
.rsvp-list { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.rsvp-list li { background: var(--paper-2); border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: .9rem; }

/* Herramientas */
.tools { padding-top: 0; }
.tools-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.tool-card { display: flex; gap: 16px; align-items: center; background: var(--ink); color: #e6dcc8; border-radius: var(--radius); padding: 20px; text-decoration: none; border-left: 6px solid var(--green); transition: transform .2s; }
.tool-card:hover { transform: translateY(-3px); }
.tool-card strong { font: 400 1.35rem/1.1 var(--head); text-transform: uppercase; color: var(--paper); }
.tool-icon { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.tool-icon svg { width: 28px; height: 28px; fill: var(--ink); }

/* Calculadora de mezcla */
.mix { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; padding: 10px 22px 24px; }
@media (max-width: 640px) { .mix { grid-template-columns: 1fr; } }
.mix-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.mix-row input { max-width: 120px; font-size: 1.3rem !important; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; font: 600 .9rem var(--body); cursor: pointer; color: var(--ink); }
.chips button:hover { border-color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.mix-result { background: var(--ink); color: var(--paper); border-radius: 14px; padding: 22px; text-align: center; border-bottom: 6px solid var(--red); }
.mix-label { font-family: var(--brush); color: var(--green); font-size: 1.3rem; }
.mix-result b { display: block; font: 400 4.2rem/1 var(--head); margin: 6px 0 2px; }
.mix-unit { display: block; font-weight: 700; }
.mix-sub { display: block; color: #a99f8c; font-size: .9rem; margin-top: 6px; }
.small-print { font-size: .95rem; color: var(--muted); }

/* Pie y aviso de cookies */
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: #8a806f; border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; }
.footer-bottom a { color: #e6dcc8; }
.cookie-note { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; max-width: 560px; margin: 0 auto; background: var(--ink); color: #e6dcc8; border: 1px solid #3a332a; border-left: 5px solid var(--green); border-radius: 12px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0; font-size: .9rem; }
.cookie-note a { color: var(--green); }
.cookie-note .btn { flex: none; }

@media (prefers-reduced-motion: reduce) {
  .smoke, .ticker-track { animation: none !important; }
  .smoke { display: none; }
  * { scroll-behavior: auto !important; transition: none !important; }
}
@media (max-width: 760px) {
  .smoke { left: -20px; bottom: 60px; }
  .hero::before { right: 50%; top: 150px; transform: translateX(50%); width: 360px; height: 360px; }
  .countdown div { min-width: 62px; }
  .next-ride .btn { width: 100%; text-align: center; }
}
