
/* Home · loader propio de la pantalla inicial */
.intro-overlay .ths-home-intro-loader {
  --ths-home-loader-top: min(calc(50% + clamp(236px, 27vh, 326px)), 88vh);
  position: absolute;
  left: 50%;
  top: var(--ths-home-loader-top);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.1vw, 14px);
  width: min(360px, calc(100vw - 44px));
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transform: translate3d(-50%, 0, 0);
  transition:
    opacity .26s cubic-bezier(.16, 1, .3, 1),
    transform .28s cubic-bezier(.16, 1, .3, 1);
}

.intro-overlay .ths-home-intro-loader .ths-page-loader-ring {
  width: clamp(62px, 4.7vw, 84px);
  height: clamp(62px, 4.7vw, 84px);
}

.intro-overlay.is-fading .ths-home-intro-loader {
  opacity: 0;
  transform: translate3d(-50%, 10px, 0) scale(.985);
}

@media (max-height: 720px) {
  .intro-overlay .ths-home-intro-loader {
    --ths-home-loader-top: min(calc(50% + clamp(178px, 24vh, 232px)), 86vh);
  }
}

@media (max-width: 680px) {
  .intro-overlay .ths-home-intro-loader {
    --ths-home-loader-top: min(calc(50% + 178px), 86vh);
    gap: 10px;
  }

  .intro-overlay .ths-home-intro-loader .ths-page-loader-ring {
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 920px) {
  .intro-overlay {
    background-size: auto 100%;
    background-position: center center;
  }
}

@media (max-width: 680px) {
  .intro-overlay {
    background-size: auto 100dvh;
    min-height: 100dvh;
  }

  .intro-overlay .ths-home-intro-loader {
    --ths-home-loader-top: min(calc(50% + clamp(150px, 22svh, 190px)), calc(100svh - 96px));
    width: min(330px, calc(100vw - 28px));
  }

  .intro-overlay .ths-home-intro-loader .ths-page-loader-status {
    flex-wrap: wrap;
    row-gap: 5px;
    text-align: center;
    white-space: normal;
  }
}

/* Home · salida premium tipo velo institucional
   Controlada exclusivamente por home.js mediante setupHomeIntroCurtainReveal().
   No toca la transición global ni las intros de otras páginas. */
.home-page .intro-overlay {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  visibility: visible;
  transition:
    transform .92s cubic-bezier(.72, 0, .18, 1),
    opacity .24s ease .78s,
    visibility 0s linear .92s;
  will-change: transform;
}

.home-page .intro-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(232, 176, 111, .12), transparent 34%),
    linear-gradient(180deg, rgba(12, 7, 5, .04), rgba(12, 7, 5, .22));
  opacity: .72;
}

.home-page .intro-overlay::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(184, 115, 51, .22) 16%,
      rgba(232, 176, 111, .92) 50%,
      rgba(184, 115, 51, .22) 84%,
      transparent 100%);
  box-shadow:
    0 -10px 30px rgba(232, 176, 111, .18),
    0 10px 34px rgba(10, 6, 4, .42);
  opacity: 0;
  transform: scaleX(.48);
  transform-origin: center;
  transition:
    opacity .32s ease,
    transform .54s cubic-bezier(.16, 1, .3, 1),
    box-shadow .54s ease;
}

.home-page .intro-overlay.is-home-curtain-ready::after {
  opacity: .95;
  transform: scaleX(1);
}

.home-page .intro-overlay.is-home-curtain-exiting {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, -103%, 0);
}

.home-page .intro-overlay.is-home-curtain-exiting::after {
  opacity: 1;
  transform: scaleX(1);
  box-shadow:
    0 0 24px rgba(232, 176, 111, .22),
    0 18px 48px rgba(10, 6, 4, .48);
}

.home-page .intro-overlay.is-home-curtain-exiting .ths-home-intro-loader {
  opacity: 0;
  transform: translate3d(-50%, 14px, 0) scale(.982);
}

.home-page .intro-overlay.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 680px) {
  .home-page .intro-overlay {
    transition-duration: .82s;
  }

  .home-page .intro-overlay::after {
    height: 1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .intro-overlay,
  .home-page .intro-overlay::after,
  .home-page .intro-overlay .ths-home-intro-loader {
    transition: none !important;
    transform: none !important;
  }
}

.home-process-grid {
  margin-top: 18px;
}

.benefit-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-preview-layout {
  align-items: start;
}

/* Home · Alineación editorial izquierda
   Sin tocar Qué es ni Equipo: esos bloques quedan como referencia.
   Solo ampliamos hacia la izquierda los bloques posteriores, conservando
   el borde derecho del contenedor para no mover la composición ya aprobada. */
@media (min-width: 1240px) {
  .home-page .home-editorial-sync > .container {
    --home-editorial-sync-offset: clamp(18px, 1.55vw, 28px);
    width: calc(var(--container) + var(--home-editorial-sync-offset));
    margin-left: calc((100% - var(--container)) / 2 - var(--home-editorial-sync-offset));
    margin-right: calc((100% - var(--container)) / 2);
  }
}

/* Home · Escala tipográfica local: jerarquía homogénea sin tocar global.css */
.hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.section-head h2,
.split-focus .prose h2,
.faq-preview-layout .prose h2,
.section-contact-cta .prose h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.018em;
  max-width: 780px;
}

