:root {
  --ink: #222326;
  --muted: #6e6a63;
  --paper: #fbfaf7;
  --stone: #ece7df;
  --linen: #f4efe6;
  --gold: #b6914f;
  --olive: #65715a;
  --clay: #9e6655;
  --night: #17191b;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(24, 24, 24, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-solid {
  color: var(--ink);
  background: rgba(251, 250, 247, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(16px);
}

.brand img {
  width: clamp(116px, 12vw, 170px);
  height: auto;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.22));
}

.site-header.is-solid .brand img {
  filter: none;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 36px);
  font-size: 0.9rem;
  font-weight: 650;
}

.nav a,
.ghost,
.reserve {
  text-decoration: none;
}

.nav a {
  opacity: 0.92;
}

.reserve,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 750;
}

.reserve {
  color: var(--white);
  background: var(--gold);
  box-shadow: 0 12px 28px rgba(182, 145, 79, 0.28);
}

.ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.56);
}

.hero {
  position: relative;
  min-height: 86svh;
  overflow: hidden;
  color: var(--white);
  background: var(--night);
}

.hero picture,
.hero picture img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero picture img {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.32) 45%, rgba(0, 0, 0, 0.1) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.44), transparent 38%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  padding: clamp(150px, 22vh, 230px) 0 86px clamp(18px, 6vw, 82px);
}

.kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.kicker.dark {
  color: var(--clay);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 9.6vw, 8.4rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
  white-space: nowrap;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 28px;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--stone);
}

.quick-facts article {
  min-height: 150px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--paper);
}

.quick-facts span {
  display: block;
  margin-bottom: 12px;
  color: var(--olive);
  font-size: 1.05rem;
  font-weight: 850;
}

.quick-facts p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding: clamp(70px, 9vw, 126px) clamp(18px, 5vw, 72px);
}

.section-heading {
  width: min(880px, 100%);
  margin-bottom: clamp(32px, 5vw, 62px);
}

.intro-grid,
.location {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: start;
}

.intro-copy {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.feature-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--stone);
  border-radius: 8px;
  background: var(--stone);
}

.feature-list div {
  padding: 24px;
  background: var(--white);
}

.feature-list strong,
.feature-list span {
  display: block;
}

.feature-list strong {
  margin-bottom: 7px;
}

.feature-list span {
  color: var(--muted);
}

.photo-band {
  display: grid;
  grid-template-columns: 1fr 1.18fr 1fr;
  gap: 1px;
  background: var(--stone);
}

.photo-band img {
  width: 100%;
  height: clamp(260px, 38vw, 540px);
  object-fit: cover;
}

.experience {
  background: var(--linen);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.experience-grid article {
  overflow: hidden;
  min-height: 100%;
  padding: 0 0 26px;
  border: 1px solid rgba(34, 35, 38, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
}

.experience-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.experience-grid h3,
.experience-grid p {
  padding-inline: 24px;
}

.experience-grid h3 {
  margin-top: 22px;
}

.experience-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.gallery-item {
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--stone);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.location {
  background: var(--white);
}

.contact {
  background: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: start;
}

.contact-copy {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.contact-copy .reserve {
  margin-top: 12px;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--stone);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 35px rgba(24, 24, 24, 0.08);
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form label,
.consent {
  font-weight: 760;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(34, 35, 38, 0.18);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(182, 145, 79, 0.32);
  border-color: var(--gold);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.consent input {
  width: auto;
  margin-top: 4px;
}

.consent a {
  color: var(--ink);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
}

.form-status {
  display: none;
  margin: 0;
  padding: 13px 14px;
  border-radius: 8px;
  font-weight: 750;
  line-height: 1.45;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  color: #214f34;
  background: #e7f4eb;
}

.form-status.is-error {
  color: #7c2d25;
  background: #f8e7e3;
}

.location-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

dl {
  display: grid;
  gap: 1px;
  margin: 32px 0 0;
  overflow: hidden;
  border: 1px solid var(--stone);
  border-radius: 8px;
  background: var(--stone);
}

dl div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 18px 20px;
  background: var(--paper);
}

dt {
  color: var(--olive);
  font-weight: 850;
}

dd {
  margin: 0;
  color: var(--muted);
}

.map-wrap {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--linen);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: 0;
}

.map-consent {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 18px;
  padding: 28px;
  text-align: center;
  background:
    linear-gradient(rgba(244, 239, 230, 0.92), rgba(244, 239, 230, 0.92)),
    url("imgcasa-web/42Plaza%20Iglesia%20y%20Ayuntamiento.jpg") center / cover;
}

.map-consent.is-hidden {
  display: none;
}

.map-consent p {
  max-width: 420px;
  margin: 0 auto;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.55;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(52px, 7vw, 86px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background: var(--night);
}

.final-cta h2 {
  max-width: 820px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 5vw, 72px);
  background: var(--paper);
  color: var(--muted);
}

.site-footer img {
  width: 132px;
}

.site-footer p {
  margin: 0;
}

.registration {
  margin-top: 6px !important;
  font-size: 0.82rem;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.9rem;
  font-weight: 700;
}

.legal-links a {
  color: var(--ink);
  text-decoration: none;
}

.cookie-banner {
  position: fixed;
  z-index: 50;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  width: min(680px, calc(100% - 36px));
  padding: 22px;
  border: 1px solid rgba(34, 35, 38, 0.14);
  border-radius: 8px;
  background: rgba(251, 250, 247, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner h2 {
  margin-bottom: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.2;
}

.cookie-banner p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost.dark {
  color: var(--ink);
  border-color: rgba(34, 35, 38, 0.25);
  background: transparent;
}

.legal-page {
  background: var(--paper);
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--stone);
  background: var(--paper);
}

.legal-header .brand img {
  width: 142px;
  filter: none;
}

.legal-content {
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) 0;
}

.legal-content h1 {
  margin-bottom: 42px;
  color: var(--ink);
  white-space: normal;
}

.legal-content section {
  padding: 30px 0;
  border-top: 1px solid var(--stone);
}

.legal-content h2 {
  margin-bottom: 14px;
  font-family: inherit;
  font-size: 1.22rem;
  font-weight: 850;
  line-height: 1.3;
}

.legal-content p {
  color: var(--muted);
  line-height: 1.75;
}

.lightbox {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.84);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1120px, 100%);
  max-height: 86vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav {
    display: none;
  }

  .quick-facts,
  .experience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-grid,
  .location,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
    padding: 12px 14px;
  }

  .brand img {
    width: 112px;
  }

  .reserve-small {
    min-height: 40px;
    padding: 0 15px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-content {
    width: 100%;
    padding: 148px 18px 64px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .quick-facts,
  .experience-grid,
  .photo-band {
    grid-template-columns: 1fr;
  }

  .quick-facts article {
    min-height: auto;
  }

  .section {
    padding: 62px 18px;
  }

  .gallery-grid {
    gap: 10px;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .form-split {
    grid-template-columns: 1fr;
  }

  .final-cta,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .reserve,
  .cookie-actions .ghost {
    flex: 1;
  }
}
