/**
 * Estuches de Bendiciones - Estilos del Recomendador Místico Flotante
 * Diseñado para evitar conflictos con temas de WordPress / WooCommerce.
 * Prefijo: eb- (Estuche de Bendiciones)
 */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --eb-purple-dark: #0f0714;
  --eb-purple-medium: #220f30;
  --eb-purple-light: #3e1b53;
  --eb-magenta-glow: #8e1f5c;
  --eb-magenta-bright: #b62475;
  --eb-gold-primary: #d4af37;
  --eb-gold-light: #f7e29c;
  --eb-gold-glow: rgba(212, 175, 55, 0.45);
  --eb-gold-gradient: linear-gradient(135deg, #fce096 0%, #d4af37 50%, #997415 100%);
  --eb-mystic-gradient: linear-gradient(145deg, #1d0926 0%, #100617 100%);
  --eb-text-light: #fdfaf6;
  --eb-text-muted: #d1c5d9;
  --eb-card-bg: rgba(36, 15, 50, 0.65);
  --eb-card-border: rgba(212, 175, 55, 0.25);
  --eb-card-border-hover: rgba(247, 226, 156, 0.7);
  --eb-radius-sm: 8px;
  --eb-radius-md: 14px;
  --eb-radius-lg: 22px;
  --eb-radius-full: 9999px;
  --eb-font-heading: 'Cinzel', serif;
  --eb-font-body: 'Montserrat', sans-serif;
  --eb-shadow-glow: 0 0 25px rgba(182, 36, 117, 0.5), 0 0 50px rgba(212, 175, 55, 0.25);
  --eb-z-index: 999999;
}

/* ========================================================
   1. BOTÓN FLOTANTE MÍSTICO CON EFECTOS DE BRILLO Y PULSO
   ======================================================== */
.eb-floating-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--eb-z-index);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--eb-font-body);
  user-select: none;
}

/* Posición alternativa en la izquierda si se configura */
.eb-floating-launcher.eb-pos-left {
  right: auto;
  left: 24px;
  flex-direction: row-reverse;
}

/* Tooltip / Notificación flotante que invita a dar clic */
.eb-launcher-bubble {
  background: rgba(22, 9, 31, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--eb-gold-primary);
  border-radius: var(--eb-radius-full);
  padding: 8px 16px;
  color: var(--eb-gold-light);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(212, 175, 55, 0.2);
  white-space: nowrap;
  pointer-events: none;
  animation: ebFloatBadge 3.5s ease-in-out infinite alternate;
  display: flex;
  align-items: center;
  gap: 6px;
}

.eb-launcher-bubble span.eb-sparkle {
  color: #ffd700;
  animation: ebTwinkle 1.8s infinite ease-in-out;
}

/* Botón disparador principal */
.eb-launcher-btn {
  background: linear-gradient(135deg, #321045 0%, #15061e 50%, #4a1036 100%);
  border: 1.5px solid var(--eb-gold-primary);
  border-radius: var(--eb-radius-full);
  color: #fff;
  padding: 10px 18px 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  outline: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(182, 36, 117, 0.4);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Aura de brillo pulsante detrás del botón */
.eb-launcher-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.35) 0%, rgba(182, 36, 117, 0.2) 40%, transparent 70%);
  animation: ebAuraSpin 8s linear infinite;
  pointer-events: none;
}

/* Destello de brillo tipo luz que cruza el botón periódicamente */
.eb-launcher-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: ebShimmerSweep 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

.eb-launcher-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.55), 0 0 45px rgba(182, 36, 117, 0.4);
  border-color: var(--eb-gold-light);
}

.eb-launcher-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* Ícono orbe místico */
.eb-launcher-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.5), 0 0 8px rgba(212, 175, 55, 0.35);
  position: relative;
  z-index: 2;
  animation: ebPulseOrb 2.6s ease-in-out infinite;
  overflow: hidden;
  padding: 4px;
  border: 1.5px solid var(--eb-gold-primary);
}

