/* ========================================================================
   SetubalAI — Plantilla de Detalle de Servicio
   Hereda paleta/tipografía de ../style.css. Estilos específicos de esta
   plantilla: nav de retorno, hero de servicio, secciones de contenido,
   pasos numerados y CTA final.
   ======================================================================== */

/* ===== Nav de detalle ===== */
.svc-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0;
  background: rgba(5, 5, 8, 0.7);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.svc-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.svc-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.svc-back svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.svc-back:hover { color: var(--gold-2); }
.svc-back:hover svg { transform: translateX(-3px); }

/* ===== Hero de servicio ===== */
.svc-hero {
  position: relative;
  padding-top: 168px;
  padding-bottom: 80px;
  overflow: hidden;
}
.svc-hero-glow {
  position: absolute; top: -10%; left: 50%; translate: -50% 0;
  width: 900px; height: 700px; z-index: 0;
  background: radial-gradient(circle, rgba(201,162,39,0.14), transparent 65%);
  pointer-events: none;
}
.svc-hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 56px; align-items: center;
}
@media (max-width: 968px) { .svc-hero-grid { grid-template-columns: 1fr; } }
.svc-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 18px;
}
.svc-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.svc-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  margin-bottom: 22px;
  animation: fadeUp 0.8s var(--ease) both;
}
.svc-hero h1 em {
  font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400;
  background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.svc-hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 560px; margin-bottom: 32px;
  animation: fadeUp 0.8s var(--ease) 0.1s both;
}
.svc-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeUp 0.8s var(--ease) 0.2s both; }
.svc-hero-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6);
  aspect-ratio: 4/3;
  animation: fadeUp 0.9s var(--ease) 0.15s both;
}
.svc-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-hero-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5,5,8,0.55));
}

/* ===== Secciones de contenido ===== */
.svc-section { padding: 72px 0; border-top: 1px solid var(--border); }
.svc-section:first-of-type { border-top: none; }
.svc-section-head { max-width: 720px; margin-bottom: 36px; }
.svc-section-head .svc-eyebrow { margin-bottom: 14px; }
.svc-section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.svc-prose { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.svc-prose p { font-size: 15.5px; line-height: 1.75; color: var(--text-secondary); }
.svc-prose strong { color: var(--text-primary); font-weight: 700; }
.svc-prose em { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--gold-2); font-size: 1.02em; }

.svc-highlight-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px;
}
@media (max-width: 968px) { .svc-highlight-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .svc-highlight-grid { grid-template-columns: 1fr; } }
.svc-highlight-card {
  padding: 24px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--card-bg);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.svc-highlight-card:hover { border-color: var(--border-strong); background: var(--card-bg-hover); transform: translateY(-4px); }
.svc-highlight-card svg { width: 30px; height: 30px; color: var(--gold-2); margin-bottom: 14px; filter: drop-shadow(0 0 8px rgba(244,208,63,0.35)); }
.svc-highlight-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.svc-highlight-card p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }

/* Nivel / tier cards (voice ai) */
.svc-tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
@media (max-width: 968px) { .svc-tier-grid { grid-template-columns: 1fr; } }
.svc-tier-card { padding: 28px 24px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--card-bg); }
.svc-tier-card.tier-pro { border-color: rgba(45,212,191,0.3); background: linear-gradient(160deg, rgba(45,212,191,0.06), rgba(255,255,255,0.02)); }
.svc-tier-card.tier-premium { border-color: rgba(201,162,39,0.4); background: linear-gradient(160deg, rgba(201,162,39,0.08), rgba(255,255,255,0.02)); }
.svc-tier-name { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 10px; }
.tier-pro .svc-tier-name { color: var(--teal); }
.tier-premium .svc-tier-name { color: var(--gold-2); }
.svc-tier-card h4 { font-size: 1.1rem; margin-bottom: 10px; }
.svc-tier-card p { font-size: 14px; line-height: 1.6; }

/* Quote / case callout */
.svc-callout {
  margin-top: 32px; padding: 28px 28px;
  border-left: 3px solid var(--gold-2);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(244,208,63,0.05);
}
.svc-callout p { font-size: 15px; color: var(--text-primary); line-height: 1.7; }
.svc-callout a { color: var(--gold-2); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(244,208,63,0.4); }

