/* =============================================
   5OCÉANOS ZAHARA · Theme Stylesheet
   Paleta jade mediterránea
   ============================================= */

:root{
  --jade: #2d6a5f;
  --jade-dark: #1f4a42;
  --jade-vibrant: #3d8b7a;
  --sand: #efe4d2;
  --sand-light: #f7f0e2;
  --sand-dark: #d9c7a7;
  --cream: #faf6ee;
  --ink: #1a2622;
  --ink-soft: #3a4a44;
  --gold: #c89c5a;
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-open{ overflow: hidden; }
img{ max-width:100%; height:auto; display:block; }
a{ color: inherit; text-decoration: none; }

/* ========= UTILITIES ========= */
.container{ max-width: 1300px; margin: 0 auto; padding: 0 2rem; }
.container-narrow{ max-width: 800px; }

/* Typography helpers */
h1,h2,h3,h4,h5{
  font-family: 'Fraunces', serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
h1 em, h2 em, h3 em{
  font-style: italic;
  font-weight: 300;
  color: var(--jade-vibrant);
}
.eyebrow{
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--jade-vibrant);
  display: inline-block;
}
.eyebrow-light{ color: var(--sand-light); }

/* Reveal */
.reveal{
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.2,0.8,0.2,1), transform 0.9s cubic-bezier(0.2,0.8,0.2,1);
}
.reveal.in{ opacity: 1; transform: translateY(0); }

