/* ══════════════════════════════════════════════════════════════════
   servicios.css — CSS específico de servicios.php
   ══════════════════════════════════════════════════════════════════ */

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ── HERO ── */
.hero {
  background: var(--ink); padding: 160px 0 140px; position: relative; overflow: hidden;
  clip-path: polygon(0 0,100% 0,100% 88%,0 100%); margin-bottom: -60px; z-index: 2;
}
.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .35; mix-blend-mode: screen; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg,rgba(9,16,14,.82) 0%,rgba(9,16,14,.5) 100%); z-index: 1; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(18,227,188,.05) 1px, transparent 1px);
  background-size: 32px 32px; pointer-events: none; z-index: 2;
}
.hero-shape {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 440px; height: 440px; border: 1.5px solid rgba(18,227,188,.07); border-radius: 50%;
  pointer-events: none; animation: float 7s ease-in-out infinite; z-index: 3;
}
.hero-shape::before { content: ''; position: absolute; inset: 60px; border: 1.5px solid rgba(18,227,188,.04); border-radius: 50%; }
.hero-content { position: relative; z-index: 3; max-width: 720px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mint); margin-bottom: 28px; opacity: 0; animation: fadeUp .6s var(--ease) .1s forwards;
}
.hero-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); display: block; }
.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.0;
  color: var(--white); opacity: 0; animation: fadeUp .6s var(--ease) .2s forwards; margin-bottom: 28px;
}
.hero h1 em { font-style: normal; color: var(--mint); }
.hero h1 span { display: block; color: rgba(255,255,255,.25); }
.hero-desc { font-size: 1.05rem; color: rgba(255,255,255,.45); line-height: 1.8; max-width: 520px; opacity: 0; animation: fadeUp .6s var(--ease) .35s forwards; }
.hero-desc strong { color: rgba(255,255,255,.8); }

/* ── ÍNDICE ANCLAS ── */
.indice {
  background: var(--white); border-bottom: 1.5px solid var(--line);
  position: sticky; top: 80px; z-index: 100; box-shadow: 0 4px 20px rgba(9,16,14,.06);
}
.indice-inner {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 40px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
}
.indice-inner::-webkit-scrollbar { display: none; }
.indice-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 18px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--mid); background: none; border: 1.5px solid transparent;
  border-radius: 50px; cursor: pointer; white-space: nowrap;
  transition: all .25s var(--ease); text-decoration: none; flex-shrink: 0;
}
.indice-btn:hover { color: var(--ink); background: var(--off); border-color: var(--line); }
.indice-btn.active { color: var(--ink); background: var(--mint-bg); border-color: var(--mint); }
.indice-num {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--line); color: var(--mid);
  font-size: .6rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .25s; flex-shrink: 0;
}
.indice-btn.active .indice-num { background: var(--mint); color: var(--ink); }
@media (max-width: 600px) {
  .indice-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 16px; overflow: visible; }
  .indice-btn { font-size: .7rem; padding: 8px 12px; justify-content: center; }
}

