/* =========================================================
   layout.css — Navbar, Hero, secciones y Footer
   La Llar de Pometes
   ========================================================= */

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  gap: 32px;
}

/* Estado con scroll */
.navbar.scrolled .nav-inner {
  padding-top: 14px;
  padding-bottom: 14px;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(44, 95, 122, 0.1);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.nav-logo em {
  color: var(--teal);
  font-style: italic;
}

.nav-logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
}

/* Links de navegación */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--teal);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Botón CTA en navbar */
.nav-cta {
  padding: 9px 22px;
  font-size: 0.88rem;
}

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger.active span:nth-child(2) {
  opacity: 0;
}
.nav-burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menú móvil */
.nav-mobile {
  display: none;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 16px 24px 24px;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-mobile a {
  display: block;
  padding: 13px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.nav-mobile a:hover {
  color: var(--teal);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--sky) 0%, #f7fbfd 50%, var(--white) 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

/* Orbes decorativos */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.hero-orb--tl {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(123, 174, 142, 0.18) 0%, transparent 70%);
  top: -100px;
  left: -150px;
}

.hero-orb--br {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(42, 157, 143, 0.12) 0%, transparent 70%);
  bottom: -200px;
  right: -200px;
}

/* Grid del hero */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 80px;
  width: 100%;
}

/* Contenido izquierdo */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-top: 8px;
}

.hero-title em {
  color: var(--teal);
}

.hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--text-mid);
  max-width: 480px;
  line-height: 1.8;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* Imagen del hero */
.hero-image-wrap {
  position: relative;
}

.hero-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-blue);
}

/* Badges flotantes sobre la imagen */
.hero-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.hero-badge--guests {
  bottom: 24px;
  left: -20px;
}

.hero-badge--rating {
  top: 24px;
  right: -10px;
  background: var(--navy);
  color: var(--white);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  color: var(--text-light);
  animation: bounce 2s ease-in-out infinite;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* =========================================================
   STRIP INFORMATIVO
   ========================================================= */
.strip {
  background: var(--navy);
  padding: 24px 0;
}

.strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.strip-icon {
  font-size: 1.1rem;
}

.strip-sep {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

/* =========================================================
   SECCIÓN LA CASA (ABOUT)
   ========================================================= */
.about-section {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* Columna de imágenes */
.about-images {
  position: relative;
}

.about-img-wrap {
  position: relative;
  display: inline-block;
}

.about-img-main {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-blue);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about-label {
  position: absolute;
  top: 20px;
  left: 20px;
}

.about-img-secondary {
  position: absolute;
  bottom: -32px;
  right: -32px;
  width: 200px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 5px solid var(--white);
  box-shadow: var(--shadow-md);
}

/* Contenido del about */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-mid);
}

.about-text em {
  color: var(--teal);
}

/* Stats del about */
.about-stats {
  display: flex;
  gap: 36px;
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.stat-symbol {
  font-size: 2rem;
}

.stat-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
}

/* =========================================================
   SERVICIOS
   ========================================================= */
.services-section {
  background: var(--sky);
}

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

/* =========================================================
   GALERÍA
   ========================================================= */
.gallery-section {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item--featured {
  grid-row: 1 / 3;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 95, 122, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.gallery-overlay span {
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity var(--transition);
  letter-spacing: 0.05em;
}

.gallery-item:hover .gallery-overlay {
  background: rgba(44, 95, 122, 0.35);
}

.gallery-item:hover .gallery-overlay span {
  opacity: 1;
}

/* =========================================================
   RESERVA / DISPONIBILIDAD
   ========================================================= */
.booking-section {
  background: var(--sand);
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.booking-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 16px;
}

.booking-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-mid);
}

.price-cards {
  display: flex;
  gap: 16px;
}

.booking-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--text-mid);
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  border: 1px solid var(--border);
}

/* =========================================================
   SECCIÓN PARALLAX — EL ENTORNO
   ========================================================= */
.parallax-section {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: -100px 0;
  background-image: url('https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?w=1600&q=80');
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30, 58, 74, 0.55) 0%,
    rgba(44, 95, 122, 0.7) 100%
  );
}

.parallax-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  max-width: 720px;
}

.parallax-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.3;
  margin: 16px 0 20px;
  quotes: none;
}

.parallax-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--sky);
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  font-size: 1.2rem;
}

.footer-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-mid);
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  color: var(--text-mid);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.footer-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text-mid);
  transition: color var(--transition);
  line-height: 1.4;
}

.footer-links a:hover {
  color: var(--teal);
}

/* Barra inferior del footer */
.footer-bar {
  background: var(--navy);
  padding: 16px 0;
}

.footer-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-made {
  color: rgba(255, 255, 255, 0.5);
}

/* =========================================================
   RESPONSIVE — Tablet
   ========================================================= */
@media (max-width: 1024px) {
  .section { padding: 72px 0; }

  .hero-grid {
    gap: 40px;
  }

  .hero-img {
    height: 420px;
  }

  .about-grid {
    gap: 48px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery-item--featured {
    grid-column: 1 / 3;
    grid-row: auto;
    height: 320px;
  }

  .gallery-item {
    height: 220px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / 3;
  }

  .strip-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .strip-sep {
    display: none;
  }
}

/* =========================================================
   RESPONSIVE — Móvil
   ========================================================= */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .container { padding: 0 16px; }

  /* Navbar */
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }

  /* Hero */
  .hero {
    padding-top: 70px;
    align-items: flex-start;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 32px;
    padding-bottom: 64px;
  }

  .hero-image-wrap {
    order: -1;
  }

  .hero-img {
    height: 280px;
  }

  .hero-badge--guests {
    left: 12px;
    bottom: 12px;
    font-size: 0.78rem;
    padding: 8px 14px;
  }

  .hero-badge--rating {
    right: 12px;
    top: 12px;
    font-size: 0.78rem;
    padding: 8px 14px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    text-align: center;
    justify-content: center;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .about-img-secondary {
    width: 140px;
    height: 120px;
    bottom: -20px;
    right: -12px;
  }

  .about-stats {
    gap: 24px;
  }

  /* Galería */
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 12px;
  }

  .gallery-item--featured {
    grid-column: auto;
    height: 240px;
  }

  .gallery-item {
    height: 200px;
  }

  /* Reserva */
  .booking-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .price-cards {
    flex-direction: column;
  }

  /* Parallax */
  .parallax-section { height: 420px; }
  .parallax-quote { font-size: 1.6rem; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bar-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .scroll-indicator { display: none; }
}
