/* ============================================================
   POSADA DEL VIENTO — main.css
   Estilos específicos del sitio. Mobile-first.
   Breakpoints: tablet ≥480px · desktop ≥1024px
   ============================================================ */


/* ------------------------------------------------------------
   SITE HEADER / NAV
   ------------------------------------------------------------ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--border-light);
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.site-header--scrolled {
  box-shadow: var(--shadow-md);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-header__logo img {
  height: 36px;
  width: auto;
}

/* Hamburger button */
.site-header__menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.site-header__hamburger,
.site-header__hamburger::before,
.site-header__hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.site-header__hamburger {
  position: relative;
}

.site-header__hamburger::before,
.site-header__hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.site-header__hamburger::before { top: -7px; }
.site-header__hamburger::after  { top:  7px; }

/* Hamburger → X cuando está abierto */
.site-header--open .site-header__hamburger {
  background-color: transparent;
}
.site-header--open .site-header__hamburger::before {
  transform: rotate(45deg) translate(5px, 5px);
}
.site-header--open .site-header__hamburger::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Nav móvil — drawer */
.site-nav {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  /* border-bottom: 1px solid var(--border-light); */
  transform: translateY(-128%);
  transition: transform var(--transition-slow);
  z-index: 99;
}

.site-nav--open {
  transform: translateY(0);
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  padding: var(--space-4) var(--space-6) var(--space-6);
  gap: var(--space-1);
}

.site-nav__link {
  display: block;
  padding: var(--space-3) var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}

.site-nav__link:hover {
  color: var(--brand-primary);
  text-decoration: none;
}

.site-nav__list li:last-child .site-nav__link {
  border-bottom: none;
}

.site-nav__cta {
  margin-top: var(--space-4);
  align-self: flex-start;
}


/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-16);
  margin-top: 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* El overlay del hero es más profundo que el genérico */
.hero.overlay::after {
  background: linear-gradient(
    to top,
    rgba(26, 26, 24, 0.72) 0%,
    rgba(26, 26, 24, 0.30) 60%,
    rgba(26, 26, 24, 0.10) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 80px; /* altura del header */
}

.hero__content .text-eyebrow {
  color: var(--color-green-100);
  margin-bottom: var(--space-4);
}

.hero__title {
  color: var(--color-white);
  font-size: var(--text-4xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-md);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-8);
  max-width: 36ch;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}


/* ------------------------------------------------------------
   BIENVENIDOS
   ------------------------------------------------------------ */

.bienvenidos {
  text-align: left;
}

.bienvenidos .text-eyebrow {
  margin-bottom: var(--space-3);
}

.bienvenidos__title {
  margin-bottom: var(--space-4);
}

.bienvenidos .divider--accent {
  margin-bottom: var(--space-6);
}

.bienvenidos__lead {
  font-size: var(--text-md);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-4);
}

.bienvenidos__body {
  color: var(--text-secondary);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-8);
}

.bienvenidos__actions {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.bienvenidos__video-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--brand-primary);
}

.bienvenidos__video-link:hover {
  color: var(--brand-dark);
  text-decoration: none;
}


/* ------------------------------------------------------------
   ALOJAMIENTO
   ------------------------------------------------------------ */

.alojamiento__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.alojamiento__card {
  width: 100%;
}

.card__image-wrap {
  position: relative;
}

.card__image-wrap.overlay::after {
  background: linear-gradient(
    to top,
    rgba(26, 26, 24, 0.55) 0%,
    transparent 50%
  );
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.alojamiento__price {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  z-index: 2;
  background-color: var(--brand-primary);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
}

.alojamiento__footer {
  margin-top: var(--space-8);
  text-align: center;
}


/* ------------------------------------------------------------
   SERVICIOS
   ------------------------------------------------------------ */

.servicios__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.servicios__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.servicios__icon {
  font-size: var(--text-xl);
  flex-shrink: 0;
  margin-top: 2px;
}

.servicios__item h4 {
  margin-bottom: var(--space-1);
}

.servicios__item p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}


/* ------------------------------------------------------------
   PROMOCIONES
   ------------------------------------------------------------ */

.promociones .text-eyebrow {
  margin-bottom: var(--space-3);
}

.promociones h2 {
  margin-bottom: var(--space-4);
}

