/* ============================================================
   Publinovo — Página "Nosotros" (agencia-marketing-digital)
   Estilos específicos. Hereda tokens y componentes de styles.css
   ============================================================ */

/* ---------- Mini-Hero ---------- */
.mini-hero{
  position:relative; overflow:hidden;
  padding-block:clamp(52px,7vw,92px) clamp(60px,8vw,100px);
  background:
    radial-gradient(110% 120% at 88% -10%, rgba(28,157,215,.12), transparent 55%),
    radial-gradient(95% 110% at -8% 115%, rgba(140,198,63,.20), transparent 55%),
    linear-gradient(135deg, #f4faee 0%, #eef7f4 50%, #ecf6fb 100%);
}
.mini-hero::after{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none; opacity:.5;
  background-image:linear-gradient(rgba(43,45,58,.035) 1px, transparent 1px),
                   linear-gradient(90deg, rgba(43,45,58,.035) 1px, transparent 1px);
  background-size:48px 48px;
  -webkit-mask-image:radial-gradient(80% 70% at 60% 40%, #000, transparent 85%);
  mask-image:radial-gradient(80% 70% at 60% 40%, #000, transparent 85%);
}
.mini-hero .wrap{ position:relative; z-index:2 }
.mini-hero__grid{
  display:grid; grid-template-columns:1.05fr .95fr;
  gap:clamp(36px,5vw,72px); align-items:center;
}
.mini-hero h1{ font-size:clamp(34px,4.8vw,56px); letter-spacing:-.03em; margin-top:6px }
.mini-hero .lead{ margin-top:22px; max-width:540px }
.mini-hero .hero-actions{ margin-top:34px }
.mini-hero__crumbs{
  display:flex; align-items:center; gap:9px; font-family:var(--ff-head);
  font-size:13px; font-weight:500; color:var(--ink-3); margin-bottom:20px;
}
.mini-hero__crumbs a{ color:var(--ink-3); transition:color .2s }
.mini-hero__crumbs a:hover{ color:var(--blue-d) }
.mini-hero__crumbs span[aria-current]{ color:var(--green-d); font-weight:600 }
.mini-hero__crumbs i{ font-style:normal; color:var(--line-2) }

/* ===== Visual del hero: foto + gráfica flotante + bloques dinámicos ===== */
.hero-figure{
  position:relative; width:100%; max-width:520px; margin-inline:auto;
  padding:14px 16px;
}
/* Halos de color difusos detrás de la figura */
.hero-figure__blob{ position:absolute; z-index:0; border-radius:50%; filter:blur(46px); pointer-events:none }
.hero-figure__blob--a{ width:240px; height:240px; top:-28px; right:-30px;
  background:radial-gradient(circle, rgba(28,157,215,.40), transparent 70%);
  animation:blobDrift 9s ease-in-out infinite }
.hero-figure__blob--b{ width:220px; height:220px; bottom:-24px; left:-34px;
  background:radial-gradient(circle, rgba(140,198,63,.42), transparent 70%);
  animation:blobDrift 11s ease-in-out infinite reverse }
@keyframes blobDrift{ 50%{ transform:translate3d(14px,-16px,0) scale(1.08) } }
/* Anillo gradiente girando */
.hero-figure__ring{ position:absolute; z-index:1; inset:-2px; border-radius:calc(var(--r-xl) + 8px);
  padding:2px; pointer-events:none;
  background:conic-gradient(from 0deg, rgba(140,198,63,.0), var(--green) 18%, var(--blue) 45%, rgba(28,157,215,0) 62%, rgba(28,157,215,0));
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
  opacity:.85; animation:ringSpin 14s linear infinite }
@keyframes ringSpin{ to{ transform:rotate(360deg) } }

.hero-figure__photo{
  position:relative; z-index:2; border-radius:var(--r-xl); overflow:hidden;
  aspect-ratio:1/1; background:var(--grad-soft); box-shadow:var(--shadow-lg);
}
.hero-figure__photo img{ width:100%; height:100%; object-fit:cover; display:block }

/* Bloque flotante superior (reutiliza .float-card) */
.hero-figure .float-card{ z-index:5 }
.hero-figure .fc-top{ top:-30px; right:-22px; animation:floaty 5.5s ease-in-out infinite .4s }

/* Mini-chips flotantes */
.mini-chip{
  position:absolute; z-index:5; display:inline-flex; align-items:center; gap:8px;
  background:#fff; border:1px solid var(--line); border-radius:var(--r-pill);
  padding:8px 14px; box-shadow:var(--shadow-md);
  font-size:13px; color:var(--ink-2); white-space:nowrap;
}
.mini-chip b{ font-family:var(--ff-head); color:var(--ink); font-weight:700 }
.mini-chip__ic{ width:24px; height:24px; border-radius:50%; display:grid; place-items:center;
  background:linear-gradient(120deg,#34AEE3,#1683BB); color:#fff; flex:none }
.mini-chip__ic svg{ width:15px; height:15px }
.mini-chip__dot{ width:9px; height:9px; border-radius:50%; background:var(--green);
  box-shadow:0 0 0 4px rgba(140,198,63,.25); animation:pulse 2s infinite }
.mini-chip--roi{ top:63%; left:-30px; animation:floaty 6.5s ease-in-out infinite 1s }
.mini-chip--rec{ bottom:-14px; right:18px; animation:floaty 5s ease-in-out infinite .2s }

@media (prefers-reduced-motion: reduce){
  .hero-figure__blob,.hero-figure__ring,
  .hero-figure .fc-top,.mini-chip{ animation:none !important }
}

/* ---------- Historia / Misión (texto + imagen) ---------- */
.story-grid{
  display:grid; grid-template-columns:1.02fr .98fr;
  gap:clamp(36px,5vw,72px); align-items:center;
}
.story__copy .eyebrow{ margin-bottom:16px }
.story__copy h2{ font-size:clamp(28px,3.6vw,42px); line-height:1.12 }
.story__copy p{ color:var(--ink-2); font-size:clamp(16px,1.25vw,17.5px); line-height:1.7; margin-top:18px }
.story__copy p b{ color:var(--ink); font-weight:600 }

.story__media{ position:relative }
.story__photo{
  position:relative; border-radius:var(--r-xl); overflow:hidden; aspect-ratio:5/5.4;
  background:var(--grad-soft); box-shadow:var(--shadow-lg);
}
.story__photo img{ width:100%; height:100%; object-fit:cover }
.story__media .float-card{ z-index:3 }
.story__media .fc-1{ top:26px; left:auto; right:-26px; animation:floaty 5s ease-in-out infinite }
.story__badge{
  position:absolute; bottom:-22px; left:50%; transform:translateX(-50%);
  display:flex; align-items:center; gap:14px; background:var(--ink); color:#fff;
  padding:16px 24px; border-radius:var(--r-lg); box-shadow:var(--shadow-lg); white-space:nowrap;
}
.story__badge .sb-ic{ width:44px; height:44px; border-radius:12px; display:grid; place-items:center;
  background:var(--grad); flex:none }
.story__badge .sb-ic svg{ width:24px; height:24px; color:#fff }
.story__badge b{ font-family:var(--ff-head); font-size:20px; line-height:1; display:block }
.story__badge small{ font-size:12.5px; color:rgba(255,255,255,.7); margin-top:4px; display:block }

/* ---------- Valores ---------- */
.values-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px }
.value{
  position:relative; background:#fff; border:1px solid var(--line); border-radius:var(--r-lg);
  padding:44px 26px 34px; display:flex; flex-direction:column; align-items:center; text-align:center;
  overflow:hidden; isolation:isolate;
  transition:transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
}
/* halo radial detrás del ícono */
.value::before{ content:""; position:absolute; z-index:-1; top:24px; left:50%;
  transform:translateX(-50%) scale(.7); width:120px; height:120px; border-radius:50%;
  background:radial-gradient(circle, rgba(70,179,154,.22), rgba(28,157,215,0) 70%);
  opacity:0; transition:opacity .45s, transform .55s cubic-bezier(.2,.7,.2,1) }
/* línea de acento superior que crece al hover */
.value::after{ content:""; position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:40px; height:4px; border-radius:0 0 4px 4px; background:var(--grad);
  opacity:.55; transition:width .4s cubic-bezier(.2,.7,.2,1), opacity .4s }
.value:hover{ transform:translateY(-10px); box-shadow:var(--shadow-lg); border-color:transparent }
.value:hover::before{ opacity:1; transform:translateX(-50%) scale(1.08) }
.value:hover::after{ width:72px; opacity:1 }

.value__n{ font-family:var(--ff-head); font-weight:700; font-size:13px;
  letter-spacing:.16em; color:var(--muted); margin-bottom:18px; transition:color .35s }
.value:hover .value__n{ color:var(--blue-d) }

.value__ic{ margin-bottom:22px; line-height:0;
  transition:transform .5s cubic-bezier(.34,1.56,.64,1) }
.value__ic svg{ width:56px; height:56px; stroke-width:1.6;
  filter:drop-shadow(0 6px 14px rgba(28,157,215,.18)) }
.value:hover .value__ic{ transform:translateY(-4px) scale(1.1) }

.value h3{ font-size:18.5px; margin-bottom:12px }
.value p{ font-size:14.5px; color:var(--ink-3); line-height:1.6 }

/* ---------- Por qué elegirnos ---------- */
.why-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:22px }
.why-card{
  position:relative; display:grid; grid-template-columns:auto 1fr; gap:22px; align-items:start;
  background:#fff; border:1px solid var(--line); border-radius:var(--r-lg);
  padding:30px 32px; overflow:hidden; isolation:isolate;
  transition:transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s;
}
.why-card::after{ content:""; position:absolute; z-index:-1; right:-50px; bottom:-50px;
  width:150px; height:150px; border-radius:50%; background:var(--grad-soft);
  opacity:0; transition:opacity .4s }
.why-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-lg); border-color:transparent }
.why-card:hover::after{ opacity:1 }
.why-card__ic{ width:60px; height:60px; border-radius:16px; flex:none; display:grid; place-items:center;
  background:var(--ink); color:#fff; transition:background .4s, transform .4s }
.why-card__ic svg{ width:28px; height:28px; stroke-width:1.9 }
.why-card:hover .why-card__ic{ background:var(--grad); transform:rotate(-5deg) scale(1.05) }
.why-card h3{ font-size:19px; margin-bottom:8px }
.why-card p{ font-size:14.5px; color:var(--ink-3); line-height:1.6 }

/* ---------- Pilares estratégicos (diamantes) ---------- */
.pilares-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(24px,4vw,56px); margin-top:8px }
.pilar{ display:flex; flex-direction:column; align-items:center; text-align:center }
.pilar__dia{ position:relative; width:128px; height:128px; display:grid; place-items:center; margin-bottom:26px }
.pilar__dia::before{ content:""; position:absolute; inset:8px; border-radius:20px;
  background:var(--grad-soft); opacity:0; transform:rotate(45deg) scale(.7);
  transition:opacity .45s, transform .5s cubic-bezier(.2,.7,.2,1) }
.pilar__frame{ position:absolute; inset:0; border:2px solid var(--line-2); border-radius:24px;
  transform:rotate(45deg); transition:border-color .4s, transform .55s cubic-bezier(.2,.7,.2,1), box-shadow .4s }
.pilar__ic{ position:relative; z-index:2; width:54px; height:54px; color:var(--blue);
  transition:color .4s, transform .5s cubic-bezier(.2,.7,.2,1) }
.pilar__ic svg{ width:100%; height:100%; stroke-width:1.7 }
.pilar__n{ font-family:var(--ff-head); font-weight:700; font-size:13px; letter-spacing:.06em;
  color:var(--muted); margin-bottom:8px; transition:color .35s }
.pilar h3{ font-family:var(--ff-head); font-weight:700; font-size:20px; letter-spacing:.04em;
  text-transform:uppercase; color:var(--ink); margin-bottom:12px;
  background:var(--grad); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent }
.pilar p{ font-size:15px; color:var(--ink-3); line-height:1.6; max-width:30ch }
.pilar:hover .pilar__frame{ border-color:transparent; transform:rotate(45deg) scale(1.04);
  box-shadow:0 22px 44px -18px rgba(28,157,215,.5) }
.pilar:hover .pilar__dia::before{ opacity:1; transform:rotate(45deg) scale(1) }
.pilar:hover .pilar__ic{ color:var(--green-d); transform:translateY(-4px) scale(1.06) }
.pilar:hover .pilar__n{ color:var(--green-d) }
/* línea divisoria entre diamantes */
.pilares-grid .pilar:not(:first-child){ position:relative }
.pilares-grid .pilar:not(:first-child)::before{ content:""; position:absolute; top:64px; left:calc(-1 * clamp(12px,2vw,28px));
  width:1px; height:0; background:linear-gradient(var(--line-2),transparent); }

/* ---------- Relaciones de confianza (timeline + hub) ---------- */
.confianza{ background:var(--bg-soft) }
.confianza-grid{ display:grid; grid-template-columns:1.05fr 1fr; gap:clamp(40px,6vw,84px); align-items:center }
.confianza__head{ max-width:620px; margin:0 auto clamp(40px,5vw,60px) }

.tl{ list-style:none; margin:0; padding:0; position:relative }
.tl__item{ position:relative; display:grid; grid-template-columns:auto 1fr; gap:22px; padding-bottom:34px }
.tl__item:last-child{ padding-bottom:0 }
.tl__rail{ position:relative; display:flex; justify-content:center }
.tl__num{ position:relative; z-index:2; width:52px; height:52px; border-radius:50%; flex:none;
  display:grid; place-items:center; background:#fff; border:2px solid var(--line-2);
  font-family:var(--ff-head); font-weight:700; font-size:19px; color:var(--ink-3);
  transition:background .4s, border-color .4s, color .4s, transform .4s cubic-bezier(.2,.7,.2,1) }
.tl__item:not(:last-child) .tl__rail::after{ content:""; position:absolute; top:52px; bottom:-34px;
  width:2px; left:50%; transform:translateX(-50%); background:var(--line-2) }
.tl__item:not(:last-child) .tl__rail::before{ content:""; position:absolute; top:52px; width:2px; left:50%;
  transform:translateX(-50%); height:0; background:var(--grad); z-index:1; transition:height .5s ease }
.tl__item:hover .tl__rail::before{ height:calc(100% - 18px) }
.tl__body{ padding-top:5px }
.tl__body h3{ font-family:var(--ff-head); font-weight:700; font-size:19px; color:var(--ink); margin-bottom:7px;
  transition:color .3s }
.tl__body p{ font-size:14.5px; color:var(--ink-3); line-height:1.62; max-width:46ch }
.tl__item:hover .tl__num{ background:var(--grad); border-color:transparent; color:#fff;
  transform:translateY(-3px) scale(1.06); box-shadow:0 14px 28px -10px rgba(28,157,215,.5) }
.tl__item:hover .tl__body h3{ color:var(--blue-d) }

/* Hub radial de marketing */
.hub{ position:relative; width:min(440px,100%); aspect-ratio:1/1; margin-inline:auto }
.hub__ring{ position:absolute; inset:9%; border-radius:50%; border:2px dashed var(--line-2);
  animation:hubSpin 60s linear infinite }
.hub__ring--2{ inset:24%; border-style:solid; border-color:rgba(28,157,215,.12); animation-duration:45s; animation-direction:reverse }
@keyframes hubSpin{ to{ transform:rotate(360deg) } }
.hub__core{ position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:31%; height:31%; border-radius:50%; background:var(--grad); display:grid; place-items:center;
  box-shadow:0 26px 50px -16px rgba(28,157,215,.55), inset 0 2px 6px rgba(255,255,255,.3); z-index:3 }
.hub__core svg{ width:46%; height:46%; color:#fff }
.hub__bub{ position:absolute; width:21%; height:21%; border-radius:50%; background:#fff;
  border:1px solid var(--line); display:grid; place-items:center; box-shadow:var(--shadow-md);
  color:var(--blue); animation:hubFloat 5s ease-in-out infinite; z-index:2 }
.hub__bub svg{ width:46%; height:46%; stroke-width:1.8 }
.hub__bub:nth-child(3){ top:2%;  left:50%; transform:translateX(-50%); animation-delay:0s }
.hub__bub:nth-child(4){ top:20%; right:2%; color:var(--green-d); animation-delay:.5s }
.hub__bub:nth-child(5){ bottom:20%; right:2%; animation-delay:1s }
.hub__bub:nth-child(6){ bottom:2%; left:50%; transform:translateX(-50%); color:var(--green-d); animation-delay:1.5s }
.hub__bub:nth-child(7){ bottom:20%; left:2%; animation-delay:2s }
.hub__bub:nth-child(8){ top:20%; left:2%; color:var(--green-d); animation-delay:2.5s }
@keyframes hubFloat{ 0%,100%{ translate:0 0 } 50%{ translate:0 -8px } }
@media (prefers-reduced-motion: reduce){
  .hub__ring,.hub__bub{ animation:none }
}

/* ---------- Responsive ---------- */
@media (max-width:1080px){
  .mini-hero__grid,.story-grid{ grid-template-columns:1fr; gap:48px }
  .mini-hero__media,.story__media{ max-width:480px; margin-inline:auto }
  .values-grid{ grid-template-columns:repeat(2,1fr) }
  .confianza-grid{ grid-template-columns:1fr; gap:54px }
  .confianza .tl{ max-width:560px; margin-inline:auto }
  .hub{ order:-1 }
}
@media (max-width:760px){
  .pilares-grid{ grid-template-columns:1fr; gap:40px; max-width:420px; margin-inline:auto }
}
@media (max-width:680px){
  .why-grid{ grid-template-columns:1fr }
  .story__badge{ position:static; transform:none; margin:26px auto 0; width:max-content }
}
@media (max-width:560px){
  .values-grid{ grid-template-columns:1fr }
  .why-card{ grid-template-columns:1fr; gap:16px }
  .hero-figure .fc-top{ right:-8px }
  .mini-chip--roi{ left:-12px } .mini-chip--rec{ right:8px }
  .story__media .fc-1{ left:auto; right:-8px }
}
