@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap");

:root {
  --bg: #dddcd8;
  --surface: #ebe9e4;
  --surface-alt: #d7d3cc;
  --ink: #18070d;
  --muted: #5f4a51;
  --brand: #ff103c;
  --brand-dark: #a30022;
  --accent: #d70030;
  --line: #c7bdbe;
  --radius: 18px;
  --shadow: 0 14px 42px rgba(114, 8, 33, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  position: relative;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 400 16px/1.6 "Manrope", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  top: -300px;
  right: -260px;
  width: min(92vw, 1280px);
  height: min(92vw, 1280px);
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(58% 62% at 62% 38%, rgba(255, 16, 60, 0.42) 0%, rgba(255, 16, 60, 0.18) 46%, rgba(255, 16, 60, 0) 78%),
    radial-gradient(46% 50% at 78% 28%, rgba(163, 0, 34, 0.3) 0%, rgba(163, 0, 34, 0.11) 50%, rgba(163, 0, 34, 0) 80%);
  filter: blur(6px);
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-family: "Sora", "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.container {
  width: min(1120px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(171, 156, 160, 0.7);
  backdrop-filter: blur(10px);
  background: rgba(224, 221, 214, 0.94);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  color: #4a0f1b;
}

.brand-logo {
  width: 60px;
  height: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-weight: 600;
}

.site-nav a { opacity: 0.85; transition: opacity 0.2s ease; }
.site-nav a:hover { opacity: 1; color: var(--brand-dark); }

.site-nav .nav-cta {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(130deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 8px 18px rgba(163, 0, 34, 0.3);
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.58rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(235, 233, 228, 0.88);
  color: #4a0f1b;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.1;
  opacity: 0.92;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-contact-link:hover {
  opacity: 1;
  color: var(--brand-dark);
}

.nav-contact-icon {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-switch a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.9;
  background: rgba(235, 233, 228, 0.88);
}

.lang-switch a.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.site-main { min-height: calc(100vh - 220px); }

.hero { padding: 4.2rem 0 2rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  margin-top: 0.7rem;
  font-size: clamp(2rem, 5vw, 4rem);
}

.hero-copy > p { max-width: 56ch; color: var(--muted); }

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 0.72rem 1.25rem;
  font-size: 0.95rem;
  min-height: 44px;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(130deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 10px 22px rgba(147, 0, 27, 0.35);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(241, 239, 236, 0.72);
}

.hero-panel { display: grid; gap: 1rem; }

.hero-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

.hero-card p { margin: 0; color: var(--muted); }
.hero-card strong {
  display: block;
  margin-top: 0.4rem;
  font-size: clamp(1.25rem, 4.8vw, 1.8rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.stats {
  padding: 1.2rem 0 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stat {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.2rem;
  display: grid;
  gap: 0.3rem;
}

.stat strong { display: block; font-size: 1.8rem; }
.stat span {
  display: block;
  color: var(--muted);
}

.section { padding: 4.1rem 0; }

.hero,
.stats,
.section,
.section-contrast,
.cta,
.gallery-page,
.gallery-detail-page,
.reservation-page,
.admin-dashboard,
.admin-login {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero::before,
.stats::before,
.section::before,
.section-contrast::before,
.cta::before,
.gallery-page::before,
.gallery-detail-page::before,
.reservation-page::before,
.admin-dashboard::before,
.admin-login::before {
  content: none;
}

.hero::before { opacity: 0.05; background-size: 680px auto; background-position: left top; }
.stats::before { opacity: 0.035; background-size: 430px auto; background-position: right top; }
#services::before { opacity: 0.045; background-size: 560px auto; background-position: center top; }
#projects::before { opacity: 0.05; background-size: 760px auto; background-position: left center; }
.steps::before { opacity: 0.04; background-size: 500px auto; background-position: right center; }
.cta::before { opacity: 0.07; background-size: 900px auto; background-position: center; mix-blend-mode: soft-light; }
.gallery-page::before { opacity: 0.04; background-size: 540px auto; background-position: left top; }
.gallery-detail-page::before { opacity: 0.04; background-size: 520px auto; background-position: right top; }
.reservation-page::before { opacity: 0.035; background-size: 560px auto; background-position: center top; }
.admin-dashboard::before,
.admin-login::before { opacity: 0.025; background-size: 500px auto; background-position: left top; }

.section-head {
  margin-bottom: 1.4rem;
}

.section-head h1,
.section-head h2 {
  margin-top: 0.45rem;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
}

.section-head p { color: var(--muted); }

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  min-height: 180px;
}

.card p { color: var(--muted); }

.section-contrast {
  background: linear-gradient(180deg, rgba(233, 226, 218, 0.7), rgba(233, 226, 218, 0.28));
  border-top: 1px solid rgba(216, 207, 208, 0.9);
  border-bottom: 1px solid rgba(216, 207, 208, 0.9);
}

.projects {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project {
  background: rgba(241, 239, 236, 0.88);
  border-radius: var(--radius);
  border: 1px solid rgba(216, 207, 208, 0.95);
  overflow: hidden;
}

.project-link {
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(114, 8, 33, 0.12);
  border-color: rgba(163, 0, 34, 0.38);
}

.project-image {
  height: 145px;
  background:
    linear-gradient(120deg, rgba(225, 22, 58, 0.22), rgba(135, 7, 30, 0.34)),
    repeating-linear-gradient(45deg, #ffdce3 0 16px, #f8c8d2 16px 32px);
}

.project h3,
.project p { padding: 0 1rem; }

.project h3 { margin-top: 0.9rem; }
.project p { color: var(--muted); margin: 0.4rem 0 1rem; }

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.step {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.2rem;
}

.step span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: rgba(225, 22, 58, 0.14);
  color: var(--brand-dark);
  font-weight: 700;
}

.step p { color: var(--muted); }

.cta {
  margin: 2rem auto 4rem;
}

.cta-box {
  background: linear-gradient(120deg, #8f001f, #40000d);
  color: #fff;
  border-radius: 24px;
  padding: 2rem;
}

.cta-box p { color: rgba(255, 255, 255, 0.78); }

.flash-stack {
  margin-top: 1rem;
  display: grid;
  gap: 0.55rem;
}

.flash {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid;
  background: #ece8e2;
  border-color: #f4a1b3;
  color: #7e1632;
}

.flash.error {
  background: #efe7e0;
  border-color: #e6aaa1;
  color: #7e2e2e;
}

.reservation-page,
.admin-login,
.admin-dashboard { padding-top: 2.6rem; }

.reservation-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  gap: 1.2rem;
}

.info-panel,
.form-panel,
.table-wrap {
  background: rgba(241, 239, 236, 0.94);
  border: 1px solid rgba(216, 207, 208, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.info-panel ul { margin-top: 0.7rem; margin-bottom: 0; padding-left: 1.2rem; }

.note {
  color: var(--muted);
  border-left: 3px solid var(--brand);
  padding-left: 0.7rem;
  margin-top: 1rem;
}

.reservation-visuals-title {
  margin: 1rem 0 0.55rem;
  font-size: 1rem;
}

.reservation-visuals {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.zoom-card {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  position: relative;
}

.zoom-open-btn:focus-visible {
  outline: 2px solid var(--brand-dark);
  outline-offset: 2px;
}

.zoom-open-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 3;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 9, 11, 0.68);
  color: #fff;
  cursor: pointer;
}

.zoom-open-btn svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zoom-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: rgba(241, 239, 236, 0.94);
  display: block;
}

.zoom-card figcaption {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.45rem 0.6rem 0.55rem;
}

.zoom-lens {
  position: absolute;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
  display: none;
  background-repeat: no-repeat;
  background-color: rgba(255, 255, 255, 0.22);
}

.site-form { display: grid; gap: 0.9rem; }
.site-form-stack { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 0.3rem; }
.form-row.two-cols { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.form-row.three-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }

.calc-result {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
}

.calc-result p {
  margin: 0.2rem 0;
}

.calc-result-highlight {
  margin-top: 0.55rem !important;
  padding: 0.62rem 0.8rem;
  border: 1px solid rgba(199, 49, 49, 0.35);
  border-left: 6px solid var(--brand);
  background: rgba(214, 56, 56, 0.16);
  border-radius: 10px;
  font-weight: 800;
  color: #5a1c1c;
}

.calc-result-total {
  margin-top: 0.72rem !important;
  background: rgba(163, 0, 34, 0.2);
  border-color: rgba(127, 16, 41, 0.38);
  color: #4d1020;
  border-left-color: var(--brand-dark);
  font-size: 1.08rem;
}

label { font-weight: 600; font-size: 0.9rem; }
input, textarea, select, button { font: inherit; }

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.62rem 0.76rem;
  background: var(--surface);
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

input[type="file"] {
  width: 100%;
}

select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.62rem 0.76rem;
  background: var(--surface);
}

select[multiple] {
  min-height: 180px;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(225, 22, 58, 0.26);
  border-color: var(--brand);
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
}

.image-select-item > label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.form-errors {
  border-radius: 10px;
  border: 1px solid #e6aaa1;
  color: #7e2e2e;
  background: #efe7e0;
  padding: 0.4rem 0.7rem;
}

.form-errors p { margin: 0.2rem 0; }
.toolbar { margin-bottom: 1rem; }

.sort-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 1rem;
  margin-bottom: 1rem;
}

.sort-panel h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
}

.sortable-list {
  list-style: none;
  margin: 0 0 0.8rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.sortable-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 0.55rem 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: move;
}

.sortable-item.is-dragging {
  opacity: 0.55;
}

.drag-handle {
  font-weight: 800;
  color: var(--muted);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem;
}

.admin-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.small { margin-top: 0.2rem; font-size: 0.83rem; color: var(--muted); }

.table-wrap > form {
  width: 100%;
}

.status-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-pill.is-new { background: #ffe5ec; color: #921731; }
.status-pill.is-done { background: #fbe9ee; color: #7b2135; }
.status-pill.is-pending { background: #fcefdc; color: #8a5715; }
.status-pill.is-contacted { background: #e4f0fc; color: #1b558f; }
.status-pill.is-in-progress { background: #ece7ff; color: #51308c; }
.status-pill.is-canceled { background: #efe7e0; color: #7e2e2e; }

.actions { white-space: nowrap; }
.link-action { color: var(--accent); font-weight: 600; margin-right: 0.7rem; }
.link-danger { color: #8a2f22; }
.empty { margin: 0; color: var(--muted); }

.admin-gallery-list {
  display: grid;
  gap: 0.7rem;
  width: 100%;
}

.admin-gallery-item {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1rem;
  row-gap: 0.4rem;
  align-items: start;
  padding: 0.65rem 0.85rem;
}

.admin-gallery-main {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: start;
  grid-column: 1;
}

.admin-gallery-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.admin-gallery-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  grid-column: 1;
}

.admin-gallery-item .actions {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  display: flex;
  gap: 0.55rem;
  margin: 0;
}

.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.gallery-filter input {
  flex: 1 1 280px;
}

.gallery-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.panel-sidebar {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 0.55rem;
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding-right: 0.3rem;
}

.panel-type-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  display: block;
}

.panel-type-card img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  display: block;
}

.panel-type-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
}

.panel-type-name {
  font-size: 0.78rem;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-type-count {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.panel-type-card.active {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag-item {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.82rem;
  background: var(--surface);
}

.tag-item.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.small-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.22rem;
  margin-top: 0.45rem;
  margin-bottom: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
}

.small-tags::-webkit-scrollbar {
  display: none;
}

.small-tags .tag-item {
  flex: 0 0 auto;
  padding: 0.08rem 0.36rem;
  font-size: 0.62rem;
  line-height: 1.1;
}

.gallery-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-cover {
  display: block;
  height: 190px;
}

.gallery-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-card-body {
  padding: 1rem;
}

.gallery-card-body p {
  color: var(--muted);
}

.gallery-detail-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-image {
  border: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  background: transparent;
}

.detail-image img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.admin-thumb {
  width: 84px;
  height: 62px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.admin-thumb-empty {
  border: 1px dashed var(--line);
  background: rgba(216, 207, 208, 0.22);
}

.image-select-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.image-select-item {
  display: grid;
  gap: 0.3rem;
  padding: 0.4rem;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.image-select-item img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.84);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1.5rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1200px, 96vw);
  max-height: 92vh;
  border-radius: 12px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.site-footer {
  border-top: 1px solid rgba(239, 210, 216, 0.85);
  margin-top: 2rem;
  padding: 1.5rem 0;
}

.cookie-open-btn {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 70;
  border: 1px solid var(--line);
  background: rgba(235, 233, 228, 0.96);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.cookie-consent {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 71;
  width: min(380px, calc(100vw - 24px));
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(241, 239, 236, 0.98);
  box-shadow: 0 12px 30px rgba(17, 9, 11, 0.15);
  padding: 0.75rem;
}

.cookie-title {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 800;
}

.cookie-text {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.cookie-text + .cookie-text {
  margin-top: 0.35rem;
}

.cookie-options {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.42rem;
}

.cookie-option {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.cookie-actions {
  margin-top: 0.62rem;
  display: flex;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.cookie-btn {
  min-height: 36px;
  padding: 0.46rem 0.74rem;
  font-size: 0.78rem;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  min-height: 44px;
  padding: 0.72rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  font-weight: 800;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 24px rgba(8, 87, 64, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.footer-social {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.56rem;
  color: var(--ink);
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 700;
}

.footer-social-link:hover {
  border-color: var(--brand);
  background: #f2e8e9;
}

.footer-social-icon {
  font-size: 0.88rem;
  color: var(--brand-dark);
}

.footer-social-link:hover .footer-social-icon {
  color: var(--brand);
}

.whatsapp-float-icon {
  font-size: 1rem;
  color: #fff;
  margin-right: 0.36rem;
}

[data-animate] {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .stats-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.9rem;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .cards,
  .step-grid,
  .reservation-grid,
  .gallery-detail-grid {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .gallery-layout { grid-template-columns: 1fr; }
  .panel-sidebar-wrap {
    position: relative;
    overflow: hidden;
  }
  .panel-sidebar {
    position: static;
    top: auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    padding-right: 0;
    padding-bottom: 0.2rem;
    margin-bottom: 0.75rem;
    width: 100%;
    scrollbar-width: none;
  }
  .panel-sidebar::-webkit-scrollbar {
    display: none;
  }
  .panel-sidebar-wrap.is-scrollable {
    position: relative;
  }
  .panel-sidebar-wrap.is-scrollable::before,
  .panel-sidebar-wrap.is-scrollable::after {
    position: absolute;
    top: 0;
    bottom: 0.2rem;
    width: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    color: rgba(17, 17, 17, 0.52);
    pointer-events: none;
    z-index: 2;
  }
  .panel-sidebar-wrap.is-scrollable::before {
    content: '<';
    left: 0;
    background: linear-gradient(90deg, rgba(246, 246, 243, 0.95), rgba(246, 246, 243, 0));
    opacity: 1;
  }
  .panel-sidebar-wrap.is-scrollable::after {
    content: '>';
    right: 0;
    background: linear-gradient(270deg, rgba(246, 246, 243, 0.95), rgba(246, 246, 243, 0));
    opacity: 1;
  }
  .panel-sidebar-wrap.is-scrollable.is-at-start::before {
    opacity: 0;
  }
  .panel-sidebar-wrap.is-scrollable.is-at-end::after {
    opacity: 0;
  }
  .panel-sidebar .panel-type-card {
    flex: 0 0 142px;
  }

  .gallery-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav {
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 0.92rem;
  }

  .reservation-visuals {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-contact {
    justify-content: flex-end;
    margin-left: auto;
  }

  .lang-switch { order: 3; }
  .form-row.two-cols { grid-template-columns: 1fr; }
  .form-row.three-cols { grid-template-columns: 1fr; }
  .image-select-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 660px) {
  .gallery-cards,
  .projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-sidebar .panel-type-card {
    flex-basis: 132px;
  }

  .whatsapp-float {
    right: 10px;
    bottom: 10px;
    padding: 0.68rem 0.9rem;
    font-size: 0.9rem;
  }

  .cookie-open-btn,
  .cookie-consent {
    left: 10px;
    bottom: 10px;
  }

  .cookie-consent {
    width: min(360px, calc(100vw - 20px));
    padding: 0.68rem;
  }

  .reservation-visuals {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stats-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .brand-logo { width: 30px; }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.45rem;
    font-size: 0.9rem;
  }

  .site-nav a,
  .site-nav .nav-cta {
    padding: 0.45rem 0.7rem;
    border-radius: 10px;
  }

  .nav-contact {
    width: 100%;
    justify-content: flex-start;
    order: 2;
    gap: 0.35rem;
  }

  .nav-contact-link {
    padding: 0.4rem 0.62rem;
    font-size: 0.74rem;
  }

  .nav-contact-link span {
    overflow-wrap: anywhere;
  }

  .lang-switch {
    width: 100%;
    order: 0;
    gap: 0.4rem;
  }

  .lang-switch a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero { padding-top: 2rem; }
  .hero-copy > p { max-width: 100%; }
  .gallery-cards {
    gap: 0.7rem;
  }
  .gallery-cover { height: 145px; }
  .gallery-card-body {
    padding: 0.7rem;
  }
  .gallery-card-body p {
    font-size: 0.9rem;
    margin: 0.35rem 0 0;
  }
  .tag-cloud {
    gap: 0.32rem;
    margin-bottom: 0.75rem;
  }
  .tag-item {
    font-size: 0.72rem;
    padding: 0.2rem 0.52rem;
  }
  .detail-image img { height: 170px; }
  .lightbox { padding: 0.6rem; }
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close {
    top: 8px;
    right: 8px;
  }
  .cta-box { padding: 1.5rem; }
  .admin-gallery-item { grid-template-columns: 1fr; }
  .admin-gallery-main { grid-template-columns: 1fr; }
  .admin-gallery-item .actions {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    white-space: normal;
  }

  input,
  textarea,
  select {
    font-size: 16px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .zoom-card {
    cursor: zoom-in;
  }

  .zoom-open-btn {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-2px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .zoom-card:hover .zoom-open-btn,
  .zoom-card:focus-within .zoom-open-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .zoom-card.is-zooming .zoom-lens {
    display: block;
  }
}

@media (hover: none), (pointer: coarse) {
  .zoom-open-btn {
    opacity: 1;
    pointer-events: auto;
    width: 20px;
    height: 20px;
  }

  .zoom-open-btn svg {
    width: 10px;
    height: 10px;
  }
}
