:root {
    --verde: #1f3d36;
    --dorado: #b08d57;
    --claro: #f6f4ef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif !important;
    background: var(--claro);
    overflow-x: hidden;
}

/* ===== ENCABEZADO ===== */
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;
}

header.oculto {
  transform: translateY(-100%);
}

body {
  padding-top: 110px;
}

/* ===== BARRA DE NAVEGACIÓN ===== */
.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;
}

/* ===== 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Ú ===== */
.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;
}

/* ===== BOTÓN HAMBURGUESA NAVBAR ===== */
.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 {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 110%;
    object-fit: cover;
    position: absolute;
    top: -5%;
    transition: transform 5s ease;
}

.hero:hover .hero-img {
    transform: scale(1.08);
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,.6), rgba(0,0,0,.4));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    animation: fadeUp 1.2s ease;
    padding: 0 20px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    letter-spacing: 2px;
    line-height: 1.2;
}

.hero p {
    margin-top: 20px;
    font-size: 1.3rem;
}

/* ===== TÍTULOS ===== */
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;
}

/* ===== HISTORIA ===== */
.historia {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 80px 10%;
}

.historia img {
    width: 450px;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,.2);
}

.historia .texto {
    max-width: 600px;
}

/* ===== GALERÍA ===== */
.galeria {
    padding: 120px 10%;
    text-align: center;
}

.slider {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,.3);
}

.slides {
    display: flex;
    transition: transform .6s ease;
}

.slides img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    flex-shrink: 0;
    filter: brightness(.85);
    transition: .6s ease;
}

.slides img:hover {
    filter: brightness(1);
    transform: scale(1.03);
}

/* Botones slider */
.slider button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(31,61,54,.8);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    z-index: 10;
}

.slider .prev { left: 20px; }
.slider .next { right: 20px; }

/* ===== FILOSOFÍA ===== */
.filosofia {
    padding: 120px 10%;
    text-align: center;
}

.cards {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 30px;
    width: 280px;
    box-shadow: 0 25px 60px rgba(0,0,0,.15);
    transition: .4s;
}

.card:hover {
    transform: translateY(-15px) scale(1.05);
}

/* ===== EXPERIENCIA EXTRA ===== */
.experiencia-extra {
    height: 70vh;
    background-color: #3a2e24;
    background-image: url("/meraki/PROYECTO_MERAKI/proyectoMERAKI-main/fotos/miradorr.jpg");
    background-position: center;
    background-size: cover;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.experiencia-extra::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.6);
}

.experiencia-texto {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

/* ===== EVENTOS ===== */
.eventos-meraki {
    padding: 120px 10%;
    text-align: center;
    background: white;
}

.eventos-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.evento {
    background: var(--claro);
    padding: 40px;
    border-radius: 25px;
    width: 280px;
    transition: .4s;
    box-shadow: 0 20px 50px rgba(0,0,0,.1);
}

.evento:hover {
    transform: translateY(-15px);
}

/* ===== CTA ===== */
.cta {
    background: var(--verde);
    padding: 100px 10%;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.btn-reserva {
    display: inline-block;
    background: var(--dorado);
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: .3s;
}

.btn-reserva:hover {
    transform: scale(1.1);
}

/* ===== ANIMACIONES ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== 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;
}


/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1024px) {

  header {
    height: 70px;
    padding: 0 20px;
  }

  body { padding-top: 70px; }

  .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%; }

  nav.menu .submenu > a {
    display: block;
    width: 100%;
    padding: 14px 24px;
    border-radius: 0;
    font-size: 15px;
    border-bottom: 1px solid #f0e8de;
    color: #6b4e32;
    font-weight: bold;
    text-decoration: none;
  }

  /* Fix submenú: evita que herede .activo del hijo */
  nav.menu .submenu > a,
  nav.menu .submenu > a:hover,
  nav.menu .submenu > a.activo {
    color: #6b4e32 !important;
    background-color: transparent !important;
    background: transparent !important;
    border-radius: 0 !important;
  }

  nav.menu .submenu:hover .submenu-contenido { display: none; }
  nav.menu .submenu.activo .submenu-contenido { display: block; }

  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;
  }

  /* En móvil, background-attachment: fixed causa el bug visual — se desactiva */
  .experiencia-extra {
    background-attachment: scroll;
  }

  .historia {
    flex-direction: column;
    padding: 60px 6%;
    gap: 30px;
  }

  .historia img { width: 100%; max-width: 500px; }

  .galeria { padding: 60px 5%; }
  .slides img { height: 350px; }

  .filosofia { padding: 60px 5%; }
  .eventos-meraki { padding: 60px 5%; }

  .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 h1 { font-size: 2.2rem; letter-spacing: 1px; }
  .hero p  { font-size: 1rem; }

  .historia { padding: 40px 5%; gap: 25px; }
  .historia img { width: 100%; }

  h2 { font-size: 2rem; }

  .galeria { padding: 40px 4%; }
  .slides img { height: 260px; }

  .cards { gap: 20px; }
  .card { width: 100%; max-width: 340px; padding: 30px 20px; }

  .experiencia-extra { height: auto; min-height: 300px; padding: 60px 20px; }

  .eventos-meraki { padding: 40px 5%; }
  .eventos-grid   { gap: 20px; }
  .evento { width: 100%; max-width: 340px; padding: 25px 20px; }

  .cta { padding: 60px 6%; }

  .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 h1 { font-size: 1.7rem; }
  .hero p  { font-size: 0.95rem; }

  h2 { font-size: 1.7rem; }

  .galeria { padding: 30px 3%; }
  .slides img { height: 200px; }

  .filosofia { padding: 30px 4%; }
  .card { padding: 25px 16px; }

  .eventos-meraki { padding: 30px 4%; }
  .evento { padding: 20px 16px; }

  .cta { padding: 50px 5%; }
  .btn-reserva { padding: 12px 28px; font-size: 14px; }

  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; }
}