.eb-launcher-symbol-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.eb-launcher-text {
  position: relative;
  z-index: 2;
  text-align: left;
}

.eb-launcher-title {
  display: block;
  font-family: var(--eb-font-heading);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.5px;
  color: var(--eb-gold-light);
  line-height: 1.2;
}

.eb-launcher-subtitle {
  display: block;
  font-size: 11px;
  color: var(--eb-text-muted);
  font-weight: 400;
  margin-top: 2px;
}

/* ========================================================
   2. VENTANA MODAL DEL ORÁCULO DE ESTUCHES
   ======================================================== */
.eb-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 4, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: var(--eb-z-index);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.eb-modal-window {
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  background: var(--eb-mystic-gradient);
  border: 1px solid var(--eb-card-border);
  border-radius: var(--eb-radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(142, 31, 92, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--eb-text-light);
  font-family: var(--eb-font-body);
}

.eb-modal-backdrop.eb-active .eb-modal-window {
  transform: translateY(0) scale(1);
}

/* Borde superior decorativo dorado */
.eb-modal-window::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--eb-gold-gradient);
  z-index: 10;
}

/* Fondo de estrellas tenues */
.eb-modal-stars {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 100px 150px, #ffd700, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 250px 80px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 450px 220px, #f7e29c, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 520px 120px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 320px 380px, #b62475, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 150px 420px, #ffffff, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 550px 550px;
  opacity: 0.35;
  pointer-events: none;
}

/* Cabecera del modal */
.eb-modal-header {
  padding: 20px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  position: relative;
  z-index: 5;
}

.eb-modal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eb-modal-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--eb-gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--eb-gold-light);
  font-size: 14px;
  background: rgba(212, 175, 55, 0.1);
}

.eb-modal-title {
  font-family: var(--eb-font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--eb-gold-light);
  margin: 0;
  text-transform: uppercase;
}

.eb-modal-close-btn {
  background: transparent;
  border: none;
  color: var(--eb-text-muted);
  font-size: 24px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.eb-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: rotate(90deg);
}

/* Barra de progreso de preguntas */
.eb-progress-container {
  padding: 12px 24px 0;
  position: relative;
  z-index: 5;
}

.eb-progress-bar-bg {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--eb-radius-full);
  overflow: hidden;
}

.eb-progress-bar-fill {
  height: 100%;
  width: 33.3%;
  background: var(--eb-gold-gradient);
  border-radius: var(--eb-radius-full);
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.eb-progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--eb-text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.eb-progress-step-text {
  color: var(--eb-gold-light);
}

/* Contenido del modal / Scrollable */
.eb-modal-body {
  padding: 20px 24px 28px;
  overflow-y: auto;
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
}

/* Personalización del scroll */
.eb-modal-body::-webkit-scrollbar {
  width: 6px;
}
.eb-modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.eb-modal-body::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 4px;
}
.eb-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.6);
}

/* ========================================================
   3. PANTALLAS DE PREGUNTAS (WIZARD STEPS)
   ======================================================== */
.eb-step-container {
  display: none;
  animation: ebFadeIn 0.4s ease forwards;
}

.eb-step-container.eb-step-active {
  display: block;
}

