:root {
  --navy: #0d2b45;
  --navy-2: #163e60;
  --coral: #ff6a3d;
  --coral-dark: #d94a1f;
  --teal: #13867f;
  --sand: #fff8ee;
  --sand-2: #f6ead9;
  --peach: #f3c9a8;
  --ink: #18222d;
  --muted: #5a6672;
  --line: #ead9c3;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(13, 43, 69, .06), 0 8px 24px rgba(13, 43, 69, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
h1, .section-title { font-family: "Archivo Black", "Arial Black", Impact, sans-serif; font-weight: 400; letter-spacing: -.01em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
.show-sm { display: none; }

/* Encabezado */
.top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 5; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 19px; white-space: nowrap; }
.brand b { color: var(--peach); }
.brand-logo { width: 44px; height: 44px; flex: none; }
.menu { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.menu a { color: #e8eef4; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 10px; border-radius: 10px; white-space: nowrap; }
.menu a:hover { background: var(--navy-2); }
.menu a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--coral); border-radius: 0; }
.menu .btn { margin-left: 6px; color: #fff; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--coral); color: #fff; font-weight: 800; text-decoration: none; border: 0; border-radius: 999px; padding: 12px 22px; font-size: 16px; cursor: pointer; font-family: inherit; transition: background .15s, transform .15s; }
.btn:hover { background: var(--coral-dark); transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-big { padding: 15px 30px; font-size: 18px; }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* Portada */
.hero { background: radial-gradient(1200px 400px at 85% 0%, #ffe2cc 0%, transparent 60%), linear-gradient(180deg, var(--sand-2), var(--sand)); border-bottom: 1px solid var(--line); }
.hero-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 14px; padding-bottom: 12px; }
.hero-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.hero h1 { font-size: clamp(22px, 2.6vw, 30px); margin: 0; }
.hero .lead { font-size: 14px; margin: 2px 0 0; }
.hero h1 span { color: var(--coral); }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 18px; max-width: 46ch; }
.hero-logo { width: 64px; height: 64px; flex: none; filter: drop-shadow(0 4px 10px rgba(13,43,69,.18)); }
.filters { display: flex; flex-direction: column; gap: 10px; }
.hero .filters { flex-direction: row; flex-wrap: wrap; gap: 6px 14px; }
.hero .chip { font-size: 13px; min-height: 34px; padding: 5px 12px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: inherit; font-weight: 700; font-size: 15px; border: 2px solid var(--navy); background: #fff; color: var(--navy); padding: 7px 14px; border-radius: 999px; cursor: pointer; min-height: 40px; }
.chip:hover { background: #fff1e6; }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* Secciones y tarjetas */
.section { padding-top: 32px; padding-bottom: 16px; }
.section-title { font-size: clamp(22px, 3.4vw, 30px); display: flex; align-items: center; gap: 10px; }
.section-title::after { content: ""; flex: 1; height: 3px; background: linear-gradient(90deg, var(--peach), transparent); border-radius: 3px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(13,43,69,.08), 0 16px 32px rgba(13,43,69,.14); }
.card.is-featured { box-shadow: 0 0 0 3px var(--coral), var(--shadow); }
.card-img { position: relative; aspect-ratio: 16 / 9; background: var(--sand-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-noimg { width: 100%; height: 100%; display: grid; place-items: center; font: 56px "Archivo Black", sans-serif; color: #fff; background: linear-gradient(135deg, var(--teal), var(--navy)); }
.card-noimg.big { aspect-ratio: 16/9; border-radius: var(--radius); }
.date-badge { position: absolute; left: 12px; top: 12px; background: #fff; color: var(--coral-dark); border-radius: 12px; padding: 6px 10px 5px; text-align: center; font-size: 12px; font-weight: 800; line-height: 1; letter-spacing: .04em; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.date-badge b { display: block; font: 24px/1 "Archivo Black", sans-serif; color: var(--navy); margin-bottom: 2px; }
.feat-badge { position: absolute; right: 12px; top: 12px; background: var(--coral); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.card-body { padding: 14px 16px 18px; }
.card-when { margin: 0 0 4px; font-size: 13px; font-weight: 800; color: var(--coral-dark); letter-spacing: .03em; }
.card h3 { font-size: 18px; margin: 0 0 6px; overflow-wrap: anywhere; }
.card-where { margin: 0; font-size: 14px; color: var(--muted); }
.empty { background: #fff; border: 2px dashed var(--line); border-radius: var(--radius); padding: 24px; text-align: center; color: var(--muted); }

/* Caja de promoción */
.promo { margin-top: 32px; margin-bottom: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--navy); color: #e8eef4; border-radius: 22px; padding: 28px; background-image: radial-gradient(500px 200px at 100% 100%, rgba(255,106,61,.35), transparent); }
.promo h2 { color: #fff; font-size: 24px; }
.promo p { margin: 0; max-width: 60ch; }
.promo .btn { flex: none; }

/* Evento */
.event { padding-top: 20px; padding-bottom: 8px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.event-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: start; }
.event-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; }
.event-city { margin: 0 0 6px; font-weight: 800; color: var(--teal); text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }
.event h1 { font-size: clamp(28px, 4.4vw, 42px); overflow-wrap: anywhere; }
.facts { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 12px; }
.facts li { display: flex; gap: 12px; background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.facts span { font-size: 20px; }
.event-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 18px; }
.event-desc { color: var(--ink); }
.fine { font-size: 13px; color: var(--muted); }
.note { background: #fff4e5; border: 1px solid #f5c26b; color: #5a3b00; padding: 10px 12px; border-radius: 10px; }

/* Calendario */
.page { padding-bottom: 40px; }
.page h1 { font-size: clamp(28px, 5vw, 44px); }
.cal-month h2 { font-family: "Archivo Black", sans-serif; font-weight: 400; margin-top: 28px; }
.cal-list { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cal-day { background: var(--sand-2); color: var(--navy); font-weight: 800; padding: 8px 16px; font-size: 14px; }
.cal-item a { display: grid; grid-template-columns: 90px 1fr; gap: 2px 12px; padding: 12px 16px; text-decoration: none; color: inherit; border-top: 1px solid var(--line); }
.cal-item a:hover { background: #fffaf4; }
.cal-time { grid-row: span 2; font-weight: 800; color: var(--coral-dark); font-size: 14px; }
.cal-title { font-weight: 700; color: var(--navy); }
.cal-where { font-size: 14px; color: var(--muted); }

/* Textos */
.prose { max-width: 780px; }
.prose h2 { margin-top: 28px; font-size: 22px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 20px 0; }
.plan { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.plan h2 { margin-top: 0; font-size: 20px; }
.plan-feat { box-shadow: 0 0 0 3px var(--coral), var(--shadow); }
.price { font: 30px "Archivo Black", sans-serif; color: var(--navy); margin: 0 0 8px; }
.price small { font: 600 14px Inter, sans-serif; color: var(--muted); }

/* Pie */
.foot { background: var(--navy); color: #c9d5e0; padding: 32px 0 20px; }
.foot a { color: #fff; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-brand { font-weight: 800; font-size: 20px; color: #fff; margin: 0 0 6px; }
.foot-brand b { color: var(--peach); }
.foot nav { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 28px; align-content: start; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot-small { font-size: 13px; margin-top: 20px; color: #9fb0c0; }

@media (max-width: 860px) {
  .hero-logo { width: 48px; height: 48px; }
  .event-grid { grid-template-columns: 1fr; gap: 18px; }
  .promo { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .top-in { flex-direction: column; align-items: stretch; gap: 0; padding-top: 8px; }
  .brand { justify-content: center; }
  .brand-logo { width: 36px; height: 36px; }
  .menu { justify-content: center; padding: 6px 0 8px; }
  .menu a { padding: 8px 8px; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .top { position: static; }
  .grid { grid-template-columns: 1fr; }
  .foot nav { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Publica tu evento */
.pub { max-width: 820px; display: grid; gap: 22px; }
.pub fieldset { border: 0; margin: 0; padding: 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 14px; min-width: 0; }
.pub legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; font: 20px "Archivo Black", sans-serif; color: var(--navy); }
.pub label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; color: var(--navy); min-width: 0; }
.pub input:not([type=radio]):not([type=checkbox]), .pub select, .pub textarea { font: inherit; font-weight: 400; color: var(--ink); width: 100%; min-height: 46px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: #fffdf9; }
.pub input:focus, .pub select:focus, .pub textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(19,134,127,.18); }
.pub textarea { resize: vertical; }
.pub .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.photo-drop { position: relative; display: grid !important; place-items: center; text-align: center; min-height: 200px; border: 3px dashed var(--peach) !important; border-radius: 14px; background: var(--sand); cursor: pointer; overflow: hidden; color: var(--muted) !important; font-weight: 400 !important; padding: 16px; }
.photo-drop:hover { background: #fff1e6; }
.photo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-drop b { color: var(--navy); font-size: 17px; }
.photo-drop img { max-height: 320px; width: auto; border-radius: 10px; }
.plan-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.plan-opt { position: relative; display: grid !important; gap: 4px !important; align-content: start; padding: 16px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; background: #fffdf9; }
.plan-opt input { position: absolute; right: 14px; top: 16px; width: 20px; height: 20px; accent-color: var(--coral); }
.plan-opt:has(input:checked) { border-color: var(--coral); background: #fff4ec; box-shadow: 0 0 0 2px var(--coral); }
.plan-opt.plan-feat .plan-name::after { content: " ⭐"; }
.plan-name { font: 18px "Archivo Black", sans-serif; }
.plan-price { font-size: 22px; font-weight: 800; color: var(--coral-dark); }
.plan-price small { font-size: 13px; color: var(--muted); font-weight: 600; }
.plan-desc { font-weight: 400; font-size: 14px; color: var(--muted); }
.weeks { max-width: 280px; }
.total { margin: 0; font-size: 18px; }
.total b { font: 26px "Archivo Black", sans-serif; color: var(--navy); }
.check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; color: var(--ink) !important; }
.check input { width: 22px; height: 22px; flex: none; accent-color: var(--coral); margin-top: 1px; }
.form-error { background: #fdecea; border: 1px solid #f5b5ad; color: #8a1c10; padding: 12px 14px; border-radius: 12px; margin: 0; font-weight: 600; }
.pub .btn-big { justify-self: start; }
.pub .btn[disabled] { opacity: .6; cursor: wait; }
.event-price { margin: 0 0 8px; }

/* Negocios y Servicios */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 18px; }
.cat-card { display: grid; gap: 4px; justify-items: start; background: #fff; border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--navy); box-shadow: var(--shadow); transition: transform .15s; }
.cat-card:hover { transform: translateY(-3px); }
.cat-card b { font-size: 18px; }
.cat-card small { color: var(--muted); }
.cat-emoji { font-size: 34px; }
.cat-alt { background: var(--navy); color: #fff; } .cat-alt small { color: #c9d5e0; }
.biz-list { display: grid; gap: 14px; margin: 16px 0; }
.biz { display: grid; grid-template-columns: 160px 1fr; gap: 16px; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.biz:hover { box-shadow: 0 0 0 2px var(--peach), var(--shadow); }
.biz-img { background: var(--sand-2); display: grid; place-items: center; font-size: 44px; min-height: 110px; }
.biz-img img { width: 100%; height: 100%; object-fit: cover; }
.biz-body { padding: 14px 16px 14px 0; min-width: 0; }
.biz h3 { margin: 0 0 4px; font-size: 19px; overflow-wrap: anywhere; }
.biz p { margin: 0 0 2px; font-size: 14px; color: var(--muted); }
.biz .biz-zone { color: var(--teal); font-weight: 700; }
.fix-box { margin-top: 18px; background: var(--sand-2); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.srv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.srv-search { display: grid; gap: 4px; font-weight: 700; color: var(--navy); max-width: 420px; }
.srv-search input { font: inherit; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; }
.srv-item .cal-time { font-size: 12px; color: var(--teal); }
.srv-photos { display: grid; gap: 10px; }
.facts-line { font-size: 18px; margin: 6px 0; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb { position: relative; width: 110px; height: 80px; border-radius: 10px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 16px; cursor: pointer; }
.total small { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) {
  .biz { grid-template-columns: 96px 1fr; gap: 12px; }
  .biz-img { font-size: 32px; min-height: 96px; }
  .menu { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 640px) {
  .chips[data-filter="cat"] { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
  .chips[data-filter="cat"] .chip { flex: none; }
}

/* Mi anuncio */
.enlace-box a { word-break: break-all; font-weight: 700; }
.tag-estado { display: inline-block; background: var(--navy); color: #fff; font-size: 14px; font-weight: 800; padding: 3px 10px; border-radius: 999px; margin-right: 6px; vertical-align: middle; }
.ok-note { background: #e6f6f1; border-color: #9fd9c6; color: #0b5a45; }

/* Tarjeta "Publica tu evento" (mismo tamaño que un evento) */
.card-promo { background: var(--navy); color: #e8eef4; }
.card-promo .promo-img { display: grid; place-content: center; justify-items: center; gap: 6px; background: radial-gradient(260px 160px at 80% 100%, rgba(255,106,61,.55), transparent), linear-gradient(135deg, var(--teal), var(--navy)); color: #fff; }
.card-promo .promo-img span { font-size: 44px; }
.card-promo .promo-img b { font: 22px "Archivo Black", sans-serif; }
.card-promo h3 { color: #fff; }
.card-promo .card-when { color: var(--peach); }
.card-promo .card-where { color: #c9d5e0; }
@media (max-width: 640px) {
  .hero-in { padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  .hero .lead { display: none; }
  .hero .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: calc(100% + 32px); margin: 0 -16px; padding: 0 16px 2px; }
  .hero .filters::-webkit-scrollbar { display: none; }
  .hero .chips { flex-wrap: nowrap; flex: none; }
  .hero .chip { flex: none; }
}
