/* =============================================
   VIBRAS × MANDALA — sections.css
   Estilos por sección
   ============================================= */

/* ---- Base de sección ---- */
.section {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-margin-top: var(--nav-h);
}

@supports not (min-height: 100dvh) {
  .section { min-height: 100vh; }
}

.section-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 1rem) 48px 3rem;
}

/* =============================================
   SECCIÓN 1: HERO
   ============================================= */
#section-home {
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Placeholder hasta tener la foto real */
.hero-bg-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #F3DAFE 0%, #EDD0FF 40%, #F9EAFF 100%);
}

/* Video hero */
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Tinte de color de marca sobre el video */
.hero-bg-tint {
  position: absolute;
  inset: 0;
  /* sin overlay: video limpio y nítido */
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-video { display: none; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* solo sombra mínima en el fondo para el scroll indicator */
  background: linear-gradient(to bottom,
    transparent 0%,
    transparent 70%,
    rgba(13,11,18,0.35) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 100dvh;
  padding: 0 48px;
  padding-top: var(--nav-h);
  max-width: 900px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 900;
  font-style: italic;
  line-height: 0.95;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}

.hero-headline .line {
  display: block;
  overflow: hidden;
}

.hero-headline .line-inner {
  display: block;
  transform: translateY(100%);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-headline .line-inner.visible {
  transform: translateY(0);
}

.hero-sub {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 300;
  color: var(--text-on-dark);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-indicator-text {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  writing-mode: horizontal-tb;
}

.scroll-indicator-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* Ondas decorativas hero */
.hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  opacity: 0.12;
  pointer-events: none;
}

/* =============================================
   SECCIÓN 2: EXPERIENCIAS
   ============================================= */
#section-experiencias {
  background: linear-gradient(160deg, #EDD0FF 0%, #DDB8FF 30%, #C7A6FE 60%, #B0A0F8 100%);
  min-height: auto;
}

#section-experiencias .section-inner {
  max-width: 1280px;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1.05;
  color: var(--v-dark);
  letter-spacing: -0.02em;
  margin-top: 0.75rem;
}

.section-sub {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
  margin-top: 1rem;
}

/* Grid de experiencias */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ---- Tarjeta de experiencia: glassmorphism format ---- */
.exp-card {
  display: block;
  text-decoration: none;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  height: 340px;
  padding: 0;
  background: #0D0B12;
  border: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22), inset 0 0 0 0.5px rgba(255,255,255,0.08);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease);
  cursor: pointer;
}

.exp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

/* Imagen de fondo — ocupa todo el card */
.exp-card-img { display: contents; }

.exp-card-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s var(--ease);
}

.exp-card:hover .exp-card-bg-img {
  transform: scale(1.06);
}

/* Badge descuento — arriba izquierda */
.exp-badge-dcto {
  position: absolute;
  top: 12px; left: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: 100px;
  background: #EDE7F6; color: #3A0878;
  font-family: var(--font-ui);
  font-size: 10.5px; font-weight: 900;
  letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: 0 3px 14px rgba(80,20,160,0.25);
  white-space: nowrap;
}

/* Badge ubicación — arriba derecha */
.exp-badge-loc {
  position: absolute;
  top: 12px; right: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 11px; border-radius: 100px;
  background: rgba(10,8,6,0.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.92);
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 500;
  white-space: nowrap;
}

/* Área glass inferior */
.exp-card-glass {
  position: absolute;
  bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 15px 16px 17px;
  height: 150px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  backdrop-filter: blur(20px) saturate(1.8) brightness(0.78);
  -webkit-backdrop-filter: blur(20px) saturate(1.8) brightness(0.78);
  background: rgba(14, 7, 3, 0.44);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.exp-card-glass::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  opacity: 0.06; mix-blend-mode: overlay; pointer-events: none;
}

/* Nombre del servicio */
.exp-card-body { display: none; }

