/* The Riad Tarifa · hoja de estilos única
   Réplica en HTML de la web de Squarespace (noviembre 2026). */

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

:root {
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: clamp(20px, 3vw, 44px);
  --title: clamp(36px, 3.6vw, 52px);
  --black: #000;
  --white: #fff;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.4;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: #fff; padding: 10px 14px; z-index: 100;
}
.skip:focus { left: 10px; top: 10px; }

.section-title {
  font-size: var(--title);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* ---------- Cabecera ---------- */
.header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 26px var(--pad);
  color: var(--white);
}
.header--solid { position: relative; background: var(--black); }
.header__logo { grid-column: 2; }
.header__logo img { width: 118px; height: auto; }
.header__actions {
  grid-column: 3; justify-self: end;
  display: flex; align-items: center; gap: 22px;
}
.header__icon { display: flex; color: var(--white); }
.header__icon svg { width: 20px; height: 20px; }
.header__lang {
  font-size: 13px; letter-spacing: 0.08em; text-decoration: none;
  opacity: 0.9;
}
.header__lang:hover { opacity: 1; text-decoration: underline; }
.btn-header {
  display: inline-block;
  background: #d9d9d9; color: var(--black);
  font-size: 15px; font-weight: 300; letter-spacing: 0.02em;
  text-decoration: none; text-transform: uppercase;
  padding: 16px 22px; border-radius: 5px;
  transition: background .2s;
}
.btn-header:hover { background: #fff; }
@media (max-width: 700px) {
  .header { grid-template-columns: auto 1fr; padding: 16px 18px; }
  .header__logo { grid-column: 1; }
  .header__logo img { width: 92px; }
  .header__actions { grid-column: 2; gap: 14px; }
  .btn-header { font-size: 13px; padding: 11px 14px; }
}

/* ---------- Portada ---------- */
.hero {
  position: relative;
  min-height: 122vh; min-height: 122svh;
  background: #3a1f12 url("../img/hero.webp") center / cover no-repeat;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 32vh; padding-bottom: 32svh;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.15); }
@media (max-width: 1000px) {
  .hero { background-image: url("../img/hero-1200.webp"); }
}
.btn-glass {
  position: relative;
  display: block; width: min(408px, 86vw);
  padding: 14px 0;
  text-align: center; text-decoration: none;
  font-size: 18px; font-weight: 700; color: var(--white);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  transition: background .2s;
}
.btn-glass:hover { background: rgba(255,255,255,.2); }

/* ---------- Habitaciones (portada) ---------- */
.rooms { padding: 60px var(--pad) 48px; }
.rooms .section-title { margin-bottom: 22px; }
.rooms__grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
  list-style: none; padding: 0;
}
.room-card img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
}
.room-card h3 {
  margin: 14px 0 12px;
  font-size: clamp(22px, 1.9vw, 27.5px); font-weight: 400;
  letter-spacing: -0.03em; line-height: 1.05;
}
.specs { list-style: none; padding: 0; }
.specs li { position: relative; padding-left: 23px; margin-bottom: 14px; line-height: 1.5; }
.specs li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 15px; height: 15px; border-radius: 50%; background: var(--black);
}
.btn-dark {
  display: inline-block; margin-top: 22px;
  background: var(--black); color: var(--white);
  font-size: 17px; font-weight: 700; text-decoration: none;
  padding: 16px 22px; border-radius: 5px;
  transition: opacity .2s;
}
.btn-dark:hover { opacity: .8; }
.btn-line {
  display: inline-block; margin-top: 22px; margin-left: 10px;
  color: var(--black); font-size: 17px; font-weight: 700; text-decoration: none;
  padding: 15px 21px; border: 1px solid var(--black); border-radius: 5px;
}
.btn-line:hover { background: var(--black); color: var(--white); }

@media (max-width: 1000px) {
  .rooms__grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
  }
  .room-card { scroll-snap-align: start; }
}
@media (max-width: 600px) {
  .rooms__grid { grid-auto-columns: 78%; }
}

/* ---------- Valoraciones ---------- */
.reviews {
  position: relative;
  background: #1c1f1e url("../img/fondo-valoraciones.webp") center / cover no-repeat;
  color: var(--white);
  padding: 70px var(--pad) 160px;
}
.reviews::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.15); }
.reviews > * { position: relative; }
.reviews .section-title { margin-bottom: 50px; }
.reviews__grid {
  display: grid; grid-template-columns: 1fr 1.55fr 1.55fr; gap: 12px;
  align-items: start;
  max-width: 1340px; margin: 0 auto;
  padding-left: 7%;
}
.award { width: 100%; max-width: 222px; margin-top: 128px; justify-self: end; margin-right: 12px; }
.review {
  background: rgba(150,150,150,.32);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-radius: 18px;
  padding: 50px 40px 46px;
}
.review:nth-of-type(1) { margin-top: 32px; }
.review__who { font-size: 17px; font-weight: 500; margin-bottom: 12px; }
.review__quote { font-size: clamp(20px, 1.76vw, 25.8px); line-height: 1.3; }
.review__note { margin-top: 14px; font-size: 13px; opacity: .8; }

