/* ==========================================================================
   ESTILOS - PRESELL WHITE CRO (HIGH CTR / SCANNABLE / META ADS COMPLIANT)
   Portal: Salud & Rendimiento | Bienestar Masculino
   Paleta: #FFFFFF (Blanco), #F9FAFB (Gris claro), #374151 (Texto),
           #111827 (Títulos), #2563EB (Azul Médico Primario)
   ========================================================================== */

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

:root {
  --bg-main: #F9FAFB;
  --bg-card: #FFFFFF;
  --text-main: #374151;
  --text-heading: #111827;
  --text-muted: #6B7280;
  --color-primary: #2563EB;
  --color-primary-hover: #1D4ED8;
  --color-primary-light: #EFF6FF;
  --color-border: #E5E7EB;
  --color-border-hover: #D1D5DB;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
}

/* ========================================== */
/* BOTONES CRO: ESTRATEGIA DE DOBLE CTA       */
/* ========================================== */

/* Botón Primario: El más llamativo de la página */
.btn-primary-medical {
  background-color: var(--color-primary);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 1.6rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.35);
  transition: all 0.18s ease-in-out;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.btn-primary-medical:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.45);
}

.btn-primary-medical:active {
  transform: translateY(0);
  background-color: #1E40AF;
}

/* Botón Secundario: Outline / Ancla visual */
.btn-secondary-outline {
  background-color: #FFFFFF;
  color: #4B5563 !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.4rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--color-border);
  transition: all 0.18s ease-in-out;
  text-decoration: none;
  cursor: pointer;
}

.btn-secondary-outline:hover {
  background-color: #F3F4F6;
  border-color: var(--color-border-hover);
  color: var(--text-heading) !important;
}

/* ========================================== */
/* COMPONENTES VISUALES Y TARJETAS HERO      */
/* ========================================== */

.hero-image-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.875rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  background-color: #FFFFFF;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hero-image-card:hover img {
  transform: scale(1.02);
}

/* Item de beneficio escaneable con icono check */
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.925rem;
  line-height: 1.45;
  color: var(--text-main);
}

.check-icon-circle {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background-color: #DCFCE7;
  color: #16A34A;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* ========================================== */
/* MODALES LEGALES (COMPLIANCE META ADS)     */
/* ========================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #FFFFFF;
  border-radius: 0.75rem;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-border);
  transform: scale(0.97);
  transition: transform 0.2s ease-in-out;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

/* ========================================== */
/* NOTIFICACIONES DE PRUEBA SOCIAL FLOTANTES  */
/* ========================================== */

#social-proof-toast-container {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 9999;
  pointer-events: none;
  max-width: 320px;
  width: calc(100vw - 2.5rem);
}

.social-proof-toast {
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 0.75rem;
  padding: 0.75rem 0.95rem;
  box-shadow: 0 12px 28px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(22px) scale(0.96);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.social-proof-toast.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-icon-wrapper {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9999px;
  background-color: #DCFCE7;
  color: #16A34A;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(22, 163, 74, 0.15);
}

.toast-check-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.toast-text-wrapper {
  flex-grow: 1;
  min-width: 0;
}

.toast-message {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #374151;
  margin: 0;
}

.toast-message strong {
  color: #111827;
  font-weight: 700;
}

.toast-timestamp {
  display: block;
  font-size: 0.6875rem;
  color: #6B7280;
  margin-top: 0.2rem;
  font-weight: 500;
}

/* ========================================== */
/* CONTADOR DINÁMICO EN VIVO (NEUROMARKETING) */
/* ========================================== */

.live-indicator-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.pulse-dot-beacon {
  position: relative;
  width: 0.55rem;
  height: 0.55rem;
  background-color: #10B981;
  border-radius: 9999px;
  display: inline-block;
}

.pulse-dot-beacon::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 9999px;
  background-color: rgba(16, 185, 129, 0.45);
  animation: beacon-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes beacon-ping {
  75%, 100% {
    transform: scale(2.3);
    opacity: 0;
  }
}

.live-counter-number {
  display: inline-block;
  color: #111827 !important;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.01em;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.25s ease, color 0.2s ease;
}

.live-counter-number.counter-updating {
  transform: scale(1.08);
  color: #059669 !important;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* ========================================== */
/* ANCLAJE DE PRECIO (PRICE ANCHORING CRO)    */
/* ========================================== */

.price-anchoring-box {
  background: linear-gradient(180deg, #181818 0%, #111111 100%);
  border: 1px solid #333333;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.price-anchor-strikethrough {
  color: #808080 !important;
  text-decoration: line-through;
  text-decoration-color: #FF4D4D;
  text-decoration-thickness: 2px;
}

.price-urgency-badge {
  background-color: #FF0000 !important;
  color: #FFFFFF !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 0.375rem;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
  animation: badge-pulse-glow 1.8s infinite ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

@keyframes badge-pulse-glow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.85);
  }
}

.text-shadow-glow {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.45), 0 2px 4px rgba(0, 0, 0, 0.8);
}



