﻿/* Cursor tipo "manito" para todos los controles clickeables */
button:not(:disabled),
input[type="button"]:not(:disabled),
input[type="submit"]:not(:disabled),
input[type="reset"]:not(:disabled),
[role="button"],
[data-href],
.btn,
a.btn {
  cursor: pointer;
}

button:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled,
input[type="reset"]:disabled {
  cursor: not-allowed;
}

#cursos, #servicios, #inicio, #testimonios, #diario-home {
  scroll-margin-top: 100px; /* Ajusta el valor segÃºn la altura del header */
}  
/* Estilos de scrollbar de modales: ver bloque ".site-modal .overflow-y-auto" más abajo */
/* Header: shrink on scroll + estado activo */
.site-header { transition: all 240ms ease; }
.site-header.shrink { background-color: rgba(17,24,39,0.98); box-shadow: 0 6px 18px -8px rgba(0,0,0,0.6); }
.site-nav .nav-link.active { color: #fff; position: relative; }
.site-nav .nav-link.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; margin: auto; width: 70%; height: 2px; border-radius: 999px; background: linear-gradient(90deg, rgba(146,12,209,0.7), rgba(173,114,191,0.4), rgba(146,12,209,0.7)); }
.site-nav .nav-link { transition: color 150ms ease, background 150ms ease; }

/* ==========================================================================
   Bottom mobile nav: barra "pill" flotante + FAB de WhatsApp central
   ========================================================================== */
.menu-inferior {
  bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  /* deja espacio para que el FAB elevado no se recorte */
  padding-top: 30px;
}

.menu-inferior-container {
  --mobile-accent-rgb: 146, 12, 209;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.15rem;
  width: max-content;
  max-width: calc(100vw - 1rem);
  margin: 0 0.5rem;
  padding: 0.4rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid rgba(var(--mobile-accent-rgb), 0.28);
  background: linear-gradient(145deg, rgba(20, 12, 34, 0.48), rgba(10, 6, 20, 0.50));
  -webkit-backdrop-filter: blur(28px) saturate(1.4) brightness(0.85);
  backdrop-filter: blur(28px) saturate(1.4) brightness(0.85);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(146, 12, 209, 0.15);
}

.mobile-bottom-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 50px;
  min-height: 48px;
  padding: 0.25rem 0.2rem;
  color: #c09ad1;
  transition: transform 180ms ease, color 180ms ease;
}

/* Indicador activo tipo "pill" detrás del icono (estilo Material 3).
   Se limita al icono para que la etiqueta nunca desborde la curva. */
.mobile-bottom-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 30px;
  border-radius: 9999px;
  border: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease,
    box-shadow 220ms ease, transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-bottom-link i {
  font-size: 1.1rem;
  color: #b48ac9;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.mobile-bottom-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: #c09ad1;
  white-space: nowrap;
  transition: color 180ms ease;
}

