/* Shared polish for service pages (marketing, selection, people management) */

/* Hero: lighter, calmer */
.hero { padding: 72px 2rem 56px; }
.hero h1 { font-weight: 600; letter-spacing: -0.03em; font-size: clamp(2rem, 4vw, 2.875rem); line-height: 1.12; max-width: 820px; margin-left: auto; margin-right: auto; }
.hero-desc { font-size: 1rem; line-height: 1.7; max-width: 560px; }
.hero-ctas .btn-primary, .hero-ctas .btn-ghost { padding: 12px 24px; font-size: 0.9375rem; }

/* Stats strip */
.stats { padding: 36px 2rem; gap: 3.5rem; }
.stat-num { font-size: 1.75rem; font-weight: 700; }
.stat-label { font-size: 0.8rem; }

/* Section heads centered, like the home */
section { padding: 64px 2rem; }
.section-inner > .section-eyebrow { display: flex; align-items: center; justify-content: center; gap: 8px; }
.section-inner > .section-eyebrow::before { content: ''; width: 20px; height: 1.5px; background: var(--accent); }
.section-inner > h2 { text-align: center; font-weight: 600; letter-spacing: -0.02em; max-width: 820px; margin-left: auto; margin-right: auto; }
.section-inner > h2::after { content: ''; display: block; width: 48px; height: 3px; border-radius: 2px; background: var(--accent); margin: 1rem auto 0; }
.section-inner > .section-sub { text-align: center; margin-left: auto; margin-right: auto; margin-bottom: 2.5rem; font-size: 1rem; }