.exp-card-name {
  position: relative;
  font-family: var(--font-display);
  font-size: 19px; font-style: italic; font-weight: 700;
  color: #fff; line-height: 1.2; margin: 0 0 10px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* Fila precio + botón */
.exp-price-row {
  position: relative;
  display: flex; align-items: flex-end; justify-content: space-between;
}

.exp-price-block { display: flex; flex-direction: column; gap: 1px; }

.exp-price-label {
  font-family: var(--font-ui);
  font-size: 9px; font-weight: 500;
  color: rgba(255,255,255,0.40);
  text-transform: uppercase; letter-spacing: 0.14em;
}

.exp-price-main {
  font-family: var(--font-display);
  font-size: 30px; font-style: italic; font-weight: 800;
  color: #fff; line-height: 1; letter-spacing: -0.02em;
}

.exp-price-antes {
  font-family: var(--font-ui);
  font-size: 10.5px; color: rgba(255,255,255,0.40); margin-top: 2px;
}
.exp-price-antes s { text-decoration-color: rgba(255,255,255,0.30); }

/* Botón reservar */
.exp-btn-reservar {
  display: inline-block;
  padding: 8px 13px; border-radius: 100px;
  border: 1.5px solid rgba(219,148,242,0.42);
  background: rgba(219,148,242,0.12); color: #DB94F2;
  font-family: var(--font-ui);
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.25s, border-color 0.25s;
}
.exp-card:hover .exp-btn-reservar {
  background: rgba(219,148,242,0.25);
  border-color: rgba(219,148,242,0.72);
  color: #fff;
}

/* Nota de descuento */
.exp-dcto-note {
  position: relative;
  display: flex; align-items: center; gap: 5px;
  margin-top: 9px; padding: 6px 10px; border-radius: 8px;
  background: rgba(219,148,242,0.09);
  border: 1px solid rgba(219,148,242,0.20);
  font-family: var(--font-ui);
  font-size: 10px; color: rgba(219,148,242,0.75); line-height: 1.35;
  white-space: nowrap; overflow: hidden;
}
.exp-dcto-note svg { flex-shrink: 0; }
.exp-dcto-note strong { color: rgba(219,148,242,1); font-weight: 700; }

/* Placeholder cuando no hay imagen */
.exp-card-bg-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.exp-card-bg-placeholder.vibras  { background: linear-gradient(135deg, #C7A6FE 0%, #552359 100%); }
.exp-card-bg-placeholder.mandala { background: linear-gradient(135deg, #67B7E6 0%, #1E399F 100%); }
.exp-card-icon { font-size: 36px; line-height: 1; opacity: 0.5; }

/* =============================================
   SECCIÓN 3: LAS MARCAS
   ============================================= */
#section-marcas {
  padding: 0;
}

.brands-container {
  display: flex;
  width: 100%;
  height: 100dvh;
}

@supports not (height: 100dvh) {
  .brands-container { height: 100vh; }
}

.brand-half {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: flex 0.5s ease;
  cursor: pointer;
}

.brands-container { overflow: hidden; }
.brands-container:has(.brand-half:nth-child(1):hover) .brand-half:nth-child(1) { flex: 1; }
.brands-container:has(.brand-half:nth-child(1):hover) .brand-half:nth-child(2) { flex: 0; overflow: hidden; }
.brands-container:has(.brand-half:nth-child(2):hover) .brand-half:nth-child(2) { flex: 1; }
.brands-container:has(.brand-half:nth-child(2):hover) .brand-half:nth-child(1) { flex: 0; overflow: hidden; }

.brand-half-vibras {
  background: linear-gradient(135deg, #3a0f40 0%, var(--v-dark) 40%, var(--v-slate) 100%);
}

.brand-half-mandala {
  background: linear-gradient(135deg, #0d1f55 0%, var(--m-royal) 40%, var(--m-mid) 100%);
}

/* Textura de ondas */
.brand-texture {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
}

.brand-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  gap: 1.25rem;
  max-width: 380px;
}

.brand-logo-area {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.brand-logo-placeholder {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px);
  font-style: italic;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1.1;
}

/* Logo SVG real */
.brand-logo-svg {
  height: 90px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  mix-blend-mode: screen;
}

.brand-tagline {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-style: italic;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.brand-desc {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  padding: 0.65rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 100px;
  transition: all 0.3s var(--ease);
  margin-top: 0.5rem;
}

.brand-link:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.7);
}

/* Divisor vertical */
.brand-divider {
  position: absolute;
  left: 50%;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: var(--border-on-dark);
  z-index: 3;
  pointer-events: none;
}

/* =============================================
   SECCIÓN 4: SEDES — MAPA INTERACTIVO PERÚ
   ============================================= */
#section-sedes {
  background: var(--bg2);
}

.sedes-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Sedes no usa snap forzado */
#section-sedes {
  background: linear-gradient(135deg, #C7A6FE 0%, #A89EF0 25%, #8FA8E8 50%, #7EC4F0 75%, #9BB8F8 100%);
  scroll-snap-align: start;
  min-height: auto;
  padding-top: 0;
  padding-bottom: 0;
}

/* Mapa SVG de Perú */
.peru-map-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#peru-map {
  width: 100%;
  max-width: 300px;
  height: auto;
  overflow: visible;
}

.peru-outline {
  fill: #ffffff;
  stroke: rgba(199,166,254,0.55);
  stroke-width: 1;
  stroke-linejoin: round;
}

.dept {
  fill: #ffffff;
  stroke: rgba(199,166,254,0.55);
  stroke-width: 0.8;
  transition: fill 0.3s, stroke 0.3s;
}

/* Lima/Callao — sedes La Punta, Barranco, San Bartolo */
.dept-lima {
  fill: rgba(219,148,242,0.22);
  stroke: var(--v-violet);
  stroke-width: 1.5;
  cursor: pointer;
}

.dept-lima:hover {
  fill: rgba(219,148,242,0.40);
  stroke: var(--v-dark);
}

/* Ica — sede Paracas */
.dept-ica {
  fill: rgba(199,166,254,0.2);
  stroke: var(--v-mauve);
  stroke-width: 1.5;
  cursor: pointer;
}

.dept-ica:hover {
  fill: rgba(199,166,254,0.38);
  stroke: var(--v-dark);
}

/* Cusco — sede Mandala */
.dept-cusco {
  fill: rgba(30,57,159,0.14);
  stroke: var(--m-royal);
  stroke-width: 1.5;
  cursor: pointer;
}

.dept-cusco:hover {
  fill: rgba(30,57,159,0.30);
  stroke: var(--m-sky);
}

/* Pin de sede — ocultos, solo interacción por departamento */
.sede-pin {
  display: none;
}

.sede-pin-ring {
  fill: none;
  stroke: white;
  stroke-width: 1;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: pinRingPulse 2.4s ease-out infinite;
}

.sede-pin-dot {
  transition: r 0.25s var(--ease);
}

.sede-pin.lima-pin .sede-pin-dot  { fill: var(--v-violet); }
.sede-pin.lima-pin .sede-pin-ring { stroke: var(--v-mauve); }
.sede-pin.cusco-pin .sede-pin-dot { fill: var(--m-sun); }
.sede-pin.cusco-pin .sede-pin-ring{ stroke: var(--m-sky); }

.sede-pin:hover .sede-pin-dot { r: 7; }

@keyframes pinRingPulse {
  0%   { r: 6; opacity: 0.8; }
  100% { r: 20; opacity: 0; }
}

.sede-pin:nth-child(2) .sede-pin-ring { animation-delay: 0.6s; }
.sede-pin:nth-child(3) .sede-pin-ring { animation-delay: 1.2s; }
.sede-pin:nth-child(4) .sede-pin-ring { animation-delay: 1.8s; }

/* Tooltip de sede */
.sede-tooltip {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s, transform 0.25s;
  z-index: 10;
  min-width: 180px;
}

.sede-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.sede-tooltip-inner {
  background: var(--overlay);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 0.875rem 1rem;
  backdrop-filter: blur(12px);
}

.sede-tooltip-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.sede-tooltip-zona {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.sede-tooltip-desc {
  font-size: 12px;
  color: var(--text-on-dark);
  line-height: 1.5;
}

/* ---- Sede cards (lista derecha del mapa) ---- */
.sedes-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sede-card {
  padding: 1.1rem 1.4rem;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.sede-card:hover {
  background: rgba(255,255,255,0.82);
  border-color: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(85,35,89,0.18);
}

.sedes-list .sede-card:nth-child(3),
.sedes-list .sede-card:nth-child(4) {
  border-left-color: var(--m-mid);
}

.sedes-list .sede-card:nth-child(3):hover,
.sedes-list .sede-card:nth-child(4):hover {
  border-left-color: var(--m-sky);
  box-shadow: 0 4px 20px rgba(30,57,159,0.08);
}

.sede-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
}

.sede-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.sede-zona {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.sede-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* =============================================
   SECCIÓN 5: ALIADOS — MARQUEE
   ============================================= */
#section-aliados {
  background: linear-gradient(160deg, #B0A0F8 0%, #C7A6FE 30%, #E8C8FF 60%, #F5E0FF 100%);
  overflow: hidden;
}

#section-aliados .section-inner {
  padding-top: calc(var(--nav-h) + 1rem);
  padding-bottom: 0;
}

.aliados-marquee-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 1.25rem;
  padding: 1rem 0;
}

/* Fade gradiente en los bordes */
.aliados-marquee-wrap::before,
.aliados-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.aliados-marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, #B0A0F8, transparent);
}

.aliados-marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, #F5E0FF, transparent);
}

