/* Estilos aislados: variables y selectores dentro del contenedor de la landing. */
.novedades-document { margin: 0; }
.novedades-page {
  --novedades-ink: #192c37;
  --novedades-text: #586168;
  --novedades-orange: #c95320;
  --novedades-orange-hover: #a84015;
  --novedades-cream: #fafafa;
  --novedades-heading-font: "Montserrat", sans-serif;
  --novedades-sans: Helvetica, Verdana, Arial, sans-serif;
  color: var(--novedades-ink);
  background: var(--novedades-cream);
  font: 400 16px/1.65 var(--novedades-sans);
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}
.novedades-page *, .novedades-page *::before, .novedades-page *::after { box-sizing: border-box; }
.novedades-page :where(h1, h2, h3, p, figure) { margin: 0; }
.novedades-page img { display: block; width: 100%; max-width: 100%; object-fit: cover; }
.novedades-page :where(a, button) { -webkit-tap-highlight-color: transparent; }
.novedades-page :where(a, button):focus-visible { outline: 3px solid var(--novedades-ink); outline-offset: 5px; }
.novedades-container { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.novedades-eyebrow { color: var(--novedades-orange); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

/* Cabecera compacta. Altura natural para texto ampliado y pantallas pequeñas. */
.novedades-hero {
  --novedades-hero-image: url('../img/bcknovedades.webp');
  --novedades-hero-position: center center;
  display: flex;
  align-items: center;
  min-height: 260px;
  padding-block: 24px;
  color: #fff;
  background-color: #263b41;
  background-image: linear-gradient(90deg, rgb(13 28 37 / 88%) 0%, rgb(13 28 37 / 72%) 38%, rgb(13 28 37 / 12%) 68%), var(--novedades-hero-image);
  background-size: cover;
  background-position: var(--novedades-hero-position);
  background-repeat: no-repeat;
}
.novedades-hero-layout { display: flex; align-items: center; }
.novedades-hero-copy { width: min(100%, 760px); }
.novedades-hero .novedades-eyebrow { color: #ffb68c; }
.novedades-hero-copy h1 { margin-block: 8px 10px; color: #fff; font: 700 clamp(28px, 2.7vw, 36px)/1.15 var(--novedades-heading-font); letter-spacing: -.025em; }
.novedades-hero-description { margin-bottom: 16px; color: #f1f3f4; font-size: 16px; }
.novedades-hero :where(a, button):focus-visible { outline-color: #fff; }
.novedades-button { display: inline-flex; justify-content: center; align-items: center; gap: 20px; min-height: 48px; border: 1px solid transparent; border-radius: 50px; padding: 12px 23px; color: #fff; background: var(--novedades-orange); font: 600 14px/1.4 var(--novedades-sans); text-decoration: none; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.novedades-button:hover { background: var(--novedades-orange-hover); transform: translateY(-2px); box-shadow: 0 6px 18px #a8401520; }
.novedades-button span { font-size: 19px; font-weight: 400; line-height: 1; }

/* Novedades: la cuadrícula iguala la altura de las tarjetas y alinea los CTA. */
.novedades-section { padding-block: 66px; scroll-margin-top: 24px; }
.novedades-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 30px; }
.novedades-section-heading h2 { margin-top: 8px; color: var(--novedades-ink); font: 700 clamp(26px, 2.7vw, 35px)/1.25 var(--novedades-heading-font); letter-spacing: -.025em; }
.novedades-section-heading > p { max-width: 390px; padding-bottom: 3px; color: var(--novedades-text); font-size: 16px; line-height: 1.65; }

/* Carruseles nativos: una sola fila, alturas iguales y swipe sin interceptar gestos. */
.novedades-carousel { min-width: 0; }
.novedades-carousel-controls { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 10px; }
.novedades-carousel-controls[hidden] { display: none; }
.novedades-carousel-arrow { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #c7cfd3; border-radius: 50%; background: #fff; color: var(--novedades-ink); font: 400 24px/1 var(--novedades-sans); cursor: pointer; }
.novedades-carousel-arrow:hover:not(:disabled) { color: var(--novedades-orange); border-color: var(--novedades-orange); }
.novedades-carousel-arrow:disabled { opacity: .35; cursor: default; }
.novedades-carousel-track { --novedades-gap: 24px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--novedades-gap)) / 3); grid-template-rows: auto; gap: var(--novedades-gap); align-items: stretch; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #b8c1c6 transparent; padding-block: 6px 18px; }
.novedades-carousel-track > article { scroll-snap-align: start; }
.novedades-carousel-track:focus-visible { outline: 3px solid var(--novedades-orange); outline-offset: 3px; }
.novedades-card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid #e5e8eb; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 18px #25303605; transition: transform .25s, box-shadow .25s; }
.novedades-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px #25303612; }
.novedades-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #eef0f2; }
.novedades-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s; }
.novedades-card:hover .novedades-card-media img { transform: scale(1.035); }
.novedades-tag { display: inline-block; width: fit-content; border-radius: 30px; padding: 5px 11px; background: var(--novedades-orange); color: #fff; font-size: 12px; line-height: 1.5; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
/* Etiqueta en el contenido: no tapa textos incluidos en las imágenes oficiales. */
.novedades-card-content > .novedades-tag { margin-bottom: 14px; }
.novedades-card-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 24px; }
.novedades-card h3 { color: var(--novedades-ink); font: 700 22px/1.3 var(--novedades-heading-font); letter-spacing: -.02em; }
.novedades-card-subtitle { min-height: 48px; margin-top: 10px; color: var(--novedades-orange); font: 600 16px/1.5 var(--novedades-sans); }
.novedades-card-meta { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; color: #555e61; font-size: 14px; line-height: 1.6; }
.novedades-calendar { position: relative; flex: 0 0 14px; height: 14px; margin-top: 3px; border: 1.2px solid currentColor; border-radius: 2px; background: linear-gradient(currentColor, currentColor) 0 3px / 100% 1px no-repeat; }
.novedades-calendar::before, .novedades-calendar::after { content: ''; position: absolute; top: -3px; width: 1px; height: 5px; background: currentColor; }
.novedades-calendar::before { left: 3px; }.novedades-calendar::after { right: 3px; }
.novedades-card-description { margin: 14px 0 23px; color: var(--novedades-text); font-size: 16px; }
.novedades-card-cta { margin-top: auto; min-height: 44px; padding: 10px 20px; font-size: 14px; }

/* Colaboraciones: fondo propio y tarjetas horizontales compactas. */
.novedades-collaborations { padding-block: 49px 58px; background: #f1f4f5; border-block: 1px solid #e3e8eb; }
.novedades-collaborations .novedades-eyebrow { color: #506858; }
.novedades-collaborations .novedades-section-heading h2 { font-size: clamp(25px, 2.5vw, 32px); }
.novedades-collaboration-card { display: flex; flex-direction: column; overflow: hidden; min-width: 0; border-radius: 12px; background: #fff; box-shadow: 0 3px 12px #25303605; transition: box-shadow .2s; }
.novedades-collaboration-card:hover { box-shadow: 0 6px 20px #25303612; }
.novedades-collaboration-media { background: #0b111c; }
.novedades-collaboration-media img { object-fit: contain; }
.novedades-ecocentro-media { background: #fff; }
.novedades-collaboration-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 22px; }
.novedades-tag-collaboration { padding: 3px 8px; background: #e3ede3; color: #365442; font-size: 12px; }
.novedades-collaboration-content h3 { margin-top: 12px; color: var(--novedades-ink); font: 600 18px/1.3 var(--novedades-heading-font); letter-spacing: -.015em; }
.novedades-collaboration-content p { margin: 9px 0 14px; color: var(--novedades-text); font-size: 16px; line-height: 1.55; }
.novedades-collaboration-content h3 { margin-bottom: 20px; }
.novedades-link { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 44px; margin-top: auto; padding: 0 0 3px; border: 0; border-bottom: 1px solid #ccc5b7; background: transparent; color: var(--novedades-ink); font: 600 14px/1.5 var(--novedades-sans); cursor: pointer; text-align: left; text-decoration: none; }
.novedades-link:hover { color: var(--novedades-orange); border-color: var(--novedades-orange); }

/* Cierre */
.novedades-closing { position: relative; padding-block: 30px; overflow: hidden; color: #fff; text-align: center; background: #35403b; }
.novedades-closing > img { position: absolute; inset: 0; height: 100%; object-position: center 55%; }
.novedades-closing::after { content: ''; position: absolute; inset: 0; background: #172b2acc; }
.novedades-closing-content { position: relative; z-index: 1; }
.novedades-closing-mark { display: block; color: #e98b53; font-size: 27px; line-height: 1; margin-bottom: 12px; }
.novedades-closing h2 { color: #fff; font: 600 clamp(26px, 2.8vw, 36px)/1.3 var(--novedades-heading-font); letter-spacing: -.02em; }
.novedades-closing p { margin-top: 12px; color: #e4e4dd; font-size: 16px; }
.novedades-demo-note { padding: 13px 20px; text-align: center; color: var(--novedades-text); font-size: 14px; }
.novedades-feedback { position: fixed; z-index: 10; right: 20px; bottom: 20px; width: min(380px, calc(100% - 40px)); padding: 18px 23px; color: #fff; background: var(--novedades-ink); border-radius: 12px; font-size: 14px; box-shadow: 0 5px 25px #0003; }
.novedades-feedback[hidden] { display: none; }

/* Tablet: dos columnas para las propuestas. */
@media (max-width: 1050px) {
  .novedades-container { width: calc(100% - 64px); }
  .novedades-carousel-track { grid-auto-columns: calc((100% - var(--novedades-gap)) / 2); }
  .novedades-section-heading { align-items: flex-start; }
  .novedades-section-heading > p { max-width: 280px; margin-top: 30px; }
  .novedades-desktop-break { display: none; }
}
@media (max-width: 760px) {
  .novedades-container { width: calc(100% - 40px); }
  .novedades-hero { min-height: 0; padding-block: 26px; background-position: 60% center; background-image: linear-gradient(90deg, rgb(13 28 37 / 88%), rgb(13 28 37 / 56%)), var(--novedades-hero-image); }
  .novedades-hero-copy h1 { font-size: clamp(26px, 4.5vw, 32px); }
  .novedades-hero-description { max-width: 485px; font-size: 16px; }
  .novedades-section { padding-block: 42px; }
  .novedades-section-heading { flex-direction: column; gap: 13px; margin-bottom: 24px; }
  .novedades-section-heading > p { max-width: 440px; margin-top: 0; }
}
@media (max-width: 580px) {
  .novedades-carousel-track { --novedades-gap: 16px; grid-auto-columns: 88%; }
  .novedades-hero-copy h1 { font-size: 26px; }
  .novedades-hero-copy .novedades-button { gap: 12px; padding-inline: 18px; }
  .novedades-card-subtitle { min-height: 0; }
  .novedades-card-description { font-size: 16px; }
  .novedades-card-meta { font-size: 14px; }
  .novedades-collaboration-content { padding: 18px 16px; }
  .novedades-closing { padding-block: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .novedades-page *, .novedades-page *::before, .novedades-page *::after { transition: none !important; scroll-behavior: auto !important; }
  .novedades-card:hover, .novedades-button:hover, .novedades-card:hover .novedades-card-media img { transform: none; }
}
