/* Loft Acapulco — mobile-first, coastal blues/whites */
:root {
  --sea: #0b6e8a;
  --sea-deep: #074f63;
  --sea-soft: #e8f5f9;
  --sand: #f7f3ee;
  --foam: #ffffff;
  --ink: #1a2b32;
  --muted: #5a6f78;
  --accent: #f0a05a;
  --ok: #1f7a4c;
  --warn: #b45309;
  --danger: #b91c1c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(7, 79, 99, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--sea); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1100px, 92%); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #d9e8ee;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 1rem;
}
.logo {
  display: inline-flex; align-items: center; gap: .65rem;
  font-weight: 700; color: var(--sea-deep); font-size: 1.05rem; text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-img {
  width: 48px; height: 48px; object-fit: cover; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(7,79,99,.15);
}
.logo-text { max-width: 14rem; line-height: 1.2; font-size: .92rem; }
@media (max-width: 520px) {
  .logo-name { font-size: .78rem; }
  .logo-sub { font-size: .72rem; }
  .logo-img { width: 44px; height: 44px; }
}
.site-nav { display: none; gap: 1rem; align-items: center; }
.site-nav a { color: var(--ink); font-weight: 500; text-decoration: none; }
.site-nav a:hover { color: var(--sea); }
.site-nav.is-open {
  display: flex; flex-direction: column; align-items: stretch;
  position: absolute; left: 0; right: 0; top: 64px;
  background: var(--foam); padding: 1rem 4%;
  border-bottom: 1px solid #d9e8ee; box-shadow: var(--shadow);
}
.nav-toggle {
  border: 0; background: transparent; width: 42px; height: 42px;
  display: grid; place-content: center; gap: 5px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--sea-deep); border-radius: 2px;
}

@media (min-width: 800px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .75rem 1.2rem; border-radius: 999px; border: 0;
  font-weight: 600; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--sea); color: #fff; }
.btn-primary:hover { background: var(--sea-deep); color: #fff; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe57; color: #fff; }
.btn-outline {
  background: transparent; color: var(--sea-deep);
  border: 1.5px solid var(--sea);
}
.btn-outline:hover { background: var(--sea-soft); color: var(--sea-deep); }
.btn-sm { padding: .45rem .9rem; font-size: .9rem; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-warn { background: var(--warn); color: #fff; }

/* Hero */
.hero-logo {
  width: min(180px, 42vw); height: auto; border-radius: 16px;
  margin-bottom: 1.25rem; box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.hero {
  position: relative;
  background:
    linear-gradient(160deg, rgba(7,79,99,.75), rgba(11,110,138,.45)),
    radial-gradient(circle at 20% 20%, #7ec8db, transparent 50%),
    linear-gradient(180deg, #0b6e8a, #074f63);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: auto -10% -40% auto;
  width: 60vmin; height: 60vmin; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.hero-inner { position: relative; z-index: 1; max-width: 640px; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: 0 0 .75rem; }
.hero p { font-size: 1.1rem; opacity: .95; margin: 0 0 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.badge {
  display: inline-block; background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  padding: .25rem .7rem; font-size: .85rem; margin-bottom: 1rem;
}

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: var(--foam); }
.section h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--sea-deep); margin: 0 0 1rem;
}
.lead { color: var(--muted); max-width: 60ch; }

/* Gallery */
.gallery {
  display: grid; gap: .75rem;
  grid-template-columns: 1fr 1fr;
}
.gallery figure {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--sea-soft); box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

/* Cards / amenities */
.grid-3 {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--foam); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow);
  border: 1px solid #e4eef2;
}
.card h3 { margin: 0 0 .5rem; color: var(--sea-deep); font-size: 1.05rem; }
.amenity-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: .6rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .amenity-list { grid-template-columns: 1fr 1fr; }
}
.amenity-list li {
  background: var(--foam); border: 1px solid #dceaf0;
  border-radius: 12px; padding: .8rem 1rem;
  display: flex; align-items: center; gap: .6rem;
}
.amenity-list li::before {
  content: "✓"; color: var(--sea); font-weight: 700;
}

/* Rates */
.rate-big { font-size: 1.8rem; font-weight: 700; color: var(--sea); }
.rate-note { color: var(--muted); font-size: .95rem; }

/* Forms */
.form {
  background: var(--foam); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); border: 1px solid #e4eef2;
  max-width: 640px;
}
.form-row { margin-bottom: 1rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: .7rem .85rem; border-radius: 10px;
  border: 1.5px solid #c9dde5; font: inherit; background: #fff;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: 2px solid rgba(11,110,138,.25); border-color: var(--sea);
}
.form-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}
.help { font-size: .85rem; color: var(--muted); margin-top: .25rem; }

