/* FestQuest — página principal. Mobile first. Marca: naranja #ea580c / #c2410c, Syne + DM Sans. */
:root {
  --or: #ea580c; --or-d: #c2410c; --or-l: #fb923c; --or-xl: #fed7aa;
  --ink: #1f2937; --ink-2: #4b5563; --mute: #6b7280; --line: rgba(0,0,0,.08);
  --bg-1: #fff8f0; --bg-2: #ffe7cc; --bg-3: #ffd6a5; --card: rgba(255,255,255,.94);
  --wa: #1fa855; --dark: #1c1007; --radius: 20px;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 124px; -webkit-text-size-adjust: 100%; }
body { font-family: 'DM Sans', Arial, Helvetica, sans-serif; background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-3) 100%); background-attachment: fixed; color: var(--ink); line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }

/* Franja + encabezado fijos */
.top { position: sticky; top: 0; z-index: 30; }
.launch-bar { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--or-d); color: #fff; padding: 6px 12px; font-size: 11.5px; line-height: 1.3; text-align: left; }
.launch-bar p { margin: 0; }
.bar-btn { flex: 0 0 auto; background: #fff; color: var(--or-d); font-weight: 700; text-decoration: none; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; white-space: nowrap; }
header { background: rgba(255,255,255,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 6px 0; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 19px; color: var(--or-d); line-height: 1.1; white-space: nowrap; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand small { display: none; font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--mute); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link { display: none; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); }
.nav-link:hover { background: rgba(234,88,12,.1); color: var(--or-d); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; padding: 12px 20px; border-radius: 14px; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; min-height: 44px; transition: transform .18s, box-shadow .18s, background .18s; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--or); color: #fff; box-shadow: 0 8px 22px rgba(234,88,12,.22); }
.btn-primary:hover { background: var(--or-d); }
.btn-secondary { background: #fff; color: var(--or-d); border: 1.5px solid rgba(234,88,12,.35); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 22px rgba(31,168,85,.28); }
.nav .btn { padding: 8px 12px; font-size: 13.5px; min-height: 40px; white-space: nowrap; }

/* Portada: ver portada.css. Aquí quedan los botones y cifras que reutiliza. */
.hero-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-cta-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; min-height: 48px; background: var(--or); color: #fff; text-decoration: none; border-radius: 16px; font-size: 17px; font-weight: 800; box-shadow: 0 12px 32px rgba(234,88,12,.4); }
.app-btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; min-height: 48px; border-radius: 16px; background: #111827; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; border: 1px solid rgba(255,255,255,.28); }
.app-btn-icon { width: 22px; height: 22px; flex-shrink: 0; }
.pill-soon { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px dashed rgba(255,255,255,.5); color: var(--or-xl); font-size: 13.5px; font-weight: 600; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 560px; }
.stats li { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 16px; padding: 12px 8px; text-align: center; }
.stats strong { display: block; font-family: 'Syne', sans-serif; font-size: clamp(22px, 6.5vw, 34px); line-height: 1.1; color: var(--or-l); }
.stats span { font-size: 12px; color: rgba(255,255,255,.85); }

/* Secciones */
.section { padding: 44px 0; }
.section-alt { background: rgba(255,255,255,.55); }
.section-title { font-family: 'Syne', sans-serif; font-size: clamp(26px, 6vw, 36px); font-weight: 800; color: #111827; margin-bottom: 8px; line-height: 1.15; }
.section-subtitle { color: var(--mute); font-size: 16px; margin-bottom: 22px; max-width: 760px; }
.center .section-subtitle { margin-left: auto; margin-right: auto; }
.empty { color: var(--mute); text-align: center; padding: 24px 12px; background: var(--card); border-radius: var(--radius); border: 1px dashed rgba(0,0,0,.15); margin: 6px 0 12px; }
.empty button { margin-top: 10px; }
.more-app { text-align: center; margin-top: 22px; color: var(--ink-2); font-size: 15px; }
.more-app a { color: var(--or-d); font-weight: 700; }

/* Filtros */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; margin: 0 -16px 4px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid rgba(234,88,12,.35); background: #fff; color: var(--or-d); font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; }
.chip.is-on { background: var(--or); border-color: var(--or); color: #fff; }

/* Tarjetas de fiestas */
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 18px; }
.fcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.06); display: flex; flex-direction: column; }
.fphoto { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #fdba74, #ea580c); display: flex; align-items: center; justify-content: center; font-size: 46px; overflow: hidden; }
.fphoto img.pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fphoto img.crest { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); height: 74%; width: auto; max-width: 60%; object-fit: contain; padding: 8px; background: rgba(255,255,255,.92); border-radius: 18px; }
.seal { position: absolute; left: 10px; top: 10px; z-index: 2; background: #166534; color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.flag { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 44px; height: 30px; border-radius: 6px; object-fit: cover; border: 2px solid #fff; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.fbody { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.fbody h3 { font-size: 18px; line-height: 1.25; color: #111827; text-wrap: balance; }
.fmeta { color: var(--ink-2); font-size: 14.5px; }
.fdate { color: var(--or-d); font-weight: 700; font-size: 14.5px; }
.quake { font-size: 12.5px; color: #92400e; background: #fef3c7; border-radius: 10px; padding: 5px 10px; margin-top: 6px; }

/* Mosaico de municipios */
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tile-img { display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px; }
.tile-img img { height: 52px; width: auto; max-width: 70px; object-fit: contain; border-radius: 6px; }
.tile-img img.f { box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.initial { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #fdba74, #ea580c); color: #fff; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.tile strong { font-size: 15px; line-height: 1.2; color: #111827; }
.tile span { font-size: 12.5px; color: var(--mute); }

/* Buscador */
.search { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 16px; border: 2px solid rgba(234,88,12,.4); background: #fff; font-size: 17px; font-family: inherit; color: var(--ink); }
.search:focus { outline: none; border-color: var(--or); box-shadow: 0 0 0 4px rgba(234,88,12,.18); }
.results { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-top: 8px; overflow: hidden; box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.results button { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; min-height: 48px; font: inherit; cursor: pointer; display: flex; flex-direction: column; }
.results li:last-child button { border-bottom: 0; }
.results button:hover, .results button:focus-visible { background: #fff3e8; }
.results strong { font-size: 16px; }
.results span { font-size: 13px; color: var(--mute); }
.hint { color: var(--mute); font-size: 14px; margin-top: 8px; min-height: 20px; }
.ficha { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 20px; margin-top: 14px; box-shadow: 0 16px 36px rgba(0,0,0,.08); }
.ficha-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ficha-img { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.ficha-img img { height: 60px; width: auto; max-width: 84px; object-fit: contain; }
.ficha-img img.f { box-shadow: 0 2px 8px rgba(0,0,0,.2); border-radius: 6px; }
.ficha h3 { font-family: 'Syne', sans-serif; font-size: 22px; line-height: 1.15; }
.ficha .dep { color: var(--mute); font-size: 14px; }
.ficha .ok-tag { display: inline-block; margin-top: 4px; background: #dcfce7; color: #166534; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.ficha p { margin: 6px 0; color: var(--ink-2); }
.falta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.falta li { background: #fff3e8; color: var(--or-d); border: 1px solid rgba(234,88,12,.3); border-radius: 999px; padding: 5px 12px; font-size: 13.5px; font-weight: 600; }
.ficha .btn { width: 100%; }

/* Para alcaldías */
.section-dark { background: linear-gradient(160deg, #2a1204 0%, #7a2a06 60%, #1c1007 100%); color: #fff; }
.section-dark .section-title { color: #fff; }
.section-dark .section-subtitle { color: var(--or-xl); }
.steps { list-style: none; display: grid; gap: 14px; margin-bottom: 22px; }
.steps li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 18px; }
.step-n { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--or); align-items: center; justify-content: center; font-weight: 800; margin-bottom: 8px; }
.steps h3 { font-size: 18px; margin-bottom: 4px; }
.steps p { color: rgba(255,255,255,.85); font-size: 15px; }
.benefits { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; }
.benefits li { background: rgba(255,255,255,.95); color: var(--ink); border-radius: 16px; padding: 14px 16px; }
.benefits strong { display: block; color: var(--or-d); font-size: 16px; }
.benefits span { font-size: 14.5px; color: var(--ink-2); }

/* Novedades */
.timeline { list-style: none; border-left: 3px solid rgba(234,88,12,.4); margin-left: 6px; display: grid; gap: 16px; }
.timeline li { position: relative; padding-left: 18px; }
.timeline li::before { content: ''; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--or); border: 3px solid #fff3e8; }
.timeline b { display: block; font-size: 13px; color: var(--or-d); letter-spacing: .4px; text-transform: uppercase; }
.timeline span { font-size: 16px; }

.contact-btns { display: flex; flex-direction: column; gap: 12px; max-width: 360px; margin: 0 auto; }
footer { padding: 26px 0 36px; color: var(--mute); font-size: 14px; background: rgba(255,255,255,.4); }
.footer-row { display: flex; flex-direction: column; gap: 10px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { border-radius: 6px; }
.footer-links a { color: var(--or-d); }

.skeleton { background: linear-gradient(90deg, #f3e7da 25%, #fbf3ea 50%, #f3e7da 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); min-height: 220px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .skeleton { animation: none; } .btn:hover { transform: none; } }

@media (min-width: 640px) {
  .container { padding: 0 24px; }
  .launch-bar { font-size: 13.5px; justify-content: center; padding: 8px 16px; }
  .brand { font-size: 22px; }
  .nav .btn { font-size: 14px; padding: 9px 14px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .mosaic { grid-template-columns: repeat(3, 1fr); }
  .steps, .benefits { grid-template-columns: repeat(3, 1fr); }
  .contact-btns { flex-direction: row; max-width: none; justify-content: center; }
  .chips { margin: 0 0 4px; padding-left: 0; padding-right: 0; flex-wrap: wrap; }
  .footer-row { flex-direction: row; justify-content: space-between; align-items: center; }
  .section { padding: 60px 0; }
}
@media (min-width: 960px) {
  html { scroll-padding-top: 130px; }
  .brand small { display: block; }
  .nav-link { display: inline-block; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .mosaic { grid-template-columns: repeat(5, 1fr); }
  .launch-bar { font-size: 14px; }
}

.fcredito { margin: 0; padding: 4px 14px 0; font-size: 11px; line-height: 1.3; color: #6b7280; }
.fcredito a { color: inherit; text-decoration: underline; }
.footer-aviso { display: block; margin: 8px 0 0; font-size: 12px; opacity: .8; }
