:root {
  --bg: #f4f7f6;
  --surface: #ffffff;
  --surface-soft: #eef6f2;
  --primary: #0f4a3a;
  --primary-strong: #0b372c;
  --accent: #7dd020;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #d8e1dd;
  --shadow: 0 14px 40px rgba(15, 74, 58, 0.14);
  --radius: 22px;
  --max-width: 1180px;
  --header-height: 84px;
  --anchor-offset: 104px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; font-family: Arial, Helvetica, sans-serif; color:var(--text); background:var(--bg); line-height:1.6; }
img { max-width:100%; display:block; height:auto; }
a { color:inherit; text-decoration:none; }
.container { width:min(var(--max-width), calc(100% - 32px)); margin:0 auto; }
.section { padding:18px 0 72px; }
aside[id], footer[id] { scroll-margin-top: var(--anchor-offset); }
.section-anchor-title {
  scroll-margin-top: calc(var(--header-height) + 18px);
}
.section-title { margin:0 0 14px; font-size:clamp(1.9rem, 3vw, 2.8rem); line-height:1.15; color:var(--primary); text-align:center; }
.section-intro { max-width:760px; margin:0 auto 34px; text-align:center; color:var(--muted); font-size:1.02rem; }
.topbar { position:sticky; top:0; z-index:1000; background:rgba(255,255,255,.97); backdrop-filter:blur(10px); border-bottom:1px solid rgba(15,74,58,.08); box-shadow:0 8px 28px rgba(15,74,58,.06); }
.topbar-inner { min-height:var(--header-height); display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; }
.brand { display:flex; align-items:center; gap:10px; min-width:0; flex:0 1 320px; }
.brand-logo { width:clamp(52px, 6.3vw, 88px); height:auto; object-fit:contain; flex:0 0 auto; }
.brand-text { display:flex; align-items:center; min-width:0; }
.brand-text-line-only { display:block; }
.brand-text span { display:block; color:var(--muted); font-size:.84rem; max-width:23ch; line-height:1.3; }
.nav { display:flex; align-items:center; justify-content:flex-end; gap:12px; flex-wrap:nowrap; flex:1 1 auto; }
.nav-links { display:flex; align-items:center; justify-content:flex-end; gap:0; flex-wrap:wrap; }
.nav-link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 8px;
  border-radius:999px;
  color:var(--primary);
  font-weight:700;
  font-size:.92rem;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.nav-link:hover {
  transform:translateY(-1px);
  background:var(--surface-soft);
  box-shadow:0 8px 18px rgba(15,74,58,.08);
}
.nav-sep {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:rgba(15,74,58,.42);
  font-weight:400;
  padding:0 2px;
}
.nav-cta { min-height:32px; padding:0 10px; font-size:.82rem; white-space:nowrap; background:var(--accent); color:#fff; border:1px solid transparent; box-shadow:0 8px 20px rgba(125,208,32,.22); }
.nav-cta:hover { background:var(--accent); color:#fff; border-color:transparent; box-shadow:0 10px 24px rgba(125,208,32,.28); }
.nav-cta-small { min-height:30px; padding:0 10px; font-size:.8rem; }

.nav-toggle {
  display:none;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  width:46px;
  height:46px;
  border:1px solid rgba(15,74,58,.14);
  border-radius:14px;
  background:#fff;
  box-shadow:0 8px 18px rgba(15,74,58,.06);
  cursor:pointer;
}
.nav-toggle span {
  width:20px;
  height:2px;
  border-radius:999px;
  background:var(--primary);
  transition:transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity:0; }
.nav-toggle.is-open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
body:not(.mobile-nav-active) .nav-toggle { display:none !important; }
.nav-toggle[hidden] { display:none !important; }
.captcha-block[hidden] { display:none !important; }
.booking-live-error[hidden] { display:none !important; }
.btn { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:0 20px; border-radius:999px; border:0; cursor:pointer; transition:transform .2s ease, box-shadow .2s ease, background .2s ease; font-weight:700; }
.btn:hover { transform:translateY(-1px); }
.btn-primary { background:var(--accent); color:#fff; box-shadow:0 10px 25px rgba(125,208,32,.28); }
.btn-light { background:var(--surface-soft); color:var(--primary); }
.hero {
  position:relative;
  overflow:hidden;
  color:#fff;
  background:
    linear-gradient(110deg, rgba(15,74,58,.82), rgba(15,74,58,.48) 50%, rgba(0,0,0,.34)),
    url('images/hero-clinica.jpg') center/cover no-repeat;
}
.hero-grid { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr); gap:34px; align-items:start; padding:80px 0 90px; }
.hero-copy { padding-top:12px; }
.eyebrow { display:inline-block; margin-bottom:16px; padding:8px 14px; border-radius:999px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.18); font-size:.92rem; letter-spacing:.3px; }
.hero h1 { margin:0 0 18px; font-size:clamp(2.4rem, 4.6vw, 4.4rem); line-height:1.02; max-width:10ch; }
.hero p.lead { margin:0 0 24px; max-width:62ch; font-size:1.08rem; color:rgba(255,255,255,.95); }
.hero-points { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 18px; margin:0 0 28px; padding:0; list-style:none; }
.hero-points li { position:relative; padding-left:18px; color:rgba(255,255,255,.96); }
.hero-points li::before { content:"•"; position:absolute; left:0; top:0; color:var(--accent); font-weight:700; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; }
.hero-actions .btn:only-child { min-width: 176px; }
.booking-card { background:rgba(255,255,255,.98); color:var(--text); border-radius:var(--radius); box-shadow:var(--shadow); padding:18px; max-width:528px; width:100%; justify-self:end; }
.booking-card h2 { margin:0 0 6px; color:var(--primary); text-align:center; font-size:1.35rem; line-height:1.15; }
.booking-card p { margin:0 0 14px; text-align:center; color:var(--muted); font-size:.9rem; }
.status-message {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 16px;
  font-size: .95rem;
}
.status-success {
  background: #eaf7ea;
  color: #1f6b38;
  border: 1px solid #bfe2c4;
}
.status-error {
  background: #fff1f1;
  color: #9b1c1c;
  border: 1px solid #f1b8b8;
}
.booking-card form { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px 10px; }
.form-row { margin-bottom:0; }
.form-row label { display:block; margin-bottom:4px; font-weight:700; color:var(--primary); font-size:.9rem; }
.form-row input, .form-row textarea { width:100%; border:1px solid var(--border); border-radius:12px; padding:5px 6px; font:inherit; font-size:.95rem; color:var(--text); background:#fff; outline:none; transition:border-color .2s ease, box-shadow .2s ease; }
.form-row input:focus, .form-row textarea:focus { border-color:var(--primary); box-shadow:0 0 0 4px rgba(15,74,58,.08); }
.form-row textarea { min-height:62px; resize:vertical; }
.booking-card form .form-row:nth-of-type(5),
.booking-card form button,
.booking-card form .form-note { grid-column:1 / -1; }
.form-note, .small-note { margin-top:4px; font-size:.78rem; color:var(--muted); text-align:center; line-height:1.35; }

.captcha-block { grid-column:1 / -1; display:grid; gap:10px; margin-top:2px; padding:14px; border:1px solid rgba(15,74,58,.12); border-radius:18px; background:linear-gradient(180deg,#f8fbfa,#eef5f1); }
.captcha-head { display:grid; gap:2px; margin-bottom:2px; }
.captcha-head strong { color:var(--primary); font-size:.95rem; display:block; }
.captcha-status { color:var(--muted); font-size:.82rem; line-height:1.4; text-align:center; margin-top:10px; min-height:1.4em; }
.captcha-puzzle { width:100%; overflow:visible; border-radius:18px; border:1px solid rgba(15,74,58,.08); background:transparent; }
.captcha-scene { --piece-size:58px; --piece-start:10px; position:relative; width:100%; max-width:420px; aspect-ratio:470 / 185; margin:0 auto; background:transparent; overflow:hidden; }
.captcha-board { position:absolute; top:0; right:0; bottom:0; left:94px; border-radius:18px; overflow:hidden; background:#22302c; }
.captcha-image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; user-select:none; -webkit-user-drag:none; }
.captcha-hole, .captcha-piece-wrap { position:absolute; top:50%; width:var(--piece-size); height:var(--piece-size); border-radius:16px; transform:translateY(-50%); }
.captcha-hole { left:292px; background:rgba(8,18,15,.58); border:3px dashed rgba(243,211,59,.92); box-shadow:inset 0 0 0 2px rgba(255,255,255,.14), inset 0 10px 18px rgba(0,0,0,.24), 0 0 0 2px rgba(243,211,59,.18); }
.captcha-piece-wrap { left:var(--piece-start); overflow:hidden; cursor:grab; touch-action:none; border:3px solid rgba(243,211,59,.98); background:#fff; box-shadow:0 10px 18px rgba(0,0,0,.24); transition:box-shadow .2s ease, border-color .2s ease, transform .2s ease; z-index:3; }
.captcha-piece-wrap.is-dragging { cursor:grabbing; box-shadow:0 12px 22px rgba(0,0,0,.34); border-color:#ffd400; transform:translateY(-50%) scale(1.03); }
.captcha-piece-wrap.is-solved { border-color:#93d327; box-shadow:0 12px 22px rgba(125,208,32,.28); }
.captcha-piece, .captcha-piece-shadow { position:absolute; inset:0; border-radius:12px; }
.captcha-piece { background-repeat:no-repeat; background-size:cover; }
.captcha-piece-shadow { background:rgba(0,0,0,.15); filter:blur(2px); transform:translate(3px,3px); opacity:.45; }
.captcha-block.is-ready .captcha-status { color:var(--primary); }
.captcha-block.is-solved { border-color:rgba(134,210,40,.55); background:linear-gradient(180deg,#f4fbe9,#edf8db); }
.captcha-block:not(.is-ready) .captcha-piece-wrap { pointer-events:none; }
.captcha-block.is-solved .captcha-status { color:#2d6b12; font-weight:700; }
.booking-card form button[disabled], .booking-card form button[aria-disabled="true"] { opacity:.55; cursor:not-allowed; box-shadow:none; }
.contact-mini { margin-top:14px; padding-top:12px; border-top:1px solid #e7ecea; text-align:center; }
.contact-mini strong { display:block; margin-bottom:10px; color:var(--primary); }
.chips { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; }
.chip { padding:8px 12px; border-radius:999px; background:var(--surface-soft); color:var(--primary); font-weight:700; font-size:.92rem; }
.cards-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.service-card, .content-card, .address-card, .map-card { background:var(--surface); border-radius:var(--radius); box-shadow:0 10px 30px rgba(0,0,0,.05); overflow:hidden; }
.service-card img, .feature-card img { width:100%; aspect-ratio:16 / 10; object-fit:cover; background:#dfeee7; }
.feature-grid { align-items:stretch; }
.feature-card { display:grid; grid-template-rows:auto 1fr; gap:16px; height:100%; align-items:start; }
.feature-card img { width:80%; margin:0 auto; border-radius:18px; }
.card-body { padding:24px; }
.card-body h3, .content-card h3, .address-card h3 { margin-top:0; color:var(--primary); }
.card-body p { margin:0; color:var(--muted); }
.feature-grid, .location-box { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.content-card { padding:28px; height:100%; display:flex; flex-direction:column; }
.content-card h3 { margin-bottom:16px; font-size:1.55rem; }
.content-card ul { margin:0; padding-left:20px; }
.content-card li + li { margin-top:10px; }
.location { background:linear-gradient(180deg,#fff,#f8fbfa); }
.address-card { padding:28px; }
.address-list { display:grid; gap:10px; color:var(--muted); }
.map-actions { margin-top:22px; display:flex; gap:12px; flex-wrap:wrap; }
.map-frame { width:100%; min-height:100%; border:0; aspect-ratio:16/12; }
.footer { background:var(--primary-strong); color:rgba(255,255,255,.9); padding:18px 0 14px; }
.footer-inner { display:flex; justify-content:space-between; gap:24px; align-items:center; flex-wrap:wrap; }
.footer-inner-legal { align-items:flex-end; }
.footer-left { display:grid; gap:8px; }
.footer small { color:rgba(255,255,255,.62); display:block; font-size:.78rem; }
.footer-legal-links { display:flex; align-items:center; flex-wrap:wrap; gap:10px; color:rgba(255,255,255,.88); font-size:.92rem; }
.footer-legal-links a { color:rgba(255,255,255,.88); }
.footer-legal-links a:hover { color:#fff; }
.footer-sep { color:rgba(255,255,255,.35); }
.footer-copy { color:rgba(255,255,255,.85); }
.footer-right { display:flex; align-items:center; gap:12px; }
.footer-right-complaints { display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.footer-complaints-title { font-size:.84rem; font-weight:400; color:rgba(255,255,255,.62); line-height:1.3; }
.footer-admin-link { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:999px; background:rgba(255,255,255,.08); }
.footer-admin-link:hover { background:rgba(255,255,255,.16); }
.footer-book-link { display:inline-flex; align-items:center; justify-content:center; padding:0; background:transparent; border:0; color:#fff; min-height:auto; }
.footer-book-link:hover { transform:translateY(-1px); }
.footer-book-badge { display:block; width:120px; height:50px; max-width:none; object-fit:contain; background:transparent; }
.footer-middle { display:flex; align-items:center; gap:10px; }
.footer-middle-social { justify-content:center; flex-wrap:wrap; }
.footer-social-link { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:999px; background:rgba(255,255,255,.12); color:#fff; border:1px solid rgba(255,255,255,.18); transition:transform .2s ease, background .2s ease, border-color .2s ease; }
.footer-social-link svg { width:18px; height:18px; display:block; }
.footer-social-link:hover { background:rgba(134,210,40,.9); border-color:rgba(134,210,40,.95); color:#073d31; transform:translateY(-1px); }
.reveal { opacity:0; transform:translateY(24px); transition:opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }


@media (min-width: 761px) {
  .nav-toggle,
  button.nav-toggle,
  .topbar .nav-toggle {
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
    width:0 !important;
    min-width:0 !important;
    height:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    overflow:hidden !important;
  }
}

@media (max-width: 1260px) {
  .brand { flex-basis: 270px; }
  .nav-link { font-size:.88rem; padding:0 7px; }
  .nav-cta { padding:0 10px; font-size:.78rem; }
}

@media (max-width:1024px) {
  .hero-grid, .cards-grid, .feature-grid, .location-box { grid-template-columns:1fr; }
  .hero h1 { max-width:none; }
  .booking-card { max-width:100%; justify-self:stretch; }
}

@media (max-width:760px) {
  :root { --header-height:auto; --anchor-offset: 112px; }
  body { font-size:16px; }
  .container { width:min(var(--max-width), calc(100% - 24px)); }
  .topbar-inner { padding:10px 0; align-items:center; flex-direction:row; flex-wrap:wrap; gap:10px; }
  .brand { flex:1 1 0; min-width:0; flex-direction:row; align-items:center; gap:10px; }
  .brand-logo { width:min(62px, 20vw); }
  .brand-text { min-width:0; flex:1 1 auto; }
  .brand-text span { max-width:22ch; font-size:.76rem; line-height:1.22; white-space:normal; }
  .mobile-nav-active .nav-toggle { display:inline-flex; flex:0 0 auto; margin-left:0; }
  .nav {
    width:100%;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    padding:12px;
    margin-top:6px;
    border:1px solid rgba(15,74,58,.10);
    border-radius:18px;
    background:#fff;
    box-shadow:0 16px 34px rgba(15,74,58,.08);
  }
  .nav.is-open { display:flex; }
  .nav-links { width:100%; justify-content:flex-start; flex-direction:column; align-items:stretch; gap:6px; }
  .nav-sep { display:none; }
  .nav-link {
    width:100%;
    min-height:42px;
    justify-content:flex-start;
    padding:0 14px;
    border-radius:14px;
    font-size:.98rem;
  }
  .nav-cta {
    width:100%;
    min-height:42px;
    padding:0 14px;
    font-size:.95rem;
  }
  .captcha-scene { --piece-size:54px; --piece-start:8px; max-width:100%; aspect-ratio:400 / 200; }
  .captcha-board { left:74px; }
  .hero-grid { padding:40px 0 48px; gap:22px; }
  .hero-copy { padding-top:0; }
  .hero h1 { font-size:clamp(2rem, 11vw, 3rem); line-height:1.05; }
  .hero p.lead { font-size:1rem; }
  .hero-points { grid-template-columns:1fr; }
  .hero-actions .btn,
  .map-actions .btn,
  .card-actions .btn { width:100%; }
  .booking-card { padding:16px; border-radius:18px; }
  .booking-card form { grid-template-columns:1fr; gap:10px; }
  .booking-card form .form-row:nth-of-type(5),
  .booking-card form button,
  .booking-card form .form-note { grid-column:auto; }
  .feature-card img { width:100%; }
  .section { padding:16px 0 48px; }
  .section-title { font-size:clamp(1.7rem, 9vw, 2.3rem); }
  .page-hero { padding:22px 0 6px; }
  .page-title { font-size:clamp(1.9rem, 9vw, 2.8rem); }
  .content-card,
  .address-card,
  .page-cta-box,
  .legal-card,
  .card-body { padding:20px; }
  .footer-inner,
  .footer-inner-legal,
  .footer-legal-links,
  .footer-right,
  .footer-middle { justify-content:center; }
  .footer-left,
  .footer-right-complaints { width:100%; text-align:center; align-items:center; }
  .footer-legal-links { gap:8px; }
  .footer-copy { width:100%; }
  .section-anchor-title { scroll-margin-top: 112px; }
}


.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 18, 14, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 99999;
}

.success-overlay.is-visible {
  display: flex;
}

.success-modal {
  width: min(460px, 100%);
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  padding: 30px 28px 24px;
  text-align: center;
  animation: modalPop .22s ease-out;
}

.success-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #7dd020, #52a80f);
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(125, 208, 32, 0.32);
}


.success-icon-error {
  background: linear-gradient(135deg, #d25b39, #b63a24);
  box-shadow: 0 12px 30px rgba(182, 58, 36, 0.28);
}

.success-modal h3 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 1.6rem;
  line-height: 1.2;
}

.success-modal p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1rem;
}

.success-btn {
  min-width: 140px;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(125, 208, 32, 0.28);
  transition: transform .2s ease, box-shadow .2s ease;
}

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

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}



.nav-link.is-active {
  background: var(--surface-soft);
  box-shadow: 0 8px 18px rgba(15,74,58,.08);
}

.nav-cta.is-active {
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 10px 25px rgba(125,208,32,.28);
}

.hero-grid-single {
  grid-template-columns: 1fr;
}

.hero-copy-wide {
  max-width: 860px;
}

.page-hero {
  padding: 34px 0 10px;
  background: linear-gradient(180deg, #f8fbfa, rgba(248,251,250,0));
}

.page-hero-compact {
  padding-bottom: 0;
}

.page-hero-inner {
  text-align: center;
}

.page-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary);
  border: 1px solid rgba(15,74,58,.10);
  font-size: .92rem;
  font-weight: 700;
}

.page-title {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.08;
  color: var(--primary);
}

.page-intro {
  max-width: 860px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.04rem;
}

.page-section-tight {
  padding-top: 22px;
}

.page-cta-box {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
  padding: 28px;
  text-align: center;
}

.page-cta-box h3 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 1.6rem;
}

.page-cta-box p {
  margin: 0 0 18px;
  color: var(--muted);
}

.card-actions {
  margin-top: 18px;
}

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

.cards-row-gap-large {
  row-gap: 24px;
}

.top-space-small {
  margin-top: 24px;
}

.top-space-medium {
  margin-top: 32px;
}

.service-card-highlight {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-card-logo {
  width: 180px;
  aspect-ratio: auto;
  object-fit: contain;
  margin: 26px auto 0;
  background: transparent !important;
}

.form-page-wrap {
  display: flex;
  justify-content: center;
}

.booking-card-centered {
  max-width: 620px;
  justify-self: center;
}

@media (max-width: 1024px) {
  .cards-grid-3 {
    grid-template-columns: 1fr;
  }
}


.card-body p + p,
.content-card p + p {
  margin-top:12px;
}

.page-cta-box p {
  margin-bottom:18px;
}


.gallery-page {
  padding: 32px 0 72px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 900px;
  margin: 0 auto;
  gap: 18px;
}

.gallery-tile {
  border: 0;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.gallery-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

.gallery-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99998;
}

.gallery-lightbox.is-visible {
  display: block;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 19, 15, .78);
}

.gallery-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(96vw, 1040px);
  max-height: 90vh;
  margin: 5vh auto;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 22px 80px rgba(0,0,0,.34);
}

.gallery-lightbox-panel img {
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
  background: #fff;
  display: block;
}

.gallery-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(15,74,58,.92);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 760px;
  }
}

@media (max-width: 760px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 520px;
  }
  .gallery-page {
    padding-top: 22px;
  }
}

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
  }
}


.legal-page {
  padding: 34px 0 72px;
}

.legal-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
  padding: 28px;
}

.legal-card h1,
.legal-card h2 {
  color: var(--primary);
}

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

.legal-card ul {
  padding-left: 20px;
}

.legal-updated {
  margin:-4px 0 18px;
  font-size:.92rem;
  color:var(--muted);
}

.legal-card a {
  color: var(--primary);
  font-weight: 600;
}

.legal-card h3,
.legal-card h4 {
  color: var(--primary);
}

.legal-card ol {
  padding-left: 22px;
}

@media (max-width: 760px) {
  .footer-inner-legal {
    align-items:flex-start;
  }
  .footer-middle {
    width:100%;
    justify-content:flex-start;
  }
  .footer-right {
    width:100%;
    justify-content:flex-start;
  }
  .footer-book-link {
    width:auto;
  }
}


@media (max-width: 900px) {
  .cards-grid { grid-template-columns:1fr; }
  .gallery-grid { max-width:700px; }
  .footer-copy { display:inline-block; }
}
