/* ============================================================
   DINÁMICAS MANÍA — styles.css
   dinamicasmania.com.co
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;600;700;800;900&family=Nunito:wght@400;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --verde-oscuro:    #0d5c1a;
  --verde-medio:     #1a8c2e;
  --verde-claro:     #2db843;
  --amarillo:        #f5c400;
  --amarillo-brillante: #ffd700;
  --blanco:          #ffffff;
  --texto-oscuro:    #0a3d12;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--verde-oscuro);
  color: var(--blanco);
  overflow-x: hidden;
}

/* ============================================================
   FAJOS DE DINERO — decorativos scroll
   ============================================================ */
.dm-money {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  font-size: 3.5rem;
  opacity: 0;
  will-change: transform, opacity;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
  transition: opacity 0.6s ease;
  user-select: none;
}
.dm-money.visible { opacity: 1; }

/* Posiciones fijas de los fajos */
.dm-money-1  { top: 28vh;  left: -2vw;  animation: floatMoney1 7s ease-in-out infinite; }
.dm-money-2  { top: 55vh;  right: -1vw; animation: floatMoney2 9s ease-in-out 1s infinite; }
.dm-money-3  { top: 110vh; left: 3vw;   animation: floatMoney1 8s ease-in-out 2s infinite; }
.dm-money-4  { top: 160vh; right: 2vw;  animation: floatMoney2 7s ease-in-out 0.5s infinite; }
.dm-money-5  { top: 220vh; left: -1vw;  animation: floatMoney1 10s ease-in-out 1.5s infinite; }
.dm-money-6  { top: 270vh; right: -2vw; animation: floatMoney2 8s ease-in-out 3s infinite; }
.dm-money-7  { top: 330vh; left: 1vw;   animation: floatMoney1 9s ease-in-out 0.8s infinite; }
.dm-money-8  { top: 390vh; right: 0vw;  animation: floatMoney2 7s ease-in-out 2s infinite; }

@keyframes floatMoney1 {
  0%,100% { transform: translateY(0) rotate(-8deg) scale(1); }
  50%      { transform: translateY(-22px) rotate(4deg) scale(1.06); }
}
@keyframes floatMoney2 {
  0%,100% { transform: translateY(0) rotate(6deg) scale(1); }
  50%      { transform: translateY(-18px) rotate(-5deg) scale(1.05); }
}

/* ============================================================
   HERO
   ============================================================ */
.dm-hero {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(ellipse at 60% 0%, #1f8c36 0%, #0a4015 50%, #051a08 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px 80px;
  overflow: hidden;
  z-index: 1;
}

/* Partículas */
.dm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(245,196,0,0.18) 1px, transparent 1px),
    radial-gradient(circle, rgba(45,184,67,0.12) 1px, transparent 1px);
  background-size: 60px 60px, 40px 40px;
  background-position: 0 0, 30px 30px;
  animation: particleDrift 20s linear infinite;
  pointer-events: none;
}

/* Trebol decorativo fondo */
.dm-hero::after {
  content: '🍀';
  position: absolute;
  font-size: clamp(160px, 35vw, 300px);
  opacity: 0.04;
  right: -40px;
  top: -20px;
  pointer-events: none;
  animation: floatClover 6s ease-in-out infinite;
}

@keyframes particleDrift {
  0%   { background-position: 0 0, 30px 30px; }
  100% { background-position: 60px 60px, 90px 90px; }
}
@keyframes floatClover {
  0%,100% { transform: translateY(0) rotate(-5deg); }
  50%      { transform: translateY(-20px) rotate(5deg); }
}

.dm-logo-wrap {
  position: relative;
  z-index: 2;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease both;
}
.dm-logo-wrap img {
  width: clamp(250px, 28vw, 300px);
  filter: drop-shadow(0 0 24px rgba(245,196,0,0.5));
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dm-hero-tag {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, var(--amarillo), #e6a800);
  color: var(--texto-oscuro);
  font-family: 'Baloo 2', cursive;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 100px;
  margin-bottom: 20px;
  animation: fadeInDown 0.9s ease both;
  animation-delay: 0.1s;
  box-shadow: 0 4px 20px rgba(245,196,0,0.4);
}

.dm-hero h1 {
  position: relative;
  z-index: 2;
  font-family: 'Baloo 2', cursive;
  font-weight: 900;
  font-size: clamp(2.2rem, 8vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeInDown 1s ease both;
  animation-delay: 0.2s;
}
.dm-hero h1 span {
  color: var(--amarillo-brillante);
  text-shadow: 0 0 30px rgba(255,215,0,0.6);
}

.dm-hero p.subtitle {
  position: relative;
  z-index: 2;
  font-size: clamp(0.95rem, 3vw, 1.25rem);
  max-width: 620px;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  margin-bottom: 36px;
  animation: fadeInDown 1s ease both;
  animation-delay: 0.35s;
}

/* ---- Dos botones WhatsApp lado a lado ---- */
.dm-cta-group {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  animation: fadeInDown 1s ease both;
  animation-delay: 0.5s;
}

.dm-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #25d366, #128c3e);
  color: #fff;
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: clamp(0.95rem, 2.8vw, 1.2rem);
  padding: 16px 32px;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 8px 40px rgba(37,211,102,0.5), 0 2px 0 rgba(255,255,255,0.15) inset;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid rgba(255,255,255,0.2);
  animation: pulse 2.5s ease-in-out 1.5s infinite;
  white-space: nowrap;
}
.dm-cta-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 50px rgba(37,211,102,0.65);
  color: #fff;
  text-decoration: none;
}
.dm-cta-btn svg { flex-shrink: 0; }