/* Service cards: compact, icon beside the title, interactive */
.services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.service-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 40px 1fr; column-gap: 0.875rem; row-gap: 0.4rem; align-items: center;
  padding: 1.375rem 1.375rem 1.5rem; background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card::before {
  content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.service-card .service-icon { width: 40px; height: 40px; margin: 0; border-radius: 10px; transition: background .25s ease; }
.service-card .service-icon svg { width: 20px; height: 20px; transition: stroke .25s ease; }
.service-card h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
.service-card p { grid-column: 1 / -1; margin-top: 0.35rem; font-size: 0.875rem; line-height: 1.6; }
.service-card:hover { transform: translateY(-4px); border-color: rgba(90,171,110,.45); box-shadow: 0 14px 34px rgba(26,46,68,.08); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover .service-icon { background: var(--accent); }
.service-card:hover .service-icon svg { stroke: #fff; }

/* Steps: smaller numbers */
.step { padding: 1.375rem; transition: border-color .25s ease, transform .25s ease; }
.step:hover { border-color: rgba(90,171,110,.45); transform: translateY(-3px); }
.step-num { font-size: 1.75rem; margin-bottom: 0.6rem; }

/* Reveal on scroll */
.vx-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.vx-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .vx-reveal { opacity: 1; transform: none; transition: none; } .service-card, .step { transition: none; } }

@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .hero { padding: 48px 1.25rem 40px; }
  section { padding: 44px 1.25rem; }
  .services-grid { grid-template-columns: 1fr; }
  .stats { gap: 1.5rem 2rem; padding: 28px 1.25rem; }
}

#servicios-puntuales { scroll-margin-top: 72px; }

/* Plan cards: collapsible feature list */
.plan-card:not(.plan-enterprise) { display: flex; flex-direction: column; }
.plan-card:not(.plan-enterprise) .plan-features { display: none; margin-top: 0.25rem; }
.plan-card:not(.plan-enterprise) .plan-features.vx-open { display: flex; }
.plan-card .plan-cta, .plan-card .plan-actions { margin-top: auto; }
.vx-feat-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 0 0 1rem; padding: 10px 14px; background: none; border: 1px solid var(--border-light); border-radius: 8px; font: inherit; font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: border-color .2s, color .2s; }
.vx-feat-toggle svg { width: 16px; height: 16px; transition: transform .25s; }
.vx-feat-toggle:hover, .vx-feat-toggle[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.vx-feat-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.plan-card { padding: 1.75rem; }
.plan-price { margin: 0.75rem 0 1rem; }
.plan-price span { font-size: 0.875rem; }

/* Enterprise card: intro + actions left, checklist right (same as home) */
.plan-card.plan-enterprise { padding: 2rem 2.25rem; }
.plan-enterprise .plan-features { gap: 0; }
.plan-enterprise .plan-features li { padding: 9px 0 9px 1.5rem; line-height: 1.5; border-bottom: 1px solid rgba(255,255,255,.09); font-size: 0.9rem; }
.plan-enterprise .plan-features li::before { top: 9px; }
.plan-enterprise .plan-features li:first-child { padding-top: 0; }
.plan-enterprise .plan-features li:first-child::before { top: 0; }
.plan-enterprise .plan-features li:last-child { border-bottom: none; padding-bottom: 0; }
.plan-enterprise .plan-enterprise-price { margin-top: 0.75rem; }
.plan-enterprise .plan-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.plan-enterprise .plan-actions .plan-cta { display: inline-block; padding: 12px 24px; }
.plan-enterprise .plan-actions .plan-doubt { text-decoration: none; font-size: 0.875rem; font-weight: 500; }
.plan-enterprise .plan-actions .plan-doubt:hover { text-decoration: underline; }
@media (min-width: 961px) {
  .plan-card.plan-enterprise { grid-template-columns: 1fr 1fr; grid-template-areas: "intro list" "actions list"; column-gap: 3.5rem; row-gap: 1.5rem; align-items: start; }
  .plan-enterprise > div:first-child { grid-area: intro; }
  .plan-enterprise > .plan-features { grid-area: list; padding-left: 3.5rem; border-left: 1px solid rgba(255,255,255,.1); }
  .plan-enterprise > .plan-actions { grid-area: actions; flex-direction: row; min-width: 0; align-self: end; }
}
@media (max-width: 960px) { .plan-card.plan-enterprise { padding: 1.5rem; } }

/* "Tengo dudas" links under plan buttons */
.plan-card:not(.plan-enterprise) .plan-doubt, .pack-card .plan-doubt { display: block; text-align: center; margin-top: 0.75rem; font-size: 0.85rem; font-weight: 500; color: var(--accent); text-decoration: none; }
.plan-card .plan-doubt:hover, .pack-card .plan-doubt:hover { text-decoration: underline; }

/* Pack cards (HR pages): same compact, collapsible treatment as plans */
.pack-card { display: flex; flex-direction: column; padding: 1.75rem; position: relative; }
.pack-card .pack-features { display: none; margin-top: 0.25rem; }
.pack-card .pack-features.vx-open { display: block; }
.pack-card .plan-actions { margin-top: auto; }
.pack-card .pack-title { margin-bottom: 0.5rem; }
.pack-card .pack-desc { margin-bottom: 0.75rem; }
.pack-card .pack-price { margin: 0.5rem 0 1rem; }
.pack-card .pack-price span { font-size: 0.875rem; }
.pack-card .price-clp { display: none; }

/* Closing call to action: contained card instead of a full-width block */
.cta-section { background: transparent; padding: 24px 2rem 64px; }
.cta-section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.cta-section { position: relative; }
.cta-section::before { content: ''; position: absolute; inset: 24px max(2rem, calc((100% - var(--max)) / 2)) 64px; background: var(--accent); border-radius: 18px; z-index: 0; }
.cta-section > * { position: relative; z-index: 1; }
.cta-section h2 { font-weight: 600; letter-spacing: -0.02em; font-size: clamp(1.5rem, 2.6vw, 2rem); padding-top: 48px; margin-bottom: 0.75rem; }
.cta-section p { font-size: 1rem; margin-bottom: 1.5rem; max-width: 520px; }
.cta-section .btn-white { padding: 12px 24px; margin-bottom: 48px; }
@media (max-width: 600px) { .cta-section { padding: 16px 1.25rem 44px; } .cta-section::before { inset: 16px 1.25rem 44px; } .cta-section h2 { padding-top: 36px; padding-left: 1.25rem; padding-right: 1.25rem; } .cta-section p { padding: 0 1.25rem; } .cta-section .btn-white { margin-bottom: 36px; } }

/* Animated hero background */
.hero { position: relative; overflow: hidden; }
.hero > .vx-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.35) 0%, #000 70%); mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.35) 0%, #000 70%); }
.hero > .hero-inner { position: relative; z-index: 1; }

/* Pack card base styles (shared, the Selección page had none) */
.packs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.pack-card { border-radius: var(--radius); border: 1.5px solid var(--border); background: #fff; }
.pack-card.featured { border-color: var(--accent); background: var(--accent-dim); }
.pack-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 3px 14px; border-radius: 20px; white-space: nowrap; letter-spacing: 0.05em; }
.pack-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; }
.pack-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.pack-price { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.pack-price span { color: var(--text-muted); font-weight: 400; }
.pack-card .pack-features { list-style: none; flex-direction: column; gap: 8px; margin-bottom: 1.25rem; }
.pack-card .pack-features.vx-open { display: flex; }
.pack-features li { font-size: 0.9rem; padding-left: 1.25rem; position: relative; }
.pack-features li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.pack-cta { display: block; text-align: center; background: var(--accent); color: #fff; padding: 12px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: background .15s; }
.pack-cta:hover { background: var(--accent-hi); }
.pack-cta-secondary { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.pack-cta-secondary:hover { background: var(--accent); color: #fff; }
@media (max-width: 900px) { .packs-grid { grid-template-columns: 1fr !important; max-width: 520px !important; margin-left: auto; margin-right: auto; } }
