/* =========================================================
   🧩 Estilos — Eventos InSOFT
========================================================= */
.clientes-section {
  min-height: 100vh;
  padding: clamp(28px, 5vw, 48px) 16px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1000px 600px at 15% -10%, rgba(6,182,212,0.16), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(31,45,84,0.22), transparent 60%),
    linear-gradient(180deg, #0b1430 0%, #14234f 100%);
  position: relative;
  overflow: hidden;
}

.clientes-section::before,
.clientes-section::after {
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .18;
  pointer-events: none;
  transition: transform .6s ease;
}
.clientes-section::before { background: #19191a; top: -120px; left: -140px; }
.clientes-section::after { background: #3b5eff; bottom: -140px; right: -160px; }
.clientes-section:hover::before { transform: translate3d(0,6px,0); }
.clientes-section:hover::after  { transform: translate3d(0,-6px,0); }

.clientes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 32px);
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 880px) {
  .clientes-grid { grid-template-columns: 1.05fr 1fr; }
}

.eventos-insoft {
  max-width: 1060px;
  margin: 24px auto;
  background: #fff;
  border: 1px solid #e9ecf5;
  border-radius: 16px;
  padding: 18px 16px 22px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
}
.eventos-insoft h2 { margin: 0 0 6px; font-size: clamp(1.2rem, 2.5vw, 1.6rem); color: var(--brand); text-align: left; }
.eventos-insoft .eventos-sub { margin: 0 0 14px; color: #000000; font-size: 0.95rem; }

.event-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
@media (min-width: 640px) { .event-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .event-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1280px) { .eventos-insoft { max-width: 980px; } }

.event-card {
  border: 1px solid #e9ecf5;
  border-radius: 14px; padding: 14px;
  background: linear-gradient(180deg, #fff, #f7f9ff);
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
  display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.event-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,0.06); border-color: rgba(31,45,84,0.12); }

.event-pill {
  justify-self: start; font-size: 0.72rem; letter-spacing: 0.4px;
  background: var(--accent, #06B6D4); color: #fff;
  border-radius: 999px; padding: 4px 8px; font-weight: 700;
}
.event-pill.gold { background: var(--gold); }

.event-title { margin: 0; font-size: clamp(1rem, 2.2vw, 1.15rem); color: var(--brand-2); line-height: 1.25; }
.event-desc { margin: 0; color: #374151; font-size: 0.95rem; }

.event-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.82rem; color: var(--muted); }
.meta-item { background: #eef2ff; color: #4b5563; padding: 4px 8px; border-radius: 10px; }

.event-cta {
  margin-top: 2px; justify-self: center; display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 10px 14px; font-weight: 700;
  background: var(--brand); color: #fff; transition: background .2s ease;
}
.event-cta:hover { background: var(--brand-2); }

/* =========================================================
   💬 ESTILOS DEL MODAL DE DETALLES DE BLOG
   ========================================================= */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(6, 10, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal-container {
  background: #ffffff;
  color: #1f2937;
  border-radius: 24px;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5);
  position: relative;
  display: flex;
  flex-direction: column;
  animation: modalScaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 2.2rem;
  font-weight: 300;
  color: #9ca3af;
  cursor: pointer;
  z-index: 100;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  color: #1f2937;
  transform: scale(1.1);
}

.modal-body {
  padding: 36px 36px 20px;
  overflow-y: auto;
  flex-grow: 1;
  text-align: left;
}

.modal-body h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: #1F2D54;
  margin-bottom: 20px;
  line-height: 1.3;
}

.modal-body p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 16px;
}

.modal-body ul, .modal-body ol {
  padding-left: 20px;
  margin-bottom: 20px;
  color: #4b5563;
}

.modal-body li {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.modal-footer {
  padding: 20px 36px 28px;
  border-top: 1px solid #f3f4f6;
  background: #f9fafb;
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

.modal-footer .btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
  transition: all 0.3s ease;
}

.modal-footer .btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  filter: brightness(1.05);
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

