/* Páginas internas: servicios, blog y artículos. Requiere base.css. */

/* ── Encabezado de página ── */
.service-hero { padding: 7.5rem 0 clamp(3rem, 7vw, 5rem); border-bottom: 1px solid var(--line); }
.hero-content { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.service-hero.has-media .hero-content { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.hero-breadcrumb { font-size: 0.92rem; color: var(--faint); margin-bottom: 1.75rem; }
.hero-breadcrumb a { color: var(--muted); text-decoration: none; }
.hero-breadcrumb a:hover { color: var(--text); }
.hero-breadcrumb span { color: var(--text); }
.hero-eyebrow { margin-bottom: 1rem; }
.hero-eyebrow-text { font-weight: 600; color: var(--accent-hover); }
.hero-h1 {
  font-stretch: 62%; font-weight: 760; text-transform: uppercase; line-height: 0.95; word-spacing: 0.1em;
  font-size: clamp(2.75rem, 6.5vw, 5.25rem); margin-bottom: 1.25rem; text-wrap: balance;
}
.hero-tagline { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 52ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

/* Botones heredados del diseño anterior */
.btn-primary, .btn-white, .price-book {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.5rem;
  font-stretch: 85%; font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--radius-sm); transition: background-color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn-primary, .btn-white { background: var(--accent); color: #fff; }
.btn-primary:hover, .btn-white:hover { background: var(--accent-hover); }
.btn-primary:active, .btn-white:active, .price-book:active { transform: translateY(1px); }
.btn-ghost {
  font-weight: 600; color: var(--text); text-decoration: underline; text-decoration-color: var(--accent);
  text-underline-offset: 0.3em; text-decoration-thickness: 2px;
}
.btn-ghost:hover { color: var(--accent-hover); }

/* ── Secciones ── */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-inner { max-width: 1000px; margin: 0 auto; padding: 0 var(--gutter); }
.section-eyebrow { font-weight: 600; color: var(--accent-hover); margin-bottom: 0.9rem; }
.section-title {
  font-stretch: 66%; font-weight: 760; text-transform: uppercase; line-height: 0.95; word-spacing: 0.1em;
  font-size: clamp(2rem, 4.5vw, 3.25rem); margin-bottom: 1.5rem; text-wrap: balance;
}
.section-inner > p { color: var(--muted); max-width: 65ch; margin-bottom: 1.1rem; }
.checklist { list-style: none; display: grid; gap: 0.6rem; margin-top: 1.75rem; }
.checklist li { position: relative; padding-left: 1.6rem; color: var(--text); }
.checklist li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 0.7rem; height: 2px; background: var(--accent); }
.pricing-section, .faq-section { background: var(--surface); }

/* ── Precios ── */
.pricing-table { border-top: 2px solid var(--text); }
.price-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 0.5rem 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.price-name { font-weight: 700; font-size: 1.08rem; }
.price-desc { color: var(--muted); font-size: 0.95rem; margin-top: 0.2rem; max-width: 60ch; }
.price-amount { font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-book { min-height: 40px; padding: 0 1rem; font-size: 0.85rem; border: 1px solid var(--line-strong); color: var(--text); }
.price-book:hover { border-color: var(--text); }
.price-disclaimer { margin-top: 1.25rem; font-size: 0.92rem; color: var(--faint); }
.price-disclaimer a { color: var(--text); }

/* ── Llamado a reservar ── */
.cta-band { padding: clamp(3.5rem, 8vw, 5.5rem) var(--gutter); text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band h2 { font-stretch: 66%; font-weight: 760; text-transform: uppercase; line-height: 1; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.75rem; }
.cta-band p { color: var(--muted); margin-bottom: 1.75rem; }

/* ── Preguntas frecuentes (abiertas) ── */
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3.5rem; }
.faq-q { font-weight: 700; font-size: 1.1rem; line-height: 1.35; margin-bottom: 0.5rem; }
.faq-a p { color: var(--muted); }

/* ── Relacionados ── */
.related-section { padding: 3rem 0; }
.related-inner { max-width: 1000px; margin: 0 auto; padding: 0 var(--gutter); }
.related-label { font-weight: 600; color: var(--muted); margin-bottom: 1rem; }
.related-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.related-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border-radius: 999px;
  border: 1px solid var(--line-strong); text-decoration: none; font-weight: 600; transition: border-color 0.2s, background-color 0.2s;
}
.related-link:hover { border-color: var(--text); }

/* ── Blog: listado ── */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.post-card { display: flex; flex-direction: column; }
.post-card-img { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--surface); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-body { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 1rem; flex: 1; }
.post-card-meta { font-size: 0.9rem; color: var(--faint); }
.post-card-title { font-weight: 700; font-size: 1.25rem; line-height: 1.25; }
.post-card-title a { text-decoration: none; }
.post-card-title a:hover { color: var(--accent-hover); }
.post-card-excerpt { color: var(--muted); flex: 1; }
.post-card-link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.3em; text-decoration-thickness: 2px; align-self: flex-start; }

/* ── Artículo ── */
.article-section { padding: clamp(3rem, 7vw, 5rem) 0; }
.article-inner { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }
.article-meta-row { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; font-size: 0.92rem; color: var(--faint); margin-bottom: 2.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.article-meta-row .cat { color: var(--accent-hover); font-weight: 600; }
.article-body { font-size: 1.1rem; line-height: 1.75; }
.article-body p, .article-body ul, .article-body ol { margin-bottom: 1.25rem; color: #d9d3ca; }
.article-body h2 { font-stretch: 75%; font-weight: 750; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; margin: 2.5rem 0 0.9rem; text-wrap: balance; }
.article-body h3 { font-weight: 700; font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.article-body ul, .article-body ol { padding-left: 1.25rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 0.2em; }
.article-body strong { color: var(--text); }
.article-cta-box { background: var(--surface); border-radius: var(--radius); padding: 1.75rem; margin: 2.5rem 0; }
.article-cta-box p { color: var(--text); margin-bottom: 1.25rem; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .service-hero.has-media .hero-content { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .faq-list { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .service-hero { padding-top: 5.5rem; }
  .price-row { grid-template-columns: 1fr auto; }
  .price-book { display: none; }
  .post-grid { grid-template-columns: 1fr; }
  .article-body { font-size: 1.04rem; }
}

/* ── Empleo ── */
.benefit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.benefit { background: var(--bg); padding: 1.6rem 1.5rem; }
.benefit h3 { font-weight: 700; font-size: 1.15rem; line-height: 1.25; margin-bottom: 0.5rem; }
.benefit h3::before { content: ''; display: block; width: 1.5rem; height: 3px; background: var(--accent); margin-bottom: 0.9rem; }
.benefit p { color: var(--muted); }
.checklist-lg li { font-size: 1.15rem; font-weight: 600; }
.callout { margin-top: 2rem; padding: 1.5rem 1.6rem; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line-strong); border-left: 4px solid var(--accent); }
.callout h3 { font-weight: 700; font-size: 1.2rem; margin-bottom: 0.35rem; }
.callout p { color: #d9d3ca; max-width: 60ch; }
.apply-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.apply-option { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.4rem; border-radius: var(--radius); background: var(--surface); }
.apply-option h3 { font-weight: 700; font-size: 1.1rem; }
.apply-option p { color: var(--muted); flex: 1; }
.apply-option .link-arrow { align-self: flex-start; }
@media (max-width: 860px) {
  .apply-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit { padding: 1.25rem 1.1rem; }
}
.hero-media.hiring-media img { object-position: 22% center; }
@media (max-width: 860px) { .hero-media.hiring-media img { object-position: center; } }