/* Estado activo */
.mobile-bottom-link.active .mobile-bottom-icon-wrap {
  background: linear-gradient(145deg, rgba(146, 12, 209, 0.42), rgba(78, 30, 110, 0.3));
  border-color: rgba(246, 220, 255, 0.35);
  box-shadow: 0 6px 16px rgba(var(--mobile-accent-rgb), 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.mobile-bottom-link.active i {
  color: #f6dcff;
  text-shadow: 0 0 8px rgba(246, 220, 255, 0.5);
}

.mobile-bottom-link.active .mobile-bottom-label {
  color: #f8e8ff;
  text-shadow: 0 0 5px rgba(248, 232, 255, 0.24);
}

/* Hover / press (dispositivos con puntero o al tocar) */
.mobile-bottom-link:hover i,
.mobile-bottom-link:hover .mobile-bottom-label {
  color: #f0d7ff;
}

.mobile-bottom-link:active {
  transform: scale(0.94);
}

/* ----- FAB central (logo AstraLumina) ----- */
.mobile-fab-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  margin: 0 0.1rem;
  padding: 4px;
  border-radius: 9999px;
  /* Vidrio ahumado: tinte oscuro translúcido + desenfoque del fondo */
  background: rgba(28, 20, 42, 0.45);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  border: none;
  transform: translateY(-22px);
  box-shadow:
    0 8px 24px rgba(17, 12, 28, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 200ms ease;
}

.mobile-fab-whatsapp img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 9999px;
  display: block;
}

.mobile-fab-whatsapp:hover {
  transform: translateY(-25px) scale(1.05);
  box-shadow:
    0 14px 30px rgba(146, 12, 209, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.mobile-fab-whatsapp:active {
  transform: translateY(-20px) scale(0.96);
}

@media (prefers-reduced-motion: reduce) {
  .mobile-bottom-link,
  .mobile-bottom-icon-wrap,
  .mobile-bottom-link i,
  .mobile-bottom-label,
  .mobile-fab-whatsapp {
    transition: none;
  }
}

/* =========================
   Orbes sociales (sección "Seguinos") — liquid glass + color de marca
   ========================= */
.social-orb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Glass base, misma fórmula que .btn-glass-violet */
  background: linear-gradient(180deg, rgba(123,40,165,0.30) 0%, rgba(78,30,110,0.22) 100%);
  border: 1px solid rgba(173,114,191,0.30);
  box-shadow: 0 8px 24px rgba(0,0,0,0.45), inset 0 1px 0 rgba(246,242,255,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.social-orb__icon {
  color: #CCB6D4;
  transition: color .3s ease, transform .3s ease;
}

/* Lift + glow genérico al hover (más sutil que .mobile-fab-whatsapp).
   Incluye .animate-on-scroll para ganar a .animate-on-scroll.visible { transform } */
.social-orb.animate-on-scroll:hover,
.social-orb:hover {
  transform: translateY(-6px) scale(1.04);
}
.social-orb:hover .social-orb__icon {
  color: #fff;
}

/* Color de marca por plataforma */
.social-orb--ig:hover {
  background: linear-gradient(135deg, #feda75 0%, #fa7e1e 25%, #d62976 55%, #962fbf 80%, #4f5bd5 100%);
  border-color: rgba(214,41,118,0.55);
  box-shadow: 0 14px 30px rgba(214,41,118,0.40), inset 0 1px 1px rgba(255,255,255,0.30);
}
.social-orb--wa:hover {
  background: linear-gradient(180deg, #25D366 0%, #1da851 100%);
  border-color: rgba(37,211,102,0.55);
  box-shadow: 0 14px 30px rgba(37,211,102,0.40), inset 0 1px 1px rgba(255,255,255,0.30);
}
.social-orb--ia:hover {
  background: linear-gradient(180deg, rgba(146,12,209,0.85) 0%, rgba(99,18,143,0.85) 100%);
  border-color: rgba(146,12,209,0.55);
  box-shadow: 0 14px 30px rgba(146,12,209,0.45), inset 0 1px 1px rgba(255,255,255,0.30);
}

/* Pulso sutil en reposo (WhatsApp + asistente), pausado al hover */
@keyframes social-orb-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 0 0 0 rgba(146,12,209,0.0), inset 0 1px 0 rgba(246,242,255,0.08); }
  50%      { box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 0 18px 4px rgba(146,12,209,0.22), inset 0 1px 0 rgba(246,242,255,0.08); }
}
.social-orb--wa { animation: social-orb-pulse 2.6s ease-in-out infinite; }
.social-orb--ia { animation: social-orb-pulse 2.6s ease-in-out infinite .6s; }
.social-orb--wa:hover,
.social-orb--ia:hover { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .social-orb { transition: none; }
  .social-orb:hover { transform: none; }
  .social-orb--wa,
  .social-orb--ia { animation: none !important; }
}

/* =========================
   Video-testimonios de consultas
   ========================= */
.consult-video-section {
  position: relative;
  overflow: hidden;
}

.consult-video-section::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -18%;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(201, 168, 102, 0.15), transparent 68%);
  pointer-events: none;
}

.consult-video-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.consult-video-kicker {
  margin: 0 0 0.35rem;
  color: #c9a866;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.consult-video-head h3 {
  margin: 0;
  color: #fff;
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.15;
}

.consult-video-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.72rem 1rem;
  border-radius: 0.85rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(123, 40, 165, 0.40) 0%, rgba(78, 30, 110, 0.30) 100%);
  border: 1px solid rgba(173, 114, 191, 0.34);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(246, 242, 255, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.consult-video-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 168, 102, 0.45);
}

