/* =====================================================================
   TecnoDigital360 — Service Pages CSS
   ===================================================================== */

/* ── HERO DE SERVICIO ── */
.srv-hero {
  min-height: 60vh;
  display: flex; align-items: center;
  padding: 9rem 2rem 5rem;
  position: relative; overflow: hidden;
}
.srv-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 0% 50%, rgba(26,171,240,.14) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(14,207,199,.10) 0%, transparent 55%);
}
.srv-hero-inner {
  position: relative; z-index: 2;
  max-width: 1180px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
@media (max-width: 768px) {
  .srv-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .srv-hero-visual { display: none; }
}
.srv-hero-back {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 600; color: var(--muted);
  margin-bottom: 1.5rem; transition: color .25s;
}
.srv-hero-back:hover { color: var(--blue); }
.srv-hero-back svg { width: 16px; height: 16px; }

.srv-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900; line-height: 1.07; letter-spacing: -.03em;
}
.srv-hero-title .hl {
  background: var(--grad); background-size: 200% 200%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: gShift 5s ease infinite;
}
.srv-hero-desc {
  font-size: 1.05rem; color: var(--muted);
  line-height: 1.78; margin-top: 1.2rem; max-width: 520px;
}
.srv-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* visual card flotante */
.srv-visual-card {
  background: var(--card); border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r); padding: 2rem;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  animation: floatCard 5s ease-in-out infinite;
}
@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-12px); }
}
.vc-header {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem;
}
.vc-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(26,171,240,.2), rgba(14,207,199,.12));
  border: 1px solid rgba(26,171,240,.25);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.vc-title { font-size: 1rem; font-weight: 700; }
.vc-sub   { font-size: .78rem; color: var(--muted); }
.vc-list  { display: flex; flex-direction: column; gap: .75rem; }
.vc-item  {
  display: flex; align-items: center; gap: .7rem;
  font-size: .88rem; color: var(--muted);
}
.vc-check {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-dk), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; color: #fff;
}
.vc-bar-wrap { margin-top: 1.5rem; }
.vc-bar-label { display: flex; justify-content: space-between; font-size: .76rem; margin-bottom: .4rem; color: var(--muted); }
.vc-bar-track { height: 6px; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; }
.vc-bar-fill  {
  height: 100%; border-radius: 3px; background: var(--grad);
  animation: barFill 1.5s ease .5s both;
}
@keyframes barFill { from { width: 0 !important; } }

/* ── SECCIONES DE CONTENIDO ── */
.sp-section { padding: 5.5rem 2rem; }
.sp-section.alt { background: var(--bg2); }
.sp-section.alt2 { background: var(--bg3); }

/* features grid */
.feat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem; margin-top: 3rem;
}
.feat-card {
  background: var(--card); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r); padding: 1.8rem;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  opacity: 0; transform: translateY(24px);
}
.feat-card.in { animation: rise .5s ease forwards; }
.feat-card:hover { transform: translateY(-7px); border-color: rgba(26,171,240,.3); box-shadow: 0 16px 48px rgba(26,171,240,.12); }
.feat-ico {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(26,171,240,.16), rgba(14,207,199,.1));
  border: 1px solid rgba(26,171,240,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; margin-bottom: 1.2rem;
  transition: transform .3s;
}
.feat-card:hover .feat-ico { transform: scale(1.1) rotate(-5deg); }
.feat-title { font-size: .97rem; font-weight: 700; margin-bottom: .4rem; }
.feat-desc  { color: var(--muted); font-size: .86rem; line-height: 1.7; }

/* benefits 2-col */
.benefits-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  margin-top: 3rem;
}
@media (max-width: 768px) { .benefits-grid { grid-template-columns: 1fr; gap: 2rem; } }
.benefit-list { display: flex; flex-direction: column; gap: 1.1rem; }
.benefit-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 1.2rem;
  background: var(--card); border: 1px solid rgba(255,255,255,.07); border-radius: var(--rs);
  transition: border-color .3s;
}
.benefit-item:hover { border-color: rgba(26,171,240,.28); }
.benefit-num {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad); display: flex; align-items: center;
  justify-content: center; font-size: .8rem; font-weight: 900; color: #fff;
}
.benefit-text h4 { font-size: .92rem; font-weight: 700; }
.benefit-text p  { color: var(--muted); font-size: .83rem; line-height: 1.6; margin-top: .2rem; }

