:root, [data-theme="mar-montana"] {
  --bg: #f4efe4; --bg-2: #fff8ee; --ink: #1d2428; --muted: #5c675f;
  --accent: #c4532a; --accent-2: #0f6e78; --gold: #e2a53a;
  --card: #fffdf8; --line: #e4d3bc; --header: rgba(255,248,238,.92);
  --hero-a: rgba(15, 70, 78, .55); --hero-b: rgba(150, 52, 24, .35);
  --free: #e5f4ea; --busy: #f3c7b4; --chip: #0f6e78;
}
[data-theme="cantabria-verde"] {
  --bg: #eef4e6; --bg-2: #f7fbf2; --ink: #1a2a1c; --muted: #4e6248;
  --accent: #2f6b34; --accent-2: #8ea23a; --gold: #d4a24c;
  --card: #fbfff6; --line: #d5e3c4; --header: rgba(247,251,242,.92);
  --hero-a: rgba(28, 70, 36, .55); --hero-b: rgba(90, 110, 30, .28);
  --free: #e4f3d8; --busy: #efd0b0; --chip: #2f6b34;
}
[data-theme="casona-clasica"] {
  --bg: #f3eadf; --bg-2: #fbf6ef; --ink: #2a1c16; --muted: #6b5346;
  --accent: #7a2f38; --accent-2: #3d2a22; --gold: #c6a15b;
  --card: #fffaf3; --line: #e3d0be; --header: rgba(251,246,239,.94);
  --hero-a: rgba(42, 24, 20, .6); --hero-b: rgba(122, 47, 56, .35);
  --free: #efe4d4; --busy: #e7c2c6; --chip: #7a2f38;
}
[data-theme="atardecer-ria"] {
  --bg: #fff1e8; --bg-2: #fff8f3; --ink: #2b1a22; --muted: #70515a;
  --accent: #e06a4f; --accent-2: #163a5f; --gold: #f0b429;
  --card: #fffdfb; --line: #f0d2c4; --header: rgba(255,248,243,.92);
  --hero-a: rgba(22, 40, 80, .5); --hero-b: rgba(210, 80, 50, .4);
  --free: #ffe7c9; --busy: #f6b7b0; --chip: #163a5f;
}
[data-theme="bosque-atlantico"] {
  --bg: #e7efe8; --bg-2: #f4f8f4; --ink: #14221c; --muted: #4d6258;
  --accent: #1f6b52; --accent-2: #6e8f62; --gold: #c9b06a;
  --card: #fbfefb; --line: #cfe0d4; --header: rgba(244,248,244,.92);
  --hero-a: rgba(16, 40, 32, .6); --hero-b: rgba(40, 80, 50, .3);
  --free: #d9f0e2; --busy: #e8cbb0; --chip: #1f6b52;
}
[data-theme="piedra-luz"] {
  --bg: #f2f0ea; --bg-2: #fafaf7; --ink: #1c1c1c; --muted: #5e5a54;
  --accent: #b85c38; --accent-2: #2c3a40; --gold: #d7b072;
  --card: #ffffff; --line: #ddd8cf; --header: rgba(250,250,247,.94);
  --hero-a: rgba(28, 32, 34, .55); --hero-b: rgba(184, 92, 56, .28);
  --free: #e7f0ea; --busy: #f0cfc0; --chip: #2c3a40;
}
[data-theme="invierno-acogedor"] {
  --bg: #f6efe6; --bg-2: #fff9f2; --ink: #2a1614; --muted: #6e534c;
  --accent: #8c2f39; --accent-2: #c47b2b; --gold: #e0a24a;
  --card: #fffdf9; --line: #ead6c4; --header: rgba(255,249,242,.94);
  --hero-a: rgba(50, 18, 20, .62); --hero-b: rgba(160, 70, 30, .3);
  --free: #f3e2c8; --busy: #efc0b8; --chip: #8c2f39;
}
[data-theme="primavera-cicero"] {
  --bg: #f3f7ef; --bg-2: #fbfff8; --ink: #243028; --muted: #5d6b60;
  --accent: #d46a8a; --accent-2: #3d8f78; --gold: #efc15b;
  --card: #ffffff; --line: #dce8d6; --header: rgba(251,255,248,.92);
  --hero-a: rgba(40, 90, 70, .45); --hero-b: rgba(200, 90, 120, .25);
  --free: #e5f6ea; --busy: #f8d0dc; --chip: #3d8f78;
}
[data-theme="verano-costero"] {
  --bg: #eef8fb; --bg-2: #ffffff; --ink: #12303a; --muted: #4d6b74;
  --accent: #f0a202; --accent-2: #087ea4; --gold: #ffd166;
  --card: #ffffff; --line: #d3ebf3; --header: rgba(255,255,255,.92);
  --hero-a: rgba(8, 90, 130, .45); --hero-b: rgba(240, 162, 2, .25);
  --free: #d9f4ea; --busy: #ffd0b5; --chip: #087ea4;
}
[data-theme="otono-valle"] {
  --bg: #f8f0e4; --bg-2: #fff8ee; --ink: #2c2116; --muted: #6d5a45;
  --accent: #c4622d; --accent-2: #6b7030; --gold: #e0a045;
  --card: #fffdf8; --line: #ead7bc; --header: rgba(255,248,238,.94);
  --hero-a: rgba(70, 40, 18, .55); --hero-b: rgba(140, 70, 20, .32);
  --free: #efe6c8; --busy: #f0c2a4; --chip: #6b7030;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Outfit, system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 100% -10%, color-mix(in srgb, var(--gold) 35%, transparent), transparent 60%),
    radial-gradient(900px 400px at -10% 20%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 55%),
    var(--bg);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-2); }