.aliados-marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

.aliados-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); }
}

.aliado-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3rem;
  height: 80px;
  border-right: 1px solid rgba(255,255,255,0.35);
  transition: opacity 0.3s;
  flex-shrink: 0;
}

.aliado-item:hover {
  opacity: 0.8;
}

.aliado-item img {
  height: 72px;
  max-width: 200px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.45;
  transition: opacity 0.35s, filter 0.35s;
}

.aliado-item:hover img {
  opacity: 1;
  filter: none;
}

.aliado-placeholder-text {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(42,10,60,0.45);
  white-space: nowrap;
}

/* =============================================
   SECCIÓN 6: VIBRAS — HERO
   ============================================= */
#section-vibras-hero {
  background: linear-gradient(160deg, #1A0B1E 0%, #0D0B12 40%, #15102A 100%);
}

.vibras-waves-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
  pointer-events: none;
  overflow: hidden;
}

.vibras-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem;
  min-height: 100dvh;
  justify-content: center;
}

.vibras-logo-area {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.vibras-logo-text {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-style: italic;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.01em;
}

.vibras-tagline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-style: italic;
  font-weight: 900;
  color: var(--v-violet);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.vibras-sub {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 300;
  color: var(--text-on-dark);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* =============================================
   SECCIÓN 6B: SERVICIOS VIBRAS
   ============================================= */
#section-vibras-servicios {
  background: linear-gradient(180deg, #15102A 0%, #0D0B12 100%);
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.servicio-card {
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(199,166,254,0.12);
  background: rgba(199,166,254,0.04);
  transition: all 0.35s var(--ease);
  cursor: pointer;
}

.servicio-card:hover {
  border-color: rgba(199,166,254,0.28);
  background: rgba(199,166,254,0.08);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(85,35,89,0.25);
}

.servicio-card.mandala-card {
  border-color: rgba(103,183,230,0.12);
  background: rgba(103,183,230,0.04);
}

.servicio-card.mandala-card:hover {
  border-color: rgba(103,183,230,0.28);
  background: rgba(103,183,230,0.08);
  box-shadow: 0 20px 40px rgba(30,57,159,0.25);
}

.servicio-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.servicio-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  font-weight: 700;
  color: var(--v-violet);
  margin-bottom: 0.65rem;
  line-height: 1.2;
}

.mandala-card .servicio-name {
  color: var(--m-sun);
}

.servicio-desc {
  font-family: var(--font-ui);
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.servicio-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.servicio-meta span {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-reservar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 1.25rem;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(219,148,242,0.4);
  color: var(--v-violet);
  transition: all 0.3s var(--ease);
}

.btn-reservar:hover {
  background: var(--v-violet);
  color: var(--bg);
  border-color: var(--v-violet);
}

.mandala-card .btn-reservar {
  border-color: rgba(246,218,82,0.4);
  color: var(--m-sun);
}

.mandala-card .btn-reservar:hover {
  background: var(--m-sun);
  color: var(--bg);
  border-color: var(--m-sun);
}

/* =============================================
   SECCIÓN 6C: GALERÍA VIBRAS
   ============================================= */
#section-vibras-galeria {
  background: linear-gradient(160deg, #F0D8FF 0%, #E0C4FF 40%, #C7A6FE 100%);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 1rem;
  margin-top: 0.5rem;
}

.galeria-grid .gal-cell:nth-child(1) {
  grid-row: span 2;
}

.gal-cell {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255,255,255,0.03);
}

.gal-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gal-cell:hover img {
  transform: scale(1.06);
}

.gal-cell-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.gal-cell-placeholder.vibras-ph {
  background: linear-gradient(135deg, #2a1030 0%, #3a1850 100%);
}

.gal-cell-placeholder.mandala-ph {
  background: linear-gradient(135deg, #0a1a3a 0%, #1a2d5a 100%);
}

.gal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,11,18,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease);
}

.gal-overlay svg {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s var(--ease);
}

.gal-cell:hover .gal-overlay {
  background: rgba(13,11,18,0.5);
}

.gal-cell:hover .gal-overlay svg {
  opacity: 1;
  transform: scale(1);
}

/* =============================================
   SECCIÓN 6D: FRASE VIBRAS
   ============================================= */
#section-vibras-frase {
  background: linear-gradient(160deg, #15102A 0%, #0D0B12 60%, #1A0B1E 100%);
}

.frase-content {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.frase-quote {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 5rem);
  font-style: italic;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 900px;
}

.frase-quote em {
  color: var(--v-violet);
  font-style: italic;
}

.frase-attr {
  margin-top: 2rem;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* =============================================
   SECCIÓN 6E: CTA VIBRAS
   ============================================= */
#section-vibras-cta {
  background: linear-gradient(160deg, #1A0B1E 0%, var(--v-dark) 50%, var(--v-slate) 100%);
  min-height: 50dvh;
}

.cta-section-content {
  min-height: 50dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2rem;
  padding: 3rem 2rem;
}

.cta-section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-style: italic;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
}

.cta-section-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.875rem 2rem;
  border-radius: 100px;
  background: #25D366;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s var(--ease);
}

.btn-whatsapp:hover {
  background: #1aab53;
  transform: translateY(-2px);
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.875rem 2rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s var(--ease);
}

.btn-instagram:hover {
  background: rgba(255,255,255,0.15);
}

/* =============================================
   SECCIÓN 7: MANDALA — HERO
   ============================================= */
#section-mandala-hero {
  background: linear-gradient(160deg, #0A1435 0%, #0D0B12 40%, #0D1830 100%);
}

.mandala-tagline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-style: italic;
  font-weight: 900;
  color: var(--m-sun);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.mandala-waves-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.12;
  pointer-events: none;
}

