:root {
  --ink: #15212c;
  --muted: #667383;
  --line: #dfe5eb;
  --paper: #f6f8fa;
  --white: #ffffff;
  --teal: #1d7461;
  --blue: #28546a;
  --gold: #b98a41;
  --stone: #7b6a55;
  --coffee: #4a3327;
  --rose: #b75560;
  --green: #247a4d;
  --shadow: 0 18px 45px rgba(22, 33, 44, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 210px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  border-radius: 6px;
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); margin-top: 2px; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 10px 12px;
  color: #334252;
  border-radius: 6px;
}
.main-nav a:hover { background: #eef3f6; }
.nav-action, .booking-strip button, .panel-form button, .admin-heading button {
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--teal);
  padding: 11px 16px;
  font-weight: 750;
  box-shadow: 0 10px 24px rgba(8, 118, 111, .2);
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: end;
  padding: 110px clamp(18px, 5vw, 70px) 36px;
  background-image: url("https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(47, 31, 22, .86), rgba(47, 31, 22, .55) 48%, rgba(47, 31, 22, .28));
}
.hero-content {
  position: relative;
  max-width: 760px;
  padding-bottom: 132px;
}
.eyebrow, .section-heading span, .service-band span, .admin-heading span {
  margin: 0 0 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 850;
}
.hero h1 {
  margin: 0;
  font-size: clamp(58px, 9vw, 118px);
  line-height: .92;
  letter-spacing: 0;
}
.hero-copy {
  max-width: 660px;
  margin: 22px 0 0;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.5;
  color: rgba(255,255,255,.9);
}
.booking-strip {
  position: absolute;
  left: clamp(18px, 5vw, 70px);
  right: clamp(18px, 5vw, 70px);
  bottom: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, .97);
  color: var(--ink);
  box-shadow: var(--shadow);
  border-radius: 8px;
}
label {
  display: grid;
  gap: 7px;
  color: #425161;
  font-size: 13px;
  font-weight: 750;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
}
textarea { resize: vertical; }

.section { padding: 74px clamp(18px, 5vw, 70px); }
.section-heading {
  display: grid;
  grid-template-columns: minmax(240px, 420px) minmax(280px, 1fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 30px;
}
.section-heading.compact { display: block; max-width: 760px; }
.section-heading h2, .service-band h2, .admin-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.03;
  letter-spacing: 0;
}
.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.room-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 18px;
}
.room-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(22, 33, 44, .08);
}
.room-card img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  display: block;
}
.feature-grid, .promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature-grid article, .promo-grid article {
  min-height: 138px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22, 33, 44, .06);
}
.feature-grid strong, .feature-grid small, .promo-grid strong, .promo-grid small {
  display: block;
}
.feature-grid small, .promo-grid small {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.room-card div { padding: 15px; }
.room-card h3 { margin: 0 0 6px; font-size: 19px; }
.room-card p { margin: 0 0 14px; color: var(--muted); line-height: 1.45; }
.room-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--green);
  background: #e9f5ed;
}

