/* Diseño de la web (el de eventosjaen.es adaptado): oscuro, acento dorado, Montserrat, barra superior y tarjetas tipo cartel.
   Se carga después de styles.css y manda sobre él mediante body.t-ev. Para volver al diseño anterior: quitar este archivo y la clase t-ev. */
:root {
  --bg: #151515; --soft: #1f1f1e; --ink: #f1f1ee; --muted: #a6a6a0; --line: #2f2f2d;
  --primary: #e6b94a; --secondary: #151515; --plum: #e6b94a; --violet: #e6b94a; --night-2: #101010; --gold: #e6b94a; --red: #ff6d6d;
  --card: #1d1d1c; --acc: #e6b94a; --acc-ink: #17130a; --radius: 20px; --edge: max(16px, calc(50% - 590px));
  color-scheme: dark;
}
body.t-ev { background: var(--bg); color: var(--ink); font-family: Montserrat, Inter, "Segoe UI", system-ui, sans-serif; font-size: 16px; }
body.t-ev :focus-visible { outline-color: var(--acc); }
body.t-ev .wrap { max-width: 1212px; padding-left: 16px; padding-right: 16px; }
body.t-ev h1, body.t-ev h2, body.t-ev h3 { font-family: inherit; letter-spacing: -.01em; }