/* =============================================
   SECCIÓN 7B: SERVICIOS MANDALA
   ============================================= */
#section-mandala-servicios {
  background: linear-gradient(180deg, #0D1830 0%, #0D0B12 100%);
}

/* =============================================
   SECCIÓN 7C: GALERÍA MANDALA
   ============================================= */
#section-mandala-galeria {
  background: linear-gradient(160deg, #A0CCFF 0%, #88B4F0 40%, #C4B8FF 100%);
}

/* =============================================
   SECCIÓN 7D: FRASE MANDALA
   ============================================= */
#section-mandala-frase {
  background: linear-gradient(160deg, #0D1830 0%, #0D0B12 60%, #0A1435 100%);
}

.mandala-frase-quote em {
  color: var(--m-sun);
}

/* =============================================
   SECCIÓN 7E: CTA MANDALA
   ============================================= */
#section-mandala-cta {
  background: linear-gradient(160deg, #0A1435 0%, var(--m-royal) 50%, var(--m-mid) 100%);
  min-height: 50dvh;
}

/* =============================================
   SECCIÓN 8: CONTACTO
   ============================================= */
#section-contacto {
  background: linear-gradient(160deg, #EDD0FF 0%, #E0C0FF 40%, #D4B0FF 100%);
}

.contacto-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* Formulario */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input,
.form-select,
.form-textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(13,11,18,0.15);
  padding: 0.75rem 0;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus-visible,
