﻿/* Home presentación EMDS v2 — CSS de la referencia HTML + ajustes P03.
   Fuentes: Google Fonts vía <link> en _LayoutHome (no @import). */

:root {
  --ink: #30261f;
  --espresso: #312018;
  --cream: #f8f3eb;
  --sand: #ede4d6;
  --copper: #956a4d;
  --muted: #71665c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: 'DM Sans', Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
button { font: inherit; }

.wrap {
  max-width: 1240px;
  margin: auto;
  padding: 0 30px;
}

/* —— Header —— */
.top {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  right: 0;
  color: white;
  border-bottom: 1px solid #ffffff44;
}
.nav {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  font-family: 'Playfair Display', Georgia, serif;
  text-align: center;
  line-height: .87;
  letter-spacing: .055em;
  font-size: 22px;
}
.brand small {
  font-family: 'DM Sans', sans-serif;
  display: block;
  letter-spacing: .28em;
  font-size: 8px;
  margin-top: 10px;
  font-weight: 600;
}
.nav-end {
  display: flex;
  align-items: center;
  gap: 18px;
}
.navlinks {
  display: flex;
  gap: 31px;
  font-size: 13px;
  letter-spacing: .08em;
}
.navlinks a:hover { opacity: .7; }
.navlinks a.nav-menu { font-weight: 700; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #ffffff66;
  background: transparent;
  color: white;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.top.is-nav-open .nav-toggle-bars { background: transparent; }
.top.is-nav-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.top.is-nav-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}
.lang-switch {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  letter-spacing: .06em;
}
.lang-switch a {
  opacity: .75;
  text-transform: uppercase;
}
.lang-switch a[aria-current='true'] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

a:focus-visible,
button:focus-visible,
.tile:focus-visible,
.lang-switch a:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

/* —— Hero (sin zoom ni click; imagen = 20250517_184451.jpg → hero-portada.webp) —— */
.hero {
  height: min(850px, 92svh);
  min-height: 580px;
  position: relative;
  background: #342218;
  overflow: hidden;
}
.hero > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  transform: none !important;
  transition: none !important;
  pointer-events: none;
}
.hero:after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(22, 15, 11, .76), rgba(22, 15, 11, .38) 60%, rgba(22, 15, 11, .18)),
    linear-gradient(0deg, rgba(12, 9, 7, .48), transparent 50%);
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  max-width: 900px;
  color: white;
  padding-top: 75px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: .27em;
  text-transform: uppercase;
  font-weight: 700;
}
.hero h1 {
  font: 400 clamp(50px, 7.8vw, 110px) / 1.07 'Playfair Display', Georgia, serif;
  letter-spacing: -.035em;
  margin: 23px 0 20px;
}
.hero p {
  font-size: clamp(16px, 1.6vw, 20px);
  max-width: 590px;
  line-height: 1.7;
  color: #f1e9df;
}
.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 31px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 25px;
  background: #e4cab0;
  color: #2b2018;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid #e4cab0;
  transition: .2s;
}
.btn:hover { background: white; }
.btn.alt {
  background: transparent;
  color: white;
  border-color: #eee6dd;
}
.btn.alt:hover { background: #ffffff25; }

/* —— Intro —— */
.intro { padding: 102px 0; }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 9%;
}
.section-title {
  font: 400 clamp(35px, 4vw, 57px) / 1.16 'Playfair Display', Georgia, serif;
  margin: 17px 0 26px;
  letter-spacing: -.025em;
}
.copy {
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 540px;
}
.photo-stack {
  position: relative;
  height: 530px;
}
.photo-stack > .main,
.photo-stack > .mini {
  position: absolute;
  display: block;
  overflow: hidden;
}
.photo-stack > .main {
  right: 0;
  top: 0;
  width: 82%;
  height: 88%;
}
.photo-stack > .mini {
  left: 0;
  bottom: 0;
  width: 46%;
  height: 48%;
  border: 10px solid var(--cream);
}
.photo-stack > .main img,
.photo-stack > .mini img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* —— Offer —— */
.offer {
  padding: 92px 0;
  text-align: center;
  background: var(--sand);
}
.offer .section-title { margin-bottom: 15px; }
.offer .lead {
  color: var(--muted);
  max-width: 670px;
  margin: 0 auto 50px;
  line-height: 1.8;
}
.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.offer-item {
  padding: 32px 16px;
  border: 1px solid #c7b7a3;
  text-align: center;
}
.offer-item .num {
  font-size: 11px;
  letter-spacing: .18em;
  color: #997455;
}
.offer-item h3 {
  font: 400 23px 'Playfair Display', Georgia, serif;
  margin: 13px 0 0;
}