.service-card h3,
.benefit-item h3 {
  font-size: clamp(18px, 1.35vw, 21px);
  line-height: 1.25;
  margin-bottom: 12px;
}

.process-card h3 {
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.28;
  margin-bottom: 10px;
}

.faq-preview-item strong {
  display: block;
  color: var(--color-brown);
  font-size: 15px;
  line-height: 1.35;
  margin-bottom: 8px;
}

/* Mini-fase Home 1: ajustes propios del index sin romper grillas globales */
@media (min-width: 1180px) {
  .hero-meta {
    flex-wrap: nowrap;
    gap: 18px;
    font-size: 13px;
  }

  .hero-meta li {
    white-space: nowrap;
  }
}

/* Home · Justificación homogénea de textos largos
   Se aplica solo a párrafos y textos de contenido, no a títulos, botones, enlaces ni footer. */
.hero p,
.split-focus .prose p,
.section-head p,
.service-card p,
.benefit-item p,
.process-card p,
.faq-preview-layout .prose p,
.faq-preview-item p,
.section-contact-cta .prose p {
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: none;
  overflow-wrap: break-word;
  word-spacing: normal;
}

.hero-actions .btn {
  min-width: 220px;
}

@media (max-width: 680px) {
  .hero-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

/* Home · Contacto final: evitar caja blanca demasiado alta */
.section-contact-cta .split-focus {
  align-items: center;
}

@media (min-width: 1024px) {
  .section-contact-cta .split-focus {
    grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
    gap: clamp(32px, 3.2vw, 54px);
  }
}

.section-contact-cta .image-panel {
  align-self: center;
  padding: 28px;
}

.section-contact-cta .image-panel img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

/* Home · integración local de imágenes reales
   Tratamiento premium solo para los bloques visuales del Home.
   No modifica los paneles globales ni afecta otras páginas. */
.home-visual-panel {
  display: grid;
  aspect-ratio: 4 / 3;
  min-height: 0;
  padding: clamp(8px, .95vw, 12px);
  background:
    linear-gradient(135deg, rgba(245, 196, 130, .22), transparent 32%, rgba(74, 52, 40, .18) 100%),
    linear-gradient(180deg, #2b1a12 0%, #130b08 100%);
  border: 1px solid rgba(184, 115, 51, .34);
  box-shadow:
    0 26px 58px rgba(74, 52, 40, .18),
    0 10px 24px rgba(74, 52, 40, .10),
    inset 0 1px 0 rgba(255, 255, 255, .14);
  isolation: isolate;
}

.home-visual-panel::before {
  content: "";
  position: absolute;
  inset: clamp(16px, 1.45vw, 22px);
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(245, 196, 130, .26);
  box-shadow:
    inset 0 0 0 1px rgba(20, 11, 7, .20),
    0 0 26px rgba(232, 176, 111, .08);
  opacity: .72;
}

.home-visual-panel img,
.section-contact-cta .home-whatsapp-visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  border: 1px solid rgba(245, 196, 130, .18);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .18);
  filter: saturate(.98) contrast(1.02) brightness(.98);
}

.section-contact-cta .home-whatsapp-visual {
  align-self: center;
  padding: clamp(8px, .95vw, 12px);
}

/* Home · Hero: entrada inicial secuencial y homogénea
   Bloque izquierdo: entra desde la izquierda hacia su posición.
   Imagen derecha: conserva su entrada propia desde la derecha. */
.home-hero-sequence .hero-seq-item {
  opacity: 0;
  transform: translate3d(-30px, 14px, 0);
  transition: opacity .50s ease, transform .64s cubic-bezier(.2, .72, .2, 1);
  will-change: opacity, transform;
}

.home-hero-sequence .hero-visual {
  z-index: 1;
}

.home-hero-sequence .hero-content {
  z-index: 2;
}

.home-hero-sequence .hero-visual.hero-seq-item {
  opacity: 0;
  transform: translate3d(34px, 12px, 0);
  transition: opacity .62s ease, transform .72s cubic-bezier(.2, .72, .2, 1);
}

.home-hero-sequence .hero-visual img {
  animation: none !important;
  filter: brightness(1.55) contrast(1.08) saturate(.72);
}