.promociones__lead {
  font-size: var(--text-md);
  line-height: var(--leading-loose);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-10);
}

.promociones__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.promociones__card {
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
}

.promociones__pct {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-semibold);
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.promociones__label {
  color: rgba(255, 255, 255, 0.80);
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
}

.promociones__footer-note {
  color: rgba(255, 255, 255, 0.60);
  font-size: var(--text-sm);
  margin-bottom: var(--space-8);
}


/* ------------------------------------------------------------
   GASTRONOMÍA
   ------------------------------------------------------------ */

.gastronomia__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.gastronomia__image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gastronomia__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gastronomia__content .text-eyebrow {
  margin-bottom: var(--space-3);
}

.gastronomia__content h2 {
  margin-bottom: var(--space-4);
}

.gastronomia__content .divider--accent {
  margin-bottom: var(--space-5);
}

.gastronomia__content p {
  color: var(--text-secondary);
  line-height: var(--leading-loose);
}


/* ------------------------------------------------------------
   PAISAJES
   ------------------------------------------------------------ */

.paisajes__inner {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
}

.paisajes__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.paisajes__inner.overlay::after {
  background: linear-gradient(
    to top,
    rgba(26, 26, 24, 0.80) 0%,
    rgba(26, 26, 24, 0.20) 60%,
    transparent 100%
  );
}

.paisajes__content {
  position: relative;
  z-index: 2;
  padding: var(--space-8) var(--space-6);
}

.paisajes__content .text-eyebrow {
  margin-bottom: var(--space-3);
  color: var(--color-green-100);
}

.paisajes__content h3 {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.paisajes__content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  max-width: 40ch;
}


/* ------------------------------------------------------------
   SITE FOOTER
   ------------------------------------------------------------ */

.site-footer {
  background-color: var(--color-neutral-900);
  color: var(--text-inverse);
  padding-top: var(--space-12);
  padding-bottom: var(--space-6);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.site-footer__brand img {
  margin-bottom: var(--space-2);
  filter: brightness(0) invert(1);
}

.site-footer__brand .text-muted {
  color: rgba(255, 255, 255, 0.50);
}

.site-footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.site-footer__nav a {
  color: rgba(255, 255, 255, 0.70);
  font-size: var(--text-sm);
}

.site-footer__nav a:hover {
  color: var(--color-white);
  text-decoration: none;
}

.site-footer__contact a {
  color: rgba(255, 255, 255, 0.70);
  font-size: var(--text-sm);
}

.site-footer__contact a:hover {
  color: var(--color-white);
}

.site-footer__legal {
  margin-top: var(--space-6);
  text-align: center;
}

.site-footer__legal .text-muted {
  color: rgba(255, 255, 255, 0.35);
  font-size: var(--text-xs);
}


/* ------------------------------------------------------------
   RESPONSIVE — TABLET (≥ 480px)
   ------------------------------------------------------------ */

@media (min-width: 480px) {

  .hero__title {
    font-size: var(--text-5xl);
  }

  .hero__actions {
    flex-direction: row;
  }

  .alojamiento__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .promociones__grid {
    flex-direction: row;
  }

  .gastronomia__image-wrap {
    aspect-ratio: 16 / 9;
  }

  .site-footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}


/* ------------------------------------------------------------
   RESPONSIVE — DESKTOP (≥ 1024px)
   ------------------------------------------------------------ */

@media (min-width: 1024px) {

  /* Nav — horizontal */
  .site-header__menu-btn {
    display: none;
  }

  .site-nav {
    position: static;
    transform: none;
    border: none;
    background: none;
  }

  .site-nav[aria-hidden="true"] {
    /* En desktop siempre visible */
  }

  .site-nav__list {
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: var(--space-1);
  }

  .site-nav__link {
    border-bottom: none;
    font-size: var(--text-sm);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
  }

  .site-nav__link:hover {
    background-color: var(--bg-muted);
  }

  /* Hero */
  .hero {
    align-items: center;
    padding-bottom: 0;
  }

  .hero__title {
    font-size: var(--text-6xl);
  }

  .hero__subtitle {
    font-size: var(--text-lg);
  }

  /* Gastronomía — lado a lado */
  .gastronomia__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-16);
  }

  .gastronomia__image-wrap {
    aspect-ratio: 1 / 1;
  }

  /* Footer */
  .site-footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