/* ========= BUTTONS ========= */
.btn{
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 2.2rem;
  border-radius: 100px;
  font-weight: 500; font-size: 0.9rem; letter-spacing: 0.05em;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-filled{
  background: var(--jade);
  color: var(--cream);
  border-color: var(--jade);
}
.btn-filled:hover{
  background: var(--jade-dark);
  border-color: var(--jade-dark);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(45,106,95,.3);
}
.btn-ghost{
  background: transparent;
  color: var(--cream);
  border-color: rgba(247,240,226,0.4);
}
.btn-ghost:hover{ background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-dark{
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.btn-dark:hover{ background: var(--jade); border-color: var(--jade); transform: translateY(-2px); }
.btn-cream{
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.btn-cream:hover{ background: var(--ink); color: var(--cream); transform: translateY(-2px); }

/* ========= HEADER / NAV ========= */
.site-header{
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: all 0.4s ease;
}
.site-header.scrolled{
  background: rgba(250,246,238,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(45,106,95,0.1);
}
.nav{
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.logo{
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 110;
  line-height: 0;
}
.logo-img{
  height: 48px;
  width: auto;
  display: block;
  transition: opacity 0.4s ease, height 0.3s ease;
}
.logo-img-dark{
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.site-header.scrolled .logo-img-light{ opacity: 0; }
.site-header.scrolled .logo-img-dark{ opacity: 1; }
.site-header.scrolled .logo-img{ height: 38px; }

.logo .custom-logo{
  height: 48px;
  width: auto;
  display: block;
  transition: height 0.3s ease, filter 0.3s ease;
}
.site-header.scrolled .logo .custom-logo{ height: 38px; }

/* Fallback de texto si no hay imagen */
.logo .logo-text{
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--cream);
  transition: color 0.3s;
}
.site-header.scrolled .logo-text{ color: var(--ink); }
.logo-text em{
  font-style: italic;
  font-weight: 300;
  color: var(--jade-vibrant);
}

.nav-links{
  display: flex; gap: 2.4rem;
  list-style: none;
  align-items: center;
  margin: 0;
}
.nav-links a{
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  position: relative;
  transition: color 0.3s;
}
.site-header.scrolled .nav-links a{ color: var(--ink); }
.nav-links a::after{
  content:""; position: absolute; bottom: -5px; left: 0;
  width: 0; height: 1px;
  background: var(--jade-vibrant);
  transition: width 0.3s ease;
}
.nav-links a:hover::after{ width: 100%; }

.nav-cta{
  background: var(--jade);
  color: var(--cream) !important;
  padding: 0.7rem 1.5rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: all 0.3s;
}
.nav-cta:hover{ background: var(--jade-dark); transform: translateY(-2px); }

/* Hamburger */
.menu-toggle{
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  z-index: 110;
}
.menu-toggle-line{
  display: block;
  width: 24px; height: 2px;
  background: var(--cream);
  margin: 5px 0;
  transition: all 0.3s;
}
.site-header.scrolled .menu-toggle-line{ background: var(--ink); }
.menu-toggle.open .menu-toggle-line:nth-child(1){ transform: translateY(7px) rotate(45deg); background: var(--ink); }
.menu-toggle.open .menu-toggle-line:nth-child(2){ opacity: 0; }
.menu-toggle.open .menu-toggle-line:nth-child(3){ transform: translateY(-7px) rotate(-45deg); background: var(--ink); }

/* Mobile menu overlay */
.mobile-menu{
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex; align-items: center; justify-content: center;
}
.mobile-menu.open{
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-inner{
  text-align: center;
  padding: 2rem;
}
.mobile-menu-logo{
  margin-bottom: 3rem;
  line-height: 0;
  display: flex;
  justify-content: center;
}
.mobile-menu-logo img{
  height: 56px;
  width: auto;
}
.mobile-menu-links{
  list-style: none;
  margin-bottom: 3rem;
}
.mobile-menu-links li{ margin-bottom: 1.5rem; }
.mobile-menu-links a{
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  color: var(--ink);
  font-weight: 400;
}
.mobile-menu-cta{ margin-bottom: 2rem; }
.mobile-menu-contact{
  display: flex; flex-direction: column; gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ========= HERO ========= */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  color: var(--cream);
  overflow: hidden;
  background-color: var(--ink); /* fallback mientras carga el vídeo */
}
.hero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;       /* llena toda la pantalla recortando lados */
  object-position: center;
  z-index: 0;
  pointer-events: none;
}
.hero-bg{
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(26,38,34,0.35) 0%, rgba(26,38,34,0.55) 60%, rgba(26,38,34,0.88) 100%),
    var(--hero-bg) center/cover no-repeat;
  z-index: 1;
}
/* Cuando hay vídeo cargando, el hero-bg actúa solo como overlay oscuro
   sobre el vídeo (no como imagen de fondo) */
.hero:has(.hero-video) .hero-bg{
  background:
    linear-gradient(180deg, rgba(26,38,34,0.35) 0%, rgba(26,38,34,0.55) 60%, rgba(26,38,34,0.88) 100%);
}
.hero .container{ position: relative; z-index: 2; }
.hero-content{
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 4rem;
}
.hero .eyebrow{
  margin-bottom: 1.8rem;
  display: block;
  opacity: 0;
  animation: ocFadeUp 1s 0.3s forwards;
}
.hero h1{
  font-size: clamp(3rem, 8vw, 7.5rem);
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: ocFadeUp 1.2s 0.5s forwards;
}
.hero h1 em{
  display: block;
  margin-top: -0.4rem;
  color: var(--sand-dark);
}
.hero-desc{
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  opacity: 0;
  animation: ocFadeUp 1s 0.8s forwards;
}
.hero-actions{
  display: flex; gap: 1rem; justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: ocFadeUp 1s 1s forwards;
}
.scroll-indicator{
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 0.8rem;
  color: var(--sand-light);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  z-index: 2;
  opacity: 0;
  animation: ocFadeUp 1s 1.5s forwards;
}
.scroll-line{
  width: 1px; height: 50px;
  background: linear-gradient(180deg, var(--sand-light), transparent);
  animation: ocScrollPulse 2s infinite;
}
@keyframes ocScrollPulse{
  0%,100%{ transform: scaleY(1); opacity: 0.6; }
  50%{ transform: scaleY(1.2); opacity: 1; }
}
@keyframes ocFadeUp{
  from{ opacity: 0; transform: translateY(30px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* ========= MARQUEE ========= */
.marquee{
  background: var(--jade);
  color: var(--cream);
  padding: 1.2rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(247,240,226,0.15);
  border-bottom: 1px solid rgba(247,240,226,0.15);
}
.marquee-track{
  display: flex; gap: 4rem;
  animation: ocScroll 35s linear infinite;
  white-space: nowrap;
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 300;
  width: max-content;
}
.marquee-track span{
  display: inline-flex; align-items: center; gap: 4rem;
}
.marquee-track span::after{
  content: "✦";
  color: var(--sand-dark);
  font-style: normal;
  font-size: 1rem;
}
@keyframes ocScroll{ to{ transform: translateX(-50%); } }

/* ========= FILOSOFÍA ========= */
.filosofia{
  padding: 8rem 0;
  background: var(--cream);
}
.filosofia-grid{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: center;
}
.filosofia-text .eyebrow{ margin-bottom: 1.5rem; }
.filosofia-text h2{
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  margin-bottom: 2rem;
  color: var(--ink);
}
.filosofia-text p{
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
.filosofia-imgs{
  position: relative;
  height: 600px;
}
.filosofia-video-wrap{
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(26,38,34,0.18);
  background: var(--ink);
}
.filosofia-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ========= EXPERIENCIAS ========= */
.experiencias{
  background: var(--sand);
  padding: 8rem 0;
}
.exp-header{
  margin-bottom: 5rem;
}
.exp-header h2{
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  margin-top: 1rem;
}
.exp-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.exp-card{
  background: var(--cream);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: 4px;
}
.exp-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(26,38,34,0.15);
}
.exp-img{
  height: 380px;
  position: relative;
  background-size: cover;
  background-position: center;
  transition: transform 1s;
}
.exp-card:hover .exp-img{ transform: scale(1.03); }
.exp-num{
  position: absolute;
  top: 1.2rem; left: 1.2rem;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--cream);
  background: rgba(61,139,122,0.92);
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.exp-content{ padding: 2rem; }
.exp-content h3{
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--ink);
}
.exp-content p{
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}
.exp-link{
  color: var(--jade-vibrant);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: gap 0.3s;
}
.exp-link:hover{ gap: 1rem; }

/* ========= QUOTE / CARRUSEL OPINIONES ========= */
.quote-section{
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  text-align: center;
  padding: 5rem 0;
  background:
    linear-gradient(rgba(26,38,34,0.55), rgba(26,38,34,0.55)),
    var(--quote-bg) center/cover fixed;
}
.quote-content{ max-width: 880px; margin: 0 auto; position: relative; }
.quote-mark{
  font-family: 'Fraunces', serif;
  font-size: 8rem;
  line-height: 0.5;
  color: var(--jade-vibrant);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.reviews-carousel{
  position: relative;
  min-height: 200px;
  margin-bottom: 2.5rem;
}
.review-slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  pointer-events: none;
}
.review-slide.is-active{
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.review-slide p{
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.45;
  margin-bottom: 2rem;
  color: var(--cream);
}
.quote-author{
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sand-dark);
}

.reviews-controls{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}
.review-arrow{
  background: transparent;
  border: 1px solid rgba(247,240,226,0.35);
  color: var(--cream);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.review-arrow:hover{
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
  transform: scale(1.05);
}
.review-arrow svg{
  width: 22px;
  height: 22px;
}
.review-dots{
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.review-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(247,240,226,0.35);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}
.review-dot:hover{ background: rgba(247,240,226,0.6); }
.review-dot.is-active{
  background: var(--cream);
  width: 24px;
  border-radius: 4px;
}

/* ========= CARTA (CTA hacia PDF) ========= */
.menu-section{
  padding: 8rem 0;
  background: var(--cream);
}
.menu-cta-wrap{
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.menu-cta-wrap .eyebrow{ margin-bottom: 1.5rem; display: inline-block; }
.menu-cta-wrap h2{
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  margin: 0 0 1.5rem;
}
.menu-cta-wrap > p{
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.8rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.menu-pdf-btn{
  font-size: 0.95rem;
}
.menu-pdf-btn svg{
  flex-shrink: 0;
}
.menu-note{
  margin-top: 1.5rem !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand-dark) !important;
  font-weight: 400;
}

/* ========= GALERÍA ========= */
.galeria{
  background: var(--ink);
  color: var(--cream);
  padding: 8rem 0;
}
.galeria-header{
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}
.galeria-header h2{
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  color: var(--cream);
}
.galeria-header p{
  color: var(--sand-dark);
  max-width: 380px;
  line-height: 1.7;
}
.galeria-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.galeria-item{
  background-size: cover;
  background-position: center;
  overflow: hidden;
  filter: grayscale(0.05);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: 4px;
  aspect-ratio: 16 / 10;
  cursor: pointer;
}
.galeria-item:hover{
  filter: grayscale(0);
  transform: scale(1.015);
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

/* ========= EVENTOS ========= */
.eventos{
  background: var(--sand-light);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}
.eventos-media{
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.eventos-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.eventos-content{
  padding: 6rem 5rem;
  display: flex; flex-direction: column;
  justify-content: center;
}
.eventos-content h2{
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin: 1.5rem 0 1.8rem;
  color: var(--ink);
}
.eventos-content > p{
  color: var(--ink-soft);
  margin-bottom: 1rem;
  line-height: 1.7;
}
.eventos-list{
  list-style: none;
  margin: 1.5rem 0 2.5rem;
}
.eventos-list li{
  display: flex; align-items: center; gap: 1rem;
  padding: 0.6rem 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(45,106,95,0.15);
}
.eventos-list li::before{
  content:"";
  width: 6px; height: 6px;
  background: var(--jade-vibrant);
  border-radius: 50%;
  flex-shrink: 0;
}
.eventos-content .btn{ align-self: flex-start; }

/* ========= CTA FINAL + CONTACTO ========= */
.cta-final{
  padding: 7rem 0;
  background: var(--jade);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.cta-final::before{
  content:"";
  position: absolute;
  top: -50%; left: -10%;
  width: 120%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(247,240,226,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.cta-grid{
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
}
.cta-text{ text-align: left; }
.cta-text .eyebrow{
  margin-bottom: 1.5rem;
  display: block;
}
.cta-text h2{
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  margin-bottom: 1.5rem;
  line-height: 1.05;
}
.cta-text h2 em{ color: var(--sand-dark); }
.cta-text p{
  font-size: 1.05rem;
  margin-bottom: 2rem;
  color: var(--sand-light);
  max-width: 480px;
}

.cta-info{
  display: grid;
  gap: 2rem;
  border-left: 1px solid rgba(247,240,226,0.18);
  padding-left: 3rem;
}
.cta-info-block h5{
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--sand-dark);
  margin-bottom: 0.5rem;
}
.cta-info-block p{
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.5;
  margin: 0;
}
.cta-info-block a{
  color: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.cta-info-block a:hover{ border-bottom-color: var(--sand-dark); }

.directions-link{
  display: inline-block;
  margin-top: 0.8rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--cream) !important;
  border-bottom: 1px solid var(--sand-dark) !important;
  padding-bottom: 2px;
  transition: all 0.3s ease;
}
.directions-link:hover{
  color: var(--sand-dark) !important;
  transform: translateX(4px);
}

.cta-map{
  position: relative;
  margin-top: 4rem;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}
.cta-map iframe{
  display: block;
  filter: saturate(0.9);
}

/* ========= FOOTER ========= */
.site-footer{
  background: var(--ink);
  color: var(--sand-dark);
  padding: 5rem 0 2rem;
}
.footer-grid{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.footer-brand .footer-logo{
  display: inline-block;
  margin-bottom: 1.5rem;
  line-height: 0;
}
.footer-brand .footer-logo img{
  height: 56px;
  width: auto;
  display: block;
}
.footer-tagline{
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 320px;
}
.site-footer h5{
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cream);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.site-footer ul{ list-style: none; }
.site-footer ul li{ margin-bottom: 0.7rem; }
.site-footer ul a{
  color: var(--sand-dark);
  font-size: 0.9rem;
  transition: color 0.3s;
}
.site-footer ul a:hover{ color: var(--jade-vibrant); }
.social-list a{
  display: inline-flex; align-items: center; gap: 0.7rem;
}
.social-list svg{
  width: 18px; height: 18px;
  color: var(--sand-dark);
  transition: color 0.3s;
}
.social-list a:hover svg{ color: var(--jade-vibrant); }
.footer-bottom{
  padding-top: 2rem;
  border-top: 1px solid rgba(217,199,167,0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(217,199,167,0.6);
}
.footer-bottom a{ color: rgba(217,199,167,0.7); }
.footer-bottom a:hover{ color: var(--jade-vibrant); }

/* ========= LEGAL PAGES ========= */
.legal-page{
  padding: 160px 0 100px;
  background: var(--cream);
}
.legal-title{
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin: 1.5rem 0 3rem;
}
.legal-content{
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-soft);
}
.legal-intro{
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--sand-dark);
}
.legal-content h2{
  font-size: 1.5rem;
  color: var(--ink);
  margin: 2.5rem 0 1rem;
  font-weight: 500;
}
.legal-content p{ margin-bottom: 1.2rem; }
.legal-list{
  list-style: none;
  margin: 1rem 0 1.5rem;
  padding-left: 0;
}
.legal-list li{
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--sand-dark);
}
.legal-list li:last-child{ border-bottom: 0; }
.legal-list strong{ color: var(--ink); }

/* ========= RESPONSIVE ========= */

/* Tablet horizontal y desktop pequeño (980px - 1100px) — afinar paddings */
@media (max-width: 1100px){
  .container{ padding: 0 1.8rem; }
  .filosofia-grid{ gap: 4rem; }
  .exp-grid{ gap: 1.5rem; }
}

/* Tablet (768px - 980px) — apilar grids principales */
@media (max-width: 980px){
  .nav-links, .nav-cta{ display: none; }
  .menu-toggle{ display: block; }
  .logo-img, .logo .custom-logo{ height: 40px; }
  .site-header.scrolled .logo-img, .site-header.scrolled .logo .custom-logo{ height: 34px; }
  .site-header{ padding: 1.2rem 0; }
  .site-header.scrolled{ padding: 0.8rem 0; }

  .filosofia-grid{ grid-template-columns: 1fr; gap: 3rem; }
  .filosofia-imgs{ height: 480px; max-width: 480px; margin: 0 auto; }
  .exp-grid{ grid-template-columns: 1fr 1fr; }
  .galeria-grid{ grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .eventos{ grid-template-columns: 1fr; }
  .eventos-media{ min-height: 360px; aspect-ratio: 9/16; }
  .eventos-content{ padding: 4rem 2rem; }

  .footer-grid{ grid-template-columns: 1fr 1fr 1fr; gap: 2.5rem; }
  .cta-grid{ grid-template-columns: 1fr; gap: 3rem; }
  .cta-info{ border-left: 0; padding-left: 0; border-top: 1px solid rgba(247,240,226,0.18); padding-top: 3rem; }

  .cta-map iframe{ height: 360px; }
  .filosofia, .experiencias, .menu-section, .galeria{ padding: 5rem 0; }
}

/* Móvil grande (601px - 768px) */
@media (max-width: 768px){
  .exp-grid{ grid-template-columns: 1fr; gap: 1.5rem; }
  .filosofia-imgs{ height: 420px; }
  .footer-grid{ grid-template-columns: 1fr 1fr; gap: 2rem; }
  .cta-map iframe{ height: 300px; }
  .reviews-controls{ gap: 1rem; }
  .review-arrow{ width: 42px; height: 42px; }
}

/* Móvil pequeño (≤600px) */
@media (max-width: 600px){
  .container{ padding: 0 1.25rem; }

  /* En móvil también se muestran los vídeos.
     El poster queda como respaldo mientras carga o si el navegador bloquea autoplay. */
  .hero-video{ display: block; }
  .hero .hero-bg{
    background:
      linear-gradient(180deg, rgba(26,38,34,0.35) 0%, rgba(26,38,34,0.55) 60%, rgba(26,38,34,0.88) 100%);
  }
  .filosofia-video,
  .eventos-video{ display: block; }
  .filosofia-video-wrap{ background-size: cover; background-position: center; }
  .eventos-media{ background-size: cover; background-position: center; min-height: 420px; aspect-ratio: 9/16; }

  .hero{ min-height: 90vh; }
  .hero h1{ font-size: clamp(2.4rem, 11vw, 4rem); }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .hero-actions .btn{ justify-content: center; width: 100%; }

  .filosofia-imgs{ height: 360px; max-width: 100%; }

  .footer-grid{ grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom{ flex-direction: column; }
  .galeria-grid{ grid-template-columns: 1fr; gap: 0.8rem; }
  .galeria-item{ aspect-ratio: 4/3; }

  .cta-map iframe{ height: 260px; }
  .cta-text h2{ font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .reviews-controls{ flex-wrap: wrap; }

  .filosofia, .experiencias, .menu-section, .galeria, .cta-final{ padding: 4rem 0; }
}


/* ========= FIX V6: vídeos visibles en móvil ========= */
/* Evita que los bloques de vídeo colapsen o queden invisibles en Safari/iPhone. */
.filosofia-imgs,
.filosofia-video-wrap,
.eventos-media{
  display: block;
}

.filosofia-video,
.eventos-video{
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: transparent;
}

@media (max-width: 980px){
  .filosofia-grid{
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .filosofia-imgs{
    width: 100%;
    max-width: 560px;
    min-height: 380px;
    height: min(70vh, 520px);
    margin: 0 auto;
  }

  .filosofia-video-wrap{
    width: 100%;
    height: 100%;
    min-height: 380px;
  }

  .eventos-media{
    width: 100%;
    min-height: 420px;
    height: min(80vh, 620px);
  }
}

@media (max-width: 600px){
  .filosofia-imgs{
    min-height: 360px;
    height: 62vh;
    max-width: 100%;
  }

  .filosofia-video-wrap{
    min-height: 360px;
  }

  .eventos-media{
    min-height: 420px;
    height: 70vh;
  }

  /* En móvil no dependemos de IntersectionObserver para que aparezca el vídeo. */
  .filosofia-imgs.reveal,
  .eventos-content.reveal{
    opacity: 1;
    transform: none;
  }
}

/* ========= ACCESSIBILITY ========= */
/* Respetar la preferencia del usuario de reducir movimiento */
@media (prefers-reduced-motion: reduce){
  .hero-video{ display: none; }
  .hero .hero-bg{
    background:
      linear-gradient(180deg, rgba(26,38,34,0.35) 0%, rgba(26,38,34,0.55) 60%, rgba(26,38,34,0.88) 100%),
      var(--hero-bg) center/cover no-repeat;
  }
  .eventos-video{ display: block; }
  .eventos-video{ animation: none !important; }
  .reveal{ opacity: 1; transform: none; transition: none; }
  .scroll-line{ animation: none; }
  *{ animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


/* Ahorrar datos en conexiones limitadas: se muestran posters en lugar de vídeos. */
@media (prefers-reduced-data: reduce){
  .hero-video{ display: none; }
  .eventos-video{ display: block; }
  .hero .hero-bg{
    background:
      linear-gradient(180deg, rgba(26,38,34,0.35) 0%, rgba(26,38,34,0.55) 60%, rgba(26,38,34,0.88) 100%),
      var(--hero-bg) center/cover no-repeat;
  }
}


/* V6: aunque el sistema pida ahorro de datos, los vídeos de contenido se mantienen visibles;
   el poster queda como respaldo mientras cargan. */
@media (prefers-reduced-data: reduce){
  .filosofia-video, .eventos-video{ display: block !important; }
}
