/* ===================== TOKENS ===================== */
:root {
  --wine:   #6b2a35;   /* vino de Rioja */
  --wine-d: #501f28;
  --terra:  #a8623f;   /* terracota */
  --stone:  #8a8275;   /* piedra */
  --cream:  #f6f1e7;   /* crema fondo */
  --cream-d:# ece4d4;
  --ink:    #2b2622;   /* texto */
  --ink-soft:#5a534b;
  --line:   #ddd2bf;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Jost', system-ui, -apple-system, sans-serif;

  --maxw: 1120px;
  --pad: clamp(1.25rem, 4vw, 4rem);
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background-color: var(--cream);
  /* rayas finas color vino, muy sutiles, como textura de fondo */
  background-image: repeating-linear-gradient(45deg,
    rgba(107,42,53,.04) 0, rgba(107,42,53,.04) 1px,
    transparent 1px, transparent 15px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--wine); }
h3 { font-size: 1.35rem; }

/* ===================== NAV ===================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s ease, box-shadow .4s ease;
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 1.1rem var(--pad);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand {
  font-family: var(--serif); font-size: 1.25rem; color: #fff;
  transition: color .4s ease; letter-spacing: .3px;
}
.nav__links { display: flex; gap: 2rem; align-items: center; }
.nav__links a { color: #fff; font-size: .95rem; transition: color .3s, opacity .3s; opacity: .92; }
.nav__links a:hover { opacity: 1; }
.nav__cta {
  border: 1px solid rgba(255,255,255,.6); padding: .5rem 1.2rem; border-radius: 2rem;
}
.nav__toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* estado al hacer scroll */
.nav.scrolled { background: var(--cream); box-shadow: 0 1px 20px rgba(0,0,0,.07); }
.nav.scrolled .nav__brand,
.nav.scrolled .nav__links a { color: var(--ink); }
.nav.scrolled .nav__cta { border-color: var(--wine); color: var(--wine); }
.nav.scrolled .nav__toggle { color: var(--ink); }

