:root {
  --paper: #f3ecE3;
  --paper-deep: #e7ddd0;
  --card: #fffaf4;
  --ink: #241816;
  --muted: #6a5b54;
  --line: #e4d8ca;
  --wine: #8d2f3c;
  --wine-deep: #5d1d27;
  --clay: #c56a43;
  --moss: #24685f;
  --moss-soft: #e4f2ef;
  --gold: #e8b86a;
  --ok: #1d7a4d;
  --danger: #9d2c2c;
  --info: #234e68;
  --shadow: 0 20px 50px rgba(48, 28, 22, .08);
  --radius: 22px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(232, 184, 106, .28), transparent 60%),
    linear-gradient(180deg, #f7f1e8 0%, var(--paper) 240px);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--wine-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 560; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 .4em; }
p { margin: 0 0 .8em; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 9; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247, 241, 232, .9); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 650; letter-spacing: -.02em; }
.brand em { font-family: var(--serif); font-style: italic; font-weight: 560; color: var(--wine); }
.brand-mark { width: 60px; height: 60px; display: block; flex: none; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.nav a:hover { color: var(--wine); }
.nav-cta { background: var(--wine); color: #fff !important; border-radius: 999px; padding: 8px 14px; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; }
.header-search { display: none; margin-left: auto; background: var(--wine); color: #fff !important; text-decoration: none; border-radius: 999px; padding: 8px 12px; font-weight: 650; white-space: nowrap; }

.responsible { background: var(--wine-deep); color: #f8efe8; font-size: .92rem; }
.responsible a { color: #fff; }
.responsible .wrap { padding: 8px 0; }

.home-search { padding: 28px 0 8px; }
.home-search h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); max-width: 12ch; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: end; padding: 28px 0 10px; }
.hero h2 { font-size: clamp(2rem, 4vw, 3.4rem); max-width: 16ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--clay); margin-bottom: 10px; }
.hero h1 { font-size: clamp(2.7rem, 6vw, 5rem); max-width: 11ch; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 38rem; }
.hero-photo { margin: 0; min-height: 460px; border-radius: 32px; background: #ddd url("/assets/images/hero-clientes.jpg") center/cover no-repeat; position: relative; box-shadow: var(--shadow); }
.hero-photo figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(255, 250, 244, .92); border-radius: 16px; padding: 12px 14px; font-size: .95rem; }

.search-card { margin-top: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1.4fr .9fr auto; gap: 10px; align-items: end; }
.search-card > .btn { white-space: nowrap; }
.search-card label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.search-card input, .search-card select, .field input, .field select, .field textarea {
  width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px; outline: none;
}
.search-card input:focus, .search-card select:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--wine); box-shadow: 0 0 0 4px rgba(141, 47, 60, .12); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 18px; background: var(--ink); color: #fff; text-decoration: none; cursor: pointer; font-weight: 650; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--wine); }
.btn-moss { background: var(--moss); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-small { padding: 8px 12px; font-size: .92rem; }
.btn-danger { background: var(--danger); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.chips a, .chip { text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; color: var(--ink); font-size: .95rem; }
.chips a strong { color: var(--moss); font-weight: 700; }

.section { padding: 54px 0; }
.section-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); max-width: 16ch; }
.section-head p { color: var(--muted); max-width: 36ch; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: 0 10px 30px rgba(48, 28, 22, .04); }
.card h3 { font-size: 1.7rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--wine); }
.card-kicker { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .92rem; }
.card-address { color: var(--ink); }
.card-text { color: var(--muted); }
.badge { display: inline-flex; border-radius: 999px; padding: 3px 8px; background: var(--paper-deep); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.badge-premium { background: #f3d7a4; color: #5c3b10; }
.badge-ok { background: var(--moss-soft); color: var(--moss); }
.badge-warn { background: #f8e4c8; color: #7a4b12; }
.badge-muted { background: #eee; color: #555; }

.steps { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: center; }
.steps ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { background: #fff; border-radius: 18px; padding: 16px 16px 16px 64px; position: relative; border: 1px solid var(--line); }
.steps li span { position: absolute; left: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--wine); color: #fff; display: grid; place-items: center; font-weight: 700; }
.photo-frame { border-radius: 28px; min-height: 340px; background: #ccc url("/assets/images/descubrir-ciudad.jpg") center/cover no-repeat; }

.atmosphere { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: center; }
.atmosphere img { border-radius: 28px; width: 100%; height: 420px; object-fit: cover; }
.band { background: var(--ink); color: #f6efe6; border-radius: 28px; padding: 28px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; align-items: center; }
.band h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.band p { color: #eadfD4; }
.band .btn { background: var(--gold); color: #2a2118; }

.site-footer { background: #1b1412; color: #f3e9df; margin-top: 20px; padding-top: 36px; }
.site-footer a { color: #fff; text-decoration: none; display: block; margin: 6px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr .8fr; gap: 22px; }
.footer-brand { font-family: var(--serif); font-size: 1.8rem; display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 36px; height: 36px; flex: none; }
.footer-title { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; color: var(--gold); }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 22px; padding: 14px 0 20px; font-size: .92rem; }
.footer-base a { display: inline; }

.notice { border-radius: 14px; padding: 12px 14px; margin: 12px 0; }
.notice-ok { background: #e5f6ec; color: #145c36; }
.notice-error { background: #fde8e8; color: #8a2020; }
.notice-info { background: #e7f1f8; color: #1d4460; }
.flash-stack { padding-top: 12px; }

.page-hero { padding: 34px 0 10px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); max-width: 16ch; }
.filters { display: grid; grid-template-columns: 1.4fr .8fr auto; gap: 10px; margin: 16px 0 20px; }
.empty { background: #fff; border-radius: 24px; padding: 28px; border: 1px dashed var(--line); }

.ficha-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: start; padding-bottom: 40px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 18px; }
.panel h2 { font-size: 1.5rem; }
.meta-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.meta-list li { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.map-frame { border: 0; width: 100%; height: 240px; border-radius: 16px; background: var(--paper-deep); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery img { height: 160px; width: 100%; object-fit: cover; border-radius: 14px; }
.disclaimer { font-size: .92rem; color: var(--muted); }

.prose { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 50px; }
.prose h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.prose h2 { font-size: 1.7rem; margin-top: 1.3em; }
.prose ul { padding-left: 1.1em; }

.auth-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: center; padding: 20px 0 40px; }
.auth-visual { min-height: 460px; border-radius: 28px; background: #ccc url("/assets/images/ambiente-sala.jpg") center/cover no-repeat; }
.form { display: grid; gap: 12px; }
.field label { display: block; font-weight: 650; margin-bottom: 4px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: 4px; }
.honeypot { position: absolute; left: -9999px; }

.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: 18px; overflow: hidden; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { background: #fff7ee; }
.sala-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: center; }
.sala-hero img { border-radius: 28px; height: 320px; width: 100%; object-fit: cover; }

.age-gate { position: fixed; inset: 0; background: rgba(28, 16, 14, .72); z-index: 50; display: grid; place-items: center; padding: 18px; }
.age-gate[hidden], .cookie-bar[hidden] { display: none !important; }
.age-card { width: min(460px, 100%); background: var(--card); border-radius: 24px; padding: 22px; }
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); }
.cookie-bar p { margin: 0; flex: 1; }
.text-link { display: inline-block; margin-top: 10px; }

.account-nav { display: flex; gap: 14px; margin: 8px 0 16px; }
.account-nav a { text-decoration: none; font-weight: 650; }

.is-admin { background: #f6f1ea; }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side { background: #241816; color: #f6efe8; padding: 18px 16px; }
.admin-side .brand { color: #fff; }
.admin-side nav { display: grid; gap: 4px; margin-top: 16px; }
.admin-side a { color: #f6efe8; text-decoration: none; padding: 8px 10px; border-radius: 10px; }
.admin-side a.is-active, .admin-side a:hover { background: rgba(255,255,255,.08); }
.side-hello { color: var(--gold); margin: 14px 0 0; }
.admin-main { padding: 18px 22px 40px; }
.admin-top h1 { font-size: 2.2rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 8px 0 18px; }
.stat { background: #fff; border-radius: 16px; padding: 12px 14px; border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-size: 1.8rem; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.filters-admin { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filters-admin input, .filters-admin select { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.crm-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; align-items: start; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.timeline li { background: #fff; border-radius: 14px; padding: 10px 12px; border: 1px solid var(--line); }
.help { color: var(--muted); font-size: .92rem; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pager { display: flex; gap: 6px; margin: 16px 0; }
.pager a, .pager span { min-width: 36px; text-align: center; padding: 6px 8px; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pager .is-current { background: var(--wine); color: #fff; border-color: var(--wine); }

@media (max-width: 980px) {
  .hero, .steps, .atmosphere, .band, .ficha-grid, .auth-grid, .sala-hero, .crm-grid, .footer-grid, .cards { grid-template-columns: 1fr; }
  .search-card, .filters { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero-photo, .auth-visual { min-height: 280px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side nav { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .header-search { display: inline-flex; }
  .brand-mark { width: 46px; height: 46px; }
  .brand { font-size: .92rem; }
  .brand span:last-child { white-space: nowrap; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 74px; left: 0; right: 0; background: #f7f1e8; border-bottom: 1px solid var(--line); padding: 10px 16px 16px; flex-direction: column; align-items: flex-start; }
  .nav.is-open { display: flex; }
  .cookie-bar { flex-direction: column; align-items: stretch; }
  .cards { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
}
