﻿:root{
  --bg:#0b0f14;
  --card:#121a24;
  --text:#e9eef6;
  --muted:#9fb0c3;
  --line:#223041;
  --btn:#2f80ed;
  --btn2:#1b2a3a;
  --wa:#25D366;
  --bad:#ff4d4d;
  --good:#2dd4bf;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #081019 0%, #0b0f14 30%, #0b0f14 100%);
  color:var(--text);
}
.wrap{ width:min(980px, 92vw); margin:0 auto; }
.header{
  position:sticky; top:0; z-index:10;
  background: rgba(11,15,20,.8);
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
h1{ margin:0; font-size:20px; }
h2{ margin:0 0 8px; font-size:26px; }
h3{ margin:0 0 10px; font-size:18px; }
p{ margin:8px 0; }
.muted{ color:var(--muted); }

.pill{
  padding:10px 14px;
  border:1px solid var(--line);
  color:var(--text);
  border-radius:999px;
  text-decoration:none;
}

.card{
  background: rgba(18,26,36,.85);
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
  margin:16px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.hero{
  display:grid;
  gap:14px;
  grid-template-columns: 1.2fr .8fr;
}
.hero__note{
  border:1px dashed var(--line);
  border-radius:14px;
  padding:14px;
  background: rgba(0,0,0,.15);
}

.row{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.btn{
  background:var(--btn);
  color:white;
  border:none;
  border-radius:12px;
  padding:12px 14px;
  font-weight:600;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.btn--ghost{ background:var(--btn2); border:1px solid var(--line); }
.btn--wa{ background: var(--wa); color:#07120b; font-weight:800; }
.btn:disabled, .disabled{
  opacity:.45;
  pointer-events:none;
}

.form{ display:flex; flex-direction:column; gap:12px; }
.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
label{ display:flex; flex-direction:column; gap:6px; font-size:14px; color:var(--muted); }

input, select{
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#0b121b;
  color:var(--text);
  outline:none;
}
input:focus, select:focus{ border-color:#3a5f86; }

.select{ appearance:auto; }

.result{
  margin-top:12px;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
}
.hidden{ display:none; }
.divider{ height:1px; background:var(--line); margin:16px 0; }

.hint{ margin-top:10px; font-size:13px; }

.map iframe{
  width:100%;
  height:320px;
  border:0;
  border-radius:14px;
}

/* Galería */
.gallery{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:10px;
}
.gallery img{
  width:100%;
  height:140px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid var(--line);
  cursor:pointer;
}

/* Lightbox */
.lightbox{
  display:none;
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.8);
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:999;
}
.lightbox.open{ display:flex; }
.lightbox img{
  max-width:min(1100px, 92vw);
  max-height:85vh;
  border-radius:16px;
  border:1px solid var(--line);
}
.lightbox__close{
  position:absolute;
  top:14px; right:14px;
  width:44px; height:44px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(18,26,36,.9);
  color:var(--text);
  cursor:pointer;
  font-size:18px;
}

/* ✅ Calendario */
.cal-controls{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:10px 0 12px;
}
.cal-title{
  font-weight:800;
  letter-spacing:.2px;
}

.calendar{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap:8px;
}

.cal-dow{
  color:var(--muted);
  font-size:12px;
  text-align:center;
  padding:6px 0;
}

.cal-day{
  border:1px solid var(--line);
  background:#0b121b;
  border-radius:12px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  user-select:none;
  font-weight:700;
}
.cal-day:hover{ border-color:#3a5f86; }
.cal-day.out{ opacity:.35; cursor:default; }
.cal-day.past{ opacity:.35; cursor:not-allowed; }
.cal-day.blocked{
  border-color: rgba(255,77,77,.55);
  background: rgba(255,77,77,.12);
  cursor:not-allowed;
}
.cal-day.selected{
  border-color: rgba(45,212,191,.8);
  background: rgba(45,212,191,.14);
}
.cal-legend{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
  color:var(--muted);
  font-size:12px;
}
.dot{
  width:10px;height:10px;border-radius:999px;display:inline-block;margin-right:6px;
  border:1px solid var(--line);
}
.dot.bad{ background: rgba(255,77,77,.5); border-color: rgba(255,77,77,.8); }
.dot.good{ background: rgba(45,212,191,.5); border-color: rgba(45,212,191,.8); }

.footer{ padding:24px 0 40px; text-align:center; }

@media (max-width: 820px){
  .hero{ grid-template-columns:1fr; }
  .grid{ grid-template-columns:1fr; }
  .gallery{ grid-template-columns: repeat(2, 1fr); }
  .gallery img{ height:160px; }
}