/* —— Spaces (zoom hover solo aquí, contenido) —— */
.spaces { padding: 100px 0; }
.spaces-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 40px;
}
.spaces-header .section-title { margin-bottom: 0; }
.spaces-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 16px;
}
.tile {
  height: 410px;
  position: relative;
  overflow: hidden;
  background: #a58d76;
  cursor: pointer;
}
.tile:first-child {
  height: 570px;
  grid-row: span 2;
}
.tile:nth-child(4),
.tile:nth-child(5) { height: 144px; }
.tile picture {
  position: absolute;
  inset: 0;
  display: block;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}
.tile:hover img { transform: scale(1.045); }
.tile:after {
  content: '';
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, #17110c9c);
  pointer-events: none;
}
.tile-title {
  position: absolute;
  z-index: 1;
  bottom: 23px;
  left: 24px;
  color: white;
  font: 400 25px 'Playfair Display', Georgia, serif;
}
.tile:nth-child(n+4) .tile-title { font-size: 19px; }

/* —— Quote —— */
.quote {
  background: #39271d;
  color: #fff;
  padding: 100px 25px;
  text-align: center;
}
.quote p {
  font: 400 clamp(32px, 4vw, 57px) / 1.35 'Playfair Display', Georgia, serif;
  max-width: 870px;
  margin: 20px auto;
}
.quote small {
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 11px;
  color: #e5c3a7;
}

/* —— Gallery: button DEBE ser position:relative o las picture
   con absolute/inset cubren el viewport entero (bug P03). —— */
.gallery { padding: 100px 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-grid button {
  position: relative;
  height: 245px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}
.gallery-grid button picture {
  position: absolute;
  inset: 0;
  display: block;
}
.gallery-grid button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.gallery-grid button:hover img { transform: scale(1.05); }

/* —— Contact / footer —— */
.contact {
  padding: 85px 0;
  background: #e5d7c5;
  text-align: center;
}
.contact p {
  line-height: 1.85;
  color: #66584d;
}
.contact a[href^="tel:"] {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
}
.contact a[href^="tel:"]:hover { color: var(--copper); }
.contact-hours {
  margin-top: 1.25rem;
  font-size: .95rem;
}
.contact-social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1rem;
}
.contact-social a {
  color: var(--ink);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
}
.contact-social a:hover { color: var(--copper); }
.contact .btn {
  background: #35251b;
  color: white;
  border-color: #35251b;
  margin-top: 20px;
}
.pending-marker {
  font-size: 13px;
  color: #83786d;
  margin-top: 16px;
}
.home-legal-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  opacity: .85;
  justify-content: center;
  margin-top: 28px;
}
.home-legal-links a:hover { opacity: 1; }

.footer {
  background: #281c16;
  color: #ddd0c2;
  padding: 38px 0;
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
}
.footer .brand { color: white; }
.footer p {
  font-size: 12px;
  letter-spacing: .04em;
}

/* —— Lightbox —— */
.lightbox {
  position: fixed;
  inset: 0;
  background: #110d0bf2;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 65px 25px 35px;
}
.lightbox.active { display: flex; }
.lightbox img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.close {
  position: absolute;
  top: 15px;
  right: 24px;
  background: transparent;
  border: 0;
  color: white;
  font-size: 36px;
  cursor: pointer;
}

.mobile-cta {
  display: none;
  position: fixed;
  z-index: 10;
  left: 16px;
  right: 16px;
  bottom: 16px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  background: #e4cab0;
  color: #2b2018;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid #e4cab0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.provisional-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 900px) {
  .top { position: absolute; }
  .nav-toggle { display: inline-flex; }
  .nav-end {
    gap: 10px;
    position: static;
  }
  .navlinks {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
    background: rgba(48, 38, 31, 0.96);
    border-bottom: 1px solid #ffffff33;
  }
  .top.is-nav-open .navlinks { display: flex; }
  .navlinks a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #ffffff22;
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .navlinks a:last-child { border-bottom: 0; }
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .photo-stack { height: 460px; }
  .spaces-grid { grid-template-columns: 1fr 1fr; }
  .tile:first-child {
    height: 430px;
    grid-row: span 1;
  }
  .tile:nth-child(4),
  .tile:nth-child(5) { height: 280px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .nav { height: 76px; }
  .brand { font-size: 19px; }
  .hero {
    min-height: 660px;
    height: 92svh;
  }
  .hero h1 { font-size: 53px; }
  .hero p { font-size: 16px; }
  .intro,
  .offer,
  .spaces,
  .gallery { padding: 65px 0; }
  .photo-stack { height: 360px; }
  .spaces-grid { grid-template-columns: 1fr; }
  .tile,
  .tile:first-child,
  .tile:nth-child(4),
  .tile:nth-child(5) { height: 300px; }
  .spaces-header { display: block; }
  .offer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .offer-item { padding: 25px 8px; }
  .offer-item h3 { font-size: 18px; }
  .gallery-grid { gap: 7px; }
  .gallery-grid button { height: 170px; }
  .foot-inner {
    flex-direction: column;
    text-align: center;
  }
  .mobile-cta { display: inline-flex; }
  body { padding-bottom: 72px; }
}