.intro-overlay.is-done+.home-hero-sequence .hero-seq-item {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.intro-overlay.is-done+.home-hero-sequence .hero-visual.hero-seq-item {
  opacity: .78;
  transform: translate3d(0, 0, 0);
}

.home-hero-sequence .hero-delay-1 {
  transition-delay: .02s;
}

.home-hero-sequence .hero-delay-2 {
  transition-delay: .08s;
}

.home-hero-sequence .hero-delay-3 {
  transition-delay: .14s;
}

.home-hero-sequence .hero-delay-4 {
  transition-delay: .20s;
}

.home-hero-sequence .hero-delay-5 {
  transition-delay: .26s;
}

.home-hero-sequence .hero-delay-6 {
  transition-delay: .32s;
}

.home-hero-sequence .hero-delay-7 {
  transition-delay: .38s;
}

/* Home · Hero meta: punto fijo con tres halos pequeños y flujo continuo */
.home-hero-sequence .hero-meta li {
  position: relative;
  padding-left: 24px;
}

.home-hero-sequence .hero-meta li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: .88em;
  width: 6px;
  height: 6px;
  margin: 0;
  border-radius: 999px;
  background: var(--color-copper);
  transform: translate(-50%, -50%);
  z-index: 3;
}

.home-hero-sequence .hero-meta li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: .88em;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(.72);
  transform-origin: center;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  background:
    radial-gradient(circle,
      transparent 0 4px,
      rgba(184, 115, 51, .58) 4.35px 4.95px,
      transparent 5.3px 7.15px,
      rgba(184, 115, 51, .38) 7.5px 8.1px,
      transparent 8.45px 9.95px,
      rgba(184, 115, 51, .24) 10.3px 10.9px,
      transparent 11.25px 100%);
  animation: heroMetaHalo 1.55s linear infinite;
  will-change: transform, opacity;
}

.home-hero-sequence .hero-meta li:nth-child(2)::after {
  animation-delay: .14s;
}

.home-hero-sequence .hero-meta li:nth-child(3)::after {
  animation-delay: .28s;
}

@keyframes heroMetaHalo {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.66);
  }

  12% {
    opacity: .82;
    transform: translate(-50%, -50%) scale(.72);
  }

  52% {
    opacity: .52;
    transform: translate(-50%, -50%) scale(.9);
  }

  82% {
    opacity: .16;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {

  .home-hero-sequence .hero-seq-item,
  .home-hero-sequence .hero-visual.hero-seq-item {
    transition: none;
    transform: none;
  }

  .home-hero-sequence .hero-meta li::after {
    animation: none;
    opacity: .48;
    transform: translate(-50%, -50%) scale(.82);
  }
}

/* Home · Botones principales: base sobria y efecto dorado solo al pasar el mouse */
.hero .btn-primary,
.hero .btn-secondary {
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .96);
  border-color: rgba(184, 115, 51, .82);
  box-shadow: none;
}

.hero .btn-primary:hover,
.hero .btn-secondary:hover {
  background: var(--color-copper);
  color: var(--color-white);
  border-color: var(--color-copper);
  box-shadow: 0 14px 30px rgba(184, 115, 51, .24);
}

.section-dark .centered-cta .btn-light {
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .96);
  border-color: rgba(184, 115, 51, .82);
  box-shadow: none;
}

.section-dark .centered-cta .btn-light:hover {
  background: var(--color-copper);
  color: var(--color-white);
  border-color: var(--color-copper);
  box-shadow: 0 14px 30px rgba(184, 115, 51, .24);
}

/* Home · Cómo trabajamos: encabezado alineado a la izquierda como los bloques institucionales */
.section-dark .section-head {
  text-align: left;
  justify-content: space-between;
}

/* Home · Contacto final: secuencia real línea por línea, sin doble animación global */
.section-contact-cta .contact-reveal-group {
  align-items: center;
}

.section-contact-cta .contact-reveal-group[data-reveal] {
  transition-duration: .42s, .52s;
}

.section-contact-cta .contact-seq-item {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity .42s ease, transform .52s ease;
  will-change: opacity, transform;
}

.section-contact-cta .contact-image-panel.contact-seq-item {
  transform: translate3d(28px, 18px, 0);
}