.booking-section { background: #fff; }
.booking-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 330px;
  gap: 22px;
}
.panel-form, .booking-summary, .work-panel, .admin-content, .sidebar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.panel-form { display: grid; gap: 16px; padding: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-row:has(label:nth-child(3)) { grid-template-columns: 1fr 1fr 130px minmax(180px, 1fr); }
.booking-summary { padding: 20px; background: #f8fbfc; }
.booking-summary h3 { margin: 0 0 18px; }
.booking-summary dl { display: grid; gap: 14px; margin: 0 0 18px; }
.booking-summary dl div { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.booking-summary dt { color: var(--muted); }
.booking-summary dd { margin: 0; font-weight: 900; font-size: 22px; }
.booking-summary p { color: var(--muted); line-height: 1.45; margin: 0; }

.service-band {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 28px;
  padding: 70px clamp(18px, 5vw, 70px);
  color: #fff;
  background: linear-gradient(135deg, var(--coffee), #203f3b);
}
.service-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.service-list article {
  min-height: 124px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}
.service-list strong, .service-list small { display: block; }
.service-list small { margin-top: 12px; color: rgba(255,255,255,.74); line-height: 1.45; }

.tourism-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tourism-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(22, 33, 44, .08);
}
.tourism-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
}
.tourism-grid div { padding: 15px; }
.tourism-grid strong, .tourism-grid small { display: block; }
.tourism-grid small { margin-top: 8px; color: var(--muted); line-height: 1.45; }

.promo-section { background: #f0ede8; }

.faq-section {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 18px;
  padding: 70px clamp(18px, 5vw, 70px);
  background: #fff;
}
.faq-section span {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 850;
}
.faq-section h2 { margin: 10px 0 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; }
details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  padding: 18px;
}
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 850; }
details p { margin: 12px 0 0; color: var(--muted); line-height: 1.5; }

.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 520px) 1fr;
  gap: 28px;
  align-items: center;
  padding: 70px clamp(18px, 5vw, 70px);
  background: #fff;
}
.contact-section span {
  margin: 0 0 10px;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 850;
}
.contact-section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.03;
}
.contact-section p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.contact-actions a {
  display: grid;
  place-items: center;
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  color: var(--blue);
  font-weight: 850;
}
.contact-actions a:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.admin-shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 18px;
  padding: 74px clamp(18px, 5vw, 70px);
}
.sidebar { position: sticky; top: 86px; align-self: start; padding: 14px; }
.sidebar h2 { margin: 8px 8px 14px; font-size: 21px; }
.tab {
  display: block;
  width: 100%;
  margin-bottom: 6px;
  border: 0;
  border-radius: 6px;
  padding: 12px;
  text-align: left;
  color: #314151;
  background: transparent;
  font-weight: 750;
}
.tab:hover, .tab.active { color: #fff; background: var(--blue); }
.admin-content { min-width: 0; padding: 22px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.toolbar input, .toolbar select { min-width: 170px; }
.admin-heading h2 { font-size: clamp(28px, 3vw, 40px); }
.metric-grid, .cash-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.metric-grid article, .cash-grid article {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
}
.metric-grid span, .cash-grid span { color: var(--muted); font-size: 13px; font-weight: 800; }
.metric-grid strong, .cash-grid strong { display: block; margin: 8px 0 4px; font-size: 28px; }
.metric-grid small { color: var(--muted); }
.split-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 16px; }
.work-panel { padding: 18px; }
.work-panel h3 { margin: 0 0 16px; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 38px 1fr 46px; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; }
.bar-track { height: 12px; border-radius: 999px; background: #e4ebef; overflow: hidden; }
.bar-track span { display: block; height: 100%; background: var(--teal); border-radius: 999px; }
.alert-list, .movement-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.alert-list li, .movement-list li {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.alert-list span { color: var(--muted); }
.movement-list li { grid-template-columns: 1fr auto; align-items: center; }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 720px; background: #fff; }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: #4c5b69; background: #f3f6f8; font-size: 13px; }
td { color: #253342; }
.status {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}
.status.confirmada, .status.disponible { background: #e8f5ee; color: var(--green); }
.status.pendiente, .status.limpieza { background: #fff4d8; color: #926411; }
.status.ocupada { background: #e8f0fb; color: var(--blue); }
.status.bloqueada, .status.mantenimiento, .status.cancelada { background: #fae9eb; color: var(--rose); }
.status.check-out { background: #edf0f3; color: #4c5b69; }
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mini-button, .icon-button, .secondary {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 800;
}
.mini-button.primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.mini-button.success { color: #fff; background: var(--green); border-color: var(--green); }
.mini-button.warning { color: #fff; background: var(--gold); border-color: var(--gold); }

.status-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.room-status {
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #fff;
}
.room-status.ocupada { border-left-color: var(--blue); }
.room-status.limpieza { border-left-color: var(--gold); }
.room-status.mantenimiento, .room-status.bloqueada { border-left-color: var(--rose); }
.room-status strong { display: block; font-size: 20px; }
.room-status span { display: block; color: var(--muted); margin-top: 8px; }
.room-status menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 14px 0 0;
}

.crm-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.crm-column {
  min-height: 300px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
}
.crm-column h3 { margin: 0 0 12px; font-size: 16px; }
.lead-card {
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.lead-card strong, .lead-card span { display: block; }
.lead-card span { color: var(--muted); margin-top: 6px; font-size: 13px; }

.task-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.task-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.task-card strong, .task-card span, .task-card small { display: block; }
.task-card span { margin-top: 8px; color: var(--muted); }
.task-card small { margin-top: 14px; color: var(--teal); font-weight: 850; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 70px);
  color: #fff;
  background: #101b25;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(37, 211, 102, .34);
}

.modal {
  width: min(620px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}
.modal::backdrop { background: rgba(16, 27, 37, .48); backdrop-filter: blur(3px); }
.modal form { display: grid; gap: 16px; padding: 20px; }
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.modal-head span {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 850;
}
.modal-head h2 { margin: 2px 0 0; }
.modal menu {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.modal menu button:last-child {
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--teal);
  padding: 10px 14px;
  font-weight: 850;
}

@media (max-width: 1080px) {
  .booking-strip, .room-grid, .service-list, .metric-grid, .cash-grid, .crm-board, .task-list, .feature-grid, .promo-grid, .tourism-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-heading, .service-band, .booking-layout, .split-grid, .admin-shell, .contact-section, .faq-section {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }
}

@media (max-width: 720px) {
  .topbar { align-items: stretch; flex-direction: column; }
  .main-nav { flex-wrap: wrap; }
  .nav-action { text-align: center; }
  .hero { min-height: 820px; padding-top: 70px; }
  .hero-content { padding-bottom: 330px; }
  .booking-strip, .room-grid, .service-list, .metric-grid, .cash-grid, .crm-board, .task-list, .feature-grid, .promo-grid, .tourism-grid, .form-row, .form-row:has(label:nth-child(3)), .contact-actions {
    grid-template-columns: 1fr;
  }
  .footer { flex-direction: column; }
  .admin-heading { align-items: stretch; flex-direction: column; }
  .toolbar { justify-content: stretch; }
  .toolbar input, .toolbar select, .toolbar button { width: 100%; }
}
