/* ===== Páginas de especialidad: hero con foto, secciones con fondo y movimiento ===== */

.hse-page {
  --sv-ink: #0b1418;
  --sv-ink-2: #10252b;
  --sv-teal: var(--gold, #00B8A9);
  --sv-teal-rgb: var(--gold-rgb, 0, 184, 169);
  --sv-mint: #eef6f5;
  --sv-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sv-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 100'%3E%3Cg fill='%2300B8A9'%3E%3Crect x='8' y='12' width='14' height='76'/%3E%3Crect x='26' y='28' width='10' height='60'/%3E%3Crect x='38' y='20' width='10' height='68'/%3E%3Crect x='50' y='36' width='10' height='52'/%3E%3C/g%3E%3Cpath d='M4 88 Q40 72 76 88' stroke='%2300B8A9' stroke-width='3' fill='none'/%3E%3C/svg%3E");
  --sv-curve: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220' preserveAspectRatio='none'%3E%3Cpath d='M0 170 Q720 40 1440 170' stroke='%2300B8A9' stroke-opacity='.4' stroke-width='2' fill='none'/%3E%3Cpath d='M0 200 Q720 80 1440 200' stroke='%2300B8A9' stroke-opacity='.18' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background: #fff;
}

/* ---------- Hero ---------- */
.hse-page .hse-hero {
  display: flex;
  align-items: center;
  min-height: min(78vh, 720px);
  padding: 72px 0 96px;
  background: var(--sv-ink);
  isolation: isolate;
}

.hse-page .hse-hero::before {
  content: '';
  position: absolute;
  inset: -4%;
  top: -4%;
  right: -4%;
  width: auto;
  height: auto;
  z-index: -2;
  background: var(--svc-img) center / cover no-repeat;
  filter: saturate(0.85);
  animation: svZoom 22s ease-in-out infinite alternate;
}

.hse-page .hse-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    var(--sv-curve) no-repeat center bottom / 100% 200px,
    linear-gradient(100deg, rgba(11, 20, 24, 0.95) 0%, rgba(11, 20, 24, 0.86) 45%, rgba(11, 20, 24, 0.5) 100%);
}

@keyframes svZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08) translate(-1%, -1%); }
}

.hse-page .hse-hero .container > * {
  opacity: 0;
  transform: translateY(18px);
  animation: svUp 0.8s var(--sv-ease) forwards;
}

.hse-page .hse-hero .container > :nth-child(2) { animation-delay: 0.08s; }
.hse-page .hse-hero .container > :nth-child(3) { animation-delay: 0.16s; }
.hse-page .hse-hero .container > :nth-child(4) { animation-delay: 0.24s; }
.hse-page .hse-hero .container > :nth-child(5) { animation-delay: 0.32s; }
.hse-page .hse-hero .container > :nth-child(6) { animation-delay: 0.4s; }

@keyframes svUp {
  to { opacity: 1; transform: translateY(0); }
}

.hse-page .hse-hero__badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin-bottom: 22px;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.8);
}

.hse-page .hse-hero__badge b {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--sv-teal);
  font-weight: 800;
}

.hse-page .hse-hero__badge b::after {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--sv-teal);
}

.hse-page .hse-hero h1 {
  max-width: 17ch;
  margin-bottom: 22px;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hse-page .hse-hero .svc-hero__pain {
  max-width: 640px;
  margin: 0 0 16px;
  padding-left: 16px;
  border-left: 3px solid var(--sv-teal);
  font-size: 1.12rem;
  line-height: 1.5;
  color: #fff;
}

.hse-page .hse-hero p { max-width: 680px; color: rgba(255, 255, 255, 0.74); }

.hse-page .svc-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.svc-hero__ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
}

.svc-hero__ghost:hover { border-color: var(--sv-teal); color: var(--sv-teal); }

/* ---------- Encabezados de sección ---------- */
.hse-page .hse-section-head { margin-bottom: 44px; }

.hse-page .hse-section-head__tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin-bottom: 14px;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--gold-text, #078a80);
}

.hse-page .hse-section-head__tag::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--sv-teal);
}

.hse-page .hse-section-head--center .hse-section-head__tag::after {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--sv-teal);
}

.hse-page .hse-section-head__tag--gold { color: var(--sv-teal); }

.hse-page .hse-section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.hse-page .hse-section-head__lead { font-size: 1.02rem; }

/* ---------- Servicios ---------- */
.hse-page .hse-offer {
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
  background: linear-gradient(180deg, #fff 0%, var(--sv-mint) 100%);
  isolation: isolate;
}

.hse-page .hse-offer::before {
  content: '';
  position: absolute;
  z-index: -1;
  right: -70px;
  top: 40px;
  width: clamp(220px, 26vw, 380px);
  aspect-ratio: 4 / 5;
  background: var(--sv-mark) no-repeat center / contain;
  opacity: 0.07;
  animation: svDrift 18s ease-in-out infinite alternate;
}

@keyframes svDrift {
  from { translate: 0 0; }
  to { translate: -24px 22px; }
}

.hse-page .hse-svc-grid { counter-reset: svc; }

.hse-page .hse-svc-card {
  position: relative;
  counter-increment: svc;
  border-radius: 14px;
  background: var(--sv-ink-2);
  box-shadow: 0 14px 36px rgba(11, 20, 24, 0.12);
  transition: transform 0.5s var(--sv-ease), box-shadow 0.5s var(--sv-ease), opacity 0.8s var(--sv-ease);
}

.hse-page .hse-svc-card::before {
  content: counter(svc, decimal-leading-zero);
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 16px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.hse-page .hse-svc-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--sv-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--sv-ease);
}

