/* Estilos compartidos por todas las páginas de Shri Vallabh */
body { background-color: #0B161C; }
[id] { scroll-margin-top: 5.5rem; }
[hidden] { display: none !important; }

/* Oro cepillado */
.text-gold-gradient {
  background: linear-gradient(115deg, #F1D99A 0%, #CF9F38 40%, #96722A 64%, #F1D99A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Espacio para que el degradé alcance las letras con cola (g, j, y) y la inclinación de la cursiva */
  padding-bottom: .3em;
  padding-right: .06em;
}
.brushed-gold {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 3px),
    linear-gradient(115deg, #F1D99A 0%, #CF9F38 45%, #B3892F 70%, #F1D99A 100%);
}

/* Borde con degradé de oro (cualquier radio) */
.gold-border { position: relative; }
.gold-border::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #F1D99A, rgba(207,159,56,.12) 40%, rgba(150,114,42,.12) 60%, #CF9F38);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .3;
  pointer-events: none;
  transition: opacity .3s ease-in-out;
}
.gold-border:hover::after, .group:hover > .gold-border::after { opacity: 1; }

/* Retrato fundido: máscara en base y laterales */
.portrait-fade {
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 50%, transparent 92%),
    linear-gradient(to right, transparent 0%, #000 26%, #000 74%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 50%, transparent 92%),
    linear-gradient(to right, transparent 0%, #000 26%, #000 74%, transparent 100%);
  mask-composite: intersect;
}
/* En celular el retrato se acerca al rostro */
@media (max-width: 1023px) {
  .portrait-zoom { transform: scale(1.32); transform-origin: 50% 36%; }
}
@media (min-width: 1024px) {
  .portrait-fade {
    -webkit-mask-image:
      linear-gradient(to bottom, transparent 0%, #000 14%, #000 58%, transparent 96%),
      linear-gradient(to right, transparent 0%, #000 38%, #000 82%, transparent 100%);
    mask-image:
      linear-gradient(to bottom, transparent 0%, #000 14%, #000 58%, transparent 96%),
      linear-gradient(to right, transparent 0%, #000 38%, #000 82%, transparent 100%);
  }
}

/* Recortes de follaje de la pintura que conectan las secciones */
main, footer { overflow-x: clip; }

/* Fondo fijo: solo el follaje superior de la pintura (sin las figuras) */
.mystic-bg {
  background-image: url("../fondo-misticismo.jpg");
  background-repeat: no-repeat;
  background-position: 50% 0;
  background-size: auto 400vh;
  filter: blur(4px) brightness(.5) saturate(1.2);
  transform: scale(1.06);
}
@media (min-aspect-ratio: 12/5) { .mystic-bg { background-size: 100vw auto; } }
/* Pantallas verticales (celular): el centro superior es el hueco oscuro entre palmeras,
   así que se muestran las palmeras del lado derecho */
@media (max-aspect-ratio: 1/1) {
  .mystic-bg { background-size: 300% auto; background-position: 100% 0; filter: blur(3px) brightness(.62) saturate(1.25); }
}

.foliage {
  position: absolute;
  z-index: -10;
  pointer-events: none;
  background-image: url("../fondo-misticismo.jpg");
  background-repeat: no-repeat;
  background-size: 300% auto;
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
  filter: saturate(1.15) brightness(.8);
  opacity: .7;
  will-change: transform;
}
.foliage--palm-left  { background-position: 0% 6%; }
.foliage--palm-right { background-position: 100% 37%; }
.foliage--flowers    { background-position: 65% 0%; }
.foliage--canopy     { background-position: 12% 0%; }

/* Pulso suave del botón de WhatsApp */
@keyframes soft-pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.75); opacity: 0; } }
.animate-soft-pulse { animation: soft-pulse 2.6s cubic-bezier(.2,.6,.4,1) infinite; }

/* Pintura de Radha y Krishn: bordes desvanecidos hacia el verde bosque */
.painting-fade {
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 48%, #000 38%, rgba(0,0,0,.6) 66%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 48%, #000 38%, rgba(0,0,0,.6) 66%, transparent 100%);
}
.reveal-bloom { opacity: 0; transform: scale(.94); filter: blur(6px); transition: opacity 1.2s ease, transform 1.2s ease, filter 1.2s ease; }
.reveal-bloom.is-visible { opacity: 1; transform: none; filter: none; }

@keyframes drift { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,-10px,0); } }
.animate-drift { animation: drift 10s ease-in-out infinite; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .animate-drift, .animate-soft-pulse { animation: none; }
  .reveal-bloom { opacity: 1; transform: none; filter: none; transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