.alert {
  padding: .9rem 1rem; border-radius: 12px; margin-bottom: 1rem;
  border: 1px solid transparent;
}
.alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-info { background: var(--sea-soft); color: var(--sea-deep); border-color: #b6e0ec; }

/* Calendar */
.cal-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.cal-nav h2 { margin: 0; }
.calendar {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  background: var(--foam); padding: 1rem; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid #e4eef2;
}
.cal-head {
  text-align: center; font-size: .8rem; font-weight: 700;
  color: var(--muted); padding: .4rem 0;
}
.cal-day {
  aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 10px; font-size: .9rem; font-weight: 600;
  background: #f3fafc; color: var(--ink);
}
.cal-day.empty { background: transparent; }
.cal-day.blocked {
  background: #fee2e2; color: #991b1b; text-decoration: line-through;
}
.cal-day.today { outline: 2px solid var(--sea); }
.cal-legend {
  display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem;
  font-size: .9rem; color: var(--muted);
}
.dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-right: .35rem; vertical-align: middle; }
.dot-free { background: #f3fafc; border: 1px solid #c9dde5; }
.dot-blocked { background: #fee2e2; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--sea-deep), var(--sea));
  color: #fff; padding: 2.5rem 0; text-align: center;
}
.cta-band h2 { margin: 0 0 .5rem; color: #fff; }
.cta-band p { margin: 0 0 1.25rem; opacity: .95; }

/* Policies */
.policy-block { margin-bottom: 1.5rem; }
.policy-block h3 { color: var(--sea-deep); margin-bottom: .4rem; }
.policy-block ul { margin: .4rem 0 0; padding-left: 1.2rem; }

/* Footer */
.site-footer {
  background: var(--sea-deep); color: #d7e8ef;
  padding: 2.5rem 0 1.5rem; margin-top: 2rem;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-bottom { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); }

/* Admin */
.admin-wrap { width: min(1100px, 94%); margin: 2rem auto; }
.admin-nav {
  display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem;
  padding: 1rem; background: var(--foam); border-radius: var(--radius);
  border: 1px solid #e4eef2;
}
.table-wrap { overflow-x: auto; background: var(--foam); border-radius: var(--radius); box-shadow: var(--shadow); }
table.data {
  width: 100%; border-collapse: collapse; font-size: .92rem;
}
table.data th, table.data td {
  padding: .75rem .9rem; text-align: left; border-bottom: 1px solid #e8f0f3;
  vertical-align: top;
}
table.data th { background: var(--sea-soft); color: var(--sea-deep); }
.badge-status {
  display: inline-block; padding: .2rem .55rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
}
.badge-pending { background: #fff7ed; color: #9a3412; }
.badge-confirmed { background: #ecfdf5; color: #065f46; }
.badge-rejected, .badge-cancelled { background: #fef2f2; color: #991b1b; }
.inline-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.login-box { max-width: 400px; margin: 4rem auto; }


/* Brand hierarchy — nombre + edificio */
.logo-text {
  display: flex; flex-direction: column; gap: .1rem;
  max-width: 13.5rem; line-height: 1.15;
}
.logo-name { font-size: .88rem; font-weight: 700; color: var(--sea-deep); }
.logo-sub { font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.hero-title {
  font-size: clamp(1.55rem, 4.2vw, 2.35rem);
  margin: .35rem 0 .15rem;
  line-height: 1.15;
  font-weight: 700;
}
.hero-subname {
  margin: 0 0 .65rem;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 600;
  opacity: .95;
  letter-spacing: .02em;
}
.hero-tagline {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  opacity: .88;
  max-width: 28rem;
}