.dm-cta-btn .btn-label   { display: flex; flex-direction: column; align-items: flex-start; }
.dm-cta-btn .btn-main    { font-size: clamp(0.95rem, 2.5vw, 1.15rem); line-height: 1.2; }
.dm-cta-btn .btn-sub     { font-size: 0.72rem; font-weight: 600; opacity: 0.85; letter-spacing: 0.5px; }

@keyframes pulse {
  0%,100% { box-shadow: 0 8px 40px rgba(37,211,102,0.5); }
  50%      { box-shadow: 0 8px 60px rgba(37,211,102,0.85); }
}

.dm-hero-note {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  animation: fadeInDown 1s ease both;
  animation-delay: 0.7s;
}

/* ---- Espacio imagen hero ---- */
.dm-hero-img-placeholder {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  margin: 36px auto 0;
  border-radius: 20px;
  overflow: hidden;
  animation: fadeInDown 1s ease both;
  animation-delay: 0.85s;
}
.dm-hero-img-placeholder img {
  width: 100%;
  display: block;
  border-radius: 20px;
  /* Si aún no tienes imagen, el placeholder se muestra */
}
/* Placeholder visual si no hay imagen */
.dm-hero-img-placeholder.empty {
  min-height: 220px;
  background: rgba(255,255,255,0.05);
  border: 2px dashed rgba(255,215,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: rgba(255,255,255,0.35);
  font-size: 0.9rem;
}
.dm-hero-img-placeholder.empty span { font-size: 2.5rem; }

/* ============================================================
   STATS BAR
   ============================================================ */
.dm-stats {
  background: linear-gradient(135deg, var(--amarillo), #c98f00);
  padding: 28px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 40px;
  position: relative;
  z-index: 1;
}
.dm-stat-item { text-align: center; color: var(--texto-oscuro); }
.dm-stat-item .num {
  font-family: 'Baloo 2', cursive;
  font-weight: 900;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1;
  display: block;
}
.dm-stat-item .label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* ============================================================
   SECCIONES GENÉRICAS
   ============================================================ */
.dm-section {
  padding: 80px 20px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.dm-section-title {
  text-align: center;
  font-family: 'Baloo 2', cursive;
  font-weight: 900;
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 12px;
}
.dm-section-title span { color: var(--amarillo-brillante); }
.dm-section-subtitle {
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-bottom: 56px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ============================================================
   CÓMO FUNCIONA
   ============================================================ */
.dm-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.dm-step {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(6px);
}
.dm-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 0 1px rgba(245,196,0,0.3);
}
.dm-step-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.dm-step h3 {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--amarillo-brillante);
  margin-bottom: 10px;
}
.dm-step p { font-size: 0.95rem; color: rgba(255,255,255,0.8); line-height: 1.6; }
.dm-step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--amarillo), #e6a800);
  color: var(--texto-oscuro);
  font-family: 'Baloo 2', cursive;
  font-weight: 900;
  font-size: 0.9rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(245,196,0,0.4);
}

/* ============================================================
   JORNADAS
   ============================================================ */
.dm-jornadas-bg {
  background: linear-gradient(180deg, rgba(13,92,26,0) 0%, rgba(5,30,10,0.8) 50%, rgba(13,92,26,0) 100%);
  position: relative;
  z-index: 1;
}
.dm-jornadas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  padding: 0 20px 80px;
  max-width: 800px;
  margin: 0 auto;
}
.dm-jornada {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 2px solid rgba(255,215,0,0.25);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.dm-jornada::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(245,196,0,0.06), transparent 60%);
  pointer-events: none;
}
.dm-jornada-icon { font-size: 3.5rem; margin-bottom: 16px; display: block; }
.dm-jornada h3 {
  font-family: 'Baloo 2', cursive;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--amarillo-brillante);
  margin-bottom: 12px;
}
.dm-jornada p { color: rgba(255,255,255,0.8); line-height: 1.7; font-size: 1rem; }

/* ============================================================
   LOTERÍAS — 6 columnas con placeholders
   ============================================================ */
