/*
Theme Name: Escape Rooms Global
Description: Dark, modern directory theme for the Escape Rooms Global finder. Custom-built, no page builder.
Author: IberoTI
Version: 1.0.0
*/

:root {
  --bg: #0b0e1a;
  --panel: #131829;
  --line: #232a44;
  --text: #e8eaf2;
  --muted: #aab2d0;
  --dim: #7b84a8;
  --acc: #00e5a0;
  --acc2: #7c5cff;
  --gold: #ffd166;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: Sora, Inter, system-ui, sans-serif; line-height: 1.25; color: #f0f2fa; }
a { color: var(--acc); }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(11,14,26,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.site-logo { font-family: Sora, sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; white-space: nowrap; }
.site-logo .key { color: var(--acc); }
.site-nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.site-nav a {
  color: var(--muted); text-decoration: none; padding: 8px 13px; border-radius: 9px; font-size: .95rem;
}
.site-nav a:hover { color: var(--text); background: var(--panel); }
.site-nav a.cta { background: var(--acc2); color: #fff; font-weight: 700; margin-left: 6px; }
.site-nav a.cta:hover { filter: brightness(1.12); background: var(--acc2); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 9px; padding: 7px 12px; font-size: 1.1rem; cursor: pointer; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: #0e1222;
    border-bottom: 1px solid var(--line); padding: 10px 20px 16px; gap: 2px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; }
}

/* hero con imagen propia (FLUX) y degradado para legibilidad */
.hero {
  position: relative; padding: 96px 0 76px; text-align: center; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-color: #070a14;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--hero); background-size: cover; background-position: center 45%;
  opacity: .85; transform: scale(1.03);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(760px 380px at 50% 34%, rgba(7,10,20,.30), rgba(7,10,20,.80) 78%),
    linear-gradient(180deg, rgba(7,10,20,.55) 0%, rgba(7,10,20,.42) 45%, var(--bg) 100%);
}
.hero > .wrap { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem); margin: 0 0 16px; letter-spacing: -.02em;
  text-shadow: 0 2px 30px rgba(0,0,0,.6);
}
.hero h1 em {
  font-style: normal; color: var(--acc);
  text-shadow: 0 0 34px rgba(0,229,160,.45);
}
.hero p {
  color: #c3cae4; max-width: 680px; margin: 0 auto; font-size: 1.1rem;
  text-shadow: 0 1px 14px rgba(0,0,0,.6);
}
.hero .hero-stats {
  display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap;
}
.hero .stat {
  background: rgba(19,24,41,.72); border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px; padding: 14px 22px; backdrop-filter: blur(8px); min-width: 132px;
}
.hero .stat b {
  display: block; font-size: 1.7rem; color: var(--gold); font-family: Sora, sans-serif;
  line-height: 1.15;
}
.hero .stat span { color: #98a1c4; font-size: .84rem; }

/* cabecera ilustrada de páginas internas */
.page-banner {
  position: relative; padding: 74px 0 54px; border-bottom: 1px solid var(--line);
  background-color: #070a14; overflow: hidden;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--banner); background-size: cover; background-position: center 45%;
  opacity: .8;
}
.page-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,10,20,.5) 0%, rgba(7,10,20,.46) 50%, var(--bg) 100%);
}
.page-banner .wrap { position: relative; z-index: 2; }
.page-banner h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 0; text-shadow: 0 2px 26px rgba(0,0,0,.65);
}
.page-banner p { color: #c3cae4; margin: 10px 0 0; max-width: 720px; }

.section { padding: 40px 0 70px; }
.page-head { padding: 54px 0 8px; }
.page-head h1 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
.entry-content { color: var(--muted); }
.entry-content h2, .entry-content h3 { margin-top: 2em; }
.entry-content a { color: var(--acc); }

/* single room */
.room-hero { position: relative; border-bottom: 1px solid var(--line); background: #0e1222; }
.room-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; padding: 46px 0; align-items: center; }
.room-hero-media img { width: 100%; border-radius: 18px; border: 1px solid var(--line); display: block; }
.room-hero-media .ph { aspect-ratio: 3/2; display: flex; align-items: center; justify-content: center; font-size: 4rem; background: linear-gradient(135deg, #1a2140, #10142a); border-radius: 18px; border: 1px solid var(--line); }
.room-hero h1 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin: 8px 0 4px; }
.room-tt { color: var(--dim); font-style: italic; }
.room-sub { color: var(--muted); font-size: 1.05rem; margin: 4px 0 14px; }
.room-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.badge {
  padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700;
  background: rgba(255,209,102,.13); color: var(--gold); border: 1px solid rgba(255,209,102,.4);
}
.badge.plain { background: var(--panel); color: var(--muted); border-color: var(--line); font-weight: 500; }
.room-cta { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 12px; font-weight: 800;
  background: var(--acc); color: #04150e; text-decoration: none; border: 1px solid var(--acc); font-size: 1rem;
}
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--acc); color: var(--acc); filter: none; }