/* Honesty box ("qué no hacemos") */
.svc-honesty {
  margin-top: 32px; padding: 26px 28px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.02);
}
.svc-honesty h4 { font-size: 1rem; margin-bottom: 10px; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.svc-honesty h4 svg { width: 18px; height: 18px; color: var(--violet); }
.svc-honesty p { font-size: 14.5px; line-height: 1.7; }

/* ===== Pasos "Cómo lo hacemos" ===== */
.svc-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 8px; }
@media (max-width: 968px) { .svc-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-steps { grid-template-columns: 1fr; } }
.svc-step { position: relative; padding: 26px 22px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--card-bg); transition: transform 0.3s var(--ease), border-color 0.3s var(--ease); }
.svc-step:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.svc-step-num { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--text-tertiary); margin-bottom: 14px; }
.svc-step svg { width: 38px; height: 38px; color: var(--teal); margin-bottom: 14px; filter: drop-shadow(0 0 8px rgba(45,212,191,0.35)); }
.svc-step h4 { font-size: 0.98rem; margin-bottom: 8px; }
.svc-step p { font-size: 13.5px; line-height: 1.6; }

/* ===== CTA final de servicio ===== */
.svc-cta { text-align: center; padding: 96px 0; position: relative; }
.svc-cta::before {
  content: ''; position: absolute; top: 0; left: 50%; translate: -50% 0;
  width: 700px; height: 460px; z-index: 0;
  background: radial-gradient(circle, rgba(139,92,246,0.12), transparent 70%);
}
.svc-cta-content { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.svc-cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 16px; }
.svc-cta p { font-size: 15.5px; margin-bottom: 32px; }
.svc-cta-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Botón Telegram ===== */
.btn-telegram { display: inline-flex; align-items: center; gap: 8px; }
.btn-telegram svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ===== Formulario de contacto ===== */
.svc-contact { padding: 80px 0; border-top: 1px solid var(--border); }
.svc-contact-card {
  max-width: 780px; margin: 0 auto;
  padding: 44px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card-bg);
  position: relative; overflow: hidden;
}
.svc-contact-card::before {
  content: ''; position: absolute; top: -30%; right: -20%;
  width: 420px; height: 420px; z-index: 0;
  background: radial-gradient(circle, rgba(201,162,39,0.1), transparent 70%);
  pointer-events: none;
}
.svc-contact-head { position: relative; z-index: 1; text-align: center; max-width: 560px; margin: 0 auto 32px; }
.svc-contact-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 10px; }
.svc-contact-head p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }
.svc-form { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.svc-form .svc-field-full { grid-column: 1 / -1; }
@media (max-width: 640px) { .svc-form { grid-template-columns: 1fr; } }
.svc-field { display: flex; flex-direction: column; gap: 8px; }
.svc-field label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.svc-field input,
.svc-field textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm, 10px);
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.03);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.svc-field input::placeholder,
.svc-field textarea::placeholder { color: var(--text-tertiary); }
.svc-field input:focus,
.svc-field textarea:focus {
  outline: none;
  border-color: var(--gold-2);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 3px rgba(244,208,63,0.15);
}
.svc-field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.svc-form-actions {
  grid-column: 1 / -1;
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px;
}
.svc-form-actions .btn { flex: 1 1 auto; justify-content: center; }
.svc-form-note {
  grid-column: 1 / -1;
  font-size: 12.5px; color: var(--text-tertiary); margin-top: 4px;
}
.svc-form-status {
  grid-column: 1 / -1;
  font-size: 13.5px; color: var(--teal);
  display: none;
}
.svc-form-status.show { display: block; }

/* ===== Footer simple ===== */
.svc-footer { border-top: 1px solid var(--border); padding: 40px 0; text-align: center; }
.svc-footer p { font-size: 13px; color: var(--text-tertiary); }
.svc-footer a { color: var(--text-secondary); transition: color 0.2s; }
.svc-footer a:hover { color: var(--gold-2); }
