/* ==========================================================================
   Holistic e-ser - Custom Aesthetic Styles
   ========================================================================== */


:root {
  --color-canvas: #FAF7F2;
  --color-surface: #FFFFFF;
  --color-surface-soft: #F4EFEA;
  --color-surface-warm: #EFE8DF;
  --color-primary: #5A6B53;       /* Sage / Olivo profundo */
  --color-primary-light: #74866C;
  --color-primary-dark: #3F4D3A;
  --color-terracotta: #C27351;   /* Arcilla / Terracota suave */
  --color-terracotta-hover: #A85A39;
  --color-text-main: #2B2623;    /* Tierra profunda / Carbón suave */
  --color-text-muted: #6B625B;
  --color-border: #E5DDD2;
  
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-canvas);
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
}

/* Serif Headings */
.font-serif-title {
  font-family: var(--font-serif);
  letter-spacing: -0.015em;
}

/* Glassmorphism Header */
.glass-header {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 221, 210, 0.75);
}

/* Organic Shadows */
.shadow-soft {
  box-shadow: 0 10px 30px -10px rgba(71, 63, 58, 0.07);
}

.shadow-card {
  box-shadow: 0 14px 35px -12px rgba(90, 107, 83, 0.08);
}

.shadow-card-hover {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.shadow-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(71, 63, 58, 0.14);
}

/* Mirada Sensorial - Marquee Infinito de Izquierda a Derecha */
.sensorial-marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  user-select: none;
  padding: 1.5rem 0;
}

.sensorial-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: sensorialScrollLTR 55s linear infinite;
}

/* Pausar inmediatamente cuando el cursor esté sobre la galería */
.sensorial-marquee-container:hover .sensorial-marquee-track,
.sensorial-marquee-track:hover {
  animation-play-state: paused;
}

/* Grupo de tarjetas */
.sensorial-marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Tarjeta individual mediana */
.sensorial-gallery-item {
  position: relative;
  flex-shrink: 0;
  width: 280px;
  height: 220px;
  margin: 0 0.85rem;
  border-radius: 1.5rem;
  overflow: hidden;
  cursor: pointer;
  background-color: #EFE8DF;
  box-shadow: 0 10px 25px -8px rgba(71, 63, 58, 0.12);
  border: 1px solid #E5DDD2;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

@media (min-width: 640px) {
  .sensorial-gallery-item {
    width: 340px;
    height: 250px;
    margin: 0 1rem;
  }
}

@media (min-width: 1024px) {
  .sensorial-gallery-item {
    width: 380px;
    height: 275px;
  }
}

.sensorial-gallery-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 35px -10px rgba(90, 107, 83, 0.22);
  border-color: #5A6B53;
}

.sensorial-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sensorial-gallery-item:hover img {
  transform: scale(1.06);
}

/* Overlay sutil al pasar el mouse */
.sensorial-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 26, 23, 0.8) 0%, rgba(30, 26, 23, 0.2) 50%, transparent 100%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.25rem;
  transition: opacity 0.3s ease;
}

.sensorial-gallery-item:hover .sensorial-overlay {
  opacity: 1;
}

.sensorial-overlay-content {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transform: translateY(8px);
  transition: transform 0.3s ease;
}

.sensorial-gallery-item:hover .sensorial-overlay-content {
  transform: translateY(0);
}

/* Animación de deslizamiento de izquierda a derecha */
@keyframes sensorialScrollLTR {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(26, 23, 21, 0.94);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(30, 26, 23, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background-color: #FAF7F2;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.15);
}

.cart-drawer.active {
  transform: translateX(0);
}

/* Custom Scrollbar for Drawer & Grid */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #D9CFC4;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #BFB3A6;
}

/* Floating WhatsApp Pulse */
@keyframes soft-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 185, 107, 0.5);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(74, 185, 107, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 185, 107, 0);
  }
}

.btn-whatsapp-pulse {
  animation: soft-pulse 2.8s infinite;
}

/* Badge Animation */
@keyframes bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.badge-bump {
  animation: bump 0.3s ease-out;
}

/* ==========================================================================
   Holistic Preloader & Sacred Breath Animations
   ========================================================================== */