.room-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 30px 0; }
.fact { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.fact b { display: block; color: var(--dim); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; font-weight: 600; }
.fact span { font-size: 1.05rem; }

blockquote.room-quote {
  margin: 30px 0; padding: 22px 26px; background: var(--panel); border-left: 4px solid var(--acc2);
  border-radius: 0 14px 14px 0; color: var(--muted); font-size: 1.08rem; font-style: italic;
}
blockquote.room-quote footer { margin-top: 10px; color: var(--dim); font-size: .9rem; font-style: normal; }

.room-map { height: 380px; border-radius: 16px; border: 1px solid var(--line); margin: 30px 0; }

.related h2 { margin: 40px 0 18px; }

@media (max-width: 820px) {
  .room-hero-inner { grid-template-columns: 1fr; padding: 30px 0; }
}

/* footer */
.site-footer { border-top: 1px solid var(--line); background: #0e1222; margin-top: 60px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding: 44px 0 30px; }
.site-footer h4 { margin: 0 0 12px; font-size: 1rem; }
.site-footer p, .site-footer a { color: var(--dim); font-size: .92rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--acc); }
.site-footer .legal { border-top: 1px solid var(--line); padding: 18px 0; color: #59617f; font-size: .84rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* generic content pages */
.prose { padding-bottom: 60px; }
.prose .entry-content { font-size: 1.02rem; }

/* promote page pricing cards */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 30px 0; }
.price-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px; text-align: center; }
.price-card.hot { border-color: var(--acc); box-shadow: 0 0 30px rgba(0,229,160,.1); }
.price-card h3 { margin-top: 0; }
.price-card .price { font-size: 2rem; font-weight: 800; color: var(--acc); font-family: Sora, sans-serif; }
.price-card ul { list-style: none; padding: 0; color: var(--muted); font-size: .93rem; text-align: left; }
.price-card li { padding: 5px 0; border-bottom: 1px dashed var(--line); }

/* v2: rating en la ficha, contacto, relacionadas, selector de idioma */
.room-rating { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; }
.room-rating b { color: var(--gold); font-size: 1.2rem; }
.room-rating a { color: var(--muted); font-size: .92rem; }
.room-contact { color: var(--muted); font-size: .95rem; }
.badge.plain:hover { border-color: var(--acc); color: var(--acc); }
a.badge { text-decoration: none; }

.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.rel-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.rel-media { display: block; aspect-ratio: 3/2; overflow: hidden; }
.rel-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rel-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; background: linear-gradient(135deg, #1a2140, #10142a); }
.rel-body { padding: 12px 14px; }
.rel-body h3 { margin: 0 0 4px; font-size: 1rem; }
.rel-body h3 a { color: #f0f2fa; text-decoration: none; }
.rel-body h3 a:hover { color: var(--acc); }
.rel-meta { color: var(--dim); font-size: .86rem; }

.site-nav .erg-lang-switcher { margin-left: 6px; }
@media (max-width: 880px) { .site-nav .erg-lang-switcher { margin: 8px 0 0; max-width: 100%; width: 100%; } }

/* placeholder ilustrado en la ficha */
.room-hero-media .ph-img { width: 100%; border-radius: 18px; border: 1px solid var(--line); display: block; opacity: .6; }
.rel-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