.consult-video-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.consult-video-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(201, 168, 102, 0.28);
  background: linear-gradient(160deg, rgba(42, 27, 69, 0.92), rgba(17, 12, 30, 0.96));
}

.consult-video-frame {
  aspect-ratio: 9 / 16;
  background: #100a1c;
}

.consult-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Miniatura clickeable (poster + botón play) */
.consult-video-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  background: #100a1c;
}

.consult-video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.consult-video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.5));
  transition: background 0.3s ease;
}

.consult-video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 2;
  width: 58px;
  height: 58px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  padding-left: 3px;
  background: rgba(146, 12, 209, 0.88);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, background 0.25s ease;
}

.consult-video-thumb:hover .consult-video-play,
.consult-video-thumb:focus-visible .consult-video-play {
  transform: scale(1.1);
  background: rgba(146, 12, 209, 1);
}

.consult-video-thumb:focus-visible {
  outline: 2px solid #c9a866;
  outline-offset: 2px;
}

/* Lightbox modal de video */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 5, 16, 0.86);
  backdrop-filter: blur(6px);
}

.video-lightbox.hidden {
  display: none;
}

.video-lightbox-stage {
  position: relative;
  width: 100%;
  max-width: min(92vw, 400px);
  max-height: 88vh;
  aspect-ratio: 9 / 16;
  display: flex;
}

.video-lightbox-player {
  width: 100%;
  height: 100%;
  max-height: 88vh;
  border-radius: 16px;
  background: #000;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.video-lightbox-close {
  position: absolute;
  top: -3.2rem;
  right: 0;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

@media (max-width: 520px) {
  .video-lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
  }
}

/* ---- Testimonios compactos (mini-video + reseña) ---- */
.testi-compact-list {
  display: grid;
  gap: 0.85rem;
  max-width: 44rem;
  margin: 0 auto;
}

.testi-compact {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(201, 168, 102, 0.22);
  background: linear-gradient(160deg, rgba(42, 27, 69, 0.55), rgba(17, 12, 30, 0.6));
  backdrop-filter: blur(4px);
  transition: border-color 0.3s ease;
}

.testi-compact:hover {
  border-color: rgba(201, 168, 102, 0.45);
}

.testi-compact-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #100a1c;
}

.testi-compact-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testi-compact-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  transition: background 0.25s ease;
}

.testi-compact-thumb:hover::after {
  background: rgba(0, 0, 0, 0.05);
}

.testi-compact-play {
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  padding-left: 2px;
  background: rgba(146, 12, 209, 0.9);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease;
}

.testi-compact-thumb:hover .testi-compact-play {
  transform: scale(1.12);
}

.testi-compact-thumb:focus-visible {
  outline: 2px solid #c9a866;
  outline-offset: 2px;
}

.testi-compact-body {
  min-width: 0;
}

.testi-compact-quote {
  margin: 0 0 0.35rem;
  color: #e5e7eb;
  font-size: 0.92rem;
  line-height: 1.4;
  font-style: italic;
}