.hse-page .hse-svc-card:hover { transform: translateY(-8px); box-shadow: 0 26px 54px rgba(11, 20, 24, 0.2); }
.hse-page .hse-svc-card:hover::after { transform: scaleX(1); }

.hse-page .hse-svc-card__img { position: relative; height: 180px; }

.hse-page .hse-svc-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 20, 24, 0.35) 0%, transparent 40%, rgba(16, 37, 43, 0.65) 100%);
}

.hse-page .hse-svc-card__img img { transition: transform 0.9s var(--sv-ease); }

.hse-page .hse-svc-card__body { background: var(--sv-ink-2); padding: 22px 24px 28px; }

.hse-page .hse-svc-card__icon {
  position: relative;
  z-index: 1;
  transition: transform 0.5s var(--sv-ease);
}

.hse-page .hse-svc-card:hover .hse-svc-card__icon { transform: rotate(-8deg) scale(1.08); }

.hse-page .hse-svc-card__body h3 { font-size: 1.08rem; }
.hse-page .hse-svc-card__body p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.7); }

/* ---------- Indicadores ---------- */
.hse-page .hse-indicators {
  padding: 96px 0;
  background:
    var(--sv-curve) no-repeat center bottom / 100% 200px,
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(var(--sv-teal-rgb), 0.18), transparent 70%),
    linear-gradient(180deg, var(--sv-ink) 0%, var(--sv-ink-2) 100%);
}

.hse-page .hse-indicators::before {
  top: auto;
  bottom: -60px;
  left: -60px;
  right: auto;
  width: clamp(200px, 22vw, 320px);
  height: auto;
  aspect-ratio: 4 / 5;
  background: var(--sv-mark) no-repeat center / contain;
  opacity: 0.06;
}

.hse-page .hse-ind-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--sv-teal);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.5s var(--sv-ease), background 0.4s ease, border-color 0.4s ease, opacity 0.8s var(--sv-ease);
}

.hse-page .hse-ind-card--navy,
.hse-page .hse-ind-card--gray,
.hse-page .hse-ind-card--silver { border-top-color: rgba(var(--sv-teal-rgb), 0.5); }

.hse-page .hse-ind-card:hover {
  transform: translateY(-6px);
  background: rgba(var(--sv-teal-rgb), 0.08);
  border-color: rgba(var(--sv-teal-rgb), 0.45);
  border-top-color: var(--sv-teal);
}

.hse-page .hse-ind-card__icon { transition: background 0.4s ease, color 0.4s ease; }
.hse-page .hse-ind-card:hover .hse-ind-card__icon { background: var(--sv-teal); color: var(--sv-ink); }
.hse-page .hse-ind-card h3 { font-size: 1rem; }
.hse-page .hse-ind-card p { font-size: 0.86rem; color: rgba(255, 255, 255, 0.66); }

/* ---------- Entregables ---------- */
.hse-page .deliverables {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background: #fff;
  isolation: isolate;
}

.hse-page .deliverables::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 38%;
  height: 100%;
  background: var(--sv-mint);
}

.hse-page .deliverables__list { counter-reset: dlv; gap: 16px; }

.hse-page .deliverables__list li {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 22px 22px 22px 20px;
  border: 1px solid rgba(26, 29, 33, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(11, 20, 24, 0.05);
  font-size: 0.98rem;
  line-height: 1.5;
  counter-increment: dlv;
  transition: transform 0.5s var(--sv-ease), box-shadow 0.5s var(--sv-ease), border-color 0.4s ease, opacity 0.8s var(--sv-ease);
}

.hse-page .deliverables__list li::before {
  content: counter(dlv, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(var(--sv-teal-rgb), 0.12);
  color: var(--gold-text, #078a80);
  font-size: 0.85rem;
  font-weight: 800;
  transition: background 0.4s ease, color 0.4s ease;
}

.hse-page .deliverables__list li:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--sv-teal-rgb), 0.4);
  box-shadow: 0 18px 36px rgba(11, 20, 24, 0.1);
}