.form-textarea:focus-visible {
  border-bottom-color: var(--v-slate);
  box-shadow: 0 2px 0 0 var(--v-slate);
}

.form-select {
  background: transparent;
  cursor: pointer;
}

.form-select option {
  background: var(--bg2);
  color: var(--text-primary);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(13,11,18,0.28);
  font-style: italic;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-bottom-color: var(--dark);
}

.form-textarea {
  resize: none;
  height: 100px;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  background: var(--dark);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.3s var(--ease);
  width: fit-content;
}

.btn-submit:hover {
  background: transparent;
  color: var(--dark);
  box-shadow: inset 0 0 0 1px rgba(13,11,18,0.5);
}

/* Info de contacto */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 1rem;
}

.contact-info-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease);
  text-decoration: none;
}

.contact-channel:hover {
  background: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.9);
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(85,35,89,0.12);
}

.contact-channel-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.channel-wa  { background: rgba(37,211,102,0.12); }
.channel-ig  { background: rgba(225,48,108,0.1); }
.channel-mail{ background: var(--surface-tint); }
.channel-pin { background: var(--surface-tint); }

.contact-channel-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
}

.contact-channel-value {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 400;
  margin-top: 2px;
}

.contact-brand-logos {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.contact-brand-logo {
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  font-weight: 900;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: linear-gradient(160deg, #DDB8FF 0%, #E8C8FF 50%, #F5E0FF 100%);
  border-top: 1px solid rgba(255,255,255,0.5);
  padding: 3rem 48px 2rem;
}

/* Layout principal horizontal */
.footer-main {
  display: grid;
  grid-template-columns: auto auto;
  gap: 3rem;
  align-items: start;
  justify-content: end;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.4);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.footer-brand span { color: var(--v-violet); }

.footer-tagline {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Columna de navegación */
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav-col a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s;
}

.footer-nav-col a:hover { color: var(--dark); }

/* Columna de canales */
.footer-channels-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-channel-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  transition: color 0.25s;
}

.footer-channel-link:hover {
  color: var(--dark);
}

.footer-channel-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: 70px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s;
}

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