.eb-question-badge {
  display: inline-block;
  background: rgba(182, 36, 117, 0.2);
  border: 1px solid rgba(182, 36, 117, 0.5);
  color: #f7a2cb;
  padding: 4px 12px;
  border-radius: var(--eb-radius-full);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.eb-question-title {
  font-family: var(--eb-font-heading);
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin: 0 0 8px;
}

.eb-question-subtitle {
  font-size: 13.5px;
  color: var(--eb-text-muted);
  margin: 0 0 20px;
  line-height: 1.5;
}

/* Lista de opciones de respuesta */
.eb-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eb-option-card {
  background: var(--eb-card-bg);
  border: 1px solid var(--eb-card-border);
  border-radius: var(--eb-radius-md);
  padding: 13px 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.eb-option-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--eb-gold-gradient);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.eb-option-card:hover {
  background: rgba(56, 22, 77, 0.65);
  border-color: var(--eb-card-border-hover);
  transform: translateX(4px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3), 0 0 15px rgba(212, 175, 55, 0.15);
}

.eb-option-card:hover::before {
  opacity: 1;
}

.eb-option-card:active {
  transform: scale(0.99) translateX(2px);
}

.eb-option-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.eb-option-card:hover .eb-option-icon {
  border-color: var(--eb-gold-light);
  background: rgba(212, 175, 55, 0.15);
  transform: scale(1.1);
}

.eb-option-content {
  flex-grow: 1;
}

.eb-option-label {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--eb-text-light);
  line-height: 1.3;
}

.eb-option-hint {
  display: block;
  font-size: 12px;
  color: var(--eb-text-muted);
  margin-top: 2px;
}

.eb-option-arrow {
  color: var(--eb-gold-primary);
  font-size: 16px;
  opacity: 0.6;
  transition: all 0.25s ease;
}

.eb-option-card:hover .eb-option-arrow {
  opacity: 1;
  transform: translateX(4px);
  color: var(--eb-gold-light);
}

/* ========================================================
   4. PANTALLA DE SINTONIZACIÓN / CALCULANDO RESONANCIA
   ======================================================== */
.eb-tuning-step {
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.eb-mystic-portal {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eb-portal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed var(--eb-gold-primary);
  animation: ebSpinSlow 10s linear infinite;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.eb-portal-ring-inner {
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  border: 1.5px solid var(--eb-magenta-bright);
  animation: ebSpinReverse 6s linear infinite;
  opacity: 0.7;
}

.eb-portal-center-icon {
  font-size: 38px;
  color: var(--eb-gold-light);
  animation: ebPulseCenter 1.8s ease-in-out infinite alternate;
}

.eb-tuning-title {
  font-family: var(--eb-font-heading);
  font-size: 20px;
  color: var(--eb-gold-light);
  margin-bottom: 8px;
}

.eb-tuning-phrase {
  font-size: 13.5px;
  color: var(--eb-text-muted);
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.5;
  font-style: italic;
}

/* ========================================================
   5. PANTALLA DE RESULTADO: EL ESTUCHE RECOMENDADO
   ======================================================== */
.eb-result-step {
  display: none;
  animation: ebFadeScaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.eb-result-step.eb-step-active {
  display: block;
}

.eb-result-header-badge {
  text-align: center;
  margin-bottom: 16px;
}

.eb-result-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--eb-gold-gradient);
  color: #1a0826;
  font-family: var(--eb-font-heading);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--eb-radius-full);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.4);
}

.eb-result-card {
  background: rgba(30, 12, 43, 0.75);
  border: 1px solid var(--eb-gold-primary);
  border-radius: var(--eb-radius-lg);
  padding: 22px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 30px rgba(182, 36, 117, 0.25);
  position: relative;
  overflow: hidden;
}

.eb-result-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.eb-result-product-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  align-items: center;
}

@media (max-width: 580px) {
  .eb-result-product-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.eb-result-img-wrapper {
  position: relative;
  border-radius: var(--eb-radius-md);
  overflow: hidden;
  background: radial-gradient(circle, rgba(142, 31, 92, 0.3) 0%, rgba(15, 7, 20, 0.8) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eb-result-img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.6));
}

.eb-result-card:hover .eb-result-img {
  transform: scale(1.05);
}

.eb-affinity-pill {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(16, 6, 23, 0.9);
  border: 1px solid var(--eb-gold-light);
  color: var(--eb-gold-light);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--eb-radius-full);
  white-space: nowrap;
}

.eb-result-info {
  display: flex;
  flex-direction: column;
}