.benefit-visual {
  background: var(--card); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r); padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.bv-stat {
  display: flex; justify-content: space-between; align-items: center;
  padding: .9rem 1rem;
  background: var(--bg); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--rs);
}
.bv-label { font-size: .83rem; color: var(--muted); }
.bv-val {
  font-size: 1.3rem; font-weight: 900;
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* tech pills section */
.tech-grid {
  display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem;
}
.tech-badge {
  display: flex; align-items: center; gap: .5rem;
  background: var(--card); border: 1px solid rgba(255,255,255,.08);
  padding: .6rem 1.1rem; border-radius: 50px;
  font-size: .85rem; font-weight: 600; color: var(--muted);
  transition: border-color .3s, color .3s;
}
.tech-badge:hover { border-color: var(--blue); color: var(--blue); }
.tech-badge em { font-style: normal; font-size: 1.1rem; }

/* process steps */
.sp-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem; margin-top: 3rem; position: relative;
}
.sp-step {
  background: var(--card); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r); padding: 2rem 1.5rem; text-align: center;
  transition: border-color .3s, box-shadow .3s, transform .3s;
  opacity: 0; transform: translateY(22px);
}
.sp-step.in { animation: rise .5s ease forwards; }
.sp-step:hover { border-color: rgba(26,171,240,.28); box-shadow: 0 8px 32px rgba(26,171,240,.1); transform: translateY(-6px); }
.sp-step-n {
  width: 48px; height: 48px; border-radius: 50%; background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem; color: #fff;
  margin: 0 auto 1.2rem; box-shadow: 0 0 20px rgba(26,171,240,.38);
}
.sp-step h4  { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.sp-step p   { color: var(--muted); font-size: .84rem; line-height: 1.65; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: .8rem; margin-top: 3rem; max-width: 820px; margin-left: auto; margin-right: auto; }
.faq-item {
  background: var(--card); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--rs); overflow: hidden;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 1.4rem; cursor: pointer;
  font-size: .95rem; font-weight: 600; gap: 1rem;
  transition: color .25s;
  background: none; border: none; width: 100%; text-align: left; color: var(--text);
}
.faq-q:hover { color: var(--blue); }
.faq-icon { width: 22px; height: 22px; flex-shrink: 0; transition: transform .3s; color: var(--blue); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s;
  color: var(--muted); font-size: .9rem; line-height: 1.75;
  padding: 0 1.4rem;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 1.4rem 1.4rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, rgba(26,171,240,.1) 0%, rgba(14,207,199,.08) 100%);
  border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 5rem 2rem; text-align: center;
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; letter-spacing: -.025em; }
.cta-band p  { color: var(--muted); font-size: 1rem; margin: 1rem auto 2rem; max-width: 540px; }
.cta-band-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* related services */
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem; margin-top: 3rem;
}
.related-card {
  background: var(--card); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r); padding: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  transition: border-color .3s, transform .3s;
  text-decoration: none; color: var(--text);
}
.related-card:hover { border-color: rgba(26,171,240,.3); transform: translateY(-4px); }
.related-ico {
  width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(26,171,240,.14), rgba(14,207,199,.09));
  border: 1px solid rgba(26,171,240,.18);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.related-name { font-size: .9rem; font-weight: 700; }
.related-arr  { margin-left: auto; color: var(--blue); font-size: 1.1rem; }

/* breadcrumb */
.breadcrumb {
  padding: 1rem 2rem;
  background: var(--bg2); border-bottom: 1px solid rgba(255,255,255,.05);
  position: relative; z-index: 1;
}
.breadcrumb-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem; color: var(--muted);
}
.breadcrumb a { color: var(--muted); transition: color .25s; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb-sep { color: var(--dim); }
.breadcrumb-current { color: var(--blue); font-weight: 600; }

/* ── RESPONSIVE SERVICE PAGES ── */
@media (max-width: 640px) {
  .sp-section    { padding: 3.5rem 1rem; }
  .cta-band      { padding: 3.5rem 1rem; }
  .breadcrumb    { padding: .8rem 1rem; }
  .srv-hero      { padding: 7rem 1rem 3rem; min-height: auto; }
  .srv-hero-desc { font-size: .95rem; }
  .srv-hero-actions { flex-direction: column; }
  .srv-hero-actions .btn { width: 100%; justify-content: center; }
  .feat-grid     { grid-template-columns: 1fr; }
  .sp-steps      { grid-template-columns: 1fr; }
  .related-grid  { grid-template-columns: 1fr; }
  .tech-grid     { justify-content: center; }
}
@media (max-width: 420px) {
  .srv-hero      { padding: 6rem 1rem 2.5rem; }
  .srv-hero-title { font-size: clamp(1.8rem, 6vw, 2.5rem); }
  .feat-card     { padding: 1.4rem; }
  .sp-step       { padding: 1.5rem 1rem; }
  .faq-q         { padding: 1rem; font-size: .88rem; }
  .faq-item.open .faq-a { padding: 0 1rem 1rem; }
}
