/* Estilos exclusivos de noticias: no modificar tarjetas del catálogo ni main.js. */
.expo-carousel { width: 100%; min-width: 0; border: 1px solid #d9dee5; border-radius: 16px; overflow: hidden; background: #fff; }
.expo-carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; }
.expo-carousel-controls[hidden] { display: none; }
.expo-carousel-controls > span { font-size: 14px; color: #56606d; }
.expo-carousel-controls > div { display: flex; gap: 8px; }
.expo-carousel-controls button { width: 36px; height: 36px; border-radius: 50%; }
.expo-carousel-slides { display: grid; gap: 16px; }
.expo-carousel.is-ready .expo-carousel-slides { gap: 0; }
.expo-carousel.is-ready .news-expo-compact { grid-area: 1 / 1; }
.expo-carousel.is-ready .news-expo-compact[aria-hidden="true"] { visibility: hidden; pointer-events: none; }
.expo-carousel .news-expo-compact { display: flex; flex-direction: column; min-width: 0; max-width: none; border: 0; border-radius: 0; box-shadow: none; }
.expo-carousel .news-expo-image { position: relative; flex: 0 0 175px; min-height: 0; height: 175px; overflow: hidden; padding: 0; cursor: zoom-in; }
.expo-carousel .news-expo-image img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; max-height: none; object-fit: cover; object-position: top center; transition: transform .35s ease; }
.expo-carousel .news-expo-image:hover img { transform: scale(1.04); }
.expo-carousel .news-expo-image::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0,0,0,.42), transparent 58%); pointer-events: none; }
.expo-carousel .news-expo-image::after { content: "⤢ Ver cartel completo"; position: absolute; z-index: 2; bottom: 12px; right: 12px; padding: 8px 12px; border-radius: 999px; background: rgba(0,0,0,.8); color: #fff; font-size: 13px; font-weight: 800; pointer-events: none; }
.expo-carousel .news-expo-badge { z-index: 2; font-size: 12px; }
.expo-carousel .news-expo-content { display: flex; flex-direction: column; flex: 1 0 auto; padding: 18px; }
.expo-carousel .news-expo-content h4 { font-size: clamp(22px, 1.6vw, 26px); line-height: 1.08; margin-bottom: 10px; }
.expo-carousel .news-expo-content p { font-size: 15px; line-height: 1.45; margin-bottom: 10px; }
.expo-carousel .news-expo-content > span { font-size: 12px; letter-spacing: 1px; }
.expo-carousel .news-expo-content .expo-news-note { font-size: 13px; color: #64748b; }
.expo-carousel .news-expo-details li { font-size: 14px; }
.expo-carousel .news-expo-details { gap: 7px; margin-bottom: 10px; }
.expo-carousel .news-expo-link { margin-top: auto; min-height: 48px; font-size: 15px; border-radius: 8px; }
.expo-carousel button:focus-visible, .expo-carousel a:focus-visible { outline: 2px solid #111827; outline-offset: 3px; }
.expo-poster-dialog { width: min(680px, 94vw); max-width: 94vw; max-height: 92dvh; margin: auto; padding: 0; border: 1px solid #454545; border-radius: 18px; background: #080d12; color: #fff; box-shadow: 0 35px 100px rgba(0,0,0,.6); }
.expo-poster-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.expo-poster-dialog::backdrop { background: rgba(0,0,0,.85); backdrop-filter: blur(8px); }
.expo-poster-toolbar { display: flex; align-items: center; flex: 0 0 auto; flex-wrap: wrap; gap: 8px; padding: 12px 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
.expo-poster-toolbar > span { flex: 1; font: 700 17px Arial, sans-serif; }
.expo-poster-toolbar button { padding: 10px; border: 1px solid #777; border-radius: 6px; background: #202832; color: #fff; font: 600 14px Arial, sans-serif; cursor: pointer; }
.expo-poster-toolbar button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* Solo el cuerpo se desplaza: la cabecera y Cerrar permanecen visibles. */
.expo-poster-view { min-height: 0; flex: 1 1 auto; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #343c46 #080d12; scrollbar-gutter: stable both-edges; padding: 18px; text-align: center; background: #080d12; }
.expo-poster-view::-webkit-scrollbar { width: 4px; height: 4px; }
.expo-poster-view::-webkit-scrollbar-track { background: #080d12; }
.expo-poster-view::-webkit-scrollbar-thumb { background: #343c46; border-radius: 999px; }
.expo-poster-view::-webkit-scrollbar-thumb:hover { background: #515965; }
.expo-poster-view img { display: block; width: auto; height: auto; max-width: 81.8%; max-height: calc(75.2dvh - 81.8px); object-fit: contain; margin: auto; border-radius: 10px; }
.expo-poster-information { max-width: 680px; margin: 34px auto 0; padding: 26px 18px 18px; text-align: left; border-top: 1px solid #454545; color: #e4e7eb; }
.expo-poster-information h3 { margin: 0 0 12px; font: 700 22px/1.2 Arial, sans-serif; color: #fff; }
.expo-poster-information p { margin: 0 0 12px; font-size: 16px; line-height: 1.5; }
@media (max-width: 768px) { .expo-carousel .news-expo-image { flex-basis: 195px; height: 195px; } .expo-carousel .news-expo-content { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { .expo-carousel .news-expo-image img { transition: none; } }
/* Solo los paneles exteriores comparten altura; las tarjetas no se estiran. */
#novedades .news-hub-grid { grid-template-columns: minmax(0, 1.72fr) minmax(340px, .82fr); gap: 24px; align-items: start; }
#novedades .news-column { align-self: start; border-radius: 18px; }
#novedades .news-products-column { padding: 24px; }
#novedades .news-movement-column { padding: 22px; width: 100%; max-width: none; }
#novedades .news-products-carousel { display: flex; flex-direction: column; gap: 14px; }
#novedades .news-carousel-toolbar { order: 2; margin-bottom: 0; }
#novedades .news-product-card { min-height: 365px; border-radius: 16px; }
#novedades .news-product-image { flex: 0 0 154px; min-height: 154px; padding: 20px; border-bottom: 1px solid #e2e8f0; }
#novedades .news-product-image img { max-width: 88%; height: 114px; object-fit: contain; }
#novedades .news-product-content { padding: 20px; }
#novedades .news-product-content h4 { font-size: clamp(20px, 1.5vw, 24px); line-height: 1.12; }
#novedades .news-product-content p { font-size: 15px; line-height: 1.4; }
#novedades .news-product-link { font-size: 15px; }
#novedades { padding: 64px 0 42px; margin-bottom: 0; }
#novedades + #soluciones-aplicacion { margin-top: 0; padding-top: 50px; }
@media (min-width: 1101px) {
  #novedades .news-hub-grid > .news-column { align-self: stretch; }
}
@media (max-width: 1100px) {
  #novedades .news-hub-grid { grid-template-columns: minmax(0, 1fr); }
}
/* Solo compactar el disparador, nunca el panel ni sus controles. */
.news-in-view .century-chat:not(.is-open) .century-chat-toggle { transform: scale(.9); transform-origin: bottom right; }
@media (max-width: 768px) {
  #novedades { padding: 48px 0 34px; }
  #novedades .news-column { padding: 18px; }
  #novedades .news-product-card { min-height: 342px; }
  #novedades .news-product-image { flex-basis: 145px; min-height: 145px; }
  .news-in-view .century-chat:not(.is-open) .century-chat-toggle { transform: scale(.82); }
  .news-in-view .century-chat:not(.is-open) .century-chat-toggle span { display: none; }
}
@media (max-width: 480px) {
  #novedades .news-product-card { min-height: 330px; }
  .expo-carousel .news-expo-image { flex-basis: 175px; height: 175px; }
}
