/* ============ CREATHINK · Co-working & Coffee Shop ============ */
:root {
  --bg: #0b0a09;
  --bg-2: #13110f;
  --card: rgba(22, 19, 16, .78);
  --line: rgba(255, 255, 255, .14);
  --line-soft: rgba(255, 255, 255, .08);
  --text: #f4efe8;
  --muted: #b6aca0;
  --gold: #f7cf4f;
  --gold-2: #e9b93a;
  --radius: 16px;
  --sans: "Outfit", system-ui, sans-serif;
  --script: "Caveat", cursive;
  --wrap: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* ---------- Header / nav ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(11, 10, 9, .82);
  backdrop-filter: blur(12px);
  border-color: var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  font-weight: 700; font-size: 34px; line-height: 1; color: #fff;
  font-family: var(--sans); letter-spacing: -2px;
}
.logo-text b { display: block; font-weight: 500; font-size: 17px; letter-spacing: .32em; }
.logo-text small { display: block; font-size: 8.5px; letter-spacing: .3em; color: var(--muted); }
.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 400; color: var(--muted); position: relative; padding: 6px 0;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 10px;
  font: 500 15px var(--sans); cursor: pointer;
  border: 1px solid var(--line); color: #fff; background: rgba(0,0,0,.35);
  transition: transform .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.4); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-gold { background: var(--gold); color: #17130c; border-color: var(--gold); }
.btn-gold:hover { background: #ffd95e; border-color: #ffd95e; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-pill { border-radius: 999px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: 13px; letter-spacing: .42em; text-transform: uppercase; color: #e9e2d8;
}
.eyebrow.line::before { content: ""; width: 48px; height: 1px; background: var(--muted); }
.eyebrow.after::after { content: ""; width: 90px; height: 1px; background: var(--muted); }
.script { font-family: var(--script); color: var(--gold); font-weight: 700; }
.gold { color: var(--gold); }
h1, h2, h3 { font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
.h-xl { font-size: clamp(44px, 7vw, 92px); }
.h-lg { font-size: clamp(38px, 5.4vw, 68px); }
.h-md { font-size: clamp(28px, 3.4vw, 40px); }
.lead { font-size: clamp(16px, 1.6vw, 20px); color: #ddd5ca; max-width: 560px; }

/* ---------- Page hero (internal pages) ---------- */
.page-hero {
  position: relative; min-height: 640px; display: flex; align-items: center;
  padding: 120px 0 60px; overflow: hidden;
}
.page-hero .bg {
  position: absolute; inset: 0 0 0 auto; width: 62%;
  background-size: cover; background-position: center;
}
.page-hero .bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(11,10,9,.6) 30%, rgba(11,10,9,0) 65%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11,10,9,0) 30%);
}
.page-hero .content { position: relative; z-index: 2; }
.page-hero h1 { margin: 22px 0 22px; }
.page-hero h1 .script { font-size: 1.12em; display: inline-block; line-height: .9; }
.page-hero .lead { margin-bottom: 32px; max-width: 460px; }

