* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #26231f;
  --muted: #706b64;
  --paper: #f3efe8;
  --paper2: #e7e0d5;
  --line: rgba(38, 35, 31, .16);
  --white: #faf9f5;
  --max: 1240px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
}

img, video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, textarea {
  font: inherit;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 6px 4vw;
  color: #fff;
  background: rgba(24, 22, 19, .82);
  transition: .3s;
}

.site-header.scrolled {
  background: rgba(24, 22, 19, .94);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12);
}

.brand {
  width: 250px;
  height: 64px;
  display: flex;
  align-items: center;
}

.brand img {
  width: auto;
  max-width: 250px;
  height: 64px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.nav a {
  opacity: .9;
  transition: .2s;
}

.nav a:hover {
  opacity: .5;
}

.header-cta {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  font-size: 23px;
}

/* Hero con Video / Imagen */
.hero {
  height: 100vh;
  min-height: 680px;
  position: relative;
  color: #fff;
  overflow: hidden;
}

.hero > img,
.hero-video,
.valley > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, .52), rgba(0, 0, 0, .08) 75%), linear-gradient(0deg, rgba(0, 0, 0, .38), transparent 60%);
}

.hero-content {
  position: absolute;
  left: 8vw;
  bottom: 13vh;
  max-width: 850px;
  z-index: 2;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 20px;
}

h1, h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.025em;
}

h1 {
  font-size: clamp(48px, 6.3vw, 88px);
}

h2 {
  font-size: clamp(43px, 5vw, 70px);
}

em {
  font-style: italic;
}

.hero-subtitle {
  font-size: 16px;
  font-weight: 300;
  max-width: 500px;
  margin: 25px 0 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 14px 19px;
  border: 1px solid currentColor;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
  cursor: pointer;
  background: transparent;
}

.button span {
  font-size: 16px;
  line-height: 0;
}

.button-light {
  color: #fff;
}

.button-dark {
  color: var(--ink);
}

/* Secciones generales */
.section {
  max-width: var(--max);
  margin: auto;
  padding: 125px 5vw;
}

/* El Lugar */
.place-copy {
  display: grid;
  grid-template-columns: 1.05fr .8fr;
  gap: 11vw;
  align-items: start;
}

.place-text {
  color: var(--muted);
  font-size: 15px;
}

.place-text p + p {
  margin-top: 24px;
}

.place-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 85px;
}

.place-features article {
  padding: 25px 25px 10px 0;
  border-right: 1px solid var(--line);
  margin-right: 25px;
}

.place-features article:last-child {
  border-right: 0;
}

.place-features span {
  font-family: "Playfair Display", serif;
  font-size: 22px;
}

.place-features p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  max-width: 310px;
}

/* El Valle */
.valley {
  height: 86vh;
  min-height: 610px;
  position: relative;
  color: #fff;
}

.valley-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .6), transparent 65%);
}

.valley-copy {
  position: absolute;
  left: 8vw;
  bottom: 11vh;
  max-width: 650px;
}

.valley-copy p:last-child {
  max-width: 520px;
  margin-top: 25px;
  font-size: 15px;
  font-weight: 300;
}

/* Arquitectura */
.architecture {
  padding-top: 105px;
  padding-bottom: 120px;
}

.architecture-layout {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 6.5vw;
  align-items: center;
}

.architecture-image {
  height: 620px;
  overflow: hidden;
}

.architecture-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.architecture-copy {
  max-width: 560px;
}

.architecture-copy .eyebrow {
  letter-spacing: .28em;
  color: var(--muted);
  margin-bottom: 48px;
}

.architecture-copy h2 {
  font-size: clamp(48px, 5.2vw, 72px);
  line-height: 1.08;
}

.architecture-copy > p:last-child {
  color: var(--muted);
  max-width: 470px;
  margin-top: 48px;
  font-size: 15px;
  line-height: 1.8;
}

/* Galería */
.gallery {
  padding-top: 85px;
  padding-bottom: 70px;
}

.gallery-heading {
  margin-bottom: 52px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.7fr .95fr;
  gap: 20px;
  grid-template-rows: 300px 400px 360px;
  align-items: stretch;
}

.gallery-grid figure {
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}

.gallery-grid .g-wide:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.gallery-grid .g-tall {
  grid-column: 2;
  grid-row: 1;
}

.gallery-grid .g-square {
  grid-row: 2;
}

.gallery-grid .g-square:nth-child(3) {
  grid-column: 1;
}

.gallery-grid .g-square:nth-child(4) {
  grid-column: 2;
}

.gallery-grid .g-wide:last-child {
  grid-column: 1 / -1;
  grid-row: 3;
  height: auto;
}

/* Estilo de Vida */
.life {
  padding-top: 65px;
  display: grid;
  grid-template-columns: .85fr 1fr;
  gap: 11vw;
  align-items: center;
}

.life-copy > p:not(.eyebrow) {
  color: var(--muted);
  max-width: 500px;
  margin: 27px 0 34px;
  font-size: 15px;
}

.life-image {
  height: 640px;
}

/* Ubicación */
.location {
  display: block;
  padding-top: 105px;
}

.location-copy {
  max-width: 900px;
}

.location-copy h2 {
  margin-bottom: 0;
}