.hse-page .deliverables__list li:hover::before { background: var(--sv-teal); color: #fff; }

.hse-page .deliverables__note {
  margin-top: 28px;
  padding: 16px 18px;
  border-left: 3px solid var(--sv-teal);
  background: var(--sv-mint);
  color: var(--navy, #2a2f35);
}

/* ---------- Beneficios (documental / contabilidad) ---------- */
.hse-page .doc-benefits {
  position: relative;
  overflow: hidden;
  background:
    var(--sv-curve) no-repeat center bottom / 100% 200px,
    linear-gradient(180deg, var(--sv-ink) 0%, var(--sv-ink-2) 100%);
  color: #fff;
}

.hse-page .doc-benefits h2,
.hse-page .doc-benefits h3 { color: #fff; }

.hse-page .doc-benefits p { color: rgba(255, 255, 255, 0.7); }

.hse-page .doc-benefits__card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--sv-teal);
  transition: transform 0.5s var(--sv-ease), background 0.4s ease, opacity 0.8s var(--sv-ease);
}

.hse-page .doc-benefits__card:hover { transform: translateY(-6px); background: rgba(var(--sv-teal-rgb), 0.08); }

/* ---------- FAQ ---------- */
.hse-page .faq-block {
  position: relative;
  padding: 96px 0;
  background: linear-gradient(180deg, var(--sv-mint) 0%, #fff 100%);
}

.hse-page .faq-item {
  border: 1px solid rgba(26, 29, 33, 0.08);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.8s var(--sv-ease), transform 0.8s var(--sv-ease);
}

.hse-page .faq-item:hover { border-color: rgba(var(--sv-teal-rgb), 0.45); }
.hse-page .faq-item:has(details[open]) { border-color: var(--sv-teal); box-shadow: 0 14px 30px rgba(11, 20, 24, 0.08); }

.hse-page .faq-item details summary {
  position: relative;
  padding-right: 44px;
  cursor: pointer;
}

.hse-page .faq-item details summary::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  translate: 0 -50%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    linear-gradient(var(--gold-text, #078a80), var(--gold-text, #078a80)) center / 12px 2px no-repeat,
    linear-gradient(var(--gold-text, #078a80), var(--gold-text, #078a80)) center / 2px 12px no-repeat,
    rgba(var(--sv-teal-rgb), 0.12);
  transition: transform 0.35s var(--sv-ease), background 0.3s ease;
}

.hse-page .faq-item details[open] summary::after {
  transform: rotate(45deg);
  background:
    linear-gradient(#fff, #fff) center / 12px 2px no-repeat,
    linear-gradient(#fff, #fff) center / 2px 12px no-repeat,
    var(--sv-teal);
}

.hse-page .faq-item details[open] p { animation: svUp 0.45s var(--sv-ease) both; }

/* ---------- Herramientas ---------- */
.hse-page .preview-lock-section { padding: 0 0 96px; background: #fff; }

.hse-page .preview-lock-card {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background:
    var(--sv-curve) no-repeat center bottom / 100% 160px,
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(var(--sv-teal-rgb), 0.22), transparent 70%),
    var(--sv-ink-2);
  color: #fff;
  box-shadow: 0 30px 60px rgba(11, 20, 24, 0.18);
}

.hse-page .preview-lock-card h2 { color: #fff; }
.hse-page .preview-lock-card p,
.hse-page .preview-lock-card__list li { color: rgba(255, 255, 255, 0.74); }
.hse-page .preview-lock-card__tag { color: var(--sv-teal); background: none; border: 0; padding: 0; }
.hse-page .preview-lock-card .btn--outline { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.hse-page .preview-lock-card .btn--outline:hover { color: var(--sv-teal); border-color: var(--sv-teal); }

/* ---------- Otras especialidades ---------- */
.svc-others {
  padding: 56px 0;
  background: var(--sv-ink);
  color: #fff;
}

.svc-others__title {
  margin-bottom: 20px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.svc-others__list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.svc-others__list a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 16px 20px 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  transition: color 0.3s ease, opacity 0.8s var(--sv-ease), transform 0.8s var(--sv-ease);
}

.svc-others__list a span { font-size: 0.74rem; font-weight: 800; color: var(--sv-teal); }

.svc-others__list a::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 16px;
  height: 2px;
  background: var(--sv-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--sv-ease);
}

.svc-others__list a:hover { color: var(--sv-teal); }
.svc-others__list a:hover::before,
.svc-others__list a.is-current::before { transform: scaleX(1); }
.svc-others__list a.is-current { color: rgba(255, 255, 255, 0.55); pointer-events: none; }

.hse-page .hse-footer { border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .svc-others__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .hse-page .hse-hero { min-height: 0; padding: 56px 0 80px; }
  .hse-page .hse-hero::after {
    background:
      var(--sv-curve) no-repeat center bottom / 100% 120px,
      linear-gradient(180deg, rgba(11, 20, 24, 0.9) 0%, rgba(11, 20, 24, 0.82) 100%);
  }
  .hse-page .svc-hero__cta .btn { flex: 1 1 100%; text-align: center; }
  .hse-page .hse-offer,
  .hse-page .hse-indicators,
  .hse-page .deliverables,
  .hse-page .faq-block { padding: 64px 0; }
  .hse-page .deliverables::before { display: none; }
  .hse-page .preview-lock-section { padding-bottom: 64px; }
  .svc-others__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .hse-page .hse-hero::before,
  .hse-page .hse-offer::before { animation: none; }
  .hse-page .hse-hero .container > * { opacity: 1; transform: none; animation: none; }
}
