/* Airux — Página placeholder
   Paleta tomada del logo: ámbar #F5A623, marrón #3E2723 */

/* ---------- Fuente Metropolis ---------- */

@font-face {
  font-family: 'Metropolis';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/metropolis/Metropolis-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Metropolis';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/metropolis/Metropolis-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Metropolis';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/metropolis/Metropolis-Bold.woff2') format('woff2');
}

:root {
  --amber: #f5a623;
  --amber-dark: #d98c0f;
  --amber-deep: #8a5a06;
  --amber-soft: #fff4dd;
  --brown: #3e2723;
  --brown-soft: #6d4c41;
  --cream: #fffaf0;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(62, 39, 35, 0.08);
  --max-width: 960px;
  --font-sans: 'Metropolis', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-serif: 'Metropolis', Georgia, serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--brown);
  background-color: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Fondo fijo: imagen + velo crema ----------
   Capa fija detrás de toda la página: el hero y la galería son
   transparentes y dejan ver esta imagen; el bloque de contacto y el
   footer la cubren con su fondo sólido. */

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--brown); /* respaldo si la imagen no carga */
  background-image:
    linear-gradient(
      to bottom,
      rgba(255, 250, 240, 0.92) 0%,
      rgba(255, 250, 240, 0.8) 50%,
      rgba(255, 250, 240, 0.92) 100%
    ),
    url("../img/hero-quinta.jpg");
  background-size: 100% 100%, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}

/* ---------- Hero ---------- */

/* El hero es compacto: logo + título + texto caben en la parte superior
   de la primera pantalla, y el top de la galería se asoma abajo. */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8vh 24px 6vh;
}

.hero__top {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  animation: hero-rise 0.8s ease both;
}

.hero__logo {
  display: block;
  width: clamp(260px, 45vw, 480px);
  max-width: 100%;
  height: auto;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--brown);
  white-space: nowrap; /* una sola línea */
}

.hero__text {
  position: relative;
  z-index: 1;
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  font-weight: 600;
  line-height: 1.6;
  color: var(--brown-soft);
  max-width: 560px;
  margin: 0 auto;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Próximamente ---------- */

.next {
  display: flex;
  justify-content: center;
  padding: 64px 24px;
}

/* Tarjeta de contacto: fondo esmerilado (claro + difuminado), no a ancho completo */
.next__card {
  width: 100%;
  max-width: 640px;
  text-align: center;
  padding: 40px 48px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: var(--shadow);
}

.next__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.next__text {
  color: var(--brown-soft);
  max-width: 520px;
  margin: 0 auto 28px;
}

.next__text a {
  color: var(--amber-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.next__text a:hover,
.next__text a:focus-visible {
  color: var(--brown);
}

/* ---------- Botones ---------- */

.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn--primary {
  background: var(--amber);
  color: var(--brown);
  box-shadow: var(--shadow);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--amber-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- Galería ---------- */

.gallery {
  padding: 72px 0 80px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery__item {
  margin: 0;
}

.gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(62, 39, 35, 0.06);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--white);
  border-top: 1px solid rgba(62, 39, 35, 0.08);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.footer__copy {
  font-size: 0.9rem;
  color: var(--brown-soft);
}

.footer__copy a {
  color: var(--amber-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.footer__copy a:hover,
.footer__copy a:focus-visible {
  color: var(--brown);
}

.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--brown);
  background: var(--amber-soft);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.footer__social:hover,
.footer__social:focus-visible {
  background: var(--amber);
  transform: translateY(-2px);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 6vh 16px 5vh;
  }

  .hero__top {
    gap: 20px;
  }

  .next {
    padding: 48px 16px;
  }

  .next__card {
    padding: 28px 24px;
  }

  .gallery {
    padding: 56px 0 64px;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .footer__inner {
    flex-direction: column;
  }
}

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

  .hero__top {
    animation: none;
  }
}
