/* ================================================================
   MIRADOR.CSS — Meraki Parque Temático
   ================================================================ */

:root {
  --verde:  #1f3d36;
  --dorado: #b08d57;
  --claro:  #f6f4ef;
  --cafe:   #6b4e32;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--claro);
  overflow-x: hidden;
}

/* ================================================================
   HEADER
   ================================================================ */
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.1);
}

header.oculto { transform: translateY(-100%); }

.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); }

/* ===== MENÚ PRINCIPAL ===== */
.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;
}

/* ===== SUBMENÚ DESKTOP ===== */
.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: el enlace padre "Experiencias ▼" nunca debe verse como activo
   aunque haya un hijo con .activo dentro */
.submenu > a {
  background-color: transparent !important;
  color: #6b4e32 !important;
}

.submenu > a:hover {
  background-color: #6b4e32 !important;
  color: #fff !important;
}

/* ===== BOTÓN HAMBURGUESA ===== */
.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 SOCIALES FIJAS ===== */
.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, box-shadow 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); }
}

/* ================================================================
   POPUP WHATSAPP
   ================================================================ */
.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
   ================================================================ */
.hero-mirador {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 8% 80px;
  overflow: hidden;
  margin-top: 110px; /* igual al header desktop */
}

.hero-img-bg {
  position: absolute;
  inset: -10% 0 -10% 0;
  background-image: url("/meraki/PROYECTO_MERAKI/proyectoMERAKI-main/fotos/meraki1.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-principal {
  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-principal: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 float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* ================================================================
   TÍTULOS GLOBALES
   ================================================================ */
h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: "";
  width: 60%;
  height: 4px;
  background: var(--dorado);
  display: block;
  margin: 10px auto 0;
  border-radius: 10px;
}

/* ================================================================
   ANIMACIONES SCROLL
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.25s; }
.delay-3 { transition-delay: 0.4s; }

/* ================================================================
   SHOWCASE
   ================================================================ */
.entorno-showcase {
  padding: 120px 8%;
  background: linear-gradient(to bottom, #ffffff, #d6e0d2);
  text-align: center;
}

.entorno-showcase > h2 { margin-bottom: 70px; }

.showcase-contenido {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

.showcase-cards {
  position: relative;
  width: 550px;
  height: 500px;
  flex-shrink: 0;
}

.show-card {
  position: absolute;
  width: 300px;
  height: 400px;
  border-radius: 35px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.18);
  transition: 0.7s ease;
  cursor: pointer;
}

.show-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 1.2s ease;
}

.show-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 55%);
}

.show-card .info {
  position: absolute;
  bottom: 25px;
  left: 25px;
  color: white;
  z-index: 2;
}

.show-card .info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
}

.card1 { left: 0;     top: 40px; z-index: 1; }
.card2 { left: 130px; top: 0;    z-index: 3; }
.card3 { left: 260px; top: 60px; z-index: 2; }

.show-card:hover { transform: translateY(-20px) scale(1.05); z-index: 5; }
.show-card:hover img { transform: scale(1.1); }

.texto-altura { max-width: 480px; text-align: left; }

.texto-altura h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  color: #2c221b;
  margin-bottom: 25px;
}

.texto-altura h2::after { margin: 10px 0 0; }

.texto-altura p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 18px;
}

/* ================================================================
   EXPERIENCIAS
   ================================================================ */
.experiencias {
  padding: 120px 8%;
  background: #ffffff;
  text-align: center;
}

.experiencias h2 { margin-bottom: 70px; }

.cards {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
  width: 300px;
  padding: 50px 30px;
  border-radius: 35px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.1);
  border: 1px solid #eee;
  transition: 0.4s ease;
}

.card:hover {
  background: white;
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 40px 80px rgba(0,0,0,0.13);
}

.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--verde);
  margin-bottom: 18px;
}