/* =============================================
   RESPONSIVE — TABLET
   ============================================= */
@media (max-width: 1024px) {
  .section-inner { padding-left: 32px; padding-right: 32px; }

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

  .brands-container { flex-direction: column; }
  .brand-half { flex: 1 !important; min-height: 50dvh; }
  .brand-divider { display: none; }
  /* Disable hover expansion on mobile */
  .brands-container:has(.brand-half:nth-child(1):hover) .brand-half:nth-child(1),
  .brands-container:has(.brand-half:nth-child(1):hover) .brand-half:nth-child(2),
  .brands-container:has(.brand-half:nth-child(2):hover) .brand-half:nth-child(2),
  .brands-container:has(.brand-half:nth-child(2):hover) .brand-half:nth-child(1) { flex: 1; }

  .sedes-layout { grid-template-columns: 1fr; gap: 2rem; }
  #peru-map { max-width: 220px; }

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

  .contacto-layout { grid-template-columns: 1fr; gap: 3rem; }

  footer { padding: 2rem 32px; }
  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
  .footer-channels-col { align-items: flex-start; }
}

/* =============================================
   RESPONSIVE — TABLET PORTRAIT (640–767px)
   ============================================= */
@media (min-width: 640px) and (max-width: 767px) {
  .section-inner { padding-left: 28px; padding-right: 28px; }
  .hero-content { padding-left: 28px; padding-right: 28px; }

  .exp-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .sedes-layout { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  #peru-map { display: none; }

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

  footer { padding: 2rem 28px; }
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 639px) {
  .section-inner { padding-left: 20px; padding-right: 20px; }

  .hero-content { padding-left: 20px; padding-right: 20px; }

  /* Video visible en móvil — encuadre vertical mejorado */
  .hero-bg-video { object-position: center 30%; }

  /* exp-grid mobile base */
  .exp-grid { gap: 12px; }
  /* Servicios: 1 columna en móvil */
  [data-page="servicios"] .exp-grid { grid-template-columns: 1fr; }
  /* Reducir gap y tipografía de sección en móvil */
  #section-experiencias { padding: 0 0 1.5rem !important; }
  #section-experiencias .section-inner { padding-top: calc(var(--nav-h) + 0.5rem); }
  .section-title { font-size: clamp(1.6rem, 7vw, 2rem); }
  .section-sub { margin-top: 1.25rem; }

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

  .galeria-grid .gal-cell:nth-child(1) { grid-row: span 1; }

  .form-row { grid-template-columns: 1fr; }

  .contacto-layout { gap: 2.5rem; }

  footer { padding: 2rem 20px; }
  .footer-main { grid-template-columns: 1fr; }
}

/* =============================================
   HOME — CAROUSEL HORIZONTAL MÓVIL
   ============================================= */
@media (max-width: 639px) {
  [data-page="home"] .exp-grid {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 20px 20px;
    margin: 0 -20px;
    gap: 14px;
  }
  [data-page="home"] .exp-grid::-webkit-scrollbar { display: none; }
  [data-page="home"] .exp-grid .exp-card {
    flex: 0 0 76vw;
    max-width: 300px;
    height: 320px;
  }
}

/* =============================================
   TESTIMONIOS — MARQUEE INFINITO
   ============================================= */
@keyframes testi-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes testi-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

#section-testimonios {
  background: var(--dark);
}

