/* =========================================================
   Estancia Niña Paula — estilos
   Paleta:  Oliva #646A44 · Oliva oscuro #4B4F37
            Mostaza #E9C324 · Gris claro #EFEFEF · Blanco #FFFFFF
   Tipos:   Títulos "Joly Display" (fuente original, licenciada)
            → fallback Google: DM Serif Display
            Texto: Mulish (Google Fonts)
   ========================================================= */

/* Si conseguís el archivo de Joly Display, subilo a /fonts y descomentá:
@font-face {
  font-family: "Joly Display";
  src: url("../fonts/JolyDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
*/

:root {
  --olive: #646A44;
  --olive-dark: #4B4F37;
  --mustard: #E9C324;
  --mustard-dark: #D4AF16;
  --grey: #EFEFEF;
  --white: #FFFFFF;

  --font-display: "Joly Display", "DM Serif Display", Georgia, serif;
  --font-body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1060px;
  --gap: clamp(24px, 4vw, 56px);
  --section-y: clamp(64px, 9vw, 120px);
  --radius: 0;
  --header-h: 100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--olive);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
figure { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 1000;
  background: var(--mustard); color: var(--olive-dark); padding: 8px 14px; font-weight: 700;
}
.skip-link:focus { left: 8px; }

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

/* ---------- Tipografía ---------- */
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  color: var(--olive);
  margin: 0 0 .7em;
}

/* ---------- Botón ---------- */
.btn {
  display: inline-block;
  background: var(--mustard);
  color: var(--olive);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 50px;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.btn:hover {
  background: var(--mustard-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--olive);
  height: var(--header-h);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo img { width: 130px; height: auto; }

.main-nav ul { display: flex; gap: 34px; }
.main-nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.5px;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--mustard); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.main-nav a:hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 10px;
  flex-direction: column; gap: 6px;
}
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--white); transition: .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 650px;
  height: calc(100vh - var(--header-h));
  max-height: 820px;
  display: grid; place-items: center;
  text-align: center;
  color: var(--white);
  background: var(--olive-dark) var(--hero-img) center / cover no-repeat;
}
.hero { overflow: hidden; container-type: size; }
.hero-video {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-video.is-ready { opacity: 1; }
.hero-video iframe {
  /* "cover" para un video 16:9: siempre llena el hero sin bandas negras */
  position: absolute; top: 50%; left: 50%;
  width: max(100cqw, 177.78cqh);
  height: max(100cqh, 56.25cqw);
  transform: translate(-50%, -50%) scale(1.15); /* oculta título/logo de YouTube en los bordes */
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.45) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 20px; }
.hero-kicker {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  letter-spacing: .04em;
  margin: 0 0 .3em;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 .35em;
  text-shadow: 0 2px 18px rgba(0,0,0,.3);
}
.hero-tagline {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  margin: 0 0 1.6em;
}
.ornament { width: 50px; filter: brightness(0) invert(1); opacity: .95; }
.ornament--flip { transform: scaleX(-1); }

/* ---------- Secciones ---------- */
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(24px, 4vw, 48px); }
.section--grey { background: var(--grey); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}

/* Intro */
.intro-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- Carruseles ---------- */
.carousel { position: relative; }
.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 6px) / 4);
  gap: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item {
  scroll-snap-align: start;
  aspect-ratio: 368 / 720;
  overflow: hidden;
  display: block;
  cursor: zoom-in;
}
.carousel-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.carousel-item:hover img { transform: scale(1.05); }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.25); color: var(--mustard);
  font-size: 2.2rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; padding-bottom: 4px;
  transition: background .25s;
}
.carousel-btn:hover { background: rgba(0,0,0,.5); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

#nosotros .carousel { margin-top: clamp(24px, 4vw, 48px); }

/* ---------- Habitaciones y servicios ---------- */
.rooms { align-items: start; }
.rooms-gallery { position: relative; }
.rooms-gallery::before {
  /* bloque mostaza decorativo, como en el sitio original */
  content: ""; position: absolute; z-index: -1;
  inset: -40px 30% 35% -40px;
  background: var(--mustard);
}
.rooms-main { aspect-ratio: 549 / 479; overflow: hidden; }
.rooms-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.rooms-thumbs {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 12px) / 3);
  gap: 6px; margin-top: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.rooms-thumbs button {
  padding: 0; border: 0; cursor: pointer; background: none; scroll-snap-align: start;
  aspect-ratio: 549 / 400; overflow: hidden; opacity: .65; transition: opacity .25s;
}
.rooms-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.rooms-thumbs button.is-active, .rooms-thumbs button:hover { opacity: 1; }

.rooms-text .btn { margin: .4em 0 2em; }

.amenities {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 16px; text-align: center;
}
.amenities li, .features li {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .9rem; font-weight: 400; line-height: 1.3;
}
.amenities img { height: 44px; width: auto; }

.features {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
  margin-top: clamp(48px, 7vw, 80px); text-align: center;
}
.features img { width: 72px; height: 72px; }

/* ---------- Historia ---------- */
.history-intro {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--gap); align-items: start;
  font-size: .95rem;
}
.history-intro figure img { width: 100%; aspect-ratio: 600 / 490; object-fit: cover; }

.story-cols {
  columns: 3; column-gap: var(--gap);
  font-size: .95rem;
}
.story-cols p { break-inside: avoid-column; }
.signature {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

/* ---------- Cómo llegar ---------- */
.location { background: var(--olive); color: var(--white); }
.location .section-title { color: var(--white); }
.location-grid { grid-template-columns: 1.2fr 1fr; align-items: center; }
.map { aspect-ratio: 4 / 2.2; background: var(--olive-dark); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.contact-list a { text-decoration: none; font-weight: 600; font-size: .98rem; }
.contact-list a:hover { color: var(--mustard); }
.ci { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; fill: var(--white); }
img.ci { filter: brightness(0) invert(1); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--mustard); color: var(--olive-dark);
  text-align: center; padding: 12px 20px; font-size: .85rem; font-weight: 400;
}
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; font-weight: 700; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: transform .25s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 22, 14, .93);
  display: grid; place-items: center; padding: 60px 70px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 85vh; max-width: 100%; width: auto; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox button {
  position: absolute; background: none; border: 0; color: var(--white);
  font-size: 3rem; cursor: pointer; line-height: 1; padding: 10px;
}
.lb-close { top: 10px; right: 20px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox button:hover { color: var(--mustard); }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .carousel-track { grid-auto-columns: calc((100% - 2 * 6px) / 3); }
  .features { grid-template-columns: repeat(3, 1fr); }
  .story-cols { columns: 2; }
}

@media (max-width: 860px) {
  :root { --header-h: 80px; }
  .logo img { width: 100px; }
  .menu-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--olive);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .main-nav.is-open { max-height: 400px; box-shadow: 0 10px 20px rgba(0,0,0,.15); }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 20px 20px; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }

  .grid-2, .location-grid { grid-template-columns: 1fr; }
  .history-intro { grid-template-columns: 1fr; }
  .history-intro figure { order: -1; }
  .rooms-gallery::before { inset: -20px 20% 30% -20px; }
  .rooms-text { margin-top: 10px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero { min-height: 540px; }
  .hero-tagline { gap: 8px; }
  .ornament { width: 34px; }
  .carousel-track { grid-auto-columns: calc((100% - 6px) / 2); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .features li:last-child { grid-column: 1 / -1; }
  .story-cols { columns: 1; }
  .map { aspect-ratio: 4 / 3.2; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}
