.page-how{ background:#fff; }

.how-hero{
  position:relative;
  padding: 10px 0 56px;
  overflow:hidden;
}

.how-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(ellipse 110% 70% at 20% 35%, rgba(255,63,158,0.10), transparent 55%),
    radial-gradient(ellipse 120% 70% at 80% 25%, rgba(59,130,246,0.10), transparent 60%),
    radial-gradient(ellipse 120% 70% at 65% 80%, rgba(147,51,234,0.10), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0));
  pointer-events:none;
  z-index:0;
}

.how-hero-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items:center;
}

.how-kicker{
  margin:0 0 10px;
  font-size:0.85rem;
  text-transform:uppercase;
  letter-spacing:0.12em;
  color: rgba(0,0,0,0.55);
}

.how-title{
  margin:0 0 10px;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height:1.05;
  letter-spacing:-0.03em;
}

.how-subtitle{
  margin:0;
  font-size:1.05rem;
  color: rgba(0,0,0,0.65);
  max-width: 60ch;
  line-height:1.55;
}

.how-core-lottie{
  width: 520px !important;
  height: 520px !important;
  opacity: 0.95;
  filter: drop-shadow(0 26px 70px rgba(0,0,0,0.10));
}

@media (max-width: 768px){
  .how-core-lottie{
    width: 280px !important;
    height: 280px !important;
  }
}

.how-section{ padding: 72px 0; }

.how-narrow{ max-width: 980px; }

.how-h2{
  margin:0 0 14px;
  font-size: clamp(1.8rem, 2.6vw, 2.2rem);
  letter-spacing:-0.02em;
}

.how-h3{
  margin:0;
  font-size: 1.15rem;
  letter-spacing:-0.01em;
}

.how-p{
  margin:0 0 12px;
  color: rgba(0,0,0,0.65);
  line-height: 1.7;
}

.how-steps .how-step-grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.how-step{
  background:#f4f4f4;
  border-radius: 18px;
  padding: 22px;
  border: 1px solid rgba(0,0,0,0.06);
}

.how-step-top{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 10px;
}

.how-step-num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255,63,158,0.12);
  color: rgba(0,0,0,0.75);
  font-weight: 800;
  letter-spacing:-0.02em;
}

.how-list{
  margin: 0 0 12px;
  padding-left: 18px;
  color: rgba(0,0,0,0.68);
  line-height: 1.7;
}

.how-dark{
  background: #0b0b0b;
  color:#fff;
}

.how-dark .how-h2,
.how-dark .how-p,
.how-dark .how-list{
  color: rgba(255,255,255,0.88);
}

.how-two{
  display:grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items:center;
}

.how-dark-lottie{
  width: 360px !important;
  height: 360px !important;
  opacity: 0.85;
  filter: drop-shadow(0 24px 60px rgba(0,0,0,0.35));
}

.how-problems{
  margin: 12px 0 18px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.how-problem{
  background:#ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 14px 14px;
  color: rgba(0,0,0,0.72);
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.how-problem-icon{
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  opacity: 0.9;
  stroke-width: 1.5px;
  color: var(--color-primary-dark);
}

.how-soft{
  background: #ffe9f5;
  padding: 32px 0;
}

.how-cta{
  padding-top: 56px;
}

.how-cta-btn{
  margin-top: 10px;
  display:inline-flex;
}

/* Responsive */
@media (max-width: 960px){
  .how-hero-grid,
  .how-two{
    grid-template-columns: 1fr;
  }

  .how-steps .how-step-grid{
    grid-template-columns: 1fr;
  }

  .how-problems{
    grid-template-columns: 1fr;
  }

  .how-core-lottie{
    width: 240px !important;
    height: 240px !important;
    margin-top: 18px;
  }

  .how-dark-lottie{
    width: 280px !important;
    height: 280px !important;
  }
}

/* Hero: esfera como núcleo principal */
.how-core-sphere{
  width: 400px !important;
  height: 400px !important;
  opacity: 0.95;
  filter: drop-shadow(0 26px 70px rgba(0,0,0,0.10));
}

@media (max-width: 960px){
  .how-core-sphere{
    width: 280px !important;
    height: 280px !important;
  }
}

/* Intro: panel visual para romper la densidad */
.how-intro-panel{
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  padding: 22px 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}

.how-intro-panel::before{
  content:"";
  position:absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 4px;
  opacity: 0.9;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,63,158,0.95), rgba(147,51,234,0.55), rgba(59,130,246,0.35));
}

.how-intro-lead,
.how-intro-text{
  margin: 0;
  padding-left: 14px;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.7;
  color: rgba(0,0,0,0.75);
}

.how-intro-tags{
  margin-top: 10px;
  padding-left: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.how-tag{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.08);
  color: rgba(0,0,0,0.70);
  font-size: 0.88rem;
  line-height: 1;
}

.how-intro-text{
  margin-top: 12px;
}

/* Producción: imagen infraestructura */
.how-dark-visual{
  display:flex;
  align-items:center;
  justify-content:center;
}

.how-production-image{
  max-width: 520px;
  width: 100%;
  height: auto;
  display:block;
  opacity: 1;
  filter: none;
}

/* Ajuste visual en mobile */
@media (max-width: 960px){
  .how-production-image{
    max-width: 420px;
    margin-top: 20px;
  }
}

/* Fricción: Grid layout with diagonal pattern */
.how-friction-bg {
  width: 100%;
  background-color: #fafafa;
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.how-friction-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: 
    repeating-linear-gradient(45deg, rgba(255, 0, 100, 0.06) 0, rgba(255, 0, 100, 0.06) 1px, transparent 1px, transparent 20px),
    repeating-linear-gradient(-45deg, rgba(255, 0, 100, 0.06) 0, rgba(255, 0, 100, 0.06) 1px, transparent 1px, transparent 20px);
  background-size: 40px 40px;
}

.how-friction-header {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 48px;
}

.how-title-pink {
  color: #ff3f9e !important;
}

.how-friction-cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto 48px auto;
}

.friction-card {
  background: white;
  padding: 40px 32px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.02);
}

.friction-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(255, 63, 158, 0.1);
  border-color: rgba(255, 63, 158, 0.2);
}

.friction-icon {
  width: 48px;
  height: 48px;
  color: #ff3f9e;
  margin-bottom: 20px;
  stroke-width: 1.5;
}

.friction-text {
  font-size: 1.15rem;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.4;
}

.friction-summary {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px){
  .how-friction-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  
  .how-friction-bg {
    padding: 60px 0;
  }
}