.section-contact-cta .contact-reveal-group.is-visible .contact-seq-item {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.section-contact-cta .contact-delay-1 {
  transition-delay: .02s;
}

.section-contact-cta .contact-delay-2 {
  transition-delay: .08s;
}

.section-contact-cta .contact-delay-3 {
  transition-delay: .14s;
}

.section-contact-cta .contact-delay-4 {
  transition-delay: .20s;
}

.section-contact-cta .contact-delay-5 {
  transition-delay: .26s;
}

.section-contact-cta .contact-delay-6 {
  transition-delay: .32s;
}

.section-contact-cta .contact-delay-7 {
  transition-delay: .40s;
}

.section-contact-cta .contact-delay-8 {
  transition-delay: .40s;
}

.section-contact-cta .contact-delay-9 {
  transition-delay: .48s;
}

.section-contact-cta .contact-quick-list {
  margin-bottom: 0;
}

/* Home · Contacto final: tarjetas homologadas con Contacto */
.section-contact-cta .contact-quick-list {
  margin-bottom: 0;
  display: grid;
  gap: 14px;
}

.section-contact-cta .contact-quick-item {
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 82px;
  padding: 17px 20px;
  color: var(--color-text);
  border: 1px solid rgba(74, 52, 40, .12);
  background: linear-gradient(180deg, #fffdfb, #fff9f4);
  transition: opacity .42s ease, transform .52s ease, box-shadow .24s ease, border-color .24s ease, background-color .24s ease, color .24s ease;
}

.section-contact-cta .contact-quick-item svg {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: block;
  padding: 10px;
  margin: 0;
  color: var(--color-copper);
  background: rgba(184, 115, 51, .10);
  border: 1px solid rgba(184, 115, 51, .18);
  transition: color .24s ease, background-color .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.section-contact-cta .contact-quick-item>div {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.section-contact-cta .contact-quick-item strong {
  display: block;
  color: var(--color-brown);
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
}

.section-contact-cta .contact-quick-item span {
  display: block;
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.section-contact-cta .contact-quick-item.contact-whatsapp svg,
.section-contact-cta .contact-quick-item.contact-whatsapp span {
  color: #168f49;
}

.section-contact-cta .contact-quick-item.contact-whatsapp svg {
  background: rgba(37, 211, 102, .11);
  border-color: rgba(37, 211, 102, .24);
}

.section-contact-cta .contact-quick-item.contact-instagram svg,
.section-contact-cta .contact-quick-item.contact-instagram span {
  color: #bd3c72;
}

.section-contact-cta .contact-quick-item.contact-instagram svg {
  background: rgba(189, 60, 114, .09);
  border-color: rgba(189, 60, 114, .18);
}

.section-contact-cta .contact-quick-item.contact-location svg {
  color: var(--color-copper);
}

.section-contact-cta .contact-cta-action {
  margin-top: 26px;
  display: flex;
  align-items: center;
}

.section-contact-cta .contact-cta-action .btn {
  min-width: 236px;
}

@media (max-width: 680px) {
  .hero h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .section-head h2,
  .split-focus .prose h2,
  .faq-preview-layout .prose h2,
  .section-contact-cta .prose h2 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .intro-overlay.is-done+.home-hero-sequence .hero-visual.hero-seq-item {
    opacity: .28;
  }

  .section-contact-cta .contact-cta-action .btn {
    width: 100%;
    min-width: 0;
  }

  .section-contact-cta .contact-quick-item {
    gap: 14px;
    min-height: 76px;
    padding: 16px;
  }

  .section-contact-cta .contact-quick-item svg {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    padding: 9px;
  }
}

/* Home · Efecto homogéneo en cajas, igualado con Por qué elegirnos */
.service-card,
.benefit-item,
.faq-preview-box {
  background: linear-gradient(180deg, #fffdfb, #fff9f4);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background-color .24s ease;
}

.service-card:hover,
.benefit-item:hover,
.faq-preview-box:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 115, 51, .34);
  box-shadow: 0 22px 48px rgba(74, 52, 40, .13);
  background: linear-gradient(180deg, #fffdfb, #fff6ee);
}

/* Home · Contacto final: hover idéntico al bloque Contacto
   La variante con .contact-reveal-group.is-visible evita que el transform del reveal pise el levantamiento. */
.section-contact-cta .contact-quick-item:hover,
.section-contact-cta .contact-quick-item:focus-visible,
.section-contact-cta .contact-reveal-group.is-visible .contact-quick-item:hover,
.section-contact-cta .contact-reveal-group.is-visible .contact-quick-item:focus-visible {
  transform: translate3d(0, -4px, 0);
  border-color: rgba(184, 115, 51, .34);
  box-shadow: 0 22px 48px rgba(74, 52, 40, .13);
  background: linear-gradient(180deg, #fffdfb, #fff6ee);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background-color .24s ease, color .24s ease;
  transition-delay: 0s;
}

.section-contact-cta .contact-quick-item.contact-whatsapp:hover,
.section-contact-cta .contact-quick-item.contact-whatsapp:focus-visible,
.section-contact-cta .contact-reveal-group.is-visible .contact-quick-item.contact-whatsapp:hover,
.section-contact-cta .contact-reveal-group.is-visible .contact-quick-item.contact-whatsapp:focus-visible {
  border-color: rgba(37, 211, 102, .55);
  background: linear-gradient(180deg, rgba(37, 211, 102, .12), rgba(37, 211, 102, .06));
  box-shadow: 0 22px 48px rgba(37, 211, 102, .16);
  color: #168f49;
}

.section-contact-cta .contact-quick-item.contact-whatsapp:hover svg,
.section-contact-cta .contact-quick-item.contact-whatsapp:focus-visible svg,
.section-contact-cta .contact-reveal-group.is-visible .contact-quick-item.contact-whatsapp:hover svg,
.section-contact-cta .contact-reveal-group.is-visible .contact-quick-item.contact-whatsapp:focus-visible svg {
  color: #168f49;
  background: rgba(37, 211, 102, .16);
  border-color: rgba(37, 211, 102, .40);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .42);
}

.section-contact-cta .contact-quick-item.contact-whatsapp:hover strong,
.section-contact-cta .contact-quick-item.contact-whatsapp:focus-visible strong,
.section-contact-cta .contact-quick-item.contact-whatsapp:hover span,
.section-contact-cta .contact-quick-item.contact-whatsapp:focus-visible span,
.section-contact-cta .contact-reveal-group.is-visible .contact-quick-item.contact-whatsapp:hover strong,
.section-contact-cta .contact-reveal-group.is-visible .contact-quick-item.contact-whatsapp:focus-visible strong,
.section-contact-cta .contact-reveal-group.is-visible .contact-quick-item.contact-whatsapp:hover span,
.section-contact-cta .contact-reveal-group.is-visible .contact-quick-item.contact-whatsapp:focus-visible span {
  color: #168f49;
}

@media (prefers-reduced-motion: reduce) {

  .service-card,
  .benefit-item,
  .faq-preview-box,
  .section-contact-cta .contact-quick-item,
  .home-premium-hero .btn,
  .home-premium-hero .hero-primary-cta::before,
  .home-premium-hero .hero-secondary-cta::before,
  .home-premium-hero .hero-btn-arrow {
    transition: none;
  }

  .service-card:hover,
  .benefit-item:hover,
  .faq-preview-box:hover,
  .section-contact-cta .contact-quick-item:hover,
  .section-contact-cta .contact-quick-item:focus-visible,
  .home-premium-hero .btn:hover,
  .home-premium-hero .btn:focus-visible {
    transform: none;
  }
}

@media (hover: none) {
  .section-contact-cta .contact-quick-item:active {
    border-color: rgba(184, 115, 51, .34);
    box-shadow: 0 16px 34px rgba(74, 52, 40, .10);
  }

  .section-contact-cta .contact-quick-item.contact-whatsapp:active {
    border-color: rgba(37, 211, 102, .55);
    background: linear-gradient(180deg, rgba(37, 211, 102, .12), rgba(37, 211, 102, .06));
    box-shadow: 0 16px 34px rgba(37, 211, 102, .14);
    color: #168f49;
  }
}

/* Home · Responsive final: hero limpio y textos de cajas justificados */
@media (max-width: 780px) {
  .home-hero-sequence .hero-visual,
  .home-hero-sequence .hero-visual.hero-seq-item {
    display: none !important;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .hero p,
  .split-focus .prose p,
  .service-card p,
  .benefit-item p,
  .process-card p,
  .faq-preview-layout .prose p,
  .faq-preview-item p,
  .section-contact-cta .prose p {
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    hyphens: none;
    overflow-wrap: break-word;
  }

  .contact-quick-item span {
    text-align: left;
  }
}

/* Home · responsive final revisado para tablets y móviles */
@media (max-width: 920px) {
  .home-hero-sequence .hero-content {
    width: var(--container);
  }

  .hero-meta {
    gap: 8px 14px;
  }

  .section-contact-cta .contact-reveal-group {
    align-items: start;
  }
}

@media (max-width: 680px) {
  .hero {
    padding-top: 34px;
    padding-bottom: 54px;
  }

  .hero h1,
  .hero p {
    max-width: 100%;
  }

  .hero p,
  .split-focus .prose p,
  .service-card p,
  .benefit-item p,
  .process-card p,
  .faq-preview-layout .prose p,
  .faq-preview-item p,
  .section-contact-cta .prose p {
    hyphens: auto;
  }

  .hero-meta {
    display: grid;
    gap: 9px;
  }

  .home-hero-sequence .hero-meta li {
    padding-left: 22px;
  }

  .service-card,
  .benefit-item,
  .process-card,
  .faq-preview-box,
  .contact-quick-item {
    padding: 22px;
  }

  .section-contact-cta .contact-quick-list,
  .section-contact-cta .contact-cta-action {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .intro-overlay .ths-home-intro-loader {
    width: min(320px, calc(100vw - 28px));
  }

  .hero h1 {
    font-size: clamp(33px, 10.4vw, 44px);
  }
}


/* Home premium hero · contenido visible desde el primer render
   El texto del hero ya no depende de la animación secuencial antigua,
   para evitar que primero se vea la foto y luego aparezcan los textos. */
.home-premium-hero .hero-kicker,
.home-premium-hero h1,
.home-premium-hero .hero-lead,
.home-premium-hero .hero-actions,
.home-premium-hero .hero-feature-list {
  opacity: 1;
  transform: none;
}

/* Home · Hero principal premium con imagen real como fondo
   Esta sección reemplaza únicamente el bloque superior del Home.
   La imagen queda como fondo limpio y los textos/botones se mantienen en HTML real. */
.home-premium-hero {
  min-height: min(86vh, 820px);
  padding: clamp(70px, 7vw, 106px) 0 clamp(56px, 6vw, 86px);
  background:
    #160f0b url("../img/illustrations/hero-abogado-premium.webp") center right / cover no-repeat;
  overflow: hidden;
  isolation: isolate;
}

.home-premium-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(10, 6, 4, .96) 0%,
      rgba(12, 7, 5, .91) 28%,
      rgba(15, 9, 6, .70) 47%,
      rgba(18, 10, 7, .34) 66%,
      rgba(12, 7, 5, .12) 82%,
      rgba(10, 6, 4, .22) 100%),
    radial-gradient(circle at 15% 18%, rgba(184, 115, 51, .16), transparent 34%),
    radial-gradient(circle at 72% 75%, rgba(184, 115, 51, .08), transparent 32%);
}

.home-premium-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, .020) 0%,
      transparent 28%,
      rgba(0, 0, 0, .08) 70%,
      rgba(0, 0, 0, .18) 100%),
    radial-gradient(ellipse at center bottom, rgba(232, 176, 111, .14), transparent 58%) left bottom / 100% 76px no-repeat,
    linear-gradient(90deg,
      transparent 0%,
      rgba(184, 115, 51, .20) 18%,
      rgba(232, 176, 111, .88) 50%,
      rgba(184, 115, 51, .20) 82%,
      transparent 100%) left bottom / 100% 1px no-repeat,
    linear-gradient(90deg, transparent 0 92px, rgba(245, 196, 130, .026) 93px, transparent 94px);
  background-size: auto, 100% 76px, 100% 1px, 94px 100%;
  opacity: .92;
}

.home-premium-hero .hero-content {
  position: relative;
  z-index: 2;
}

@media (min-width: 921px) {
  /* Home · respaldo superior localizado en el hero.
     Extiende SOLO la imagen/fondo del hero por detrás del header fijo.
     No toca el header, no cambia el body y no contamina las franjas siguientes. */
  .home-premium-hero {
    margin-top: calc(-1 * var(--header-h));
    padding-top: calc(clamp(70px, 7vw, 106px) + var(--header-h));
  }

  .home-premium-hero .hero-content {
    width: min(2960px, calc(100% - clamp(60px, 6.2vw, 220px)));
    margin-inline: auto;
  }
}

@media (min-width: 1280px) {
  .home-premium-hero::before {
    background:
      linear-gradient(90deg,
        rgba(10, 6, 4, .97) 0%,
        rgba(12, 7, 5, .93) 31%,
        rgba(15, 9, 6, .76) 52%,
        rgba(18, 10, 7, .40) 70%,
        rgba(12, 7, 5, .16) 84%,
        rgba(10, 6, 4, .22) 100%),
      radial-gradient(circle at 15% 18%, rgba(184, 115, 51, .16), transparent 34%),
      radial-gradient(circle at 72% 75%, rgba(184, 115, 51, .08), transparent 32%);
  }
}

.home-premium-hero .hero-copy {
  position: relative;
  width: min(860px, 60vw);
  padding-left: 0;
}

.home-premium-hero .hero-copy::before {
  content: none;
}

.home-premium-hero .hero-kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(16px, 2vw, 24px);
  color: rgba(232, 176, 111, .96);
  font-size: clamp(10px, .86vw, 13px);
  font-weight: 850;
  letter-spacing: .32em;
}

.home-premium-hero .hero-kicker::after {
  content: "";
  position: absolute;
  left: 0;
  top: calc(100% + 14px);
  width: clamp(92px, 10vw, 158px);
  height: 1px;
  background: linear-gradient(90deg, rgba(232, 176, 111, .76), transparent);
  box-shadow: 0 0 12px rgba(232, 176, 111, .18);
}

.home-premium-hero h1 {
  max-width: 760px;
  margin: clamp(24px, 2.4vw, 34px) 0 22px;
  color: rgba(255, 248, 237, .98);
  font-size: clamp(45px, 5.45vw, 82px);
  line-height: .99;
  letter-spacing: -.052em;
  text-wrap: balance;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, .045),
    0 18px 44px rgba(0, 0, 0, .34);
}