/* ---------- HOME hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden; padding: 110px 0 70px;
}
.hero .bg {
  position: absolute; inset: 0 0 0 auto; width: min(64%, 108svh);
  animation: fadein 1.2s ease-out both;
}
.hero .bg video { width: 100%; height: 100%; object-fit: cover; object-position: 53% center; display: block; }
.hero .bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(11,10,9,.7) 14%, rgba(11,10,9,0) 42%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11,10,9,0) 25%),
    linear-gradient(180deg, rgba(11,10,9,.6) 0%, rgba(11,10,9,0) 18%);
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.hero .content { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(52px, 8vw, 112px); line-height: .98; margin-bottom: 30px; text-shadow: 0 4px 30px rgba(0,0,0,.5); }
.hero .lead { font-size: clamp(17px, 1.8vw, 23px); max-width: 600px; margin-bottom: 42px; text-shadow: 0 2px 16px rgba(0,0,0,.6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 100px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 420px; }

/* ---------- Cards (generic) ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .35s, border-color .35s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(247,207,79,.45); }

/* ---------- Home: feature tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile { position: relative; min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tile:hover img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,7,6,.95) 10%, rgba(8,7,6,.1) 70%); }
.tile > *:not(img) { position: relative; z-index: 2; }
.tile h3 { font-size: 24px; margin-bottom: 6px; }
.tile p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.tile .go { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gold); font-weight: 500; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 34px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 42px; font-weight: 600; color: var(--gold); line-height: 1; margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- Salas ---------- */
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.room { position: relative; display: flex; flex-direction: column; }
.room .ph { aspect-ratio: 16/10; overflow: hidden; }
.room .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.room:hover .ph img { transform: scale(1.05); }
.room .body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.room h3 { font-size: 22px; letter-spacing: .02em; text-transform: uppercase; font-weight: 600; }
.room .meta { display: flex; align-items: center; gap: 12px; color: #ddd5ca; font-size: 15px; }
.room .meta svg { width: 20px; height: 20px; color: var(--muted); }
.room .price { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.room .price b { font-size: 28px; font-weight: 600; }
.room .price small { color: var(--muted); font-size: 14px; font-weight: 300; }
.round-btn {
  width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #111;
  display: grid; place-items: center; transition: background .2s, transform .2s; flex: none;
}
.round-btn:hover { background: var(--gold); transform: translateX(3px); }
.round-btn svg { width: 20px; height: 20px; }
.room .tag {
  position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--gold); color: #17130c;
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; letter-spacing: .04em;
}

.amenities { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; padding: 30px 0; border-top: 1px solid var(--line); margin-top: 48px; }
.amenity { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.amenity svg { width: 26px; height: 26px; }
.note { font-size: 12px; letter-spacing: .06em; color: #8a8178; text-transform: uppercase; }

.big-cta {
  display: flex; align-items: center; gap: 22px; padding: 26px 30px; border: 1px solid var(--line);
  border-radius: 12px; background: rgba(0,0,0,.4); transition: border-color .2s;
}
.big-cta:hover { border-color: var(--gold); }
.big-cta svg { width: 36px; height: 36px; flex: none; }
.big-cta div { flex: 1; }
.big-cta b { display: block; font-weight: 600; font-size: 18px; }
.big-cta span { color: #ddd5ca; }

/* Booking form */
.booking { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.form { padding: 34px; display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; color: var(--muted); letter-spacing: .05em; }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 14px; color: #fff; font: 400 15px var(--sans); outline: none; transition: border-color .2s;
  color-scheme: dark;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field select option { background: #1a1714; }
.estimate { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-radius: 10px; background: rgba(247,207,79,.08); border: 1px dashed rgba(247,207,79,.4); }
.estimate b { font-size: 24px; color: var(--gold); font-weight: 600; }
.checklist { list-style: none; display: grid; gap: 16px; margin-top: 26px; }
.checklist li { display: flex; gap: 14px; color: #ddd5ca; }
.checklist li::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317130c' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; margin-top: 2px; }

/* ---------- Menús ---------- */
.favs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fav { display: flex; flex-direction: column; }
.fav .ph { aspect-ratio: 1/.9; overflow: hidden; position: relative; }
.fav .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.fav:hover .ph img { transform: scale(1.06); }
.fav .ph::after { content: ""; position: absolute; inset: auto 0 0; height: 50%; background: linear-gradient(0deg, rgba(22,19,16,1), transparent); }
.fav .body { padding: 6px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.fav h3 { font-size: 22px; font-weight: 500; margin-bottom: 8px; }
.fav p { color: var(--muted); font-size: 14px; flex: 1; margin-bottom: 18px; }
.fav .from { font-size: 13px; color: var(--gold); }
.fav .from b { font-size: 22px; color: #fff; font-weight: 500; margin-left: 4px; }

.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.menu-card { padding: 28px; }
.menu-card .top { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.icon-ring { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--gold); display: grid; place-items: center; color: var(--gold); flex: none; }
.icon-ring svg { width: 24px; height: 24px; }
.menu-card h3 { font-size: 21px; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; }
.menu-card .desc { color: var(--muted); font-size: 14px; margin: 2px 0 0; }
.menu-card .ph { margin: 22px -28px -28px; aspect-ratio: 16/9; overflow: hidden; }
.menu-card .ph img { width: 100%; height: 100%; object-fit: cover; }

table.prices { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 15px; }
table.prices th { font-size: 11px; font-weight: 500; letter-spacing: .1em; color: var(--gold); text-align: right; padding: 0 0 10px; }
table.prices td { padding: 10px 0; border-top: 1px solid var(--line-soft); }
table.prices td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 10px; }
table.prices td:first-child { color: #ece5db; }
table.prices .dim { color: var(--muted); font-size: 13px; }

.size-tabs { display: none; }

.brand-note { display: flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: .16em; color: #ddd5ca; text-transform: uppercase; text-align: right; line-height: 1.6; }

.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: #ddd5ca; font: 400 14px var(--sans); cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.chip.on { background: var(--gold); border-color: var(--gold); color: #17130c; font-weight: 500; }
.menu-grid .menu-card.hide { display: none; }

.combos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.combo { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: rgba(0,0,0,.3); }
.combo img { width: 100%; aspect-ratio: 2/1; object-fit: cover; }
.combo div { padding: 16px 18px 18px; }
.combo p { font-size: 15px; color: #ece5db; min-height: 46px; }
.combo b { font-size: 26px; color: var(--gold); font-weight: 600; }

/* Banner */
.banner { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; overflow: hidden; }
.banner img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.banner .txt { padding: 40px; }
.banner h2 { font-size: clamp(30px, 3.2vw, 42px); font-weight: 400; margin-bottom: 26px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 64px 0 34px; margin-top: 40px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h2 { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 500; }
.footer ul { list-style: none; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.footer ul a:hover { color: #fff; }
.footer p { color: var(--muted); font-size: 15px; margin-top: 16px; max-width: 300px; }
.copy { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; color: #9a9187; font-size: 13px; flex-wrap: wrap; gap: 10px; }

/* Floating WhatsApp */
.wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.4);
  transition: transform .2s;
}
.wa:hover { transform: scale(1.08); }
.wa svg { width: 30px; height: 30px; color: #fff; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero .bg { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .tiles, .favs { grid-template-columns: repeat(2, 1fr); }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .rooms { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .booking { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn { display: none; }
  .burger { display: block; }
  .header.open { background: rgba(11,10,9,.97); }
  .header.open .nav-links {
    display: flex; flex-direction: column; gap: 4px; position: absolute; top: 76px; left: 0; right: 0;
    background: rgba(11,10,9,.97); padding: 12px 16px 26px; border-bottom: 1px solid var(--line-soft);
  }
  .header.open .nav-links a { display: block; padding: 14px 0; font-size: 18px; color: #fff; }
  .header.open .nav-links a.active::after { display: none; }
  .hero .bg, .page-hero .bg { width: 100%; opacity: .55; }
  .hero .bg::after, .page-hero .bg::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(11,10,9,.55) 60%, rgba(11,10,9,.3) 100%); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .banner { grid-template-columns: 1fr; }
  .combos { grid-template-columns: 1fr; }
  .brand-note { text-align: left; }
}
@media (max-width: 620px) {
  .section { padding: 70px 0; }
  .tiles, .favs, .menu-grid, .rooms, .footer-grid { grid-template-columns: 1fr; }
  .tile { min-height: 300px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .form .row { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .menu-card { padding: 22px; }
  .menu-card .ph { margin: 20px -22px -22px; }
  table.prices { font-size: 14px; }
  .page-hero { min-height: 560px; }
}

/* Fotos reales de las salas: un poco más de luz */
img[src*="img/sala-"] { filter: brightness(1.15) saturate(1.08); }

/* ---------- Accesibilidad ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: #17130c; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Preguntas frecuentes ---------- */
.faq-list { display: grid; gap: 12px; max-width: 860px; }
.faq { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 500; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 24px; font-weight: 300; }
.faq[open] summary::after { content: "–"; }
.faq p { padding: 0 22px 20px; color: #ddd5ca; }
.faq a { color: var(--gold); }

/* ---------- Páginas legales ---------- */
.legal .wrap { max-width: 820px; }
.legal h2 { font-size: 24px; font-weight: 600; margin: 40px 0 14px; color: #fff; }
.legal p, .legal li, .legal dd { color: #ddd5ca; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 16px; }
.legal dt { font-weight: 600; color: #fff; }
.legal dd { margin-left: 0; }
.legal a { color: var(--gold); }
.legal .updated { color: var(--muted); margin-bottom: 30px; }
.pendiente { background: #ffd95e; color: #17130c; padding: 0 4px; border-radius: 4px; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }
.form-note a { color: var(--gold); }
.copy { padding-right: 76px; }