.card p { color: #666; line-height: 1.7; }

/* ================================================================
   CIERRE CTA
   ================================================================ */
.cierre {
  height: 70vh;
  background: url('/meraki/PROYECTO_MERAKI/proyectoMERAKI-main/fotos/meraki2.jpeg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cierre::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.58);
}

.cierre-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.cierre h2 {
  color: white;
  font-size: 3rem;
  font-family: 'Playfair Display', serif;
  margin-bottom: 35px;
}

.btn-hero {
  display: inline-block;
  background: var(--dorado);
  color: white;
  padding: 15px 38px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: 0.3s ease;
}

.btn-hero:hover { background: var(--verde); transform: scale(1.08); }

/* ================================================================
   FOOTER
   ================================================================ */
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;
}

/* ================================================================
   KEYFRAMES
   ================================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   RESPONSIVE ≤ 1024px
   ================================================================ */
@media (max-width: 1024px) {

  header { height: 70px; padding: 0 20px; }
  body { padding-top: 0; }

  .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;
    color: #6b4e32;
  }

  nav.menu > a:hover,
  nav.menu > a.activo {
    background-color: #6b4e32;
    color: #fff;
    border-radius: 0;
  }

  nav.menu .submenu { width: 100%; }

  /* FIX PRINCIPAL: "Experiencias ▼" siempre transparente y café en móvil */
  nav.menu .submenu > a,
  nav.menu .submenu > a:hover,
  nav.menu .submenu > a.activo,
  nav.menu .submenu > a#submenuToggle {
    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;
  }

  /* El submenú desplegable se muestra con clase .activo, no con hover */
  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: margin-top igual al header en móvil */
  .hero-mirador {
    margin-top: 70px;
    padding: 0 6% 60px;
  }

  .hero-texto h1 { font-size: 2.6rem; }
  .hero-texto p  { font-size: 15px; }
  .hero-cards { gap: 12px; }

  .showcase-contenido { flex-direction: column; gap: 60px; align-items: center; }
  .showcase-cards { width: 100%; max-width: 500px; height: 420px; }
  .show-card { width: 260px; height: 340px; }
  .card2 { left: 110px; }
  .card3 { left: 220px; top: 60px; }

  .texto-altura { text-align: center; }
  .texto-altura h2::after { margin: 10px auto 0; }

  .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; }
}

/* ================================================================
   RESPONSIVE ≤ 768px
   ================================================================ */
@media (max-width: 768px) {

  .hero-texto h1 { font-size: 2rem; }
  .hero-texto p  { font-size: 14px; }
  .mini-card { padding: 12px 20px; font-size: 0.88rem; }

  h2 { font-size: 2rem; }

  .entorno-showcase { padding: 70px 5%; }

  .showcase-cards { width: 100%; max-width: 360px; height: 360px; margin: 0 auto; }
  .show-card { width: 220px; height: 300px; border-radius: 25px; }
  .card1 { left: 0;   top: 30px; }
  .card2 { left: 80px; top: 0; }
  .card3 { left: 160px; top: 50px; }

  .experiencias { padding: 70px 5%; }
  .cards { gap: 24px; }
  .card { width: 100%; max-width: 340px; padding: 35px 22px; }

  .cierre { height: auto; min-height: 340px; padding: 60px 20px; }
  .cierre h2 { font-size: 2.2rem; }

  .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; }
}

/* ================================================================
   RESPONSIVE ≤ 480px
   ================================================================ */
@media (max-width: 480px) {

  .hero-texto h1 { font-size: 1.7rem; }
  .hero-tag { font-size: 0.72rem; }
  .btn-principal { padding: 13px 28px; font-size: 0.9rem; }

  h2 { font-size: 1.7rem; }

  .entorno-showcase { padding: 50px 4%; }

  .showcase-cards { max-width: 300px; height: 300px; }
  .show-card { width: 180px; height: 250px; border-radius: 20px; }
  .card1 { left: 0;    top: 25px; }
  .card2 { left: 60px; top: 0; }
  .card3 { left: 120px; top: 40px; }

  .experiencias { padding: 50px 4%; }
  .card { padding: 28px 16px; }

  .cierre { min-height: 280px; }
  .cierre h2 { font-size: 1.8rem; }
  .btn-hero { padding: 12px 28px; font-size: 0.9rem; }

  footer { padding: 25px 10px 15px; }
  .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: 220px; }
}