/* ── SERVICIO — layout genérico ── */
.srv { padding: 120px 0 100px; position: relative; z-index: 1; }
.srv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.srv-grid.reverse { direction: rtl; }
.srv-grid.reverse > * { direction: ltr; }
.srv-num { font-size: 5rem; font-weight: 800; letter-spacing: -.06em; line-height: 1; color: var(--mint); opacity: .15; margin-bottom: 8px; display: block; }
.srv-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mint-dim); margin-bottom: 12px;
}
.srv-tag::before { content: ''; width: 14px; height: 2px; background: var(--mint); display: block; }
.srv h2 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin-bottom: 20px; }
.srv p { font-size: .95rem; color: var(--mid); line-height: 1.8; margin-bottom: 28px; }
.srv-puntos { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.srv-puntos li { display: block; position: relative; padding-left: 22px; font-size: .88rem; color: var(--mid); line-height: 1.6; }
.srv-puntos li::before { content: '→'; color: var(--mint); font-weight: 700; position: absolute; left: 0; top: 0; line-height: 1.6; }
.srv-puntos li strong { color: var(--ink); font-weight: 600; }
.btn-srv { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .88rem; padding: 14px 30px; border-radius: 50px; transition: all .2s; }
.btn-srv-dark { background: var(--ink); color: var(--white); border: 2px solid var(--ink); }
.btn-srv-dark:hover { background: var(--ink-soft); }
.btn-srv-mint { background: var(--mint); color: var(--ink); border: 2px solid var(--mint); }
.btn-srv-mint:hover { background: var(--mint-dim); }
.btn-srv-outline { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn-srv-outline:hover { border-color: var(--ink); }
.btn-srv-mint-out { background: transparent; color: var(--mint); border: 2px solid var(--mint); }
.btn-srv-mint-out:hover { background: var(--mint); color: var(--ink); }

/* Visual */
.srv-visual { border-radius: var(--r-lg); overflow: hidden; position: relative; }
.srv-visual-card { border-radius: var(--r-lg); padding: 40px; display: flex; flex-direction: column; gap: 20px; min-height: 380px; }

/* AI Business Lab visual */
.abl-visual { background: var(--mint-bg); border-radius: var(--r-lg); padding: 36px; min-height: 380px; display: flex; flex-direction: column; justify-content: space-between; border: 1.5px solid var(--mint-pale); }
.abl-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.abl-stat { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 24px 20px 20px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s; }
.abl-stat:hover { border-color: var(--mint); }
.abl-stat-icon { width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--mint-pale); display: flex; align-items: center; justify-content: center; }
.abl-stat-icon svg { width: 15px; height: 15px; stroke: var(--mint-dim); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.abl-stat-bottom { display: flex; flex-direction: column; gap: 4px; }
.abl-stat-num { font-size: 2.2rem; font-weight: 800; color: var(--ink); letter-spacing: -.05em; line-height: 1; display: block; }
.abl-stat-num em { font-style: normal; color: var(--mint-dim); }
.abl-stat-label { font-size: .6rem; color: var(--mid); letter-spacing: .1em; text-transform: uppercase; display: block; }
.abl-quote { font-size: .85rem; font-style: italic; color: var(--mid); border-left: 2px solid var(--mint); padding: 12px 16px; line-height: 1.7; background: var(--white); border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* Talleres visual */
.talleres-visual { background: var(--off); border-radius: var(--r-lg); padding: 36px; border: 1.5px solid var(--line); min-height: 380px; display: flex; flex-direction: column; gap: 12px; }
.taller-tipo { background: var(--white); border-radius: var(--r-md); padding: 20px 22px; border: 1.5px solid var(--line); transition: all .3s; }
.taller-tipo:hover { border-color: var(--mint); }
.taller-tipo-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.taller-tipo-name { font-size: .88rem; font-weight: 800; color: var(--ink); }
.taller-tipo-badge { font-size: .58rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: 50px; }
.badge-empresa { background: var(--mint-pale); color: var(--mint-dim); }
.badge-edu { background: var(--ink); color: var(--white); }
.taller-tipo p { font-size: .78rem; color: var(--mid); line-height: 1.5; }
.taller-tipo-meta { display: flex; gap: 12px; margin-top: 10px; }
.taller-tipo-meta span { font-size: .65rem; color: var(--mid); display: flex; align-items: center; gap: 4px; }
.taller-tipo-meta svg { width: 11px; height: 11px; stroke: var(--mint); fill: none; stroke-width: 2; }

/* Dev Labs visual */
.devlabs-visual { background: var(--mint-bg); border-radius: var(--r-lg); padding: 36px; min-height: 380px; display: flex; flex-direction: column; gap: 0; border: 1.5px solid var(--mint-pale); }
.devlabs-flow { display: flex; flex-direction: column; gap: 0; flex: 1; }
.devlabs-step { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.devlabs-step:last-child { border-bottom: none; }
.devlabs-step-icon { width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--white); border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.devlabs-step-icon svg { width: 16px; height: 16px; stroke: var(--mint-dim); fill: none; stroke-width: 1.5; stroke-linecap: round; }
.devlabs-step-info { flex: 1; }
.devlabs-step-info strong { display: block; font-size: .88rem; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.devlabs-step-info span { font-size: .72rem; color: var(--mid); }
.devlabs-step-btn { display: inline-flex; align-items: center; font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mint-dim); background: var(--white); border: 1.5px solid var(--mint-pale); padding: 5px 12px; border-radius: 50px; white-space: nowrap; transition: all .2s; flex-shrink: 0; }
.devlabs-step-btn:hover { border-color: var(--mint); color: var(--mint); }
.devlabs-step-btn.disabled { color: var(--mid); border-color: var(--line); pointer-events: none; opacity: .5; }
.devlabs-connector { width: 1px; height: 12px; background: var(--line); margin-left: 17px; }

/* Comunidad visual */
.comunidad-visual { background: var(--mint-bg); border-radius: var(--r-lg); padding: 36px; min-height: 380px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; border: 1.5px solid var(--mint-pale); }
.comunidad-visual::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(18,227,188,.15) 1px, transparent 1px); background-size: 24px 24px; }
.comunidad-item { background: var(--white); border-radius: var(--r-md); padding: 16px 18px; position: relative; z-index: 1; transition: border-color .2s; border: 1.5px solid var(--line); }
.comunidad-item:hover { border-color: var(--mint); }
.comunidad-item-header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.comunidad-item-icon { width: 28px; height: 28px; border-radius: 6px; background: var(--mint-pale); display: flex; align-items: center; justify-content: center; }
.comunidad-item-icon svg { width: 14px; height: 14px; stroke: var(--mint-dim); fill: none; stroke-width: 1.5; }
.comunidad-item strong { font-size: .85rem; font-weight: 700; color: var(--ink); }
.comunidad-item p { font-size: .75rem; color: var(--mid); line-height: 1.5; }

/* ── PARA QUIÉN ── */
.para-quien {
  background: var(--ink); padding: 100px 0 120px; position: relative; z-index: 2;
  clip-path: polygon(0 5%,100% 0,100% 95%,0 100%); margin-top: -40px; margin-bottom: -60px;
}
.pq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(255,255,255,.06); border-radius: var(--r-lg); overflow: hidden; margin-top: 56px; }
.pq-item { background: rgba(255,255,255,.03); padding: 36px 28px; transition: background .3s; }
.pq-item:hover { background: rgba(18,227,188,.06); }
.pq-num { font-size: 2.5rem; font-weight: 800; color: var(--mint); opacity: .2; letter-spacing: -.05em; display: block; margin-bottom: 12px; }
.pq-item h3 { font-size: 1rem; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.pq-item p { font-size: .82rem; color: rgba(255,255,255,.38); line-height: 1.65; }
.pq-item ul { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.pq-item ul li { font-size: .75rem; color: rgba(255,255,255,.28); display: flex; align-items: center; gap: 8px; }
.pq-item ul li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--mint); opacity: .6; flex-shrink: 0; }

/* ── CTA FINAL ── */
.cta-final {
  background: var(--mint); padding: 120px 0; text-align: center;
  position: relative; z-index: 3;
  clip-path: polygon(0 6%,100% 0,100% 100%,0 100%); margin-top: -60px;
}
.cta-final::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(9,16,14,.08) 1px, transparent 1px); background-size: 28px 28px; }
.cta-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 2; }
.cta-final h2 { font-size: clamp(2.8rem, 5vw, 4.4rem); font-weight: 800; letter-spacing: -.04em; color: var(--ink); margin-bottom: 16px; line-height: 1.05; }
.cta-final p { font-size: 1rem; color: rgba(9,16,14,.55); margin-bottom: 40px; line-height: 1.75; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.cta-mail { font-size: .8rem; color: rgba(9,16,14,.4); }
.cta-mail a { color: var(--ink); font-weight: 700; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero { padding: 130px 0 120px; }
  .hero-shape { display: none; }
  .srv-grid, .srv-grid.reverse { grid-template-columns: 1fr; gap: 40px; direction: ltr; }
  .pq-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .pq-grid { grid-template-columns: 1fr; }
  .abl-stats { grid-template-columns: 1fr 1fr; }
  .cta-btns { flex-direction: column; align-items: center; }
}