.map-frame {
  height: 700px;
  margin-top: 48px;
  background: var(--paper2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.map-frame img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.distances {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.distances div {
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.distances strong {
  font-family: "Playfair Display", serif;
  font-size: 23px;
  font-weight: 400;
}

.distances span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

/* Testimonios */
.testimonials {
  padding-top: 100px;
  padding-bottom: 110px;
}

.testimonials-heading {
  margin-bottom: 60px;
}

.testimonials-heading .eyebrow {
  letter-spacing: .28em;
  color: var(--muted);
  margin-bottom: 20px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  padding-right: 32px;
}

.testimonial-card:last-child {
  border-right: 0;
  padding-right: 0;
}

.testimonial-text {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 36px;
}

.testimonial-author strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink);
}

.testimonial-author span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* Contacto Referencia */
.contact-reference {
  position: relative;
  min-height: 900px;
  max-width: none;
  margin: 0;
  padding: 0;
  color: #f7f3ec;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.contact-backdrop {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(28, 22, 18, .76), rgba(28, 22, 18, .76)), url('images/cierre.jpg');
  background-size: cover;
  background-position: center;
}

.contact-reference-inner {
  position: relative;
  z-index: 1;
  width: min(760px, 90vw);
  padding-top: 55px;
  text-align: center;
}

.contact-reference .contact-copy {
  display: block;
}

.contact-reference .contact-copy .eyebrow {
  color: #a66a45;
  margin-bottom: 48px;
  letter-spacing: .28em;
}

.contact-reference .contact-copy h2 {
  font-size: clamp(48px, 5.2vw, 72px);
  line-height: 1.08;
  color: #f7f3ec;
}

.contact-reference .contact-copy > p:last-child {
  color: rgba(247, 243, 236, .78);
  max-width: none;
  margin: 48px auto 0;
  font-size: 15px;
  line-height: 2;
}

.contact-reference .contact-form {
  display: grid;
  gap: 28px;
  max-width: 555px;
  margin: 58px auto 0;
  text-align: left;
}

.contact-reference .contact-form label {
  color: rgba(247, 243, 236, .85);
  font-size: 10px;
  letter-spacing: .22em;
}

.contact-reference .contact-form input,
.contact-reference .contact-form textarea {
  color: #f7f3ec;
  border: 0;
  border-bottom: 1px solid rgba(247, 243, 236, .28);
  background: transparent;
  width: 100%;
  padding: 10px 0 12px;
  outline: none;
}

.contact-reference .contact-form input::placeholder,
.contact-reference .contact-form textarea::placeholder {
  color: rgba(247, 243, 236, .48);
}

.contact-reference .contact-form textarea {
  min-height: 92px;
  resize: vertical;
}

.contact-reference .contact-form input:focus,
.contact-reference .contact-form textarea:focus {
  border-color: rgba(247, 243, 236, .8);
}

.contact-reference .button {
  border: 0;
  border-bottom: 1px solid rgba(247, 243, 236, .7);
  padding: 10px 0 8px;
  color: #f7f3ec;
  justify-self: start;
  gap: 26px;
  margin-top: 8px;
}

.contact-reference .form-message {
  color: rgba(247, 243, 236, .75);
  font-size: 12px;
}

/* Footer */
.footer {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 30px;
  align-items: center;
  padding: 32px 5vw;
  border-top: 1px solid var(--line);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

.footer img {
  width: 105px;
  height: 40px;
  object-fit: contain;
  object-position: left center;
}

.footer div:last-child {
  text-align: right;
}

/* Animaciones Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Adaptación a Pantallas Móviles */
@media (max-width: 900px) {
  .site-header {
    padding: 9px 6vw;
  }

  .nav, .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav.open {
    position: absolute;
    right: 6vw;
    top: 67px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background: var(--paper);
    color: var(--ink);
    padding: 24px;
    width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  }

  .brand {
    width: 180px;
    height: 58px;
  }

  .brand img {
    max-width: 180px;
    height: 58px;
  }

  .hero-content {
    left: 7vw;
    right: 7vw;
    bottom: 12vh;
  }

  .section {
    padding: 90px 7vw;
  }

  .place-copy, .life, .location {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .place-features {
    grid-template-columns: 1fr;
    margin-top: 55px;
  }

  .place-features article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
    margin: 0;
  }

  .place-features article:last-child {
    border-bottom: 0;
  }

  .architecture-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .architecture-image {
    height: 500px;
  }

  .architecture-copy .eyebrow {
    margin-bottom: 32px;
  }

  .architecture-copy > p:last-child {
    margin-top: 30px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 14px;
  }

  .gallery-grid .g-wide,
  .gallery-grid .g-tall,
  .gallery-grid .g-square,
  .gallery-grid .g-wide:last-child {
    grid-row: auto;
    grid-column: auto;
    height: 330px;
  }

  .life-image {
    height: 450px;
  }

  .map-frame {
    height: 430px;
    margin-top: 35px;
  }

  .distances {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .testimonial-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 32px;
  }

  .testimonial-card:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .contact-reference {
    min-height: 820px;
  }

  .contact-reference-inner {
    padding-top: 38px;
  }

  .contact-reference .contact-copy .eyebrow {
    margin-bottom: 34px;
  }

  .contact-reference .contact-copy h2 {
    font-size: 43px;
  }

  .contact-reference .contact-copy > p:last-child {
    margin-top: 30px;
  }

  .contact-reference .contact-form {
    margin-top: 42px;
    width: 100%;
  }

  .footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer img {
    margin: auto;
  }

  .footer div:last-child {
    text-align: center;
  }
}