/* ═══════════════════════════════════════════
   SERVICIOS.CSS — Estilos compartidos para
   páginas de servicios individuales de MARD
═══════════════════════════════════════════ */

/* ── HERO ── */
.srv-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--ink);
  overflow: hidden;
  padding: 8rem 0 5rem;
}
.srv-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.srv-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.18;
}
.srv-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10,10,14,0.97) 45%, rgba(10,10,14,0.6) 100%);
  z-index: 1;
}
.srv-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.srv-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.5rem;
}
.srv-hero-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}
.srv-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
  margin-bottom: 1.25rem;
}
.srv-hero h1 em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}
.srv-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 52ch;
  line-height: 1.65;
  margin-bottom: 2rem;
}
.srv-hero-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── STATS BAR ── */
.srv-stats {
  background: var(--surface);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 2rem 0;
}
.srv-stats-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.srv-stat {
  text-align: center;
}
.srv-stat-val {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-display);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.srv-stat-val span { color: var(--red); }
.srv-stat-lbl {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-top: 0.4rem;
}

/* ── SECTION SHARED ── */
.srv-section {
  padding: 5rem 0;
}
.srv-section-dark {
  background: var(--surface);
}
.srv-section-header {
  margin-bottom: 3rem;
}
.srv-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.srv-section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #fff;
  text-wrap: balance;
  margin-bottom: 0.75rem;
}
.srv-section-header h2 em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}
.srv-section-header p {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  max-width: 56ch;
  line-height: 1.65;
}

/* ── FEATURES GRID ── */
.srv-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.srv-feature-card {
  background: var(--surface2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.srv-feature-card:hover {
  border-color: rgba(217,32,56,0.35);
}
.srv-feature-icon {
  width: 40px; height: 40px;
  background: rgba(217,32,56,0.12);
  border: 1px solid rgba(217,32,56,0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.srv-feature-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.srv-feature-card p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* ── PROCESS STEPS ── */
.srv-process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  position: relative;
}
.srv-process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,32,56,0.4), transparent);
}
.srv-step {
  padding: 0 1.5rem 0 0;
  position: relative;
}
.srv-step-n {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}
.srv-step h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.4rem;
}
.srv-step p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}
.srv-step-time {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--red);
  letter-spacing: 0.06em;
  background: rgba(217,32,56,0.1);
  border: 1px solid rgba(217,32,56,0.25);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
}

/* ── PLATFORMS / STACK ── */
.srv-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.srv-platform-chip {
  background: var(--surface2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 90px;
}
.srv-platform-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}
.srv-platform-role {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── COMPARE TABLE ── */
.srv-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
@media (max-width: 600px) { .srv-compare { grid-template-columns: 1fr; } }
.srv-compare-col {
  background: var(--surface2);
  border-radius: 12px;
  padding: 1.5rem;
}
.srv-compare-col.bad { border: 1px solid rgba(255,255,255,0.07); }
.srv-compare-col.good { border: 1px solid rgba(217,32,56,0.3); }
.srv-compare-col h3 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.srv-compare-col.bad h3 { color: rgba(255,255,255,0.5); }
.srv-compare-col.good h3 { color: var(--red); }
.srv-compare-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.45rem 0;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.45;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.srv-compare-item:last-child { border-bottom: none; }
.srv-compare-item .ic { flex-shrink: 0; font-size: 0.75rem; }
.srv-compare-col.bad .ic { color: rgba(255,255,255,0.25); }
.srv-compare-col.good .ic { color: var(--red); }

/* ── FAQ ── */
.srv-faq-list { max-width: 700px; }
.srv-faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.srv-faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 500;
  color: #fff;
  font-family: var(--font-display);
}
.srv-faq-q::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--red);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.srv-faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }
.srv-faq-a {
  display: none;
  padding: 0 0 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}
.srv-faq-a.open { display: block; }

/* ── CTA FINAL ── */
.srv-cta-section {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.srv-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(217,32,56,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.srv-cta-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.srv-cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
  margin-bottom: 1rem;
}
.srv-cta-section h2 em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}
.srv-cta-section p {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  max-width: 50ch;
  margin: 0 auto 2rem;
  line-height: 1.65;
}
.srv-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.srv-cta-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-mono);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .srv-hero { padding: 7rem 0 4rem; }
  .srv-process-steps { gap: 2rem; }
  .srv-process-steps::before { display: none; }
  .srv-step { padding: 0; }
}