@media (max-width: 900px) {
  .reviews { padding-bottom: 70px; }
  .reviews__grid { grid-template-columns: 1fr; padding-left: 0; gap: 18px; }
  .award { margin: 0; justify-self: start; max-width: 170px; }
  .review:nth-of-type(1) { margin-top: 0; }
  .review { padding: 32px 26px; }
}

/* ---------- Galería ---------- */
.gallery { padding: 60px 0 44px; }
.gallery .section-title { padding: 0 var(--pad); margin-bottom: 40px; }
.reel { position: relative; }
.reel__track {
  display: flex; gap: 0;
  height: clamp(260px, 32.5vw, 560px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  margin: 0 110px;
  scrollbar-width: none;
}
.reel__track::-webkit-scrollbar { display: none; }
.reel__track img {
  height: 100%; width: auto; max-width: none; flex: none;
  scroll-snap-align: start;
}
.reel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border: 0; background: none; cursor: pointer;
  font-size: 30px; line-height: 1; color: var(--black);
}
.reel__btn--prev { left: 34px; }
.reel__btn--next { right: 34px; }
@media (max-width: 700px) {
  .reel__track { margin: 0; }
  .reel__btn { background: rgba(255,255,255,.75); border-radius: 50%; width: 44px; height: 44px; font-size: 22px; }
  .reel__btn--prev { left: 10px; }
  .reel__btn--next { right: 10px; }
}

/* ---------- Ubicación ---------- */
.location { display: grid; grid-template-columns: 1fr 1fr; min-height: 320px; }
.location__text {
  background: #99907c url("../img/fondo-ubicacion.webp") center / cover no-repeat;
  padding: 40px var(--pad);
  display: flex; flex-direction: column; justify-content: center;
}
.location__text .section-title { margin-bottom: 24px; }
.location__text p { max-width: 330px; line-height: 1.3; }
.location__map { position: relative; min-height: 320px; background: #e8e8e8; }
.location__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 800px) {
  .location { grid-template-columns: 1fr; }
}

/* ---------- Pie ---------- */
.footer {
  background: var(--black); color: var(--white);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 30px;
  padding: 40px var(--pad) 46px calc(var(--pad) + 18px);
  font-size: 14px; line-height: 1.45;
}
.footer img { width: 108px; height: auto; margin-top: 4px; }
.footer address { font-style: normal; text-align: right; }
.footer strong { font-weight: 700; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__legal { margin-top: 14px; font-size: 12px; opacity: .7; }
@media (max-width: 600px) {
  .footer { flex-direction: column; align-items: center; text-align: center; }
  .footer address { text-align: center; }
}

/* ---------- Página de habitaciones ---------- */
.page-intro { padding: 70px var(--pad) 20px; max-width: 900px; }
.page-intro p { margin-top: 18px; font-size: 19px; }
.room-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px);
  align-items: center;
  padding: 50px var(--pad);
  border-bottom: 1px solid #e6e6e6;
}
.room-row:nth-of-type(even) .room-row__img { order: 2; }
.room-row__img img { width: 100%; max-width: 500px; aspect-ratio: 4 / 5; object-fit: cover; }
.room-row:nth-of-type(odd) .room-row__img img { margin-left: auto; }
.room-row h2 {
  font-size: clamp(30px, 3vw, 44px); font-weight: 400; letter-spacing: -0.03em;
  margin-bottom: 26px; line-height: 1.1;
}
.room-row .specs li { font-size: 18px; }
@media (max-width: 800px) {
  .room-row { grid-template-columns: 1fr; padding: 34px var(--pad); }
  .room-row:nth-of-type(even) .room-row__img { order: 0; }
  .room-row__img img, .room-row:nth-of-type(odd) .room-row__img img { margin: 0; max-width: none; }
}

/* ---------- Aviso de cookies ---------- */
.cookies {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  max-width: 520px; margin: 0 auto;
  background: #fff; color: #000;
  border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.25);
  padding: 18px 20px; font-size: 14px;
}
.cookies[hidden] { display: none; }
.cookies p { margin-bottom: 12px; }
.cookies button {
  font: inherit; font-weight: 700; cursor: pointer;
  padding: 9px 16px; border-radius: 5px; border: 1px solid #000; margin-right: 8px;
  background: #fff; color: #000;
}
.cookies button[data-consent="yes"] { background: #000; color: #fff; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; padding: 90px var(--pad); }
.notfound p { margin-top: 18px; }

/* ---------- Animación de entrada ---------- */
.fade { opacity: 0; transition-property: opacity; transition-duration: .9s; transition-timing-function: ease; }
.fade.is-in { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html, .reel__track { scroll-behavior: auto; }
}
