/* ==========================================
   CODETASIUM — DESARROLLO DE APLICACIONES
   ========================================== */

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.dev-hero {
  position: relative; background: var(--bg-dark); padding: 5rem 0 4rem; overflow: hidden;
}
.dev-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(6,182,212,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,.06) 1px, transparent 1px);
  background-size: 52px 52px;
}
.dev-hero-orb1 {
  position: absolute; width: 560px; height: 560px; border-radius: 50%;
  top: -150px; right: -100px;
  background: radial-gradient(circle, rgba(6,182,212,.09) 0%, transparent 70%);
  pointer-events: none;
}
.dev-hero-orb2 {
  position: absolute; width: 260px; height: 260px; border-radius: 50%;
  bottom: -70px; left: 6%;
  background: radial-gradient(circle, rgba(102,241,194,.05) 0%, transparent 70%);
  pointer-events: none;
}
.dev-hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center;
}
.dev-hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'Inter','Segoe UI',Arial,sans-serif;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: #67e8f9; background: rgba(6,182,212,.12); border: 1px solid rgba(6,182,212,.32);
  padding: .4rem .9rem; border-radius: 100px; margin-bottom: 1.5rem;
}
.dev-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.6rem); font-weight: 800; color: #fff; line-height: 1.18;
}
.dev-hero-divider {
  width: 44px; height: 3px; background: #06b6d4; border-radius: 2px; margin: 1.1rem 0;
}
.dev-hero-sub {
  font-family: 'Inter','Segoe UI',Arial,sans-serif;
  font-size: 1.03rem; line-height: 1.75; color: rgba(255,255,255,.68); margin-bottom: 2rem;
}
.dev-hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.dev-hero .btn-outline { border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.85); }
.dev-hero .btn-outline:hover { border-color: rgba(255,255,255,.7); color: #fff; }
.dev-hero-trust {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.09);
}
.dev-trust-item {
  display: flex; align-items: center; gap: .5rem;
  font-family: 'Inter','Segoe UI',Arial,sans-serif;
  font-size: .8rem; font-weight: 500; color: rgba(255,255,255,.5);
}
.dev-trust-item svg { color: #22d3ee; }
.dev-hero-visual { display: flex; align-items: center; justify-content: center; }
.dev-hero-visual svg { width: 100%; max-width: 510px; height: auto;
  filter: drop-shadow(0 24px 56px rgba(0,0,0,.5)); }

/* ══════════════════════════════════════════
   PROBLEMA
══════════════════════════════════════════ */
.dev-prob-intro {
  font-family: 'Inter','Segoe UI',Arial,sans-serif;
  font-size: 1rem; line-height: 1.75; color: var(--text-secondary);
  max-width: 820px; margin-top: .75rem; margin-bottom: 2.25rem;
}
.dev-problem-grid {
  display: grid; grid-template-columns: repeat(1,1fr); gap: .9rem;
}
.dev-problem-card {
  background: #fff; border: 1px solid var(--border); border-left: 3px solid #ef4444;
  border-radius: var(--radius); padding: 1.2rem 1.5rem;
  display: flex; gap: 1rem; align-items: flex-start; transition: all .22s;
}
.dev-problem-card:hover { box-shadow: var(--shadow-md); transform: translateX(3px); }
.dev-problem-icon {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  background: rgba(239,68,68,.1); color: #ef4444;
  display: flex; align-items: center; justify-content: center;
}
.dev-problem-card p {
  font-family: 'Inter','Segoe UI',Arial,sans-serif;
  font-size: .9rem; line-height: 1.65; color: var(--text-secondary); margin: 0;
}

/* ══════════════════════════════════════════
   SOLUCIÓN / CASOS DE USO
══════════════════════════════════════════ */
.dev-cases-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-top: 2.5rem;
}
.dev-case-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; transition: all .3s; display: flex; flex-direction: column; gap: .75rem;
  position: relative; overflow: hidden;
}
.dev-case-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #06b6d4, #22d3ee);
  opacity: 0; transition: opacity .3s;
}
.dev-case-card:hover::before { opacity: 1; }
.dev-case-card:hover { box-shadow: var(--shadow-md); border-color: rgba(6,182,212,.3); transform: translateY(-3px); }
.dev-case-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(6,182,212,.1); color: #06b6d4;
  display: flex; align-items: center; justify-content: center;
}
.dev-case-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.dev-case-card p { font-family: 'Inter','Segoe UI',Arial,sans-serif; font-size: .87rem; line-height: 1.65; color: var(--text-secondary); flex: 1; }

/* Stack pills */
.dev-stack-pills { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .25rem; }
.dev-stack-pill {
  font-family: 'Inter','Segoe UI',Arial,sans-serif;
  font-size: .68rem; font-weight: 600;
  color: #06b6d4; background: rgba(6,182,212,.09);
  border: 1px solid rgba(6,182,212,.22);
  padding: .18rem .55rem; border-radius: 100px;
}

/* ══════════════════════════════════════════
   BENEFICIOS
══════════════════════════════════════════ */
.dev-benefits-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-top: 2.5rem;
}
/* last row: 2 items → center them */
.dev-benefits-grid .dev-benefit-card:nth-child(4) { grid-column: 1; }
.dev-benefits-grid .dev-benefit-card:nth-child(5) { grid-column: 2; }

.dev-benefit-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; transition: all .3s; display: flex; flex-direction: column; gap: .7rem;
}
.dev-benefit-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.dev-benefit-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(6,182,212,.1); color: #06b6d4;
  display: flex; align-items: center; justify-content: center;
}
.dev-benefit-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.dev-benefit-card p { font-family: 'Inter','Segoe UI',Arial,sans-serif; font-size: .88rem; line-height: 1.65; color: var(--text-secondary); flex: 1; }

/* ══════════════════════════════════════════
   CTA LINK
══════════════════════════════════════════ */
.dev-cta-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: 'Inter','Segoe UI',Arial,sans-serif; font-size: .92rem; font-weight: 600;
  color: rgba(255,255,255,.65); text-decoration: none; margin-top: .75rem; transition: color .2s, gap .2s;
}
.dev-cta-link:hover { color: var(--brand); gap: .65rem; }
.dev-cta-link svg { transition: transform .2s; }
.dev-cta-link:hover svg { transform: translateX(2px); }

/* SEO strip */
.dev-seo-strip { background: var(--bg-dark); border-top: 1px solid rgba(255,255,255,.05); padding: 1rem 0; }
.dev-seo-strip p { font-family: 'Inter','Segoe UI',Arial,sans-serif; font-size: .7rem; color: rgba(255,255,255,.22); text-align: center; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .dev-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .dev-hero-visual { display: none; }
  .dev-cases-grid { grid-template-columns: repeat(2,1fr); }
  .dev-benefits-grid { grid-template-columns: repeat(2,1fr); }
  .dev-benefits-grid .dev-benefit-card:nth-child(4),
  .dev-benefits-grid .dev-benefit-card:nth-child(5) { grid-column: auto; }
}
@media (max-width: 768px) {
  .dev-hero { padding: 3.5rem 0 2.5rem; }
  .dev-cases-grid { grid-template-columns: 1fr; }
  .dev-benefits-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .dev-hero h1 { font-size: 1.65rem; }
  .dev-hero-ctas { flex-direction: column; }
  .dev-hero-ctas .btn { width: 100%; justify-content: center; }
}