/* ===================== HERO ===================== */
.hero { position: relative; height: 100vh; min-height: 560px; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero__media {
  position: absolute; inset: 0;
  background-image: url('fotos/piscina_1.avif');
  background-size: cover;
  background-position: center;
}
.hero__overlay { position: absolute; inset: 0; background: rgba(40,25,20,.38); }
.hero__content { position: relative; z-index: 2; color: #fff; padding: 0 var(--pad); }
.hero__eyebrow { text-transform: uppercase; letter-spacing: 4px; font-size: .8rem; opacity: .9; margin-bottom: 1rem; }
.hero__title { font-size: clamp(2.6rem, 8vw, 5rem); margin-bottom: .8rem; }
.hero__subtitle { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 300; margin-bottom: 2.2rem; opacity: .95; }

/* ===================== BOTONES ===================== */
.btn { display: inline-block; padding: .9rem 2rem; border-radius: 2rem; font-size: .95rem; letter-spacing: .5px; cursor: pointer; transition: transform .2s, background .3s, box-shadow .3s; }
.btn--light { background: var(--cream); color: var(--wine); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.btn--whatsapp { background: #25d366; color: #fff; font-size: 1.05rem; padding: 1rem 2rem; }
.btn--whatsapp:hover { background: #1eb957; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(37,211,102,.4); }

/* ===================== SECCIONES ===================== */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(3.5rem, 9vw, 7rem) var(--pad); }
.section--alt {
  max-width: none;
  background-color: var(--cream-d);
  background-image: repeating-linear-gradient(45deg,
    rgba(107,42,53,.05) 0, rgba(107,42,53,.05) 1px,
    transparent 1px, transparent 15px);
}
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: .78rem; color: var(--terra); margin-bottom: .8rem; }
.section__sub { color: var(--ink-soft); margin-top: 1rem; }
.rating { margin-top: 1rem; color: var(--ink-soft); font-size: 1rem; }
.rating strong { color: var(--terra); font-size: 1.3rem; font-family: var(--serif); }

/* adorno de racimo de uvas bajo los títulos de sección */
.section__head h2::after {
  content: "";
  display: block;
  width: 72px; height: 26px;
  margin: 1.1rem auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 28'%3E%3Cg stroke='%23a8623f' stroke-width='1'%3E%3Cline x1='2' y1='15' x2='24' y2='15'/%3E%3Cline x1='48' y1='15' x2='70' y2='15'/%3E%3C/g%3E%3Cpath d='M36 8 q3 -5 8 -5' fill='none' stroke='%238a8275' stroke-width='1'/%3E%3Cpath d='M44 3 q4 0 4 3 q-4 0 -4 -3z' fill='%238a8275'/%3E%3Cg fill='%236b2a35'%3E%3Ccircle cx='32' cy='11' r='2.6'/%3E%3Ccircle cx='36' cy='10' r='2.6'/%3E%3Ccircle cx='40' cy='11' r='2.6'/%3E%3Ccircle cx='34' cy='15' r='2.6'/%3E%3Ccircle cx='38' cy='15' r='2.6'/%3E%3Ccircle cx='36' cy='19' r='2.6'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

.intro { text-align: center; padding-bottom: 0; }
.intro__lead { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.8rem); line-height: 1.5; color: var(--wine); max-width: 760px; margin: 0 auto; }

/* ===================== EL APARTAMENTO ===================== */
.casa { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.casa__text p { margin-bottom: 1.1rem; color: var(--ink-soft); }
.casa__note { font-size: .9rem; }
.casa__specs { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 1.6rem 0; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.casa__specs span { font-size: .95rem; color: var(--wine); }
.features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.5rem; margin: 1.8rem 0; }
.features li { display: flex; align-items: center; gap: .6rem; font-size: .98rem; color: var(--ink); }
.features span { font-size: 1.2rem; }
.casa__gallery { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; gap: 1rem; }
.ph { background-color: var(--cream-d); background-size: cover; background-position: center; background-repeat: no-repeat; border-radius: 4px; position: relative; display: block; }
.casa__gallery a.ph { cursor: pointer; transition: filter .25s; }
.casa__gallery a.ph:hover { filter: brightness(1.06); }
.ph--tall { grid-row: span 2; }
.ph--wide { grid-column: span 2; }
.ph[data-placeholder]::after,
.card__img[data-placeholder]::after,
.hero__media[data-placeholder]::after {
  content: attr(data-placeholder);
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; font-size: .9rem; color: rgba(255,255,255,.85);
  text-align: center; padding: .5rem;
}

/* ===================== CARDS ZONA ===================== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card { background: var(--cream); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(80,31,40,.12); }
.card__img { height: 160px; background: linear-gradient(135deg, var(--terra), var(--wine)); position: relative; }
.card h3 { padding: 1.1rem 1.2rem .4rem; color: var(--wine); }
.card p { padding: 0 1.2rem; color: var(--ink-soft); font-size: .95rem; }
.card__meta { display: block; padding: .8rem 1.2rem 1.2rem; font-size: .82rem; color: var(--terra); letter-spacing: .5px; }
.zona__tips { margin-top: 3rem; padding: 2.5rem; background: var(--cream); border: 1px solid var(--line); border-radius: 6px; }
.zona__tips h3 { color: var(--wine); margin-bottom: .6rem; text-align: center; }
.zona__tips-intro { text-align: center; color: var(--ink-soft); margin-bottom: 1.8rem; }
.tips-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 2rem; max-width: 820px; margin: 0 auto; }
.tips-list li { padding-left: 1.2rem; position: relative; color: var(--ink-soft); font-size: .96rem; }
.tips-list li::before { content: "🍷"; position: absolute; left: -.1rem; top: 0; font-size: .9rem; }
.tips-list strong { color: var(--wine); font-weight: 500; }
@media (max-width: 860px) { .tips-list { grid-template-columns: 1fr; } }

/* ===================== OPINIONES ===================== */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.review { background: var(--cream); border-radius: 6px; padding: 2rem 1.8rem; box-shadow: 0 6px 24px rgba(80,31,40,.06); }
.review__stars { color: var(--terra); letter-spacing: 2px; margin-bottom: 1rem; }
.review p { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ink); margin-bottom: 1.2rem; }
.review cite { font-style: normal; font-size: .88rem; color: var(--stone); letter-spacing: .5px; }
.reviews__note, .calendar__cta, .casa__note, .reviews__note { font-size: .9rem; color: var(--ink-soft); text-align: center; margin-top: 2rem; }

/* ===================== GALERÍA ===================== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.gallery-item { aspect-ratio: 4 / 3; background-size: cover; background-position: center; background-repeat: no-repeat; background-color: var(--cream-d); border-radius: 4px; cursor: pointer; transition: transform .25s, filter .25s; }
.gallery-item:hover { transform: scale(1.015); filter: brightness(1.06); }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===================== LIGHTBOX ===================== */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(28,16,14,.95); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 90vw; max-height: 86vh; border-radius: 4px; box-shadow: 0 12px 60px rgba(0,0,0,.55); }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; transition: background .2s; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__close { top: 1.1rem; right: 1.3rem; width: 46px; height: 46px; border-radius: 50%; font-size: 1.8rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; font-size: 2.2rem; padding-bottom: 4px; }
.lightbox__prev { left: 1.3rem; }
.lightbox__next { right: 1.3rem; }
.lightbox__counter { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.85); font-size: .9rem; letter-spacing: 1px; }
@media (max-width: 860px) { .lightbox__nav { width: 44px; height: 44px; font-size: 1.8rem; } .lightbox__prev { left: .5rem; } .lightbox__next { right: .5rem; } }

/* ===================== CALENDARIO ===================== */
.calendar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; max-width: 760px; margin: 0 auto; }
.cal-month__name { font-family: var(--serif); font-size: 1.3rem; color: var(--wine); text-align: center; margin-bottom: 1rem; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; color: var(--stone); text-align: center; padding-bottom: .4rem; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: .9rem; border-radius: 50%; }
.cal-day--free { background: rgba(108,42,53,.06); color: var(--ink); }
.cal-day--busy { background: var(--wine); color: #fff; opacity: .55; text-decoration: line-through; }
.cal-day--empty { background: none; }
.calendar__legend { display: flex; gap: 2rem; justify-content: center; margin-top: 2.5rem; font-size: .9rem; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: .4rem; vertical-align: middle; }
.dot--free { background: rgba(108,42,53,.18); }
.dot--busy { background: var(--wine); opacity: .55; }
.calendar__cta a, .reserva__alt a { color: var(--wine); border-bottom: 1px solid var(--terra); }

/* ===================== RESERVA ===================== */
.reserva__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.reserva__steps h3 { color: var(--wine); margin: 0 0 .8rem; }
.reserva__steps ol { margin: 0 0 2rem 1.1rem; }
.reserva__steps li { margin-bottom: .6rem; color: var(--ink-soft); }
.reserva__steps p { color: var(--ink-soft); }
.reserva__cta-box { background: var(--wine); color: #fff; border-radius: 8px; padding: 2.5rem 2rem; text-align: center; }
.reserva__price { font-family: var(--serif); font-size: 2.4rem; }
.reserva__price em { font-size: 1rem; font-style: italic; opacity: .8; display: block; }
.reserva__price span { font-size: 1rem; opacity: .8; }
.reserva__price-note { font-size: .82rem; opacity: .7; margin-bottom: 1.8rem; }
.reserva__alt { margin-top: 1.4rem; font-size: .9rem; opacity: .9; }
.reserva__alt a { color: #fff; border-color: rgba(255,255,255,.6); }

/* ===================== FOOTER ===================== */
.footer { background: var(--wine-d); color: rgba(255,255,255,.85); text-align: center; padding: 3rem var(--pad); }
.footer__brand { font-family: var(--serif); font-size: 1.4rem; color: #fff; margin-bottom: .4rem; }
.footer p { font-size: .9rem; margin-bottom: .3rem; }
.footer__reg { margin-top: 1rem; }
.footer__legal { margin-top: 1.5rem; opacity: .6; font-size: .8rem; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 860px) {
  .nav__links {
    position: absolute; top: 100%; right: var(--pad); flex-direction: column;
    background: var(--cream); padding: 1.2rem 1.6rem; border-radius: 8px; gap: 1rem;
    box-shadow: 0 12px 40px rgba(0,0,0,.15); display: none; min-width: 200px;
  }
  .nav__links.open { display: flex; }
  .nav__links a { color: var(--ink); }
  .nav__cta { border-color: var(--wine); color: var(--wine); text-align: center; }
  .nav__toggle { display: block; }
  .casa, .reserva__grid { grid-template-columns: 1fr; }
  .cards, .reviews { grid-template-columns: 1fr; }
  .calendar { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
}
