/* =========================
   IB ABSTRACT PRO (estética premium refinada)
   ========================= */
:root{
  --p1:#6D28D9;
  --p2:#A855F7;
  --p3:#3B0764;
  --ink:#0a0e1a;
  --muted:#475569;
  --surface:#f8fafc;
  --shadow: 0 32px 90px rgba(2,6,23,.12);
  --shadow2: 0 28px 70px rgba(59,7,100,.16);
  --shadow3: 0 12px 40px rgba(109,40,217,.08);
}

/* MEJORA: degradado más sofisticado con noise texture simulado */
.ib-abstract{
  position: relative;
  overflow: hidden;
  padding: 130px 0;
  background:
    radial-gradient(1200px 600px at 12% 20%, rgba(168,85,247,.12), transparent 65%),
    radial-gradient(1000px 550px at 88% 25%, rgba(109,40,217,.10), transparent 68%),
    radial-gradient(800px 800px at 50% 50%, rgba(168,85,247,.03), transparent),
    linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

.ib-abstract__inner{
  position: relative;
  z-index: 3;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.ib-abstract__grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items:center;
}

@media (max-width: 900px){
  .ib-abstract{ padding: 100px 0; }
  .ib-abstract__grid{ grid-template-columns: 1fr; gap: 32px; }
}

/* =========================
   BLOBS (más sutiles y elegantes)
   ========================= */
.ib-blob{
  position:absolute;
  z-index: 1;
  pointer-events:none;
  transform: translateZ(0);
  opacity: .88;
  filter: blur(1px); /* MEJORA: blur sutil para efecto glass */
}

.ib-blob--img{
  width: 560px;
  height: 720px;
  left: -200px;
  top: -220px;
  border-radius: 
    46% 54% 38% 62% / 
    64% 32% 68% 36%;
  overflow: hidden;
  background: 
    radial-gradient(circle at 38% 28%, rgba(168,85,247,.86), rgba(109,40,217,.78) 58%, rgba(59,7,100,.65)),
    linear-gradient(135deg, rgba(168,85,247,.08), transparent);
  box-shadow: 
    var(--shadow2),
    inset 0 1px 0 rgba(255,255,255,.15); /* MEJORA: borde interno sutil */
}

.ib-blob--img img{
  width:100%;
  height:100%;
  object-fit: cover;
  opacity: .82;
  mix-blend-mode: soft-light;
  filter: saturate(1.08) contrast(1.04) brightness(1.02);
}

.ib-blob--soft{
  width: 580px;
  height: 760px;
  right: -240px;
  bottom: -280px;
  border-radius:
    36% 64% 44% 56% /
    66% 26% 74% 34%;
  background: 
    radial-gradient(circle at 42% 32%, rgba(109,40,217,.72), rgba(168,85,247,.60) 58%, rgba(59,7,100,.48)),
    linear-gradient(225deg, rgba(168,85,247,.06), transparent);
  box-shadow: var(--shadow2);
  opacity: .68;
  filter: blur(1.5px); /* MEJORA: más difuso */
}

/* =========================
   BUBBLES (más refinadas)
   ========================= */
.ib-bubbles{
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
}

.ib-bubble{
  position:absolute;
  border-radius:999px;
  background: 
    radial-gradient(circle at 28% 28%,
      rgba(255,255,255,.92),
      rgba(168,85,247,.24) 42%,
      rgba(109,40,217,.16)
    );
  opacity:.48;
  will-change: transform, opacity;
  animation: ibFloat 28s cubic-bezier(.42,.05,.58,.95) infinite;
  /* MEJORA: backdrop blur para efecto glass */
  backdrop-filter: blur(4px);
  box-shadow: 
    0 4px 12px rgba(109,40,217,.08),
    inset 0 1px 0 rgba(255,255,255,.4);
}

@keyframes ibFloat{
  0%   { transform: translate3d(0,0,0) scale(1);    opacity:.28; }
  50%  { transform: translate3d(28px,-32px,0) scale(1.14); opacity:.68; }
  100% { transform: translate3d(0,0,0) scale(1);    opacity:.28; }
}

/* burbujas con variación más natural */
.ib-bubble:nth-child(1){ left:10%; top:22%; width:11px; height:11px; animation-duration: 32s; animation-delay: -3s; }
.ib-bubble:nth-child(2){ left:18%; top:62%; width:15px; height:15px; animation-duration: 38s; animation-delay: -12s; }
.ib-bubble:nth-child(3){ left:28%; top:40%; width:9px;  height:9px;  animation-duration: 42s; animation-delay: -20s; }
.ib-bubble:nth-child(4){ left:40%; top:16%; width:13px; height:13px; animation-duration: 36s; animation-delay: -7s; }
.ib-bubble:nth-child(5){ left:52%; top:70%; width:10px; height:10px; animation-duration: 46s; animation-delay: -24s; }
.ib-bubble:nth-child(6){ left:62%; top:46%; width:17px; height:17px; animation-duration: 40s; animation-delay: -16s; }
.ib-bubble:nth-child(7){ left:70%; top:24%; width:12px; height:12px; animation-duration: 50s; animation-delay: -29s; }
.ib-bubble:nth-child(8){ left:82%; top:58%; width:9px;  height:9px;  animation-duration: 54s; animation-delay: -34s; }
.ib-bubble:nth-child(9){ left:88%; top:28%; width:14px; height:14px; animation-duration: 44s; animation-delay: -10s; }
.ib-bubble:nth-child(10){ left:58%; top:20%; width:8px; height:8px; animation-duration: 58s; animation-delay: -38s; }
.ib-bubble:nth-child(11){ left:24%; top:18%; width:7px; height:7px; animation-duration: 62s; animation-delay: -42s; }

/* =========================
   COPY (tipografía más refinada)
   ========================= */
.ib-pill{
  display:inline-flex;
  align-items:center;
  gap:11px;
  padding: 11px 18px;
  border-radius: 999px;
  background: 
    linear-gradient(135deg, rgba(109,40,217,.08), rgba(168,85,247,.06)),
    rgba(255,255,255,.82);
  color: var(--p3);
  font-weight: 800;
  letter-spacing: .3px;
  font-size: 14px;
  /* MEJORA: borde sutil y sombra */
  border: 1px solid rgba(109,40,217,.12);
  box-shadow: 0 2px 8px rgba(109,40,217,.04);
  backdrop-filter: blur(12px);
}

.ib-pill__dot{
  width:10px; height:10px; border-radius:50%;
  background: linear-gradient(135deg, var(--p2), var(--p1));
  box-shadow: 
    0 0 0 6px rgba(168,85,247,.12),
    0 2px 6px rgba(109,40,217,.2);
  animation: ibPulse 3s ease-in-out infinite;
}

@keyframes ibPulse{
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: .85; }
}

