/* Ajustes finales de lectura, navegación y espacio; conserva la identidad JR. */
.section h2,
.contact-inner h2 {
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.section-heading > div,
.faq-layout > div,
.process > div {
  min-width: 0;
}
.header.scrolled {
  background-color: var(--navy);
}
.header nav > a[href^="#"] {
  position: relative;
}
.header nav > a[href^="#"]::after {
  content: "";
  position: absolute;
  inset: auto 0 -6px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--motion-ease);
}
.header nav > a[aria-current="location"] {
  color: #71d5ed;
}
.header nav > a[aria-current="location"]::after {
  transform: scaleX(1);
}
.product-card:focus-within {
  border-color: #80c7dc;
  box-shadow: 0 8px 26px #09243a06;
}
.publication-info {
  flex-wrap: wrap;
  gap: 10px 20px;
}
.publication-info > div {
  flex: 1 1 200px;
  min-width: 0;
}
.publication-info h3 {
  display: grid;
  overflow-wrap: anywhere;
}
.publication-info h3 > span {
  grid-area: 1 / 1;
}
.publication-title-reserve {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}
.publication-card .carousel-slide {
  aspect-ratio: 1200 / 655;
}
.carousel-empty-title {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.publication-info > a {
  flex: 0 0 auto;
  padding-block: 9px;
}
.publication-image-button:focus-visible .zoom-indicator {
  transform: scale(1.08);
}
.seasonal-section[data-empty="true"] .carousel-slide {
  aspect-ratio: auto;
  min-height: 240px;
}
.seasonal-section[data-empty="true"] .carousel-empty {
  min-height: 240px;
}
.chat-panel {
  max-height: calc(100dvh - 108px);
}
.chat-header,
.chat-composer {
  flex: 0 0 auto;
}
.chat-header > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.chat-monogram,
.chat-header .icon-button {
  flex-shrink: 0;
}
.chat-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #adc2cf transparent;
  background: #f7fafc;
}
.chat-messages {
  min-height: 0;
  overflow: visible;
  padding-bottom: 0;
}
.chat-suggestions {
  padding-top: 6px;
}
.chat-suggestions button {
  min-height: 36px;
  text-align: left;
}
.chat-human {
  gap: 10px;
  padding-block: 12px 16px;
}
.chat-human span {
  flex-shrink: 0;
}
.chat-composer {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  background: white;
}
.chat-panel form button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  line-height: 1;
}
.chat-message.user a {
  color: #9fe6f6;
}
.dialog-bar h2 {
  min-width: 0;
  overflow-wrap: anywhere;
}
.dialog-bar .icon-button {
  flex-shrink: 0;
}
@media (max-width: 850px) {
  .header nav > a[href^="#"]::after {
    inset: 12px auto 12px -5px;
    width: 2px;
    height: auto;
    transform: scaleY(0);
  }
  .header nav > a[aria-current="location"]::after {
    transform: scaleY(1);
  }
}
@media (max-width: 600px) {
  .floating-actions {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .chat-launcher {
    width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .chat-launcher > span {
    display: none;
  }
  .chat-panel {
    bottom: calc(75px + env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 90px - env(safe-area-inset-bottom, 0px));
  }
  .publication-info > div {
    flex-basis: 180px;
  }
  .publication-info > a {
    font-size: 0.8125rem;
  }
  .seasonal-section[data-empty="true"] .carousel-slide,
  .seasonal-section[data-empty="true"] .carousel-empty {
    min-height: 220px;
  }
  .dialog-footer {
    flex-wrap: wrap;
    gap: 12px;
  }
  .dialog-footer > span {
    max-width: 100%;
  }
}
@media (max-height: 650px) {
  .chat-panel {
    bottom: 12px;
    max-height: calc(100dvh - 24px);
  }
  .chat-header {
    padding-block: 10px;
  }
  .chat-monogram {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .header nav > a[href^="#"]::after {
    transition: none;
  }
  .publication-image-button:focus-visible .zoom-indicator {
    transform: none;
  }
}
