:root {
  --piedra: #F6F1EA;
  --piedra-2: #ECE3D6;
  --tinta: #2B241D;
  --tinta-suave: #5F5346;
  --terracota: #A4552F;
  --terracota-oscura: #87411F;
  --linea: #D9CCBA;
  --blanco: #FFFFFF;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ancho: 1120px;
  --gutter: clamp(16px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--piedra);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--terracota); outline-offset: 3px; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: var(--tinta); color: var(--piedra); padding: 10px 16px; border-radius: 6px;
}
.skip:focus { top: 16px; }

/* Cabecera */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px var(--gutter);
  color: var(--blanco);
}
.marca { font-family: var(--serif); font-size: 26px; font-weight: 600; text-decoration: none; letter-spacing: 0.01em; }
.idiomas { display: flex; gap: 2px; }
.idiomas button {
  background: none; border: 0; color: inherit; cursor: pointer;
  font: 500 13px/1 var(--sans); letter-spacing: 0.08em;
  padding: 10px 8px; opacity: 0.72; border-bottom: 1px solid transparent;
}
.idiomas button:hover { opacity: 1; }
.idiomas button[aria-pressed="true"] { opacity: 1; border-bottom-color: currentColor; }

/* Portada */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden; color: var(--blanco); isolation: isolate;
}
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 50%; z-index: -2;
  animation: acercar 22s ease-out both;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(20, 15, 10, 0.45) 0%, rgba(20, 15, 10, 0) 28%),
    linear-gradient(to top, rgba(20, 15, 10, 0.78) 0%, rgba(20, 15, 10, 0.25) 45%, rgba(20, 15, 10, 0) 70%);
}
.hero__contenido {
  width: 100%; max-width: var(--ancho); margin: 0 auto;
  padding: 0 var(--gutter) clamp(48px, 10vh, 112px);
  animation: aparecer 1.2s 0.2s ease-out both;
}
.kicker { font-size: 13px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 14px; }
.hero h1 { font-size: clamp(56px, 11vw, 128px); letter-spacing: -0.01em; }
.hero__lead { max-width: 34ch; font-size: clamp(18px, 2.2vw, 22px); margin: 16px 0 32px; }

@keyframes acercar { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes aparecer { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  background: var(--terracota); color: var(--blanco);
  font: 500 15px/1 var(--sans); letter-spacing: 0.02em; text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--terracota-oscura); }
.btn--claro { background: var(--piedra); color: var(--tinta); }
.btn--claro:hover { background: var(--blanco); }

/* Intro */
.intro { padding: clamp(72px, 12vw, 136px) 0 clamp(56px, 8vw, 96px); }
.intro__grid { display: grid; gap: 40px; }
.intro h2 { font-size: clamp(36px, 5vw, 54px); margin-bottom: 20px; }
.intro p { color: var(--tinta-suave); font-size: 19px; max-width: 46ch; margin: 0; }
.destacados { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea); }
.destacados li { padding: 16px 0; border-bottom: 1px solid var(--linea); font-size: 17px; }
.destacados li::before { content: "—"; color: var(--terracota); margin-right: 12px; }

/* Galería */
.galeria {
  display: grid; gap: 6px;
  grid-template-columns: repeat(2, 1fr);
  padding: 0 6px;
}
.galeria img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Alojamientos */
.alojamientos { padding: clamp(72px, 12vw, 136px) 0; }
.alojamientos h2 { font-size: clamp(36px, 5vw, 54px); }
.alojamientos__lead { color: var(--tinta-suave); font-size: 19px; max-width: 52ch; margin: 18px 0 44px; }
.unidades { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.unidad {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--blanco); border: 1px solid var(--linea); border-radius: 14px;
  padding: 28px 26px 26px;
}
.unidad__tipo { margin: 0 0 6px; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--terracota); }
.unidad h3 { font-size: 34px; margin-bottom: 24px; }
.unidad .btn { margin-top: auto; }

/* Contacto */
.contacto { background: var(--piedra-2); padding: clamp(64px, 10vw, 112px) 0; text-align: center; }
.contacto h2 { font-size: clamp(36px, 5vw, 54px); }
.contacto p { color: var(--tinta-suave); margin: 14px 0 22px; }
.contacto__email {
  font-family: var(--serif); font-size: clamp(24px, 4vw, 34px);
  text-decoration: none; border-bottom: 1px solid var(--terracota); word-break: break-word;
}
.contacto__email:hover { color: var(--terracota-oscura); }
.contacto .contacto__lugar { margin: 22px 0 0; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }

/* Pie */
.pie { background: var(--tinta); color: #D9CCBA; font-size: 14px; padding: 28px 0; }
.pie__fila { display: flex; flex-direction: column; gap: 6px; }
.pie p { margin: 0; }

@media (min-width: 720px) {
  .unidades { grid-template-columns: repeat(2, 1fr); }
  .pie__fila { flex-direction: row; justify-content: space-between; gap: 24px; }
}

@media (min-width: 900px) {
  .intro__grid { grid-template-columns: 1.2fr 1fr; gap: 72px; align-items: start; }
  .galeria { grid-template-columns: repeat(3, 1fr); }
  .unidades { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__img, .hero__contenido { animation: none; }
  .btn { transition: none; }
}
