
/* HERO (alineado con servicios) */
.hero{
  min-height:auto;
  height:auto;
  display:block;
  padding:7.25rem 1.75rem 2.25rem;
  text-align:center;
  position:relative;
  background:linear-gradient(180deg,#eaeff5 0%,#e4eaf2 55%,#e8edf4 100%);
  overflow:hidden;
}
.hero::before{
  content:'';
  position:absolute;inset:0;
  background-image:radial-gradient(circle,rgba(59,130,246,.1) 1px,transparent 1px);
  background-size:32px 32px;
  z-index:0;
  pointer-events:none;
}
.hero-blob-1{
  position:absolute;
  width:500px;height:500px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(96,165,250,.10),transparent 70%);
  top:-15%;right:-10%;
  filter:blur(60px);
  z-index:0;
  pointer-events:none;
}
.hero-blob-2{
  position:absolute;
  width:400px;height:400px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(59,130,246,.08),transparent 70%);
  bottom:-10%;left:-8%;
  filter:blur(50px);
  z-index:0;
  pointer-events:none;
}
.hero-blob-3{
  position:absolute;
  width:300px;height:300px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(147,197,253,.07),transparent 70%);
  top:40%;left:50%;
  transform:translate(-50%,-50%);
  filter:blur(40px);
  z-index:0;
  pointer-events:none;
}
.hero-inner{
  max-width:800px;
  margin:0 auto;
  position:relative;
  z-index:3;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.hero-title{
  font-size:clamp(2.6rem,7.5vw,5.4rem);
  margin-bottom:1rem;
  letter-spacing:-0.045em;
  font-weight:800;
  line-height:1.08;
}
.hero-title--servicios{
  font-size:clamp(2.75rem,7.5vw,4.75rem);
  margin-bottom:.75rem;
  line-height:1.15;
}
.title-line{
  display:block;
  font-style:normal;
  font-weight:800;
  line-height:1.15;
  padding-bottom:.1em;
  opacity:0;
  filter:blur(10px);
  animation:heroSubBlur 1.2s ease-out forwards;
}
.hero-title--servicios .title-line:nth-child(1){animation-delay:0s}
.hero-title--servicios .title-line:nth-child(2){animation-delay:.22s}
.title-line.title-dark{
  background:linear-gradient(90deg,#334155 0%,#0f172a 55%,#020617 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
  text-shadow:0 1px 0 rgba(255,255,255,.12);
}
.title-line.title-blue{
  background:linear-gradient(90deg,#1d4ed8 0%,#3b82f6 45%,#60a5fa 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
}
@keyframes heroSubBlur{
  from{opacity:0;filter:blur(10px)}
  to{opacity:1;filter:blur(0)}
}
.hw{
  display:inline-block;
  opacity:0;
  filter:blur(8px);
  animation:heroSubBlur .6s ease-out forwards;
}
.hero-sub{
  font-size:1.3125rem;
  color:var(--slate-600);
  line-height:1.7;
  margin:0 auto;
  font-weight:500;
  max-width:820px;
  width:100%;
  padding-inline:clamp(0rem,2vw,.5rem);
  overflow-wrap:break-word;
  word-wrap:break-word;
  text-wrap:normal;
}
.hero-sub > .hw:nth-child(1){animation-delay:.75s}
.hero-sub > .hw:nth-child(2){animation-delay:.79s}
.hero-sub > .hw:nth-child(3){animation-delay:.83s}
.hero-sub > .hw:nth-child(4){animation-delay:.87s}
.hero-sub > .hw:nth-child(5){animation-delay:.91s}
.hero-sub > .hw:nth-child(6){animation-delay:.95s}
.hero-sub > .hw:nth-child(7){animation-delay:.99s}
.hero-sub > .hw:nth-child(8){animation-delay:1.03s}
.hero-sub > .hw:nth-child(9){animation-delay:1.07s}
.hero-sub-mark{
  font-weight:600;
  color:var(--slate-700);
  animation-delay:1.11s;
}

/* SECTIONS */
.section{
  position:relative;z-index:1;
  padding:5rem 2rem;
  max-width:1180px;margin:0 auto;
  background:transparent;
}
.section-animate{opacity:0;transform:translateY(40px);transition:opacity 0.8s ease,transform 0.8s ease}
.section-animate.visible{opacity:1;transform:translateY(0)}

.eyebrow{
  display:inline-block;
  font-family:'Poppins',sans-serif;
  font-size:.78rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  color:var(--blue-500);
  margin-bottom:1rem;
  padding:.35rem .75rem;
  background:rgba(59,130,246,.08);
  border-radius:999px;
}

.section-heading{
  font-size:clamp(1.8rem,4vw,2.6rem);
  color:var(--slate-900);
  margin-bottom:1.1rem;
  letter-spacing:-0.03em;
  text-align:center;
}
.section-sub{
  font-size:1.08rem;color:var(--slate-600);
  max-width:680px;line-height:1.7;
  text-align:center;
  margin:0 auto 3rem;
}

/* GLASS CARDS */
.pain-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:1.5rem;margin-top:3rem;
}
.pain-card{
  background:rgba(255,255,255,.7);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border:1px solid var(--slate-200);
  border-radius:20px;
  padding:2.5rem 2rem;
  text-align:center;
  transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease;
}
.pain-card:hover{
  transform:translateY(-3px);
  box-shadow:0 8px 30px rgba(59,130,246,.08);
  border-color:#93c5fd;
}
.pain-card-icon{
  width:48px;
  height:48px;
  border-radius:14px;
  background:linear-gradient(135deg,rgba(59,130,246,.12),rgba(96,165,250,.06));
  color:var(--blue-500);
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 1.25rem;
}
#servicios-cards .pain-card{text-align:left}
#servicios-cards .pain-card-icon{margin:0 0 1.25rem}
#casos-cards .pain-card{text-align:left;padding-top:3.35rem}
#casos-cards .pain-card.pain-card--caso{position:relative}
.caso-badge{
  position:absolute;top:1.35rem;right:1.35rem;
  font-size:.72rem;font-weight:700;
  color:#fff;background:var(--blue-500);
  padding:.42rem .85rem;border-radius:999px;
  white-space:normal;max-width:min(200px,55%);text-align:right;line-height:1.25;
  box-shadow:0 2px 10px rgba(37,99,235,.28);
  z-index:1;
}
#casos-cards .pain-card h3{font-size:1.08rem;line-height:1.38;margin-top:.35rem;margin-bottom:.85rem}
.caso-block-title{
  font-family:'Poppins',sans-serif;
  font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--blue-500);margin-top:1.15rem;margin-bottom:.45rem;
}
#casos-cards .pain-card .caso-block-title--first{margin-top:.55rem}
#casos-cards .pain-card .caso-block-text{font-size:.94rem;color:var(--slate-600);line-height:1.7;margin:0}
#casos-cards .pain-card .eyebrow{margin-right:6.5rem}
#casos-cards .pain-card .service-bullets{margin-top:.35rem}
a.caso-card-link{
  text-decoration:none;color:inherit;display:block;border-radius:20px;
}
a.caso-card-link:focus-visible{
  outline:2px solid var(--blue-500);outline-offset:3px;
}
a.caso-card-link .pain-card{height:100%}
.pain-card h3{font-size:1.15rem;margin-bottom:.55rem;letter-spacing:-0.02em;color:var(--slate-900)}
.pain-card p{font-size:.94rem;color:var(--slate-600);line-height:1.7}
.service-bullets{list-style:none;margin-top:.75rem;display:flex;flex-direction:column;gap:.35rem;text-align:left}
.service-bullets li{font-size:.85rem;color:var(--slate-500);display:flex;align-items:center;gap:.5rem}

/* Caso cards (listado) */
#casos-cards{
  padding-top:1.5rem;
  padding-bottom:4rem;
}
#casos-cards .pain-grid{margin-top:0;gap:1.25rem}
a.caso-card{
  background:linear-gradient(135deg,#0B0F14,#101318);
  border:1px solid rgba(11,27,54,.28);
  border-radius:20px;
  padding:1.65rem 1.5rem;
  position:relative;
  transition:transform .3s ease,box-shadow .3s ease;
  text-decoration:none;
  color:inherit;
  display:block;
}
a.caso-card:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 40px rgba(59,130,246,.15);
}
.caso-num{
  font-family:'Poppins',sans-serif;
  font-size:.72rem;font-weight:700;
  letter-spacing:.12em;text-transform:uppercase;
  color:var(--blue-400);
  margin-bottom:.5rem;
}
.caso-title{
  font-size:1.2rem;font-weight:800;
  color:#fff;
  margin-bottom:.6rem;
  line-height:1.25;
  letter-spacing:-0.03em;
}
.caso-desc{
  font-size:.88rem;
  color:rgba(255,255,255,.65);
  line-height:1.55;
  margin-bottom:1rem;
}
.caso-metrics{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:.4rem;
  margin-bottom:1rem;
}
.caso-metric{
  background:rgba(59,130,246,.12);
  border:1px solid rgba(59,130,246,.2);
  border-radius:10px;
  padding:.38rem .35rem;
  text-align:center;
}
.caso-metric-num{
  font-family:'Poppins',sans-serif;
  font-size:.95rem;font-weight:700;
  color:var(--blue-400);
  line-height:1;
}
.caso-metric-lbl{
  font-size:.58rem;
  white-space:normal;
  word-break:break-word;
  line-height:1.3;
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:rgba(255,255,255,.4);
  margin-top:.25rem;
}
.caso-cta{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  font-size:.875rem;
  font-weight:600;
  color:var(--blue-400);
  transition:color .2s,gap .2s;
}
a.caso-card:hover .caso-cta{color:#fff;gap:.65rem}
a.caso-card:first-child{
  border-color:rgba(59,130,246,.5);
  box-shadow:0 0 30px rgba(59,130,246,.1);
}
a.caso-card:first-child .caso-num{font-size:.75rem}
a.caso-card:first-child .caso-title{font-size:1.28rem}

@media(max-width:768px){
  .hero{padding:6.5rem 1.25rem 2.75rem;min-height:auto}
  .hero-title{font-size:clamp(2.2rem,8vw,3.2rem)}
  .hero-title--servicios{font-size:clamp(2.35rem,9vw,3.5rem)}
  .hero-sub{
    font-size:clamp(1.25rem,5.2vw,1.4375rem);
    line-height:1.6;
    font-weight:500;
    max-width:100%;
    padding-inline:0;
  }
  .section{padding:4.25rem 1.1rem}
  #casos-cards{padding-top:1rem;padding-bottom:3.25rem}
  .section-sub{margin:0 auto 2.25rem}
  .pain-grid{grid-template-columns:1fr}
  a.caso-card{padding:1.35rem 1.25rem}
  .caso-title{font-size:1.1rem}
  .caso-desc{font-size:.85rem;margin-bottom:.9rem}
}

@media(max-width:480px){
  .hero{padding:5.75rem .9rem 2.5rem}
  .section{padding:3rem .9rem}
  #casos-cards{padding-top:.75rem;padding-bottom:2.75rem}
  .section-sub{font-size:1rem;margin:0 auto 1.75rem}
  .pain-grid{gap:1rem;margin-top:1.75rem}
  a.caso-card{padding:1.1rem 1rem}
  .caso-metrics{grid-template-columns:repeat(3,1fr)}
  .caso-metric-num{font-size:.85rem}
}