.testi-compact-stars {
  color: #f59e0b;
  font-size: 0.7rem;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.testi-compact-meta {
  color: #c9a866;
  font-size: 0.78rem;
  font-weight: 600;
}

@media (max-width: 480px) {
  .testi-compact-thumb {
    width: 72px;
    height: 72px;
  }
  .testi-compact-quote {
    font-size: 0.88rem;
  }
}

.consult-video-copy {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem;
  border-top: 1px solid rgba(201, 168, 102, 0.18);
}

.consult-video-copy span {
  color: #e8d5a3;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.consult-video-copy p {
  margin: 0;
  color: #d1d5db;
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .consult-video-head {
    align-items: stretch;
    flex-direction: column;
  }

  .consult-video-cta {
    width: 100%;
  }

  .consult-video-grid {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.1rem 0 0.55rem;
    scrollbar-width: none;
  }

  .consult-video-grid::-webkit-scrollbar {
    display: none;
  }

  .consult-video-card {
    flex: 0 0 min(78vw, 260px);
    scroll-snap-align: start;
  }
}

  /* Efectos visuales avanzados UX/UI */
    
    /* Animaciones de entrada */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(50px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes fadeInLeft {
        from {
            opacity: 0;
            transform: translateX(-50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    @keyframes fadeInRight {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
@keyframes pulse-glow {
    0%, 100% {
    box-shadow: 0 0 10px rgba(146, 12, 209, 0.10);
    }
    50% {
    box-shadow: 0 0 15px rgba(146, 12, 209, 0.14), 0 0 20px rgba(146, 12, 209, 0.06);
    }
}
    
    @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-20px); }
    }
    
    @keyframes sparkle {
        0%, 100% { opacity: 0; transform: scale(0); }
        50% { opacity: 1; transform: scale(1); }
    }
    
    /* Clases para efectos */
    .animate-on-scroll {
        opacity: 0;
        transform: translateY(50px);
        transition: all 0.8s ease-out;
    }
    
    .animate-on-scroll.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .glassmorphism-enhanced {
        backdrop-filter: blur(20px) saturate(180%);
        background: rgba(31, 41, 55, 0.75);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .card-hover-effect {
        transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    .card-hover-effect:hover {
        transform: translateY(-2px) scale(1.006);
        box-shadow: 0 10px 24px -8px rgba(var(--theme-magenta-rgb), 0.14);
    }
    
    .glow-effect {
        position: relative;
        overflow: hidden;
    }
    
.glow-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(146, 12, 209, 0.02), transparent);
    transform: rotate(45deg);
    transition: all 0.8s;
    opacity: 0;
    /* Capa decorativa: sin esto intercepta los clicks de inputs y botones dentro de la card */
    pointer-events: none;
}
    
    .glow-effect:hover::before {
        opacity: 1;
        animation: shimmer 3s ease-in-out;
    }
    
    @keyframes shimmer {
        0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
        100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    }
    
    /* Efectos de texto brillante */
.text-glow {
    text-shadow: 0 0 6px rgba(146, 12, 209, 0.18),
            0 0 10px rgba(146, 12, 209, 0.10),
            0 0 12px rgba(146, 12, 209, 0.06);
}
    
.logo-container {
    animation: pulse-glow 6s ease-in-out infinite;
}


/* Paleta del tema â€” variables para fÃ¡cil ajuste */
:root{
    --theme-magenta-rgb: 146,12,209; /* violeta de marca #920CD1 */
    --theme-violet-rgb: 173,114,191; /* lila medio #AD72BF */
}

.course-cohort-banner {
    background: linear-gradient(
        90deg,
        rgba(var(--theme-magenta-rgb), 0.2),
        rgba(var(--theme-violet-rgb), 0.14)
    );
    border: 1px solid rgba(146, 12, 209, 0.38);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 30px -22px rgba(var(--theme-magenta-rgb), 0.7);
}

.course-cohort-icon {
    color: #f9a8d4;
    text-shadow: 0 0 12px rgba(var(--theme-magenta-rgb), 0.35);
}

.course-cohort-title {
    color: #ffffff;
}

.course-cohort-note {
    color: #fce7f3;
}

/* Tipografía display para headings */
h1.neon-title {
    font-family: 'Cinzel', Georgia, serif;
    letter-spacing: 0.06em;
    font-weight: 700;
}
.font-display {
    font-family: 'Cinzel', Georgia, serif;
    letter-spacing: 0.04em;
}

/* NeÃ³n pulsante para el tÃ­tulo (usa la paleta del tema)
    Para evitar 'temblor' mantenemos los valores de blur constantes
    y solo animamos la opacidad de los colores (menos repaints) */
.neon-title{
    color: #fff;
    /* glow fijo (valores mÃ¡s amplios para buena visibilidad) */
    text-shadow: 0 0 26px rgba(var(--theme-magenta-rgb),0.6), 0 0 39px rgba(var(--theme-violet-rgb),0.25);
    transition: text-shadow 1s ease;
    animation: neon-pulse 5s ease-in-out infinite;
    will-change: text-shadow;
}
@keyframes neon-pulse{
    /* mismos blur, solo cambiamos el alpha para suavizar y evitar jitter */
    0%,100%{ text-shadow: 0 0 26px rgba(var(--theme-magenta-rgb),0.30), 0 0 39px rgba(var(--theme-violet-rgb),0.12); }
    50%{ text-shadow: 0 0 26px rgba(var(--theme-magenta-rgb),0.70), 0 0 39px rgba(var(--theme-violet-rgb),0.28); }
}
@media (prefers-reduced-motion: reduce){ .neon-title{ animation:none } }

/* Overlay de estrellas eficiente usando pseudo-elementos (mÃ­nimos repaints) */
.stars-overlay { z-index: 5; position: absolute; inset: 0; pointer-events: none; }

/* Usamos dos pseudo-elementos con box-shadow para mÃºltiples puntos (estrellas)
    AÃ±adimos mÃ¡s posiciones (incluyendo zonas bajas) y mayor movimiento */
.stars-overlay::before,
.stars-overlay::after{
    content: '';
    position: absolute;
    inset: 0; /* cubrir todo el contenedor */
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0.9;
    will-change: opacity, transform;
    transform-origin: center;
    filter: drop-shadow(0 0 5px rgba(var(--theme-magenta-rgb), 0.35));
}

/* Primera capa: muchas estrellas pequeÃ±as (mÃ¡s cantidad, menor tamaÃ±o) */
.stars-overlay::before{
    background:
    radial-gradient(circle at 3% 6%,  rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 12% 18%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 22% 30%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 34% 8%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 45% 40%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 55% 25%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 68% 12%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 78% 34%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 88% 6%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 96% 26%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 15% 48%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 28% 52%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 42% 16%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 58% 44%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 72% 28%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 85% 42%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 18% 62%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 38% 76%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 62% 54%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 74% 68%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 6% 82%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 24% 14%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 48% 2%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 64% 86%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 86% 74%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 94% 58%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 16% 36%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 36% 56%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 52% 72%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 76% 46%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 92% 12%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 8% 94%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px);
    transform: translateZ(0);
    animation: stars-move 6s linear infinite;
}

/* Segunda capa: estrellas del centro con recorrido mÃ¡s largo */
.stars-overlay::after{
    background:
    radial-gradient(circle at 45% 40%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 55% 25%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 42% 16%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 58% 44%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 48% 52%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 52% 38%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 46% 28%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px),
    radial-gradient(circle at 54% 36%, rgba(255,255,255,1) 0.3px, rgba(255,255,255,0.4) 0.6px, transparent 0.9px);
    transform: translateZ(0);
    animation: stars-move-center 10s linear infinite;
}

@keyframes stars-move{
    0%{ transform: scale(0.8) translateZ(0); opacity: 0; }
    10%{ opacity: 1; }
    90%{ opacity: 1; }
    100%{ transform: scale(1.2) translateZ(0); opacity: 0; }
}

@keyframes stars-move-center{
    0%{ transform: scale(0.5) translateZ(0); opacity: 0; }
    5%{ opacity: 1; }
    95%{ opacity: 1; }
    100%{ transform: scale(1.2) translateZ(0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .stars-overlay::before,
    .stars-overlay::after { animation: none; opacity: 0.9; transform: none; }
}
    
    /* Mejoras en transiciones optimizadas */
    .card-hover-effect {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform, box-shadow;
}
    
    /* Efecto parallax optimizado */
    .parallax-element {
        will-change: transform;
    }

    /* Desactivar animaciones para usuarios con preferencia reducida */
    @media (prefers-reduced-motion: reduce) {
        .parallax-bg,
        .animate-pulse-soft,
        .animate-bounce-soft {
            animation: none !important;
            transform: none !important;
        }
        /* Reveal on scroll: mostrar el contenido directamente, sin desplazamiento */
        .animate-on-scroll {
            opacity: 1 !important;
            transform: none !important;
            transition: none !important;
        }
        /* Pulso constante del logo y shimmer/lift de cards */
        .logo-container { animation: none; }
        .card-hover-effect { transition: none; will-change: auto; }
        .card-hover-effect:hover { transform: none; }
        .glow-effect:hover::before { animation: none; opacity: 0; }
    }

/* Usar utilidades Tailwind para gradientes (no usar CSS personalizado aquÃ­) */

/* =========================
   Modal scrollbar styles
   (aplicado a todos los modales del sitio via .site-modal;
    el scroll solo aparece cuando el contenido excede el alto disponible)
   ========================= */
.site-modal .overflow-y-auto::-webkit-scrollbar {
    width: 7px;
}
.site-modal .overflow-y-auto::-webkit-scrollbar-track {
    background: transparent;
}
.site-modal .overflow-y-auto::-webkit-scrollbar-thumb {
    background: rgba(146, 12, 209, 0.35);
    border-radius: 999px;
    border: 2px solid rgba(0,0,0,0.35);
}
.site-modal .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(146, 12, 209, 0.55);
}
/* Firefox + evitar encadenar el scroll al fondo (overscroll chaining) */
.site-modal .overflow-y-auto {
    scrollbar-width: thin;
    scrollbar-color: rgba(146, 12, 209, 0.35) transparent;
    overscroll-behavior: contain;
}

/* Modal entrance/exit animations (fade + scale) */
@keyframes modalShow {
    from { opacity: 0; transform: translateY(10px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes modalHide {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(10px) scale(0.985); }
}

.modal-dialog {
    will-change: transform, opacity;
    transform-origin: center;
}
.modal-show {
    /* apariciÃ³n mÃ¡s lenta: duraciÃ³n aumentada a 720ms, misma curva */
    animation: modalShow 720ms cubic-bezier(.4,0,.2,1) forwards;
}
.modal-hide {
    animation: modalHide 360ms cubic-bezier(.4,0,.2,1) forwards;
}

/* Overlay fade: control opacity of the site-modal container for smooth background fade */
.site-modal {
    opacity: 0;
    transition: opacity 360ms cubic-bezier(.16,.84,.24,1);
}
.site-modal.overlay-show {
    opacity: 1;
}

/* ============================================================
   Botones y tags de marca (centralizados desde HTML inline)
   Paleta: violeta #920CD1 / lila #AD72BF / lavanda #CCB6D4
   ============================================================ */
.btn-ghost-violet { border: 1px solid rgba(173,114,191,0.40); transition: background-color .25s ease, border-color .25s ease; }
.btn-ghost-violet:hover { background-image: linear-gradient(180deg, rgba(123,40,165,0.20) 0%, rgba(78,30,110,0.15) 100%); border-color: rgba(173,114,191,0.55); }

.btn-glass-violet { background: linear-gradient(180deg, rgba(123,40,165,0.40) 0%, rgba(78,30,110,0.30) 100%); border: 1px solid rgba(173,114,191,0.30); box-shadow: 0 8px 24px rgba(0,0,0,0.45), inset 0 1px 0 rgba(246,242,255,0.08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .25s ease, box-shadow .25s ease, border-color .25s ease, transform .25s ease; }
.btn-glass-violet:hover { background: linear-gradient(180deg, rgba(130,45,175,0.42) 0%, rgba(82,28,116,0.32) 100%); border-color: rgba(173,114,191,0.40); box-shadow: 0 9px 26px rgba(0,0,0,0.45), inset 0 1px 0 rgba(246,242,255,0.10); transform: translateY(-1px); }

/* Tags / badges — solo color; el layout (inline-flex, px, py, rounded-full, text-xs, border) queda en el HTML */
.tag-violet { background: rgba(146,12,209,0.12); color: #CCB6D4; border-color: rgba(146,12,209,0.30); }
.tag-indigo { background: rgba(99,102,241,0.10); color: #C7D2FE; border-color: rgba(99,102,241,0.25); }
.tag-green  { background: rgba(16,185,129,0.10); color: #A7F3D0; border-color: rgba(16,185,129,0.25); }

/* ============================================================
   FAQ (index.html #faq) — acordeón con <details>/<summary>
   ============================================================ */
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-chevron { transition: transform .25s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item[open] summary { color: #EDE5F0; }

/* ============================================================
   Curso Tarot Egipcio — componentes reutilizables
   (consolidan estilos inline repetidos en cursos/tarot-egipcio)
   ============================================================ */
/* Chip / pill violeta con borde dorado */
.te-chip {
  background: rgba(146, 12, 209, 0.2);
  border: 1px solid rgba(201, 168, 102, 0.4);
  color: #e8d5a3;
}
/* Panel/tarjeta con degradé violeta y borde dorado */
.te-panel {
  background: linear-gradient(160deg, rgba(40, 26, 64, 0.9), rgba(25, 15, 45, 0.95));
  border-color: rgba(201, 168, 102, 0.35);
}
/* Cuerpo de sección sobre imagen (más oscuro y plano) */
.te-panel-soft {
  background: rgba(17, 10, 30, 0.7);
  border-color: rgba(201, 168, 102, 0.25);
}
/* Caja de semana dentro del cronograma */
.te-week {
  background: rgba(20, 10, 35, 0.55);
  border-color: rgba(201, 168, 102, 0.18);
}
/* Badge "Mes N" del programa */
.te-badge-mes {
  background: linear-gradient(135deg, #9a6c10, #d4af37);
  color: #1a0d00;
  flex: none;          /* no encoger dentro del flex del summary (títulos largos) */
  white-space: nowrap; /* "Mes N" siempre en una sola línea */
}
/* Botón dorado de CTA */
.te-btn-gold {
  background: linear-gradient(135deg, #9a6c10 0%, #d4af37 40%, #f0d060 50%, #d4af37 60%, #9a6c10 100%);
  color: #1a0d00;
  box-shadow: 0 6px 24px rgba(201, 168, 102, 0.3);
}
/* Botón secundario WhatsApp — vidrio con acento verde */
.btn-glass-wa {
  border: 1px solid rgba(34, 197, 94, 0.40);
}
.btn-glass-wa:hover {
  border-color: rgba(34, 197, 94, 0.65);
  background-color: rgba(20, 83, 45, 0.20);
}

/* ============================================================
   Tema Egipcio global — identidad violeta + dorado
   (globaliza el look de cursos/tarot-egipcio para todo el sitio)
   ============================================================ */
/* Título con degradé dorado — centro claro, bordes oscuros */
.gold-title {
  background: linear-gradient(180deg,
      #7a5810 0%,
      #c9921a 22%,
      #f0d060 48%,
      #e8c040 52%,
      #c9921a 78%,
      #7a5810 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Acento dorado más brillante (subtítulos, énfasis, badges) */
.gold-accent {
  background: linear-gradient(180deg, #9a7020 0%, #d4af37 45%, #f5e070 50%, #d4af37 55%, #9a7020 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Colores dorados sólidos reutilizables */
.text-gold      { color: #c9a866; }
.text-gold-soft { color: #e8d5a3; }
/* Divisor dorado horizontal (línea con fade) */
.gold-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #c9a866, transparent);
}
/* Textura de puntos místicos — añadir clase a <body>.
   Se pinta como capa de fondo (sin elemento extra ni problemas de z-index). */
.theme-egipcio {
  background-color: #191B31;
  background-image:
    radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.07) 1px, transparent 0),
    linear-gradient(135deg, #191B31 0%, #281A40 55%, #432B59 100%);
  background-size: 40px 40px, cover;
  background-attachment: fixed, fixed;
  background-repeat: repeat, no-repeat;
}

/* ============================================================
   Widget flotante del chatbot (index.html, solo desktop)
   ============================================================ */
.chat-widget-panel {
  position: fixed;
  right: 1rem;
  bottom: 5.5rem;
  z-index: 60;
  width: min(380px, calc(100vw - 2rem));
  height: min(600px, calc(100vh - 7rem));
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(173,114,191,0.35);
  box-shadow: 0 18px 48px rgba(0,0,0,0.55);
  background: #1d1233;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.chat-widget-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.chat-widget-panel iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ============================================================
   PÁGINAS LEGALES (arrepentimiento / privacidad / términos)
   Estilos compartidos. Reemplazan los .legal-* que antes
   estaban duplicados inline en cada página, y agregan los
   componentes on-brand del formulario de arrepentimiento.
   ============================================================ */

/* --- Prosa legal --- */
.legal-prose { color: #d1d5db; }
.legal-prose h2:first-of-type { margin-top: .5rem; }

.legal-h2 {
  position: relative;
  font-size: 1.3rem;
  line-height: 1.4;
  font-weight: 700;
  color: #e8d5a3;
  margin: 2rem 0 .85rem;
  padding-left: .85rem;
}
.legal-h2::before {
  content: "";
  position: absolute;
  left: 0; top: .18em; bottom: .18em;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f0d060, #c9921a);
}

.legal-ul { list-style: disc; padding-left: 1.25rem; margin: .35rem 0; color: #d1d5db; line-height: 1.75; }
.legal-ul li { margin: .4rem 0; }

.legal-link { color: #e8d5a3; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; transition: color .2s ease; }
.legal-link:hover { color: #f3e7c4; }

.legal-callout {
  background: rgba(201, 168, 102, 0.08);
  border: 1px solid rgba(201, 168, 102, 0.30);
  border-left: 3px solid #c9a866;
  border-radius: .9rem;
  padding: 1rem 1.15rem;
  margin: 1.4rem 0;
}

/* --- Stepper "Cómo funciona" --- */
.howto-step {
  position: relative;
  background: rgba(17, 10, 30, 0.70);
  border: 1px solid rgba(201, 168, 102, 0.22);
  border-radius: 1rem;
  padding: 1.25rem 1.15rem;
  height: 100%;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.howto-step:hover {
  border-color: rgba(201, 168, 102, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.howto-step__num {
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  font-weight: 700;
  color: #1a0d00;
  background: linear-gradient(135deg, #9a6c10, #d4af37);
  box-shadow: 0 4px 12px rgba(201, 168, 102, 0.35);
  margin-bottom: .8rem;
}
.howto-step__icon { color: #c9a866; margin-left: .5rem; }

/* --- Sellos de confianza --- */
.trust-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .7rem;
  border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  color: #e8d5a3;
  background: rgba(146, 12, 209, 0.10);
  border: 1px solid rgba(201, 168, 102, 0.30);
  white-space: nowrap;
}
.trust-badge i { color: #c9a866; }

/* --- Formulario: fieldset agrupado --- */
.ar-fieldset { border: 0; margin: 0 0 1.75rem; padding: 0; min-width: 0; }
.ar-fieldset:last-of-type { margin-bottom: 0; }
.ar-legend {
  display: flex; align-items: center; gap: .55rem;
  width: 100%;
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: #e8d5a3;
  padding-bottom: .6rem; margin-bottom: 1.1rem;
  border-bottom: 1px solid rgba(201, 168, 102, 0.22);
}
.ar-legend i { color: #c9a866; }
.ar-label-icon { color: #c9a866; margin-right: .4rem; font-size: .82em; }

/* Fallback sin JS: si el navegador no ejecuta scripts, el observer de reveal
   nunca corre; mostramos igual el contenido (clave para las páginas legales). */
@media (scripting: none) {
  .animate-on-scroll { opacity: 1 !important; transform: none !important; }
}

/* --- Inputs: foco dorado (gana al focus:ring-magenta de Tailwind) --- */
.ar-input { border-radius: .75rem; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.ar-input:focus {
  outline: none;
  border-color: rgba(201, 168, 102, 0.65) !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 102, 0.20), 0 0 14px rgba(201, 168, 102, 0.10) !important;
  background: rgba(31, 23, 48, 0.85);
}
.ar-check { accent-color: #c9a866; width: 1rem; height: 1rem; }