/* ---------- barra superior ---------- */
body.t-ev .nav { position: sticky; top: 0; background: #151515; border-bottom: 1px solid #242423; }
body.t-ev .nav-in { max-width: none; height: 64px; padding: 0 var(--edge); gap: 18px; justify-content: flex-start; }
body.t-ev .brand img { height: 40px; }
body.t-ev .side-tools, body.t-ev .side-search, body.t-ev .side-help, body.t-ev .nav-links .grp, body.t-ev .nav-links .lot { display: none; }
body.t-ev .nav-links { margin-left: auto; gap: 2px; font-size: .84rem; }
body.t-ev .nav-links a, body.t-ev .drop-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border: 0; border-radius: 99px; background: none; color: #b9bdb8; font: 600 .84rem/1.2 Montserrat, sans-serif; cursor: pointer; white-space: nowrap; }
body.t-ev .nav-links a::after { display: none; }
body.t-ev .nav-links a:hover, body.t-ev .drop-btn:hover { background: #ffffff1f; color: #fff; }
body.t-ev .nav-links a[aria-current="page"] { background: #ffffff2e; color: #fff; }
body.t-ev .drop { position: relative; }
body.t-ev .drop-list { position: absolute; z-index: 80; top: 100%; right: 0; display: none; min-width: 230px; padding: 8px; background: #1d1d1c; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px #0009; }
body.t-ev .drop:hover .drop-list, body.t-ev .drop:focus-within .drop-list { display: grid; gap: 2px; }
body.t-ev .drop-list a { justify-content: flex-start; border-radius: 10px; }
body.t-ev .nav-right { display: none; }
body.t-ev .side-pill { display: block; order: 5; margin: 0; padding: 0; border: 0; background: none; }
body.t-ev .pill-main { display: block; padding: 9px 16px; border: 0; border-radius: 99px; background: var(--acc); color: var(--acc-ink); font: 700 .8rem/1.2 Montserrat, sans-serif; cursor: pointer; white-space: nowrap; }
body.t-ev .pill-main:hover { background: #f0cb62; }
body.t-ev .pill-main .av, body.t-ev .pill-main small { display: none; }
body.t-ev .pill-main strong { font: inherit; color: inherit; }
body.t-ev .burger { display: none; }

/* ---------- botones ---------- */
body.t-ev .pill-btn { background: var(--acc); color: var(--acc-ink); border: 1px solid var(--acc); font-family: inherit; font-size: .9rem; padding: 11px 22px; }
body.t-ev .pill-btn:hover { background: #f0cb62; }
body.t-ev .pill-btn.dark { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
body.t-ev .pill-btn.ghost { background: transparent; color: var(--ink); border-color: #4a4a46; }
body.t-ev .pill-btn.ghost:hover { background: #ffffff14; }
body.t-ev .pill-btn.warn, body.t-ev .pill-btn.danger { background: transparent; color: var(--red); border-color: var(--red); }

/* ---------- slider destacado: foto a todo el ancho, texto abajo a la izquierda ---------- */
body.t-ev .hero.home { height: clamp(430px, 66vh, 620px); justify-content: flex-end; background: #0f0f0f; }
body.t-ev .hero-tint, body.t-ev .hero.intro .hero-tint { background: linear-gradient(90deg, #0d0d0df2 0%, #0d0d0db3 45%, #0d0d0d29 100%), linear-gradient(0deg, #151515 0%, #15151500 28%); }
body.t-ev .hero .hero-text, body.t-ev .hero.intro .hero-text { position: relative; z-index: 3; width: 100%; max-width: none; margin: 0; padding: 24px 24px 66px max(84px, var(--edge)); text-align: left; box-sizing: border-box; }
body.t-ev .hero-text > * { max-width: 760px; }
body.t-ev .hero .eyebrow-w, body.t-ev .hero.intro .eyebrow-w { display: inline-block; margin: 0 0 12px; padding: 5px 12px; border: 0; border-radius: 99px; background: var(--acc); color: var(--acc-ink); font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
body.t-ev .hero h1, body.t-ev .hero.intro h1 { margin: 0 0 10px; font-size: clamp(1.7rem, 4.4vw, 2.7rem); line-height: 1.12; font-weight: 800; text-shadow: 0 2px 18px #0008; }
body.t-ev .hero .hero-sub { display: block; margin: 0 0 6px; color: #e9e9e4; font-weight: 600; font-size: .98rem; }
body.t-ev .hero .hero-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0 0 4px; max-width: 620px; color: #c9c9c3; font-size: .9rem; }
body.t-ev .hero .hero-btns, body.t-ev .hero.intro .hero-btns { display: flex; margin-top: 16px; }
body.t-ev .hero.intro .hero-btns { display: none; }
body.t-ev .hero-ctrl { position: absolute; z-index: 4; inset: 0; display: block; pointer-events: none; padding: 0; margin: 0; }
body.t-ev .hero-ctrl > * { pointer-events: auto; }
body.t-ev #sliderPrev, body.t-ev #sliderNext { position: absolute; top: 46%; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #ffffffd9; color: #151515; font-size: 1.4rem; line-height: 1; }
body.t-ev #sliderPrev { left: 16px; } body.t-ev #sliderNext { right: 16px; }
body.t-ev #sliderPause { display: none; }
body.t-ev .hero-ctrl .dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
body.t-ev .hero-ctrl .dots button { pointer-events: auto; }
body.t-ev .hero-progress { display: none; }

/* ---------- buscador de portada ---------- */
.ev-busca { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 14px; margin-bottom: 8px; }
.ev-caja, .ev-filtros label { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.ev-caja { padding: 12px 16px 10px; }
.ev-caja > label, .ev-filtros label { font-size: .7rem; font-weight: 600; color: var(--muted); }
.ev-input { display: flex; align-items: center; gap: 12px; margin-top: 6px; color: var(--muted); }
.ev-input input { flex: 1; min-width: 0; padding: 10px 0; border: 0; background: transparent; color: var(--ink); font: 500 .98rem Montserrat, sans-serif; outline: none; }
.ev-input button { padding: 9px 20px; border: 0; border-radius: 99px; background: var(--acc); color: var(--acc-ink); font: 700 .82rem Montserrat, sans-serif; cursor: pointer; }
.ev-caja:focus-within { border-color: var(--acc); }
.ev-filtros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ev-filtros label { padding: 9px 14px 6px; }
.ev-filtros select { width: 100%; margin-top: 2px; padding: 3px 0; border: 0; background: var(--card); color: var(--ink); font: 700 .86rem Montserrat, sans-serif; cursor: pointer; }

/* ---------- cabeceras de sección y franja de datos ---------- */
body.t-ev .strip { background: transparent; border: 0; }
body.t-ev .strip, body.t-ev .strip * { color: var(--ink); }
body.t-ev .strip ul li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
body.t-ev .strip li b { color: var(--acc); }
body.t-ev .strip li span, body.t-ev .strip-title span { color: var(--muted); }
body.t-ev .sec-head .eyebrow, body.t-ev .eyebrow { color: var(--acc); font-size: .7rem; font-weight: 700; letter-spacing: .08em; }
body.t-ev .sec-head h2, body.t-ev .sec-head h1 { font-size: 1.4rem; font-weight: 800; color: var(--ink); }
body.t-ev .lead, body.t-ev .muted { color: var(--muted); }

/* ---------- tarjetas tipo cartel ---------- */
body.t-ev .grid .card, body.t-ev .rel-row .card { position: relative; display: flex; flex-direction: column; padding: 10px 10px 12px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; box-shadow: none; }
body.t-ev .grid .card:hover, body.t-ev .rel-row .card:hover { border-color: #55554f; transform: translateY(-2px); }
body.t-ev .card .thumb { position: relative; overflow: hidden; aspect-ratio: 4 / 3; height: auto; flex: none; border-radius: 12px; background: #0f0f0f; }
body.t-ev .card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
body.t-ev .card .thumb::before { border-radius: 12px; }
body.t-ev .card .thumb img { border-radius: 12px; }
.ev-anio { position: absolute; z-index: 3; left: 8px; bottom: 8px; display: flex; flex-direction: column; align-items: center; min-width: 46px; padding: 5px 8px 6px; border-radius: 12px; background: #2a2a28; color: #fff; font: 800 .95rem/1.1 Montserrat, sans-serif; box-shadow: 0 4px 12px #0008; }
.ev-anio small { font-size: .55rem; font-weight: 700; letter-spacing: .08em; color: var(--acc); }
body.t-ev .card .body { display: flex; flex-direction: column; flex: 1; padding: 12px 2px 0; background: transparent; }
body.t-ev .card h3 { order: -1; margin: 0 0 8px; font-size: .94rem; font-weight: 700; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
body.t-ev .card .meta { display: grid; gap: 4px; margin: 0 0 10px; }
body.t-ev .card .when, body.t-ev .card .street { display: flex; gap: 7px; margin: 0; color: #b9bdb8; font-size: .76rem; font-weight: 500; text-transform: none; letter-spacing: 0; background: none; padding: 0; border: 0; }
body.t-ev .card .meta .when, body.t-ev .card .meta .street { display: flex !important; align-items: baseline; margin: 0 !important; padding: 0 !important; text-indent: 0; letter-spacing: 0 !important; font-size: .75rem !important; }
body.t-ev .card .when::before { content: "◷"; color: var(--muted); }
body.t-ev .card .street::before { content: "⚲"; color: var(--muted); }
body.t-ev .card .desc { display: none; }
body.t-ev .card .cta-card { align-self: flex-start; margin-top: auto; padding: 4px 12px; border: 1px solid #8a7231; border-radius: 99px; background: #e6b94a14; color: var(--acc); font-size: .72rem; font-weight: 700; }
.ev-cat { align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 10px; border-radius: 8px; background: #2a2a28; color: #ddd; font-size: .7rem; font-weight: 600; }
.ev-cat::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }

/* ---------- resto de páginas: paneles, filtros, ficha, formularios ---------- */
body.t-ev .panel, body.t-ev .filtros, body.t-ev .results-bar, body.t-ev .ficha-info dl, body.t-ev .report-box, body.t-ev .modal, body.t-ev dialog { background: var(--card); color: var(--ink); border-color: var(--line); }
body.t-ev input, body.t-ev select, body.t-ev textarea, body.t-ev .datebtn { background-color: #232322; color: var(--ink); border-color: var(--line); font-family: inherit; }
body.t-ev .ev-input input { background: transparent; }
body.t-ev .ev-filtros select { background-color: var(--card); }
body.t-ev label, body.t-ev .field label { color: var(--muted); }
body.t-ev .loc-chips a, body.t-ev .fchip, body.t-ev .chip { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
body.t-ev .loc-chips a:hover, body.t-ev a.fchip:hover { border-color: var(--acc); }
body.t-ev .fchip.cat { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
body.t-ev .vista-sw { background: var(--card); border-color: var(--line); }
body.t-ev .vista-sw button { color: var(--muted); background: transparent; }
body.t-ev .vista-sw button[aria-pressed="true"], body.t-ev .vista-sw button.active, body.t-ev .vista-sw button.on { background: var(--acc); color: var(--acc-ink); }
body.t-ev .detail, body.t-ev .subpage { background: transparent; color: var(--ink); }
body.t-ev .detail p, body.t-ev .detail dd, body.t-ev .detail h1, body.t-ev .detail h2, body.t-ev .detail h3 { color: var(--ink); }
body.t-ev .detail dt { color: var(--muted); }
body.t-ev .detail dd a, body.t-ev .subpage p a { color: var(--acc); }
body.t-ev footer, body.t-ev .footer, body.t-ev .foot { background: #101010; color: #c9c9c3; border-top: 1px solid #242423; }

body.t-ev .search.big { background: #232322; color: var(--muted); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
body.t-ev .search.big svg, body.t-ev .search.big .mic { color: var(--muted); }
body.t-ev .search.big input { background: transparent; border: 0; }
body.t-ev .search.big .mic { background: transparent; border: 0; }
body.t-ev .search.big:focus-within { border-color: var(--acc); }

/* ---------- móvil y tableta: logo arriba y barra de navegación abajo ---------- */
/* barra superior desde 861 px (la web original cambia a barra inferior ya a 1240 px: aquí se anula) */
@media (min-width: 861px) {
  body.t-ev { padding-bottom: 0; }
  body.t-ev .tabbar, body.t-ev .nav-scrim, body.t-ev .nav-links .drawer-head, body.t-ev .nav-links .lot, body.t-ev .burger { display: none !important; }
  body.t-ev .nav-in { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; height: 64px; }
  body.t-ev .brand { position: static; transform: none; margin: 0; padding: 0; }
  body.t-ev .nav-right { position: static; transform: none; display: flex !important; }   /* si no, se monta sobre «Haz una aportación» */
  body.t-ev #navLucky { display: grid !important; }
  body.t-ev .nav-links { position: static !important; display: flex !important; flex-direction: row !important; align-items: center; width: auto !important; max-width: none !important; height: auto !important; margin: 0 0 0 auto; padding: 0; background: none; border: 0; box-shadow: none; transform: none !important; visibility: visible !important; overflow: visible !important; }
  body.t-ev .nav-links > a, body.t-ev .drop-btn { width: auto; border: 0; }
}
@media (min-width: 861px) and (max-width: 1080px) {
  body.t-ev .nav-links a, body.t-ev .drop-btn { padding: 7px 8px; font-size: .78rem; }
  body.t-ev .brand img { height: 32px; }
  body.t-ev .pill-main { padding: 8px 11px; font-size: .74rem; }
}

@media (max-width: 860px) {
  body.t-ev { padding-bottom: 70px; }
  body.t-ev .nav { position: static; }
  body.t-ev .nav-in { justify-content: center; height: 62px; }
  body.t-ev .side-pill { display: none; }
  body.t-ev .nav-links { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; top: auto; width: auto; height: auto; max-width: none; margin: 0; padding: 7px 6px calc(7px + env(safe-area-inset-bottom)); display: flex; flex-direction: row; justify-content: space-around; align-items: center; gap: 2px; background: #151515; border-top: 1px solid #2a2a2a; box-shadow: 0 -6px 20px #0006; transform: none; visibility: visible; overflow: visible; }
  body.t-ev .nav-links .drawer-head, body.t-ev .nav-scrim { display: none; }
  body.t-ev .nav-links a, body.t-ev .drop-btn { flex-direction: column; gap: 3px; width: auto; padding: 6px 8px; font-size: .68rem; border-radius: 12px; border: 0; }
  body.t-ev .nav-links .lot { display: block; width: 20px; height: 20px; }
  body.t-ev .nav-links .lot svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
  body.t-ev .nav-links > a[data-tab="castillos"] { display: none; }
  body.t-ev .drop-btn::before { content: "▦"; font-size: 1.1rem; line-height: 20px; }
  body.t-ev .drop-btn span { display: none; }
  body.t-ev .drop-list { position: fixed; right: 8px; left: auto; top: auto; bottom: 68px; }
  body.t-ev .drop-list a { flex-direction: row; font-size: .85rem; padding: 10px 14px; }
  body.t-ev .hero .hero-text, body.t-ev .hero.intro .hero-text { padding: 18px 18px 52px; }
  body.t-ev #sliderPrev, body.t-ev #sliderNext { display: none; }
  body.t-ev .tabbar { display: none !important; }
  body.t-ev .hero.home { height: clamp(420px, 62vh, 560px); }
  body.t-ev .ph:not(.intro)::after { background-size: cover; }
  body.t-ev .hero-tint, body.t-ev .hero.intro .hero-tint { background: linear-gradient(0deg, #151515 0%, #151515cc 26%, #15151526 62%, #15151500 100%); }
  body.t-ev .hero.intro .hero-tint { background: #15151599; }
}
@media (max-width: 640px) {
  .ev-filtros { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* minmax: los desplegables no ensanchan la página */
  .ev-filtros label:last-child { grid-column: 1 / -1; }
  body.t-ev .grid .card { padding: 8px 8px 10px; border-radius: 16px; }
  body.t-ev .card h3 { font-size: .84rem; }
}

/* ---------- «Modo presentación»: botón redondo junto al de aportar ---------- */
body.t-ev .nav-right { display: flex; order: 4; margin: 0; padding: 0; border: 0; }
body.t-ev .nav-right .cta { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #3a3a37; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
body.t-ev .nav-right .cta:hover { background: #ffffff1f; border-color: #6a6a64; }
body.t-ev .nav-right .cta .lbl { display: none; }
body.t-ev .nav-right .cta .lot, body.t-ev .nav-right .cta .ico { display: block; width: 18px; height: 18px; }
body.t-ev .nav-right .cta .ico { fill: none; stroke: currentColor; stroke-width: 1.7; }
@media (max-width: 860px) {
  body.t-ev .nav-in { position: relative; }
  body.t-ev .nav-right { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
}
/* ---------- ajustes de otras páginas y ventanas ---------- */
body.t-ev .foot-btn.solid { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
body.t-ev .foot-btn.solid:hover { background: #f0cb62; color: var(--acc-ink); }
body.t-ev .chips label span { background: var(--card); border-color: var(--line); color: var(--ink); }
body.t-ev .chips input:checked + span { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
body.t-ev .search { background: #232322; border-color: var(--line); color: var(--muted); }
body.t-ev .search input { background: transparent; border: 0; color: var(--ink); }
body.t-ev #mapCount { background: #b4372c; color: #fff; }
body.t-ev .picker { background: var(--card); color: var(--ink); border-color: var(--line); box-shadow: 0 24px 60px #000a; }
body.t-ev .picker .pk-sel input { background: #232322; border-color: var(--line); }
body.t-ev .cal-icon { background: linear-gradient(#0a080b 0 55%, #3a3a37 55%); }
/* OlivIA (el chat) conserva su aspecto claro: se le devuelven sus colores */
body.t-ev .oli-fab, body.t-ev .oli-panel, body.t-ev .oli-refran { --ink: #1c1224; --muted: #5f5668; --line: #e3dbe7; --soft: #f6f1f8; --bg: #ffffff; --card: #ffffff; --primary: #1d1d1c; --secondary: #1c1224; --oli-pin: #1d1d1c; color: var(--ink); }
body.t-ev .oli-panel input, body.t-ev .oli-panel textarea { background: transparent; color: #1c1224; }
body.t-ev .oli-hola, body.t-ev .oli-hola small { color: #1c1224; }
body.t-ev .oli-hola small { color: #5f5668; }
.ev-suerte { display: none; }
@media (max-width: 860px) {
  body.t-ev .nav-right { display: flex !important; }
  body.t-ev #navLucky { display: grid !important; width: 36px !important; height: 36px; padding: 0 !important; }
  body.t-ev .ev-suerte { display: grid; place-items: center; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; padding: 0; border: 1px solid #3a3a37; border-radius: 50%; background: transparent; color: var(--acc); cursor: pointer; }
  body.t-ev .ev-suerte svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
}