.home-premium-hero .hero-lead,
.home-premium-hero p {
  max-width: min(800px, 58vw);
  margin: 0 0 14px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(15px, 1.08vw, 17.2px);
  line-height: 1.68;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
  word-spacing: normal;
  text-shadow: 0 10px 28px rgba(0, 0, 0, .24);
}

.home-premium-hero .hero-lead {
  color: rgba(255, 248, 237, .94);
  font-weight: 720;
  letter-spacing: .004em;
}

.home-premium-hero .hero-support {
  color: rgba(255, 255, 255, .82);
}

.home-premium-hero .hero-actions {
  margin-top: clamp(28px, 3vw, 42px);
  gap: clamp(14px, 1.6vw, 24px);
}

.home-premium-hero .btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 58px;
  padding-inline: clamp(20px, 2.2vw, 32px);
  gap: 12px;
  letter-spacing: .052em;
  transform: translate3d(0, 0, 0);
  will-change: transform, box-shadow;
  transition:
    transform .24s ease,
    box-shadow .24s ease,
    border-color .24s ease,
    color .24s ease;
}

.home-premium-hero .hero-primary-cta::before,
.home-premium-hero .hero-secondary-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .24s ease;
}

.home-premium-hero .hero-primary-cta::before {
  background: linear-gradient(180deg, #2ee978 0%, #25d366 46%, #159e49 100%);
}

.home-premium-hero .hero-secondary-cta::before {
  background: var(--color-copper);
}

.home-premium-hero .hero-primary-cta > *,
.home-premium-hero .hero-secondary-cta > * {
  position: relative;
  z-index: 1;
}

.home-premium-hero .hero-primary-cta {
  background: linear-gradient(180deg, #d29a4a 0%, #b8792e 100%);
  color: var(--color-white);
  border-color: rgba(232, 176, 111, .86);
  box-shadow:
    0 18px 38px rgba(184, 115, 51, .28),
    inset 0 1px 0 rgba(255, 255, 255, .22);
}

.home-premium-hero .hero-secondary-cta {
  background: rgba(12, 7, 5, .34);
  color: rgba(255, 255, 255, .96);
  border-color: rgba(232, 176, 111, .60);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.home-premium-hero .hero-primary-cta:hover,
.home-premium-hero .hero-primary-cta:focus-visible,
.home-premium-hero .hero-secondary-cta:hover,
.home-premium-hero .hero-secondary-cta:focus-visible {
  transform: translate3d(0, -4px, 0);
  color: var(--color-white);
  border-color: var(--color-copper);
  box-shadow: 0 22px 48px rgba(184, 115, 51, .22);
}

.home-premium-hero .hero-primary-cta:hover,
.home-premium-hero .hero-primary-cta:focus-visible {
  background: linear-gradient(180deg, #d29a4a 0%, #b8792e 100%);
  border-color: #25d366;
  box-shadow:
    0 22px 48px rgba(37, 211, 102, .24),
    0 12px 28px rgba(0, 0, 0, .16);
}

.home-premium-hero .hero-secondary-cta:hover,
.home-premium-hero .hero-secondary-cta:focus-visible {
  background: rgba(12, 7, 5, .34);
}

.home-premium-hero .hero-primary-cta:hover::before,
.home-premium-hero .hero-primary-cta:focus-visible::before,
.home-premium-hero .hero-secondary-cta:hover::before,
.home-premium-hero .hero-secondary-cta:focus-visible::before {
  opacity: .96;
}

.home-premium-hero .hero-primary-cta:hover::before,
.home-premium-hero .hero-primary-cta:focus-visible::before {
  opacity: 1;
}

.home-premium-hero .hero-btn-icon,
.home-premium-hero .hero-btn-arrow {
  flex: 0 0 auto;
}

.home-premium-hero .hero-btn-icon {
  width: 22px;
  height: 22px;
}

.home-premium-hero .hero-btn-arrow {
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  opacity: .92;
  transform: translateY(-1px);
  transition: transform .24s ease, opacity .24s ease;
}

.home-premium-hero .btn:hover .hero-btn-arrow,
.home-premium-hero .btn:focus-visible .hero-btn-arrow {
  opacity: 1;
  transform: translate(3px, -1px);
}

.home-premium-hero .hero-feature-list {
  max-width: 860px;
  margin-top: clamp(34px, 3.2vw, 48px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  color: rgba(255, 255, 255, .78);
}

.home-premium-hero .hero-feature-list li {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 clamp(14px, 1.5vw, 24px);
  min-height: 54px;
  font-size: clamp(12px, .9vw, 14px);
  line-height: 1.35;
  list-style: none;
  white-space: normal;
}

.home-premium-hero .hero-feature-list li:first-child {
  padding-left: 0;
}

.home-premium-hero .hero-feature-list li:not(:last-child) {
  border-right: 1px solid rgba(232, 176, 111, .24);
}

.home-premium-hero .hero-feature-list li::before,
.home-premium-hero .hero-feature-list li::after {
  display: none !important;
}

.home-premium-hero .hero-feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: rgba(232, 176, 111, .98);
  border: 1px solid rgba(232, 176, 111, .52);
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 1px rgba(184, 115, 51, .18),
    0 0 18px rgba(232, 176, 111, .10);
}

.home-premium-hero .hero-feature-icon svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 1080px) {
  .home-premium-hero {
    min-height: min(78vh, 760px);
    background-position: 63% center;
  }

  .home-premium-hero::before {
    background:
      linear-gradient(90deg,
        rgba(10, 6, 4, .97) 0%,
        rgba(13, 8, 5, .92) 40%,
        rgba(18, 10, 7, .58) 68%,
        rgba(10, 6, 4, .24) 100%),
      radial-gradient(circle at 18% 18%, rgba(184, 115, 51, .15), transparent 34%);
  }

  .home-premium-hero .hero-copy {
    width: min(760px, 68vw);
  }

  .home-premium-hero .hero-lead,
  .home-premium-hero p {
    max-width: min(720px, 66vw);
  }
}

@media (max-width: 920px) {
  .home-premium-hero {
    min-height: auto;
    padding: clamp(74px, 12vw, 104px) 0 clamp(58px, 10vw, 84px);
    background-position: 68% center;
  }

  .home-premium-hero::before {
    background:
      linear-gradient(90deg,
        rgba(10, 6, 4, .98) 0%,
        rgba(13, 8, 5, .95) 58%,
        rgba(18, 10, 7, .72) 82%,
        rgba(10, 6, 4, .48) 100%),
      linear-gradient(180deg, rgba(12, 7, 5, .08), rgba(12, 7, 5, .30)),
      radial-gradient(circle at 18% 18%, rgba(184, 115, 51, .14), transparent 34%);
  }

  .home-premium-hero .hero-copy,
  .home-premium-hero .hero-lead,
  .home-premium-hero p {
    width: min(680px, 100%);
    max-width: 100%;
  }

  .home-premium-hero .hero-feature-list {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 520px;
  }

  .home-premium-hero .hero-feature-list li {
    padding: 0;
    min-height: 44px;
  }

  .home-premium-hero .hero-feature-list li:not(:last-child) {
    border-right: 0;
  }

  .home-premium-hero .hero-feature-icon {
    width: 40px;
    height: 40px;
  }

  .home-premium-hero .hero-feature-icon svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 680px) {
  .home-premium-hero {
    padding: 62px 0 54px;
    background-position: 70% center;
  }

  .home-premium-hero::before {
    background:
      linear-gradient(90deg,
        rgba(10, 6, 4, .99) 0%,
        rgba(13, 8, 6, .97) 62%,
        rgba(16, 9, 6, .86) 100%),
      linear-gradient(180deg, rgba(10, 6, 4, .06), rgba(10, 6, 4, .42)),
      radial-gradient(circle at 14% 10%, rgba(184, 115, 51, .12), transparent 36%);
  }

  .home-premium-hero::after {
    background:
      linear-gradient(180deg,
        rgba(255, 255, 255, .020) 0%,
        transparent 24%,
        rgba(0, 0, 0, .10) 70%,
        rgba(0, 0, 0, .18) 100%),
      radial-gradient(ellipse at center bottom, rgba(232, 176, 111, .12), transparent 60%) left bottom / 100% 58px no-repeat,
      linear-gradient(90deg,
        transparent 0%,
        rgba(184, 115, 51, .16) 14%,
        rgba(232, 176, 111, .72) 50%,
        rgba(184, 115, 51, .16) 86%,
        transparent 100%) left bottom / 100% 1px no-repeat,
      linear-gradient(90deg, transparent 0 66px, rgba(245, 196, 130, .026) 67px, transparent 68px);
    background-size: auto, 100% 58px, 100% 1px, 68px 100%;
  }

  .home-premium-hero .hero-copy {
    padding-left: 0;
  }

  .home-premium-hero .hero-copy::before {
    content: none;
  }

  .home-premium-hero .hero-kicker {
    font-size: 10px;
    letter-spacing: .24em;
    margin-bottom: 14px;
  }

  .home-premium-hero .hero-kicker::after {
    top: calc(100% + 10px);
    width: 96px;
  }

  .home-premium-hero h1 {
    margin-top: 24px;
    font-size: clamp(38px, 11vw, 52px);
    line-height: 1.02;
    letter-spacing: -.046em;
  }

  .home-premium-hero .hero-lead,
  .home-premium-hero p {
    font-size: 15.25px;
    line-height: 1.64;
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    text-wrap: pretty;
    hyphens: auto;
    -webkit-hyphens: auto;
    word-spacing: normal;
  }

  .home-premium-hero .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 26px;
  }

  .home-premium-hero .btn {
    width: 100%;
    min-height: 54px;
    justify-content: center;
    padding-inline: 18px;
  }

  .home-premium-hero .hero-feature-list {
    margin-top: 28px;
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .home-premium-hero {
    background-position: 72% center;
  }

  .home-premium-hero .hero-copy {
    padding-left: 0;
  }

  .home-premium-hero h1 {
    font-size: clamp(34px, 10.6vw, 46px);
  }

  .home-premium-hero .hero-feature-list li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    font-size: 12.5px;
  }

  .home-premium-hero .hero-feature-icon {
    width: 38px;
    height: 38px;
  }
}
