@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@300;400;600;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  background: #f4efe9;
  color: #3e2f23;
  overflow-x: hidden;
}

header {
  position: fixed; top: 0; width: 100%; height: 110px;
  background: white; display: flex; align-items: center;
  justify-content: space-between; padding: 0 60px;
  transition: transform 0.3s ease; z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

header.oculto { transform: translateY(-100%); }
main { margin-top: 110px; }

.barra-navegacion {
  width: 100%; max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 40px;
}

.logo { height: 110px; transition: transform 0.25s ease; will-change: transform; }
.logo.zoom-leve { transform: scale(1.08); }

.menu {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; position: relative;
}

.menu a {
  text-decoration: none; color: #6b4e32; font-weight: bold;
  padding: 8px 12px; border-radius: 20px; transition: 0.3s;
}

.menu a:hover,
.menu a.activo { background-color: #6b4e32; color: #fff; }

.submenu { position: relative; }

.submenu-contenido {
  display: none; position: absolute;
  background-color: rgba(255,255,255,0.97);
  border-radius: 8px; box-shadow: 0 3px 6px rgba(0,0,0,0.3);
  top: 100%; left: 0; min-width: 180px; z-index: 9999;
}

.submenu:hover .submenu-contenido { display: block; }

.submenu-contenido a { display: block; padding: 10px; color: #6b4e32; text-decoration: none; }
.submenu-contenido a:hover { background-color: #a97c50; color: #fff; }

/* FIX: "Experiencias ▼" nunca hereda el estilo .activo del hijo */
.submenu > a { background-color: transparent !important; color: #6b4e32 !important; }
.submenu > a:hover { background-color: #6b4e32 !important; color: #fff !important; }

.btn-hamburguesa-nav {
  display: none; background: none; border: 2px solid #6b4e32;
  border-radius: 8px; font-size: 26px; color: #6b4e32;
  cursor: pointer; padding: 4px 10px; line-height: 1; flex-shrink: 0;
}

.redes {
  position: fixed; right: 18px; bottom: 120px;
  display: flex; flex-direction: column; gap: 14px; z-index: 1000;
  background: transparent !important; border: none !important;
  padding: 0 !important; margin: 0 !important;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.redes a {
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; background: transparent !important;
  border: none !important; padding: 0 !important; margin: 0 !important;
}

.redes a img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  background: transparent !important; box-shadow: none !important;
  transition: transform 0.3s ease;
}

.redes a img:hover { transform: scale(1.15) translateX(-5px); box-shadow: 0 12px 28px rgba(0,0,0,0.35) !important; }
.redes a img:active { transform: scale(1.05) translateX(-6px); }
.redes a { animation: redesFadeIn 0.6s ease forwards; }

@keyframes redesFadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.wa-box {
  position: fixed; right: 90px; bottom: 140px; width: 300px;
  background: #f4f6f8; border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0,0,0,.35);
  opacity: 0; pointer-events: none; transform: translateX(20px);
  transition: all .35s ease; z-index: 9999;
}

.wa-box.active { opacity: 1; pointer-events: auto; transform: translateX(0); }
.wa-box, .wa-box * { box-sizing: border-box; font-family: Arial, sans-serif; }

.wa-header {
  background: #25d366; color: white; padding: 14px 16px;
  border-radius: 16px 16px 0 0; font-weight: bold;
  display: flex; justify-content: space-between;
}

.wa-close { cursor: pointer; font-size: 20px; }
.wa-content { padding: 16px; }

.wa-bubble {
  background: white; padding: 12px 14px; border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,.15); margin-bottom: 14px;
}

.wa-button {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; background: #25d366; color: white; padding: 12px;
  border-radius: 25px; text-decoration: none; font-weight: bold;
}

.wa-button img { width: 18px; }

.hero-camping-nuevo {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 8% 80px; overflow: hidden; margin-top: 110px;
}

.hero-img-bg {
  position: absolute; inset: -10% 0 -10% 0;
  background-image: url('/meraki/PROYECTO_MERAKI/proyectoMERAKI-main/fotos/meraki8.jpeg');
  background-size: cover; background-position: center;
  transform: scale(1.08); will-change: transform; z-index: 0;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,8,5,0.88) 0%, rgba(10,8,5,0.55) 50%, rgba(10,8,5,0.2) 100%);
  z-index: 1;
}

.hero-texto { position: relative; z-index: 2; max-width: 680px; color: white; }

.hero-tag {
  display: inline-block; background: #c9a14a; color: #1a1008;
  padding: 6px 20px; border-radius: 30px; font-size: 0.82rem;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px;
}

.hero-texto h1 {
  font-family: 'Playfair Display', serif; font-size: 58px;
  line-height: 1.1; margin-bottom: 22px; animation: fadeUp 1.2s ease forwards;
}

.hero-texto p {
  font-size: 17px; line-height: 1.7; margin-bottom: 34px;
  opacity: 0; animation: fadeUp 1.8s ease forwards; color: rgba(255,255,255,0.88);
}

.btn-camping {
  background: #c9a14a; color: #1a1008; padding: 15px 38px;
  border-radius: 40px; text-decoration: none; font-weight: 700; font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 8px 25px rgba(201,161,74,0.4); display: inline-block;
}

.btn-camping:hover {
  background: #e0b85c; transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 35px rgba(201,161,74,0.5);
}

.hero-cards {
  position: relative; z-index: 2; margin-top: 50px;
  display: flex; gap: 20px; flex-wrap: wrap;
}

.mini-card {
  background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15); color: white;
  padding: 16px 28px; border-radius: 20px; font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3); animation: float 4s ease-in-out infinite;
}

.mini-card:nth-child(2) { animation-delay: 1s; }
.mini-card:nth-child(3) { animation-delay: 2s; }

.hero-scroll-arrow {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%); font-size: 2.4rem;
  color: rgba(255,255,255,0.5); z-index: 2;
  animation: bounceDown 2s ease-in-out infinite; cursor: pointer;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50%       { transform: translateX(-50%) translateY(10px); opacity: 1; }
}