#section-testimonios .section-header {
  padding: 0 20px;
  margin-bottom: 2.5rem;
}

#section-testimonios .section-eyebrow,
#section-testimonios .section-title,
#section-testimonios .section-subtitle {
  color: rgba(242,229,255,0.95);
}

#section-testimonios .section-eyebrow {
  color: rgba(199,166,254,0.7);
}

.testi-strip {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.testi-strip::before,
.testi-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 10%;
  z-index: 2;
  pointer-events: none;
}

.testi-strip::before {
  left: 0;
  background: linear-gradient(to right, #0D0B12 0%, transparent 100%);
}

.testi-strip::after {
  right: 0;
  background: linear-gradient(to left, #0D0B12 0%, transparent 100%);
}

.testi-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  will-change: transform;
}

.testi-track--left {
  animation: testi-left 32s linear infinite;
}
.testi-track--right {
  animation: testi-right 38s linear infinite;
}

.testi-strip:hover .testi-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .testi-track--left,
  .testi-track--right {
    animation: none;
  }
  .testi-strip {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .testi-track {
    width: max-content;
  }
}

.testi-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(199,166,254,0.22);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  width: 300px;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s, background 0.2s;
}

.testi-card:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(199,166,254,0.45);
}

.testi-stars {
  color: #F4C542;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 0.65rem;
}

.testi-text {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(242,229,255,0.88);
  margin: 0 0 0.85rem;
  font-style: italic;
}

.testi-author {
  font-size: 11.5px;
  color: rgba(199,166,254,0.75);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.testi-author strong {
  color: #C7A6FE;
}

.testi-date {
  color: rgba(199,166,254,0.5);
  font-weight: 400;
}

.testi-google-note {
  margin-top: 2.5rem;
}

@media (max-width: 639px) {
  .testi-card { width: 260px; padding: 1rem 1.1rem; }
  .testi-text { font-size: 12.5px; }
  /* Solo una fila en móvil */
  .testi-strip + .testi-strip { display: none; }
  /* Forzar animación en móvil (override prefers-reduced-motion) */
  .testi-track--left  { animation: testi-left 32s linear infinite !important; }
  .testi-track--right { animation: testi-right 38s linear infinite !important; }
  .testi-strip { overflow: hidden !important; }
}