.ib-title{
  margin: 20px 0 12px;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -1.2px;
  font-weight: 900;
  /* MEJORA: gradiente sutil en el texto */
  background: linear-gradient(180deg, var(--ink) 0%, #1e293b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ib-lead{
  margin: 0 0 20px;
  font-size: 17.5px;
  line-height: 1.68;
  color: var(--muted);
  max-width: 60ch;
  font-weight: 500;
  letter-spacing: -.1px;
}

.ib-actions{
  display:flex;
  gap:16px;
  align-items:center;
  flex-wrap:wrap;
  margin-top: 22px;
}

.ib-btn{
  text-decoration:none;
  font-weight: 800;
  border-radius: 999px;
  padding: 14px 24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  font-size: 15px;
  letter-spacing: .2px;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.ib-btn:active{ transform: translateY(2px); }

.ib-btn--primary{
  color:#fff;
  background: linear-gradient(135deg, var(--p1) 0%, var(--p2) 100%);
  box-shadow: 
    0 20px 60px rgba(109,40,217,.24),
    0 8px 24px rgba(109,40,217,.18),
    inset 0 1px 0 rgba(255,255,255,.25);
}
.ib-btn--primary:hover{ 
  transform: translateY(-2px); 
  box-shadow: 
    0 24px 70px rgba(109,40,217,.28),
    0 10px 30px rgba(109,40,217,.22);
}

.ib-btn--ghost{
  color: var(--p3);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(109,40,217,.12);
  box-shadow: 
    0 16px 45px rgba(2,6,23,.06),
    0 4px 12px rgba(2,6,23,.04);
}
.ib-btn--ghost:hover{ 
  background: rgba(255,255,255,.95);
  transform: translateY(-2px); 
  border-color: rgba(109,40,217,.18);
}

.ib-micro{
  margin-top: 18px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  color:#334155;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .2px;
  opacity: .88;
}
.ib-micro__sep{ 
  opacity:.28; 
  font-weight: 400;
}

/* =========================
   MEDIA (diseño más limpio)
   ========================= */
.ib-media{
  padding: 18px;
  border-radius: 28px;
  background: 
    linear-gradient(135deg, rgba(255,255,255,.68), rgba(255,255,255,.48)),
    rgba(248,250,252,.92);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 
    var(--shadow),
    0 4px 16px rgba(109,40,217,.04),
    inset 0 1px 0 rgba(255,255,255,.8);
}

.ib-media__top{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom: 16px;
}

.ib-logo{
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 20px;
  padding: 11px;
  background: 
    linear-gradient(135deg, #ffffff, #fafbfc),
    rgba(255,255,255,.95);
  box-shadow: 
    0 6px 20px rgba(2,6,23,.06),
    0 2px 6px rgba(2,6,23,.04),
    inset 0 1px 0 rgba(255,255,255,1);
  border: 1px solid rgba(109,40,217,.08);
}

.ib-meta__t{ 
  font-weight: 900; 
  letter-spacing: -.3px; 
  font-size: 15px;
  color: var(--ink);
}
.ib-meta__s{ 
  margin-top: 3px; 
  font-weight: 700; 
  color:#64748b; 
  font-size: 12.5px; 
  letter-spacing: .1px;
}

/* video bubble más profesional */
.ib-videoBubble{
  position: relative;
  width: 118%;
  aspect-ratio: 5 / 4;
  margin-left: -9%;
  border-radius:
    32% 68% 24% 76% /
    68% 32% 68% 32%;
  overflow: hidden;
  background: 
    radial-gradient(1000px 600px at 32% 22%, rgba(168,85,247,.18), rgba(109,40,217,.08)),
    linear-gradient(135deg, rgba(109,40,217,.06), rgba(168,85,247,.04));
  box-shadow:
    0 45px 120px rgba(59,7,100,.22),
    0 20px 60px rgba(109,40,217,.14),
    inset 0 1px 0 rgba(255,255,255,.15);
}

.ib-videoBubble video{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.02) contrast(1.01);
}

.ib-videoBubble__shine{
  position:absolute;
  inset:0;
  background:
    radial-gradient(950px 550px at 20% 14%, rgba(255,255,255,.32), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(59,7,100,.10));
  pointer-events:none;
  mix-blend-mode: overlay;
}

.ib-tag{
  position:absolute;
  left: 16px;
  bottom: 16px;
  padding: 12px 16px;
  border-radius: 18px;
  background: 
    linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.72)),
    rgba(248,250,252,.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 
    0 12px 32px rgba(2,6,23,.12),
    0 4px 12px rgba(2,6,23,.06),
    inset 0 1px 0 rgba(255,255,255,.9);
}

.ib-tag__a{
  display:block;
  font-weight: 900;
  color: var(--p3);
  line-height: 1;
  font-size: 17px;
  letter-spacing: -.2px;
}
.ib-tag__b{
  display:block;
  margin-top: 3px;
  font-weight: 800;
  font-size: 11.5px;
  color:#64748b;
  letter-spacing: .15px;
}

/* =========================
   BURBUJAS XL (más elegantes)
   ========================= */
.ib-bubbles-xl{
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.ib-bubble-xl{
  position: absolute;
  top: 0;
  left: -20%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 32%,
      rgba(255,255,255,.62),
      rgba(168,85,247,.20) 46%,
      rgba(109,40,217,.14)
    );
  opacity: .24;
  filter: blur(0.5px);
  will-change: transform;
  animation: ibDriftX linear infinite;
  box-shadow: 
    0 8px 24px rgba(109,40,217,.06),
    inset 0 1px 0 rgba(255,255,255,.3);
}

@keyframes ibDriftX{
  from{ transform: translate3d(-32vw, 0, 0); }
  to{ transform: translate3d(132vw, 0, 0); }
}

.ib-bubble-xl:nth-child(1){
  top: 16%; width: 240px; height: 240px;
  animation-duration: 95s; animation-delay: -12s;
}

.ib-bubble-xl:nth-child(2){
  top: 40%; width: 340px; height: 340px;
  animation-duration: 125s; animation-delay: -42s;
}

.ib-bubble-xl:nth-child(3){
  top: 62%; width: 280px; height: 280px;
  animation-duration: 110s; animation-delay: -72s;
}

.ib-bubble-xl:nth-child(4){
  top: 28%; width: 200px; height: 200px;
  animation-duration: 85s; animation-delay: -28s;
}

.ib-bubble-xl:nth-child(5){
  top: 50%; width: 380px; height: 380px;
  animation-duration: 145s; animation-delay: -95s;
}

.ib-date{
  font-size: 1em;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--p3);
}

/* MEJORA EXTRA: Micro-interacciones */
@media (hover: hover) {
  .ib-videoBubble{
    transition: transform .4s cubic-bezier(.4,0,.2,1);
  }
  .ib-videoBubble:hover{
    transform: scale(1.015);
  }
  
  .ib-tag{
    transition: all .3s cubic-bezier(.4,0,.2,1);
  }
  .ib-tag:hover{
    transform: translateY(-2px);
    box-shadow: 
      0 16px 40px rgba(2,6,23,.16),
      0 6px 16px rgba(2,6,23,.08);
  }
}