.holistic-preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(circle at center, #FAF7F2 0%, #F2ECE4 60%, #E8DFD3 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.85s cubic-bezier(0.2, 0.8, 0.2, 1),
              visibility 0.85s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.holistic-preloader.loaded {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  pointer-events: none;
}

/* Ondas de resonancia Zen (Tibetan Bowl Soundwaves / Pranayama Ripples) */
@keyframes zen-ripple {
  0% {
    transform: scale(0.85);
    opacity: 0.85;
    border-color: rgba(90, 107, 83, 0.5);
  }
  50% {
    transform: scale(1.35);
    opacity: 0.4;
    border-color: rgba(194, 115, 81, 0.4);
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
    border-color: rgba(90, 107, 83, 0);
  }
}

.zen-ring-1 {
  animation: zen-ripple 3.4s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}
.zen-ring-2 {
  animation: zen-ripple 3.4s cubic-bezier(0.25, 1, 0.5, 1) 1.15s infinite;
}
.zen-ring-3 {
  animation: zen-ripple 3.4s cubic-bezier(0.25, 1, 0.5, 1) 2.3s infinite;
}

/* Levitación y Respiración Sagrada del Logo */
@keyframes holistic-breathe {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 8px 20px rgba(90, 107, 83, 0.15))
            drop-shadow(0 0 10px rgba(127, 139, 115, 0.25));
  }
  50% {
    transform: translateY(-9px) scale(1.04);
    filter: drop-shadow(0 20px 35px rgba(90, 107, 83, 0.25))
            drop-shadow(0 0 25px rgba(194, 115, 81, 0.35));
  }
}

.holistic-logo-breathe {
  animation: holistic-breathe 4.2s ease-in-out infinite;
}

/* Rotación suave del aura dorada-botánica */
@keyframes aura-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.aura-spinner {
  animation: aura-rotate 18s linear infinite;
}

/* Efecto de destello áurico sutil al pasar el mouse por el logo del header */
.header-logo-zen:hover img {
  filter: drop-shadow(0 0 12px rgba(127, 139, 115, 0.4));
}

/* ==========================================================================
   Áreas y Servicios de Atención - Tabs & Panes
   ========================================================================== */
.service-pane {
  animation: fadeInTab 0.35s ease-out forwards;
}

@keyframes fadeInTab {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}




/* ===== Ajustes WordPress ===== */
body.admin-bar .glass-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .glass-header { top: 46px; } }

/* ===== Acordeón de acciones (details/summary) ===== */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary:focus-visible { outline: 2px solid #5A6B53; outline-offset: 4px; border-radius: 1.5rem; }

/* Preloader solo en la primera visita de la sesión */
.hs-seen #holisticPreloader { display: none !important; }

/* Ocultar barra de desplazamiento en las pestañas horizontales */
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ===== Encuesta (expo) ===== */
.opt { display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-box { display: flex; align-items: flex-start; gap: .85rem; padding: .95rem 1rem; border: 1.5px solid #E5DDD2; border-radius: 1.1rem; background: #fff; transition: all .2s ease; }
.opt:hover .opt-box { border-color: #9DB096; background: #FBFAF7; }
.opt-letter { flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; background: #F4EFEA; color: #5A6B53; transition: all .2s ease; }
.opt-text { font-size: .92rem; line-height: 1.45; color: #2B2623; padding-top: .3rem; font-weight: 300; }
.opt input:checked + .opt-box { border-color: #5A6B53; background: #F1F5EF; box-shadow: 0 0 0 3px rgba(90,107,83,.12); }
.opt input:checked + .opt-box .opt-letter { background: #5A6B53; color: #fff; }
.opt input:checked + .opt-box .opt-text { font-weight: 500; }
.opt input:focus-visible + .opt-box { outline: 2px solid #5A6B53; outline-offset: 2px; }
.opt input:disabled + .opt-box { opacity: .45; cursor: not-allowed; }
.sv-label { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6B625B; margin-bottom: .4rem; }
.sv-input { width: 100%; padding: .95rem 1.1rem; border: 1.5px solid #E5DDD2; border-radius: 1rem; background: #FAF7F2; font-size: 1rem; color: #2B2623; transition: all .2s ease; }
.sv-input:focus { outline: none; border-color: #5A6B53; background: #fff; box-shadow: 0 0 0 3px rgba(90,107,83,.15); }