.dm-loterias-section {
  background: rgba(0,0,0,0.25);
  padding: 80px 20px;
  position: relative;
  z-index: 1;
}
.dm-loterias-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}
.dm-loteria-item {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(255,215,0,0.2);
  transition: transform 0.3s, border-color 0.3s;
  background: rgba(255,255,255,0.05);
}
.dm-loteria-item:hover {
  transform: scale(1.06);
  border-color: rgba(255,215,0,0.6);
}
.dm-loteria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Placeholder cuando no hay imagen */
.dm-loteria-item.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(255,255,255,0.3);
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px dashed rgba(255,215,0,0.25);
}
.dm-loteria-item.placeholder .ph-icon { font-size: 2rem; opacity: 0.5; }

@media (max-width: 768px) {
  .dm-loterias-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}
@media (max-width: 420px) {
  .dm-loterias-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   BENEFICIOS
   ============================================================ */
.dm-beneficios-bg {
  background: rgba(0,0,0,0.3);
  padding: 80px 20px;
  position: relative;
  z-index: 1;
}
.dm-beneficios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.dm-bene {
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.3s, transform 0.3s;
}
.dm-bene:hover {
  border-color: rgba(245,196,0,0.4);
  transform: translateY(-4px);
}
.dm-bene-icon { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.dm-bene h4 {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--amarillo-brillante);
  margin-bottom: 6px;
}
.dm-bene p { font-size: 0.88rem; color: rgba(255,255,255,0.7); line-height: 1.5; }

/* ============================================================
   PRECIOS
   ============================================================ */
.dm-precios-section {
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.dm-precios-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}
.dm-precio-tag {
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
  border: 2px solid rgba(255,215,0,0.35);
  border-radius: 100px;
  padding: 16px 36px;
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--amarillo-brillante);
  transition: background 0.3s, transform 0.2s;
}
.dm-precio-tag:hover {
  background: linear-gradient(135deg, rgba(245,196,0,0.2), rgba(245,196,0,0.05));
  transform: scale(1.05);
}
.dm-precio-tag .small {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  display: block;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ============================================================
   MÉTODOS DE PAGO
   ============================================================ */
.dm-pagos-section {
  background: rgba(0,0,0,0.3);
  padding: 60px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.dm-pagos-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.dm-pago-badge {
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px 28px;
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.12);
}
.dm-pago-badge .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   SOCIAL PROOF
   ============================================================ */
.dm-prueba {
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.dm-ganadores-banner {
  background: linear-gradient(135deg, #1a6e2e, #0d4518);
  border: 2px solid rgba(245,196,0,0.4);
  border-radius: 24px;
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
}
.dm-ganadores-banner::before {
  content: '🏆';
  position: absolute;
  font-size: 200px;
  opacity: 0.05;
  right: -30px;
  bottom: -30px;
  pointer-events: none;
}
.dm-ganadores-banner .big-num {
  font-family: 'Baloo 2', cursive;
  font-weight: 900;
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--amarillo-brillante);
  line-height: 1;
  text-shadow: 0 0 40px rgba(255,215,0,0.5);
  display: block;
}
.dm-ganadores-banner h3 {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  margin: 8px 0 16px;
}
.dm-ganadores-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}
.dm-evidencias {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.dm-evidencia-pill {
  background: rgba(37,211,102,0.15);
  border: 1px solid rgba(37,211,102,0.3);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #7de8a0;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.dm-cta-final {
  background: radial-gradient(ellipse at center, #1f8c36 0%, #0a4015 70%);
  padding: 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.dm-cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(245,196,0,0.12) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}
.dm-cta-final h2 {
  font-family: 'Baloo 2', cursive;
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.dm-cta-final h2 span { color: var(--amarillo-brillante); }
.dm-cta-final > p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.dm-cta-final .dm-cta-group {
  position: relative;
  z-index: 1;
  animation: none;
}
.dm-cta-final .dm-cta-btn {
  font-size: clamp(1rem, 3vw, 1.25rem);
  padding: 20px 40px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.dm-footer {
  background: #050f07;
  padding: 40px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.dm-footer img { width: 90px; opacity: 0.8; margin-bottom: 16px; }
.dm-footer p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
}

/* ============================================================
   BOTÓN FLOTANTE MÓVIL
   ============================================================ */
.dm-floating-cta {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: none;
}
@media (max-width: 768px) {
  .dm-floating-cta { display: block; }
}
.dm-floating-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #25d366, #128c3e);
  color: #fff;
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(37,211,102,0.6);
  animation: pulse 2s ease-in-out infinite;
  white-space: nowrap;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.dm-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.dm-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE GENERAL
   ============================================================ */
@media (max-width: 600px) {
  .dm-hero          { padding: 80px 16px 100px; }
  .dm-stats         { gap: 14px 28px; }
  .dm-cta-group     { flex-direction: column; align-items: center; }
  .dm-cta-btn       { width: 100%; max-width: 340px; justify-content: center; }
  .dm-jornadas      { padding: 0 16px 60px; }
  .dm-ganadores-banner { padding: 36px 20px; }
}