h1, h2, h3, .brand-type { font-family: Fraunces, Georgia, serif; font-weight: 500; letter-spacing: -0.03em; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.ribbon { display: none; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 28px; background: #fff; border-bottom: 1px solid #eee;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.brand img { height: 52px; width: auto; border-radius: 6px; }
.main-nav { display: flex; gap: 22px; align-items: center; }
.main-nav a { text-decoration: none; color: #2a2a2a; font-weight: 600; font-size: .95rem; }
.nav-cta {
  background: #e07a3d !important; color: white !important; border-radius: 8px;
  padding: 10px 18px; font-weight: 700;
}
.hero {
  min-height: 62vh; display: flex; align-items: center;
  background:
    linear-gradient(90deg, rgba(20,30,20,.55) 0%, rgba(20,30,20,.15) 55%, transparent 75%),
    var(--hero) center/cover no-repeat;
  color: white; padding: 40px 0 70px;
}
.hero h1 { font-size: clamp(2.8rem, 6.5vw, 5rem); margin: 0 0 4px; line-height: .95; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero .sub { font-size: 1.45rem; margin: 0 0 10px; font-style: italic; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero p { max-width: 520px; font-size: 1.05rem; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.photo-strip {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
  margin: -48px auto 28px; width: min(1120px, calc(100% - 32px)); position: relative; z-index: 3;
}
.photo-strip img {
  height: 120px; width: 100%; object-fit: cover; border-radius: 14px;
  border: 4px solid #fff; box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.book-bar {
  display: grid; grid-template-columns: 1fr 1fr 1.2fr .7fr auto; gap: 12px; align-items: end;
  background: #fff; border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 8px 28px rgba(0,0,0,.06); border: 1px solid #f0e6d8;
}
.cal-day.free { background: #d8f0dc; color: #1a5c2e; }
.cal-day.busy { background: #f6cfc0; color: #8a3a1e; }
.panel { border-radius: 16px; }
.nav-drop { position: relative; }
.nav-drop-menu {
  display: none; position: absolute; top: 100%; left: 0; background: white; border: 1px solid var(--line);
  border-radius: 12px; min-width: 180px; padding: 8px 0; box-shadow: 0 10px 30px rgba(0,0,0,.08); z-index: 30;
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: block; }
.nav-drop-menu a { display: block; padding: 8px 14px; color: var(--ink); text-decoration: none; }
.nav-drop-menu a:hover { background: var(--bg); }
.photo-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: -30px auto 20px; width: min(1120px, calc(100% - 32px)); position: relative; z-index: 2; }
.photo-strip img { height: 110px; width: 100%; object-fit: cover; border-radius: 12px; border: 3px solid white; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
@media (max-width: 700px) { .photo-strip { grid-template-columns: repeat(3, 1fr); } .photo-strip img { height: 80px; } }
  background: var(--accent); color: white !important; border: 0; border-radius: 999px;
  padding: 11px 18px; font-weight: 700; text-decoration: none; display: inline-block; cursor: pointer;
  font-family: inherit;
}
.btn.alt { background: var(--accent-2); }
.btn.ghost { background: transparent; color: var(--ink) !important; border: 1px solid var(--line); }
.nav-toggle { display: none; background: var(--accent-2); color: white; border: 0; border-radius: 8px; padding: 8px 12px; }
.hero {
  min-height: 78vh; display: grid; align-items: end;
  background: linear-gradient(var(--hero-a), var(--hero-b)), var(--hero) center/cover no-repeat;
  color: white; padding: 48px 0 36px;
}
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); margin: 0 0 6px; line-height: .95; }
.hero .sub { font-size: 1.35rem; margin: 0 0 12px; font-style: italic; }
.hero p { max-width: 640px; font-size: 1.08rem; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.band { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--accent-2); color: white; }
.band div { padding: 18px 16px; border-right: 1px solid rgba(255,255,255,.15); }
.band strong { display: block; font-family: Fraunces, serif; font-size: 1.3rem; }
section { padding: 56px 0; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 8px; }
.lead { color: var(--muted); max-width: 680px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(40, 30, 10, .05);
}
.card img { height: 190px; width: 100%; object-fit: cover; }
.card-body { padding: 16px; }
.price { color: var(--accent); font-weight: 800; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--accent); font-weight: 700; }
.panel {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; padding: 18px;
  box-shadow: 0 12px 40px rgba(40, 30, 10, .05);
}
.book-bar { display: grid; grid-template-columns: 1.4fr 1fr 1fr .6fr auto; gap: 10px; align-items: end; }
label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 4px; }
input, select, textarea {
  width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: white; font: inherit; color: var(--ink);
}
textarea { min-height: 90px; }
.cal { margin-top: 8px; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-head span { text-align: center; font-size: .75rem; font-weight: 700; color: var(--muted); }
.cal-day, .cal-empty {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; font-weight: 700; text-decoration: none;
}
.cal-day.free { background: var(--free); color: var(--ink); }
.cal-day.busy { background: var(--busy); color: #6b2e1b; }
.cal-day.past { background: #eeeae4; color: #9a948c; }
.cal-day.today { outline: 2px solid var(--accent); }
.legend { display: flex; gap: 14px; font-size: .9rem; margin: 8px 0 12px; }
.dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; margin-right: 6px; }
.dot.free { background: var(--free); border: 1px solid #b7d7c2; }
.dot.busy { background: var(--busy); }
.month-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.place-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.place {
  padding: 16px; border-radius: 16px; color: white; min-height: 140px;
  background: linear-gradient(160deg, var(--accent-2), var(--accent));
  text-decoration: none; display: block;
}
.place:nth-child(2n) { background: linear-gradient(160deg, var(--accent), var(--gold)); color: #2a160e; }
.place strong { font-family: Fraunces, serif; font-size: 1.4rem; display: block; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.quote { background: var(--card); border-left: 6px solid var(--gold); border-radius: 14px; padding: 16px; }
.map { height: 360px; border-radius: 18px; border: 1px solid var(--line); }
.site-footer { background: var(--ink); color: #f4efe6; padding: 36px 0 16px; margin-top: 20px; }
.site-footer a { color: #f0d7a2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.copy { text-align: center; opacity: .7; font-size: .85rem; }
.flash { margin: 12px auto; width: min(1120px, calc(100% - 32px)); padding: 12px 14px; border-radius: 12px; background: #e5f6ea; }
.flash-err { background: #fde2dc; }
.table-wrap { overflow: auto; background: var(--card); border-radius: 16px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; background: var(--free); font-size: .78rem; font-weight: 700; }
.badge.warn { background: #ffe3b3; }
.badge.bad { background: #f8cfc7; }
.admin-body { display: flex; min-height: 100vh; background: #f6f1e8; }
.side {
  width: 230px; flex: none; background: #1c2b24; color: #f6f1e8; padding: 18px 12px;
  position: sticky; top: 0; height: 100vh; overflow: auto;
}
.side a { color: #f6f1e8; text-decoration: none; display: block; padding: 8px 10px; border-radius: 8px; }
.side a.on, .side a:hover { background: #c4532a; }
.side-brand { font-family: Fraunces, serif; font-size: 1.4rem; line-height: 1.1; padding: 6px 10px 12px; }
.side-user { opacity: .75; font-size: .85rem; padding: 0 10px 10px; }
.admin-main { flex: 1; padding: 22px; min-width: 0; }
.admin-title { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: white; border-radius: 16px; padding: 14px; border: 1px solid var(--line); }
.stat b { display: block; font-family: Fraunces, serif; font-size: 1.7rem; color: var(--accent); }
.check { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.check.done span { text-decoration: line-through; color: var(--muted); }
.invoice {
  background: white; border: 1px solid var(--line); border-radius: 12px; padding: 28px; max-width: 860px;
}
.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.theme-card { border: 2px solid var(--line); border-radius: 16px; overflow: hidden; background: white; }
.theme-card.active { border-color: var(--accent); }
.swatch { height: 74px; display: flex; }
.swatch i { flex: 1; display: block; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.gallery figure { margin: 0; background: white; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.gallery img { height: 140px; width: 100%; object-fit: cover; }
.two { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; }
@media (max-width: 900px) {
  .band, .book-bar, .footer-grid, .form-grid, .two { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; position: absolute; top: 78px; left: 0; right: 0; background: var(--bg-2); padding: 12px 18px; border-bottom: 1px solid var(--line); }
  body.nav-open .main-nav { display: flex; flex-direction: column; align-items: flex-start; }
  .admin-body { display: block; }
  .side { width: auto; height: auto; position: relative; }
}
@media print {
  .side, .admin-title, .no-print, .site-header, .ribbon, .site-footer { display: none !important; }
  .admin-main { padding: 0; }
  body { background: white; }
}
