/* ─────────────────────────────────────────────────────────────────
   Página /servicios — Wilmer Mogollón
   ───────────────────────────────────────────────────────────────── */

/* Hero */
.srv-hero {
  background: linear-gradient(135deg, #102027 0%, #1a2f38 60%, #243d48 100%);
  color: #ffffff;
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
}

.srv-hero::before {
  content: "";
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(40,184,156,0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

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

.srv-hero .eyebrow {
  color: #28b89c;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.srv-hero h1 {
  font-family: "Newsreader", serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 22px;
  max-width: 900px;
}

.srv-lede {
  font-size: 1.15rem;
  line-height: 1.55;
  max-width: 760px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
}

.srv-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.srv-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 700px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.srv-hero-stats div {
  display: flex;
  flex-direction: column;
}

.srv-hero-stats strong {
  font-size: 2.2rem;
  font-weight: 800;
  color: #d4a017;
  line-height: 1;
  margin-bottom: 4px;
}

.srv-hero-stats span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.3;
}

@media (max-width: 640px) {
  .srv-hero { padding: 70px 18px 56px; }
  .srv-hero-stats { grid-template-columns: 1fr; gap: 18px; }
  .srv-hero-stats strong { font-size: 1.8rem; }
}

/* Sections */
.srv-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.srv-section-alt {
  background: var(--bg-soft, #f6f8fa);
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

[data-theme="dark"] .srv-section-alt {
  background: rgba(255,255,255,0.025);
}

.srv-section-alt > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.srv-section-head {
  max-width: 800px;
  margin-bottom: 48px;
}

.srv-section-head .eyebrow {
  color: var(--teal, #28b89c);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin: 0 0 12px;
}

.srv-section-head h2 {
  font-family: "Newsreader", serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--ink, #102027);
}

[data-theme="dark"] .srv-section-head h2 { color: #f5f6f8; }

.srv-section-head p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted, #475569);
}

[data-theme="dark"] .srv-section-head p { color: #c7cdd6; }

/* Cards de servicios */
.srv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.srv-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .srv-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
}

.srv-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(16,32,39,0.08);
}

[data-theme="dark"] .srv-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.srv-card-featured {
  border-color: var(--teal, #28b89c);
  border-width: 2px;
}

.srv-card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(var(--c-rgb, 40, 184, 156), 0.12);
  background: color-mix(in srgb, var(--c) 15%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--c);
  margin-bottom: 16px;
}

.srv-card-tag {
  position: absolute;
  top: 18px; right: 18px;
  background: var(--gold, #d4a017);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.srv-card h3 {
  font-size: 1.32rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--ink, #102027);
  line-height: 1.25;
}

[data-theme="dark"] .srv-card h3 { color: #f5f6f8; }

.srv-card-desc {
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--muted, #475569);
  margin: 0 0 18px;
}

[data-theme="dark"] .srv-card-desc { color: #c7cdd6; }

.srv-card-section {
  margin-bottom: 18px;
}

.srv-card-section h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink, #102027);
  margin: 0 0 10px;
  opacity: 0.7;
}

[data-theme="dark"] .srv-card-section h4 { color: #c7cdd6; opacity: 0.9; }

.srv-card-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.srv-card-section li {
  font-size: 0.9rem;
  line-height: 1.5;
  padding-left: 22px;
  position: relative;
  margin-bottom: 6px;
  color: var(--ink, #102027);
}

[data-theme="dark"] .srv-card-section li { color: #d4d9e0; }

.srv-card-section li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--teal, #28b89c);
  font-weight: 700;
}

.srv-card-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0;
  margin-bottom: 16px;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

[data-theme="dark"] .srv-card-meta {
  border-color: rgba(255,255,255,0.08);
}

.srv-card-meta span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink, #102027);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

[data-theme="dark"] .srv-card-meta span { color: #d4d9e0; }

.srv-card-meta i { color: var(--teal, #28b89c); }

.srv-card-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.srv-card-cta {
  background: var(--teal, #28b89c);
  color: #ffffff;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}

.srv-card-cta:hover {
  background: #1f9d85;
  color: #ffffff;
}

.srv-card-link {
  font-size: 0.85rem;
  color: var(--muted, #6b7280);
  text-decoration: underline;
  text-align: center;
}

.srv-card-link:hover { color: var(--teal, #28b89c); }

/* Proceso de trabajo */
.srv-process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.srv-step {
  padding: 28px 24px;
  background: #ffffff;
  border-radius: 14px;
  border-left: 4px solid var(--teal, #28b89c);
}

[data-theme="dark"] .srv-step {
  background: rgba(255,255,255,0.04);
}

.srv-step-num {
  display: inline-block;
  font-family: "Newsreader", serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal, #28b89c);
  line-height: 1;
  margin-bottom: 12px;
}

.srv-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--ink, #102027);
  line-height: 1.3;
}

[data-theme="dark"] .srv-step h3 { color: #f5f6f8; }

.srv-step p {
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--muted, #475569);
  margin: 0;
}

[data-theme="dark"] .srv-step p { color: #c7cdd6; }

/* Para quién es */
.srv-quien-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .srv-quien-grid { grid-template-columns: 1fr; gap: 32px; }
}

.srv-quien-grid > div:first-child .eyebrow {
  color: var(--teal, #28b89c);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin: 0 0 12px;
}

.srv-quien-grid > div:first-child h2 {
  font-family: "Newsreader", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0;
  color: var(--ink, #102027);
}

[data-theme="dark"] .srv-quien-grid > div:first-child h2 { color: #f5f6f8; }

.srv-quien-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.srv-quien-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.srv-quien-item > i {
  font-size: 1.8rem;
  color: var(--teal, #28b89c);
  flex-shrink: 0;
  width: 56px; height: 56px;
  background: color-mix(in srgb, var(--teal, #28b89c) 14%, transparent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}

.srv-quien-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink, #102027);
}

[data-theme="dark"] .srv-quien-item h3 { color: #f5f6f8; }

.srv-quien-item p {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--muted, #475569);
  margin: 0;
}

[data-theme="dark"] .srv-quien-item p { color: #c7cdd6; }

/* FAQ */
.srv-faq {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.srv-faq-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}

[data-theme="dark"] .srv-faq-item {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
}

.srv-faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink, #102027);
}

[data-theme="dark"] .srv-faq-item summary { color: #f5f6f8; }

.srv-faq-item summary::-webkit-details-marker { display: none; }

.srv-faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--teal, #28b89c);
  transition: transform 0.2s;
}

.srv-faq-item[open] summary::after { transform: rotate(45deg); }

.srv-faq-item p {
  padding: 0 22px 22px;
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--muted, #475569);
}

[data-theme="dark"] .srv-faq-item p { color: #c7cdd6; }

/* CTA bottom */
.srv-cta-section {
  background: linear-gradient(135deg, #102027 0%, #1a2f38 60%, #243d48 100%);
  color: #ffffff;
  text-align: center;
  border-radius: 20px;
  padding: 64px 32px;
  margin: 60px 24px 80px;
  max-width: 1100px;
}

.srv-cta-inner {
  max-width: 720px;
  margin: 0 auto;
}

.srv-cta-section h2 {
  font-family: "Newsreader", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin: 0 0 16px;
  color: #ffffff;
}

.srv-cta-section p {
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  margin: 0 0 32px;
}

.srv-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.button-lg {
  padding: 14px 28px;
  font-size: 1.02rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.srv-cta-contact {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.srv-cta-contact span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.srv-cta-contact i { color: #28b89c; }

@media (max-width: 640px) {
  .srv-cta-section { padding: 48px 22px; margin: 40px 12px 60px; }
  .srv-cta-contact { flex-direction: column; gap: 12px; }
}

/* ─────────────────────────────────────────────────────────────────
   CTA contextual reutilizable (en calculadoras)
   ───────────────────────────────────────────────────────────────── */

.srv-contextual-cta {
  background: linear-gradient(135deg, #102027 0%, #1a2f38 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 28px 32px;
  margin: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.srv-contextual-cta::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(40,184,156,0.20) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.srv-contextual-cta-body {
  flex: 1;
  position: relative;
  z-index: 1;
}

.srv-contextual-cta-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #28b89c;
  margin: 0 0 8px;
}

.srv-contextual-cta h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #ffffff;
  line-height: 1.3;
}

.srv-contextual-cta p {
  font-size: 0.96rem;
  line-height: 1.5;
  margin: 0;
  color: rgba(255,255,255,0.85);
}

.srv-contextual-cta-action {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.srv-contextual-cta-btn {
  background: var(--gold, #d4a017);
  color: #102027;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: background 0.2s;
}

.srv-contextual-cta-btn:hover {
  background: #b88a13;
  color: #102027;
}

@media (max-width: 700px) {
  .srv-contextual-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .srv-contextual-cta-btn {
    width: 100%;
    justify-content: center;
  }
}