@keyframes fadeUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.incluye { padding: 100px 10%; text-align: center; background: #f4efe9; }

.incluye h2 {
  font-family: 'Playfair Display', serif; font-size: 40px;
  margin-bottom: 60px; color: #3e2f23;
}

.grid-incluye {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 30px;
}

.card {
  background: white; padding: 28px; border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.07); font-weight: 600; font-size: 1.05rem;
  border-top: 4px solid #c9a14a; opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.card.visible { opacity: 1; transform: translateY(0); }
.card:hover { box-shadow: 0 18px 40px rgba(0,0,0,0.13); transform: translateY(-6px); }
.card span { display: block; margin-top: 10px; font-weight: 300; font-size: 14px; color: #666; }

.galeria-pro { padding: 100px 8%; text-align: center; background: #eae4db; }

.galeria-pro h2 {
  font-family: 'Playfair Display', serif; font-size: 40px;
  margin-bottom: 60px; color: #3e2f23;
}

.grid-galeria-pro {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px;
}

.card-foto {
  position: relative; border-radius: 25px; overflow: hidden;
  cursor: pointer; box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease 0.1s, box-shadow 0.4s ease;
}

.card-foto.visible { opacity: 1; transform: translateY(0); }
.card-foto img { width: 100%; height: 320px; object-fit: cover; transition: transform 0.6s ease; display: block; }

.overlay-foto {
  position: absolute; bottom: 0; width: 100%; padding: 25px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: white; transform: translateY(100%); transition: transform 0.45s ease;
}

.overlay-foto h3 { margin: 0; font-size: 18px; }
.card-foto:hover { transform: translateY(-12px) scale(1.02); box-shadow: 0 30px 60px rgba(0,0,0,0.25); }
.card-foto:hover img { transform: scale(1.1); }
.card-foto:hover .overlay-foto { transform: translateY(0); }

.cta-final {
  background: linear-gradient(135deg, #2e4a3e, #3e5c4d);
  color: white; padding: 110px 10%; text-align: center;
}

.cta-final h2 {
  font-family: 'Playfair Display', serif; font-size: 38px;
  margin-bottom: 35px; line-height: 1.3;
}

.btn-hero {
  display: inline-block; background: #c9a14a; color: #1a1008;
  padding: 16px 44px; border-radius: 40px; text-decoration: none;
  font-weight: 700; font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(201,161,74,0.4);
}

.btn-hero:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 18px 40px rgba(201,161,74,0.5); }

footer { background-color: #4e3620; color: #f5f0e1; padding: 20px; }
.footer-contenido { text-align: center; }

.footer-columna {
  display: inline-block; width: 22%; vertical-align: top; margin: 10px; text-align: left;
}

.footer-columna h3 { color: #c89b3c; margin-bottom: 8px; }
.footer-columna a  { color: #f5f0e1; text-decoration: none; }
.footer-columna a:hover { color: #c89b3c; }

.footer-final {
  text-align: center; border-top: 1px solid #c89b3c;
  margin-top: 20px; padding-top: 10px; font-size: 14px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1024px) {
  header { height: 70px; padding: 0 20px; }

  .barra-navegacion { width: 100%; max-width: 100%; justify-content: space-between; gap: 0; }
  .logo { height: 54px; }
  .btn-hamburguesa-nav { display: flex; align-items: center; }

  nav.menu {
    display: none; flex-direction: column; align-items: stretch;
    position: fixed; top: 70px; left: 0; width: 100%; background: white;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15); padding: 6px 0 14px 0;
    z-index: 990; max-height: calc(100vh - 70px); overflow-y: auto; gap: 0;
  }

  nav.menu.abierto { display: flex; }

  nav.menu > a {
    display: block; width: 100%; padding: 14px 24px;
    border-radius: 0; font-size: 15px; border-bottom: 1px solid #f0e8de;
  }

  nav.menu > a:hover,
  nav.menu > a.activo { background-color: #6b4e32; color: #fff; border-radius: 0; }

  nav.menu .submenu { width: 100%; }

  /* FIX móvil */
  nav.menu .submenu > a,
  nav.menu .submenu > a:hover,
  nav.menu .submenu > a.activo {
    display: block; width: 100%; padding: 14px 24px;
    border-radius: 0 !important; font-size: 15px;
    border-bottom: 1px solid #f0e8de;
    color: #6b4e32 !important; font-weight: bold;
    text-decoration: none; background-color: transparent !important; background: transparent !important;
  }

  nav.menu .submenu:hover .submenu-contenido { display: none; }
  nav.menu .submenu.activo .submenu-contenido { display: block !important; }

  nav.menu .submenu-contenido {
    position: static; box-shadow: none; border-radius: 0;
    background: #faf6f1; min-width: 100%;
  }

  nav.menu .submenu-contenido a {
    padding: 12px 44px; border-bottom: 1px solid #ede6dc;
    font-size: 14px; color: #6b4e32;
  }

  nav.menu .submenu-contenido a:hover { background-color: #a97c50; color: #fff; }

  .hero-camping-nuevo { margin-top: 70px; padding: 0 6% 60px; }
  .hero-texto h1 { font-size: 2.6rem; }
  .hero-texto p  { font-size: 15px; }

  .incluye    { padding: 70px 6%; }
  .galeria-pro{ padding: 70px 6%; }
  .cta-final  { padding: 70px 6%; }
  .cta-final h2 { font-size: 2rem; }

  .footer-columna { width: 45%; }
  .redes { right: 10px; bottom: 80px; gap: 10px; }
  .redes a img { width: 34px; height: 34px; }
  .wa-box { right: 55px; bottom: 80px; width: 260px; }
}

@media (max-width: 768px) {
  .hero-texto h1 { font-size: 2rem; }
  .hero-texto p  { font-size: 14px; }
  .hero-cards    { gap: 12px; }
  .mini-card     { padding: 12px 20px; font-size: 0.88rem; }

  .incluye h2, .galeria-pro h2, .cta-final h2 { font-size: 1.8rem; }
  .card-foto img { height: 240px; }

  .footer-columna { width: 100%; text-align: center; margin: 8px 0; }
  .redes { right: 8px; bottom: 50px; }
  .redes a img { width: 30px; height: 30px; }
  .wa-box { right: 48px; bottom: 50px; width: 240px; }
}

@media (max-width: 480px) {
  .hero-texto h1 { font-size: 1.7rem; }
  .hero-tag      { font-size: 0.72rem; }
  .btn-camping, .btn-hero { padding: 13px 28px; font-size: 0.9rem; }

  .incluye    { padding: 50px 5%; }
  .galeria-pro{ padding: 50px 5%; }
  .cta-final  { padding: 50px 5%; }
  .cta-final h2 { font-size: 1.5rem; }

  .card-foto img { height: 200px; }

  footer { padding: 15px 10px; }
  .footer-columna { font-size: 13px; }
  .footer-final   { font-size: 12px; }
  .redes { right: 6px; bottom: 30px; }
  .redes a img { width: 26px; height: 26px; }
  .wa-box { right: 42px; bottom: 30px; width: 230px; }
}