/* ============================================================
   servicio.css — hoja compartida por las páginas de servicio
   (paginas-web, aplicaciones-web, chatbot, registro-marca,
    constitucion-empresas). Diseño consistente, solo cambia el HTML.
   ============================================================ */

/* ===== HERO ===== */
.sp-hero {
  position: relative;
  padding: 140px 20px 70px;
  text-align: center;
  overflow: hidden;
}

.sp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(6, 182, 212, 0.16), transparent 60%);
  z-index: 0;
}

.sp-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.sp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--surface);
  margin-bottom: 22px;
}

.sp-badge.is-legal { color: var(--accent); }

.sp-hero-icon { font-size: 3rem; display: block; margin-bottom: 14px; line-height: 1; }

.sp-hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  font-weight: 800;
  margin: 0 0 16px;
}

.sp-hero .grad {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sp-lead {
  color: var(--text-gray);
  font-size: 1.14rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 24px;
}

.sp-price-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border-glow);
  border-radius: 100px;
  background: var(--surface);
  margin-bottom: 26px;
  font-size: 0.95rem;
  color: var(--text-gray);
}
.sp-price-pill strong { font-size: 1.35rem; color: var(--text); font-weight: 800; }

.sp-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== SECCIÓN GENÉRICA ===== */
.sp-section { padding: 60px 20px; max-width: 1100px; margin: 0 auto; }

.sp-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }

.sp-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.sp-title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; line-height: 1.15; margin: 0 0 12px; }

.sp-desc { color: var(--text-gray); font-size: 1.02rem; line-height: 1.6; margin: 0; }

/* ===== GRID DE CARACTERÍSTICAS ===== */
.sp-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.sp-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}
.sp-feature:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}
.sp-feature-icon { font-size: 1.9rem; display: block; margin-bottom: 12px; }
.sp-feature h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 7px; }
.sp-feature p { color: var(--text-gray); font-size: 0.9rem; line-height: 1.55; margin: 0; }

/* ===== TARJETAS DE TIPO / PLAN ===== */
.sp-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.sp-type-card {
  display: flex;
  flex-direction: column;
  background: var(--dark-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}
.sp-type-card:hover { transform: translateY(-5px); border-color: var(--border-glow); }
.sp-type-emoji { font-size: 2rem; margin-bottom: 10px; }
.sp-type-card h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 6px; }
.sp-type-card p { color: var(--text-gray); font-size: 0.88rem; line-height: 1.5; margin: 0 0 16px; flex-grow: 1; }
.sp-type-price { font-size: 0.85rem; color: var(--text-gray); margin-bottom: 4px; }
.sp-type-price strong { font-size: 1.25rem; color: var(--primary); font-weight: 800; }

/* ===== PROCESO / PASOS ===== */
.sp-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  counter-reset: sp-step;
}
.sp-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 22px 22px;
}
.sp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #04121c;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.sp-step h3 { font-size: 1.02rem; font-weight: 700; margin: 0 0 7px; }
.sp-step p { color: var(--text-gray); font-size: 0.9rem; line-height: 1.55; margin: 0; }

/* ===== LISTA DE INCLUIDOS (checklist) ===== */
.sp-checklist {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 640px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px 26px;
}
.sp-checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}
.sp-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 800;
}

/* ===== CTA FINAL ===== */
.sp-final {
  max-width: 900px;
  margin: 40px auto 80px;
  padding: 50px 30px;
  text-align: center;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(56, 189, 248, 0.05));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
}
.sp-final h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 800; margin: 0 0 12px; }
.sp-final p { color: var(--text-gray); font-size: 1.05rem; line-height: 1.6; max-width: 520px; margin: 0 auto 24px; }

/* ===== SEPARADOR SUAVE ===== */
.sp-divider { height: 1px; max-width: 1100px; margin: 0 auto; background: var(--border); opacity: 0.6; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .sp-hero { padding: 120px 18px 50px; }
  .sp-section { padding: 46px 18px; }
  .sp-cta { flex-direction: column; }
  .sp-cta .btn { width: 100%; }
}

/* ===== MODO CLARO ===== */
html.light-mode .sp-feature,
html.light-mode .sp-step { background: rgba(6, 182, 212, 0.04); }
html.light-mode .sp-type-card { background: #ffffff; }
html.light-mode .sp-step-num { color: #ffffff; }