.eb-result-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--eb-gold-primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.eb-result-title {
  font-family: var(--eb-font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.eb-result-desc {
  font-size: 13.5px;
  color: var(--eb-text-muted);
  line-height: 1.55;
  margin: 0 0 12px;
}

.eb-result-perks {
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--eb-gold-primary);
  padding: 8px 12px;
  border-radius: 0 var(--eb-radius-sm) var(--eb-radius-sm) 0;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: var(--eb-gold-light);
}

.eb-result-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.eb-result-price-label {
  font-size: 12px;
  color: var(--eb-text-muted);
}

.eb-result-price {
  font-family: var(--eb-font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.eb-result-price-currency {
  font-size: 13px;
  color: var(--eb-gold-primary);
  font-weight: 600;
}

/* Botón CTA a WooCommerce */
.eb-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--eb-gold-gradient);
  color: #190724;
  font-family: var(--eb-font-heading);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: var(--eb-radius-full);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4), 0 0 15px rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-align: center;
}

.eb-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.6), 0 0 25px rgba(255, 255, 255, 0.3);
  color: #0b0210;
}

.eb-btn-cta:active {
  transform: translateY(1px);
}

/* Acciones secundarias */
.eb-result-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.eb-btn-retry {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--eb-text-muted);
  font-size: 13px;
  padding: 9px 16px;
  border-radius: var(--eb-radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.eb-btn-retry:hover {
  border-color: var(--eb-gold-primary);
  color: var(--eb-gold-light);
  background: rgba(212, 175, 55, 0.1);
}

.eb-btn-all {
  color: var(--eb-gold-light);
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.eb-btn-all:hover {
  text-decoration: underline;
  transform: translateX(3px);
}

/* ========================================================
   6. ANIMACIONES CLAVE
   ======================================================== */
@keyframes ebFloatBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

@keyframes ebPulseOrb {
  0% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 255, 255, 0.4), 0 0 14px rgba(212, 175, 55, 0.4); }
  50% { transform: scale(1.06); box-shadow: 0 0 18px rgba(255, 255, 255, 0.8), 0 0 22px rgba(212, 175, 55, 0.7); }
  100% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 255, 255, 0.4), 0 0 14px rgba(212, 175, 55, 0.4); }
}

@keyframes ebAuraSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes ebShimmerSweep {
  0% { left: -150%; }
  35% { left: 150%; }
  100% { left: 150%; }
}

@keyframes ebTwinkle {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes ebSpinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ebSpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes ebPulseCenter {
  from { transform: scale(0.9); opacity: 0.7; }
  to { transform: scale(1.15); opacity: 1; }
}

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

@keyframes ebFadeScaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

/* ========================================================
   7. RESPONSIVIDAD Y AJUSTES MÓVILES
   ======================================================== */
@media (max-width: 640px) {
  .eb-floating-launcher {
    bottom: 16px;
    right: 16px;
  }
  
  .eb-floating-launcher.eb-pos-left {
    left: 16px;
  }

  .eb-launcher-bubble {
    display: none; /* En móvil dejamos solo el botón para no tapar la pantalla */
  }

  .eb-launcher-btn {
    padding: 8px 14px 8px 10px;
  }

  .eb-launcher-title {
    font-size: 12.5px;
  }

  .eb-launcher-subtitle {
    font-size: 10px;
  }

  .eb-modal-backdrop {
    padding: 10px;
    align-items: flex-end; /* En móvil funciona genial estilo 'bottom-sheet' */
  }

  .eb-modal-window {
    max-height: 85vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .eb-modal-header {
    padding: 16px 18px 12px;
  }

  .eb-modal-body {
    padding: 16px 18px 24px;
  }

  .eb-question-title {
    font-size: 18px;
  }

  .eb-option-card {
    padding: 11px 13px;
  }

  .eb-option-label {
    font-size: 13.5px;
  }

  .eb-result-title {
    font-size: 21px;
  }
}
