/* 
 * DESIGN SYSTEM 2 - COMPONENTES
 * Este archivo contiene los componentes del nuevo sistema de diseño.
*/

/* BREADCRUMBS DS2 */
.c-breadcrumbs-ds2 {
  height: 60px;
  background-color: var(--grey-100);
  border-bottom: 1px solid var(--lines-grey-900);
  display: flex;
  align-items: center;
}

.c-breadcrumbs-ds2 img {
  position: relative;
  top: -2px;
}

.c-breadcrumbs-ds2 .wrapper-ds2 {
  font-family: 'DIN', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--grey-900);
  display: flex;
  align-items: center;
}

.c-breadcrumbs-ds2 a {
  color: var(--ds2-primary);
  text-decoration: none;
}

.c-breadcrumbs-ds2 span {
  margin: 0 8px;
  color: #bdbdbd;
}

/* HERO DS2 */
.hero-ds2 {
  background-color: var(--ds2-white);
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.hero-ds2__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-ds2__text-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.hero-ds2 .tag-ds2 {
  background-color: var(--ds2-bg-tag);
  padding: 8px 12px;
  border-radius: 100px;
  display: inline-block;
}

.hero-ds2 .tag-ds2 p {
  font-family: 'DIN', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  color: var(--ds2-primary);
  margin: 0;
}

.hero-ds2 .title-ds2 {
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  /* Evita el bold por defecto del H1 */
  font-size: 44px;
  line-height: 44px;
  color: var(--ds2-primary);
  letter-spacing: -2px;
  margin-bottom: 8px;
}

.hero-ds2 .description-ds2 {
  font-family: 'DIN', sans-serif;
  font-weight: 400;
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
  color: var(--grey-900);
  margin: 0;
}

.hero-ds2__image-box {
  width: 100%;
  padding: 0 8px;
  /* Mobile img px */
}

.hero-ds2 .image-container-ds2 {
  width: 100%;
  /* height: 280px; */
  border-radius: 8px;
  overflow: hidden;
}

.hero-ds2 .image-container-ds2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tablet (768px) */
@media (min-width: 768px) {
  .hero-ds2 {
    padding: 48px 0;
  }

  .hero-ds2__content {
    gap: 24px;
  }
}

/* Desktop (1366px) */
@media (min-width: 1366px) {
  .hero-ds2 {
    padding: 80px 0;
  }

  .hero-ds2__content {
    gap: 60px;
  }

  .hero-ds2__text-box {
    max-width: 928px;
    /* Alineación asimétrica según Figma */
    gap: 24px;
    align-self: flex-start;
  }

  .hero-ds2 .title-ds2 {
    font-size: 88px;
    line-height: 88px;
    letter-spacing: -4px;
  }

  .hero-ds2__image-box {
    padding: 0 24px;
    /* Imagen más ancha que el texto */
  }

  .hero-ds2 .image-container-ds2 {
    height: 400px;
  }
}

/* Big (1920px) */
@media (min-width: 1920px) {
  .hero-ds2 {
    padding: 100px 0;
  }

  .hero-ds2__content {
    max-width: 1920px;
  }

  .hero-ds2__text-box {
    max-width: 855px;
  }

  .hero-ds2__image-box {
    padding: 0 24px;
  }
}

/* VECTOR */

.c-vector-ds2 {
  height: 73px;
  width: 100%;
  background: #CD912D url("../images/mineria/vector.png") no-repeat right center;
  background-size: cover;
}

/* INFO TEXT DS2 */
.c-info-text-ds2 {
  padding: 60px 0;
  background-color: var(--ds2-white);
}

.c-info-text-ds2 .wrapper-ds2 {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.c-info-text-ds2__title {
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  /* Evita que el navegador le sume bold al h2 */
  font-size: 40px;
  line-height: 42px;
  letter-spacing: -2px;
  color: var(--ds2-primary);
  margin: 0;
}

.c-info-text-ds2__description {
  font-family: 'DIN', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: var(--grey-900);
}

@media (min-width: 1366px) {
  .c-info-text-ds2 {
    padding: 80px 0;
  }

  .c-info-text-ds2 .wrapper-ds2 {
    flex-direction: row;
    justify-content: space-between;
    gap: 60px;
    align-items: flex-start;
  }

  .c-info-text-ds2__title {
    font-size: 50px;
    line-height: 50px;
    max-width: 526px;
    flex-shrink: 0;
  }

  .c-info-text-ds2__description {
    max-width: 636px;
    margin-top: 8px;
  }
}

/* CARD IMAGE-TEXT DS2 */
.c-card-ds2 {
  background-color: var(--grey-100);
  display: flex;
  flex-direction: column;

  overflow: hidden;
}

.c-card-ds2__image {
  width: 100%;
  height: 300px;
}

.c-card-ds2__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.c-card-ds2__content {
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}

.c-card-ds2__title {
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 42px;
  letter-spacing: -2px;
  color: var(--ds2-primary);
  margin: 0;
}

.c-card-ds2__description {
  font-family: 'DIN', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  color: var(--grey-900);
  margin: 0;
}

/* BUTTON DS2 (8px Radius) */
.button-ds2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  background-color: var(--ds2-primary);
  color: var(--ds2-white);
  font-family: 'DIN', sans-serif;
  font-weight: 400;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
}

.button-ds2:hover {
  background-color: #0341b1;
  color: var(--ds2-white);
}

@media (min-width: 1366px) {
  .c-card-ds2 {
    flex-direction: row;
    align-items: stretch;

    display: flex;
  }

  .c-card-ds2__image {
    width: 50%;
    height: 640px;
    flex-shrink: 0;
  }

  .c-card-ds2__content {
    padding: 0 72px;
    flex-grow: 1;
    justify-content: center;
    gap: 60px;
  }

  .c-card-ds2__title {
    font-size: 50px;
    line-height: 50px;
    max-width: 526px;
  }

  .c-card-ds2__description {
    max-width: 526px;
  }
}

/* SERVICES GRID / SLIDER DS2 */
.c-services-ds2 {
  padding: 60px 0;
  background-color: var(--ds2-white);
  overflow: hidden;
}

.c-services-ds2__text-block {
  margin-bottom: 32px;
}

.c-services-ds2__title {
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 42px;
  color: var(--ds2-primary);
}

.c-services-ds2__subtitle {
  font-family: 'DIN', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: var(--grey-900);
  opacity: 0.8;
  max-width: 526px;
}

/* Scroll wrapper: wrapper-ds2 da el margen izquierdo, anulamos el derecho para que las cards sangren */
.c-services-ds2__scroll-wrapper {
  padding-right: 0 !important;
  margin-bottom: 32px;
  overflow: visible;
}

/* El grid en mobile: horizontal scrolleable con Swiper */
.c-services-ds2__grid {
  overflow: visible;
  padding: 16px 0;
  padding-right: 16px;
}

.c-services-ds2__grid .swiper-wrapper {
  display: flex;
}

.c-services-ds2__grid .c-service-card-ds2 {
  flex: 0 0 85%;
  height: auto;
}

.c-services-ds2__grid::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

/* Swiper specific overrides if needed */
.c-services-ds2__grid.swiper-initialized .swiper-wrapper {
  cursor: grab;
}

.c-service-card-ds2 {
  background-color: var(--grey-100);
  padding: 32px;
  border-radius: 8px;
  min-height: 380px;
  display: flex !important;
  flex-direction: column;
  gap: 40px;
  box-sizing: border-box;
}


.c-service-card-ds2-no-flex {
  gap: 16px;
  min-height: 200px;
}

.c-service-card-ds2-no-flex .c-service-card-ds2__icon {
  margin-bottom: 28px;
}

.c-service-card-ds2__icon {
  width: 56px;
  height: 56px;
  background-color: var(--ds2-white);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.c-service-card-ds2__icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.c-service-card-ds2__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.c-service-card-ds2__title {
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  color: var(--ds2-primary);
  margin: 0;
}

.c-service-card-ds2__description {
  font-family: 'DIN', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  color: var(--grey-900);
  margin: 0;
}

.c-service-card-ds2 .button-ds2 {
  height: 36px;
  padding: 0 16px;
  align-self: flex-start;
  margin-top: auto;
}

.c-services-ds2__pagination {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.c-services-ds2__counter {
  font-family: 'DIN', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--ds2-grey-BD);
}

.c-services-ds2__counter span {
  color: var(--ds2-primary);
  font-family: 'DIN', sans-serif;
  font-weight: 500;
}

.c-services-ds2__progress {
  width: 120px;
  height: 4px;
  background-color: var(--grey-300);
  border-radius: 2px;
  overflow: hidden;
}

.c-services-ds2__bar {
  height: 100%;
  width: 16.66%;
  background-color: var(--ds2-primary);
  transition: width 0.3s;
}

@media (min-width: 768px) {
  .c-services-ds2 {
    padding: 100px 0;
  }

  .c-services-ds2__scroll-wrapper {
    padding-left: 0;
    overflow: visible;
    margin-bottom: 0;
  }

  /* En tablet/desktop volvemos a grid normal, deshabilitamos el scroll */
  .c-services-ds2__grid .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding-right: 0;
    transform: none !important;
    /* Prevent swiper transform */
  }

  .c-services-ds2__grid .c-service-card-ds2 {
    flex: unset;
    width: 100% !important;
  }

  .c-services-ds2__pagination {
    display: none;
  }

  .c-services-ds2 .wrapper-ds2.c-services-ds2__scroll-wrapper {
    padding: 0 24px !important;
  }

  /* Reset grid specific mobile masks */
  .c-services-ds2__grid {
    clip-path: none;
    padding: 0;
  }

  .c-service-card-ds2 {
    min-height: 200px;
  }

  .c-services-ds2__text-block {
    margin-bottom: 48px;
  }
}

@media (min-width: 1366px) {
  .c-services-ds2__grid .swiper-wrapper {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px
  }

  .c-services-ds2 {
    padding: 80px 0;
  }

  .c-services-ds2__title {
    font-size: 50px;
    line-height: 50px;
  }

  .c-services-ds2 .wrapper-ds2.c-services-ds2__scroll-wrapper {
    padding: 0 !important;
  }

  .c-services-ds2__text-block {
    margin-bottom: 60px;
  }
}

/* ENERGY SERVICES — siempre 2 columnas, nunca 3 */
@media (min-width: 768px) {
  .c-energy-ds2__grid .swiper-wrapper {
    grid-template-columns: repeat(2, 1fr) !important;
  }


}


/* DISTRIBUTION SECTION DS2 */
.c-distribution-ds2 {
  padding: 60px 0;
  background-color: var(--ds2-white);
}

.c-distribution-ds2 {
  overflow: hidden;
}

.c-distribution-ds2__text-block {
  margin-bottom: 40px;
  max-width: 686px;
}

.c-distribution-ds2__title {
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 40px;
  color: var(--ds2-primary);
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.c-distribution-ds2__description {
  font-family: 'DIN', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  color: var(--grey-900);
  max-width: 600px;
}

.c-distribution-ds2__grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* FEATURE CARDS (Common) */
.c-feature-card-ds2 {
  background-color: #F5F5F5;
  padding: 32px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  /* Separación entre ícono y texto */
}

.c-feature-card-ds2__icon img {
  width: 24px;
  height: 24px;
}

.c-feature-card-ds2__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* Separación entre título y bajada */
}

.c-feature-card-ds2__title {
  font-family: 'DIN', sans-serif;
  font-weight: 700;
  font-size: 18px;
  /* Más chica */
  line-height: 22px;
  color: #212121;
  margin: 0;
}

.c-feature-card-ds2__description {
  font-family: 'DIN', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: var(--grey-700);
  margin: 0;
}

@media (min-width: 768px) {
  .c-distribution-ds2 {
    padding: 100px 0;
  }

  .c-distribution-ds2__title {
    font-size: 50px;
    line-height: 1.1;
    letter-spacing: -2px;
  }

  .c-distribution-ds2__grid {
    flex-direction: row;
  }

  .c-feature-card-ds2 {
    flex: 1;
    min-height: 240px;
  }
}

/* CONTACTS SECTION DS2 */
.c-contacts-ds2 {
  padding: 60px 0;
  background-color: #f5f5f5;
  overflow: hidden;
}

.c-contacts-ds2__container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Visibility Helpers */
.only-mobile-tablet {
  display: block;
}

@media (min-width: 1366px) {
  .only-mobile-tablet {
    display: none !important;
  }

  .only-desktop {
    display: flex !important;
  }

  .c-contacts-ds2__container {
    gap: 48px;
  }
}

.c-contacts-ds2__title {
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.1;
  color: #0451DD;
  letter-spacing: -1px;
  margin: 0;
}



.c-contacts-ds2__slider-wrapper {
  position: relative;
  overflow: visible;
}

.c-contacts-ds2__scroll-wrapper {
  overflow: hidden;
  overflow: visible;
  width: 100%;
}

.c-contacts-ds2__scroll-wrapper .swiper-wrapper {
  display: flex !important;
  padding: 16px 0;
}

.c-contact-card-ds2 {
  background-color: #FFFFFF;
  padding: 32px;
  border-radius: 8px;
  border: 1px solid #e1e5ec;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 40px;
  transition: transform 0.3s;
  height: auto;
  box-sizing: border-box;
  /* Ensure padding doesn't affect Swiper width */
}

@media (min-width: 768px) {
  /* No manual width here, let Swiper handle it */
}

@media (min-width: 1366px) {
  .c-contacts-ds2__scroll-wrapper .swiper-wrapper {
    gap: 24px;
  }
}


.c-contact-card-ds2__icon {
  width: 24px;
  height: 24px;
}

.c-contact-card-ds2__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.c-contact-card-ds2__job {
  font-family: 'DIN', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 22px;
  color: #0451DD;
  margin: 0;
}

.c-contact-card-ds2__name {
  font-family: 'DIN', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  color: var(--grey-900);
  margin: 0;
}

.c-contact-card-ds2__info {
  display: flex;
  flex-direction: column;
  gap: 16px;

}

.c-contact-info-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.c-contact-info-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-contact-info-text {
  display: flex;
  flex-direction: column;
}

.c-contact-info-text .label {
  font-family: 'DIN', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 14px;
  display: block;
  margin-bottom: 5px;
  color: #212121;
}

.c-contact-info-text .value {
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  color: #0451DD;
  text-decoration: none;
}

/* Pagination */
.c-contacts-ds2__pagination {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.c-contacts-ds2__counter {
  font-family: 'DIN', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #bdbdbd;
}

.current-slide-contacts {
  color: #212121;
}

.c-contacts-ds2__nav {
  display: flex;
  gap: 12px;
}

.c-contacts-ds2__btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid #0451DD;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.c-contacts-ds2__btn:disabled {
  border-color: #E0E0E0;
  cursor: default;
}

.c-contacts-ds2__btn svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 768px) {
  .c-contacts-ds2__nav.only-desktop {
    display: flex !important;
  }
}

@media (min-width: 1366px) {
  .c-contacts-ds2 {
    padding: 100px 0;
    overflow: hidden;
  }

  .c-contact-card-ds2 {
    gap: 32px;
  }

  .c-contacts-ds2__container {
    flex-direction: row;
    gap: 100px;
    /* Mas espacio entre titulo y slider en desktop */
    align-items: flex-start;
    justify-content: space-between;
  }

  .c-contacts-ds2__text-block {
    flex: 0 0 42%;
    position: sticky;
    top: 100px;
    background-color: #f5f5f5;
    z-index: 2;
    padding-right: 24px;
    /* Small buffer so cards don't peek behind title */
    align-self: flex-start;
  }

  .c-contacts-ds2__title {
    font-size: 50px;
    line-height: 1.1;
    letter-spacing: -1.5px;
    position: relative;
  }

  .c-contacts-ds2__title span {
    position: relative;
    z-index: 10;
  }

  .c-contacts-ds2__title:after {
    content: "";
    background-color: #f5f5f5;
    position: absolute;
    left: -300px;
    top: -140px;
    width: 900px;
    height: 440px;
    display: block;
    z-index: 0;
  }

  /* DESKTOP SLIDER: let Swiper handle layouts */
  .c-contacts-ds2__slider-wrapper {
    flex: 1;
    min-width: 0;
    overflow: visible;
  }

  .c-contacts-ds2__scroll-wrapper {
    overflow: visible;
    width: 100%;
    padding: 0;
  }

  .c-contact-card-ds2 {
    /* Swiper controls width via slidesPerView. No overrides needed. */
    height: auto;
  }

  .c-contacts-ds2__pagination {
    margin-top: 40px;
    max-width: 100%;
    /* Se queda dentro de la columna del slider en el wrapper */
    gap: 40px;
  }
}

@media (min-width: 1920px) {
  /* Let Swiper handle card widths via slidesPerView: 2.5 in this breakpoint */
}

/* CTA BANNER SECTION DS2 */
.c-cta-banner-ds2 {
  display: flex;
  flex-direction: column;
  background-color: #3a4247;
  overflow: hidden;
}

.c-cta-banner-ds2__content {
  padding: 60px 0;
  color: #FFFFFF;
}

.c-cta-banner-ds2__text-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.c-cta-banner-ds2__title {
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.1;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -1px;
}

.c-cta-banner-ds2__description {
  font-family: 'DIN', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #FFFFFF;
  margin: 0;
  max-width: 320px;
}

.c-cta-banner-ds2__image-container {
  position: relative;
  height: 320px;
  width: 100%;
}

.c-cta-banner-ds2__img-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Image takes top part */
  overflow: hidden;
}

.c-cta-banner-ds2__img {
  width: 100%;
  height: calc(100% - 80px);
  object-fit: cover;
}

.c-cta-banner-ds2__decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  /* Decoration overlaps and takes bottom part */
  z-index: 2;
  overflow: hidden;
  background-color: #3a4247;
  /* Fallback */
  background: #3A4247 url(../images/mineria/vector2.png) no-repeat top left;
  background-size: cover;
}

/* Button UI */
.button-ds2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 8px;
  font-family: 'DIN', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  width: fit-content;
}

.button-ds2--white {
  background-color: #FFFFFF;
  color: #0451DD;
}

.button-ds2--white:hover {
  background-color: var(--ds2-primary);
  color: var(--ds2-white);
}

@media (min-width: 768px) {
  .c-cta-banner-ds2__title {
    font-size: 40px;
  }

  .c-cta-banner-ds2__image-container {
    height: 400px;
  }

  .c-cta-banner-ds2__description {
    max-width: 450px;
  }
}

@media (min-width: 1366px) {
  .c-cta-banner-ds2 {
    flex-direction: row;
    min-height: 500px;
  }

  .c-cta-banner-ds2__content {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    padding: 100px 0;
    /* Alineación con el wrapper global layout (1296px) */
    padding-left: max(24px, calc((100vw - 1296px) / 2));
    box-sizing: border-box;
  }

  .c-cta-banner-ds2 .wrapper-ds2 {
    padding: 0;
    margin: 0;
    max-width: none;
    width: 100%;
  }

  .c-cta-banner-ds2__image-container {
    flex: 0 0 50%;
    height: auto;
  }

  .c-cta-banner-ds2__img-wrapper {
    height: calc(100% - 80px);
  }

  .c-cta-banner-ds2__decoration {
    height: 160px;
  }

  .c-cta-banner-ds2__title {
    font-size: 50px;
    line-height: 1.1;
    letter-spacing: -2px;
  }

  .c-cta-banner-ds2__description {
    max-width: 380px;
    line-height: 1.4;
  }
}

@media (min-width: 1920px) {
  .c-cta-banner-ds2 {
    min-height: 600px;
  }

  .c-cta-banner-ds2__content {
    flex: 0 0 40%;
  }

  .c-cta-banner-ds2__image-container {
    flex: 0 0 60%;
  }
}

/* PANELS (DOWNLOAD) SECTION DS2 */
.c-panels-ds2 {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.c-panels-ds2__container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.c-panels-ds2__dots {
  display: flex;
  height: 120px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.c-panels-ds2__dots-pattern {
  width: 717px;
  height: 478px;
  background-image: radial-gradient(#E1E5EC 1px, transparent 1px);
  background-size: 10px 10px;
  position: absolute;
  top: 0;
  left: 0;
}

.c-panels-ds2__card {
  background-color: #F5F5F5;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.c-panels-ds2__card-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.c-panels-ds2__card-title {
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  color: #0451DD;
  margin: 0;
}

.c-panels-ds2__card-description {
  font-family: 'DIN', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  color: #212121;
  margin: 0;
}

.c-panels-ds2__download-link {
  display: inline-flex;
  align-items: end;
  gap: 4px;
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #0451DD;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.3s;
  height: 48px;
}

.c-panels-ds2__download-link:hover {
  opacity: 0.8;
}

/* PDF Preview (Tablet/Desktop) */
.c-panels-ds2__pdf-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 8px;
  overflow: hidden;
  background-color: #3A4247;
}

.c-panels-ds2__pdf-preview.only-tablet-desktop {
  display: none;
}

.c-panels-ds2__pdf-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.c-panels-ds2__pdf-overlay {
  position: absolute;
  top: 24px;
  left: 24px;
}

.c-panels-ds2__ypf-mini {
  width: 65px;
  height: auto;
}

@media (min-width: 768px) {
  .c-panels-ds2__card {
    flex-direction: row;
    align-items: center;
    padding: 32px;
  }

  .c-panels-ds2__pdf-preview.only-tablet-desktop {
    display: block;
  }

  .c-panels-ds2__pdf-preview {
    flex: 0 0 240px;
    height: 240px;
  }

  .c-panels-ds2__card-content {
    flex: 1;
  }
}

@media (min-width: 1366px) {
  .c-panels-ds2 {
    padding: 100px 0;
  }

  .c-panels-ds2__container {
    flex-direction: row;
    align-items: stretch;
    gap: 48px;
  }

  .c-panels-ds2__dots {
    flex: 1;
    height: auto;
  }

  .c-panels-ds2__card {
    flex: 1;
    padding: 48px;
  }

  .c-panels-ds2__pdf-preview {
    flex: 0 0 300px;
    height: 300px;
  }
}


/* IMAGE FULL WIDTH */

.c-image-ds2-full-width {
  margin: 0;
}

.c-image-ds2-full-width img {
  width: 100%;
  height: auto;
}

.mapa {
  background-color: #0451DD;
  height: 500px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 32px;
  letter-spacing: -1.5px;
  margin-bottom: 60px;
}

/* HERO INTERNO DS2 (TEXT + IMAGE) */
.c-hero-interno-ds2 {
  padding: 40px 0;
  background-color: #FFFFFF;
}

.c-hero-interno-ds2_image_mobile {
  height: 300px;
  width: 100%;
  overflow: hidden;
  margin-bottom: 60px;
}

.c-hero-interno-ds2_image_mobile img {
  height: 100%;
  width: 100%;
  transform: scale(1.03);
  object-fit: cover;
}

.c-hero-interno-ds2__container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.c-hero-interno-ds2__image-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  order: 1;
  display: none;
  /* Imagen arriba en mobile */
}

.c-hero-interno-ds2__img {
  width: 100%;
  height: auto;
  display: block;
}

.c-hero-interno-ds2__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  order: 2;
}

.c-hero-interno-ds2__tag {
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 20px;
  color: var(--grey-700);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}

.c-hero-interno-ds2__title {
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 42px;
  color: var(--ds2-primary);
  margin: 0;
  letter-spacing: -2px;
}

.c-hero-interno-ds2__description {
  font-family: 'DIN', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: var(--grey-900);
  margin: 0;
  max-width: 580px;
}

@media (min-width: 768px) {
  .c-hero-interno-ds2 {
    padding: 60px 0;
  }

  .c-hero-interno-ds2__tag {
    margin-bottom: 36px;
  }

  .c-hero-interno-ds2__image-container {
    display: block;
  }

  .c-hero-interno-ds2_image_mobile {
    display: none;
  }
}

@media (min-width: 1366px) {
  .c-hero-interno-ds2 {
    padding: 80px 0;
  }

  .c-hero-interno-ds2__container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
  }

  .c-hero-interno-ds2__content {
    flex: 0 0 40%;
    order: 1;
    /* Texto a la izquierda */
    gap: 32px;
  }

  .c-hero-interno-ds2__image-container {
    flex: 0 0 55%;
    order: 2;
    /* Imagen a la derecha */
  }

  .c-hero-interno-ds2__title {
    font-size: 50px;
    line-height: 1;
    letter-spacing: -2px;
  }
}

@media (min-width: 1920px) {
  .c-hero-interno-ds2__content {
    flex: 0 0 35%;
  }

  .c-hero-interno-ds2__image-container {
    flex: 0 0 60%;
  }
}

/* INFO PANELS DS2 */
.c-info-panels-ds2 {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.c-info-panels-ds2__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.c-info-panels-ds2__card {
  background-color: #F5F5F5;
  padding: 24px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease;

  min-height: 200px;
}

.c-info-panels-ds2__card:hover {
  transform: translateY(-4px);
}

.c-info-panels-ds2__card-title {
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  color: var(--ds2-primary);
  margin: 0;
}

.c-info-panels-ds2__card-description {
  font-family: 'DIN', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
  color: var(--grey-900);
  margin: 0;
}

@media (min-width: 768px) {
  .c-info-panels-ds2 {
    padding: 80px 0;
  }

  .c-info-panels-ds2__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1366px) {
  .c-info-panels-ds2 {
    padding: 100px 0;
  }

  .c-info-panels-ds2__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* BANNER FEATURE DS2 (IMAGE LEFT / TEXT RIGHT) */
.c-banner-feature-ds2 {
  background-color: #F5F5F5;
  overflow: hidden;
}

.c-banner-feature-ds2__container {
  display: flex;
  flex-direction: column;
}

.c-banner-feature-ds2__image-container {
  width: 100%;
  height: 340px;
}

.c-banner-feature-ds2__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-banner-feature-ds2__content {
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.c-banner-feature-ds2__title {
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.1;
  color: var(--ds2-primary) !important;
  margin: 0;
  letter-spacing: -1px;
}

.c-banner-feature-ds2__description {
  font-family: 'DIN', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: var(--grey-900);
  margin: 0;
  max-width: 480px;
}

.c-banner-feature-ds2__actions {
  margin-top: 8px;
}

@media (min-width: 768px) {
  .c-banner-feature-ds2__image-container {
    height: 440px;
  }

  .c-banner-feature-ds2__content {
    padding: 60px 48px;
  }

  .c-banner-feature-ds2__title {
    font-size: 40px;
  }
}

@media (min-width: 1024px) {
  .c-banner-feature-ds2__container {
    flex-direction: row;
    align-items: stretch;
    min-height: 500px;
  }

  .c-banner-feature-ds2__image-container {
    flex: 0 0 50%;
    height: auto;
  }

  .c-banner-feature-ds2__content {
    flex: 0 0 50%;
    padding: 60px 60px;
    justify-content: center;
  }

  .c-banner-feature-ds2__title {
    font-size: 44px;
    letter-spacing: -1.5px;
  }
}

@media (min-width: 1366px) {
  .c-banner-feature-ds2__container {
    min-height: 600px;
  }

  .c-banner-feature-ds2__content {
    padding: 80px 100px;
  }

  .c-banner-feature-ds2__title {
    font-size: 50px;
    letter-spacing: -2px;
  }
}

@media (min-width: 1920px) {
  .c-banner-feature-ds2__image-container {
    flex: 0 0 55%;
  }

  .c-banner-feature-ds2__content {
    flex: 0 0 45%;
    padding: 100px 120px;
  }
}

/* CONTACT INTERNO DS2 */
.c-contact-interno-ds2 {
  background-color: #F5F5F5;
  padding: 60px 0;
  overflow: hidden;
  /* clip Swiper bleed */
}

.c-contact-interno-ds2__container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.c-contact-interno-ds2__title {
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.1;
  color: var(--ds2-primary);
  margin: 0;
  letter-spacing: -1.5px;
}

/* Slider / Grid switcher */
.c-contact-interno-ds2__slider-wrapper {
  position: relative;
  width: 100%;
  overflow: visible;
}

/* Mobile: Swiper controls layout */
.c-contact-interno-ds2__scroll-container {
  overflow: visible;
}

/* Cards — cosmetic only, Swiper controls width on mobile */
.c-contact-interno-ds2__card {
  background-color: #FFFFFF;
  border: 1px solid #E1E5EC;
  border-radius: 8px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 350px;
  box-sizing: border-box;
}

.c-contact-interno-ds2__card-icon {
  width: 24px;
  height: 24px;
  color: var(--ds2-primary);
}

.c-contact-interno-ds2__card-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.c-contact-interno-ds2__card-name {
  font-family: 'DIN', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  color: var(--ds2-primary);
  margin: 0;
}

.c-contact-interno-ds2__card-position {
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #616161;
  margin: 0;
}

.c-contact-interno-ds2__item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.c-contact-interno-ds2__item-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.c-contact-interno-ds2__item-text {
  display: flex;
  flex-direction: column;
}

.c-contact-interno-ds2__item-label {
  font-family: 'DIN', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--grey-900);
}

.c-contact-interno-ds2__item-value {
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--ds2-primary);
  text-decoration: none;
}

/* Tablet+: CSS grid layout, Swiper wrapper as transparent passthrough */
@media (min-width: 768px) {
  .c-contact-interno-ds2 {
    padding: 80px 0;
    overflow: visible;
    /* no need to clip at tablet */
  }

  /* Make Swiper structural elements invisible to layout */
  .c-contact-interno-ds2__scroll-container {
    overflow: visible;
  }

  .c-contact-interno-ds2__scroll-container .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    transform: none !important;
    /* override Swiper's inline transform */
  }

  .c-contact-interno-ds2__scroll-container .swiper-slide {
    width: auto !important;
    /* override Swiper's inline width */
    height: auto;
    margin: 0 !important;
  }

  .c-contacts-ds2__nav.only-desktop2 {
    display: flex !important;
    background-color: red;
  }
}

@media (min-width: 1366px) {
  .c-contact-interno-ds2 {
    padding: 100px 0;
  }

  .c-contact-interno-ds2__container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }



  .c-contact-interno-ds2__title {
    flex: 0 0 40%;
    font-size: 50px;
    letter-spacing: -2px;
  }

  .c-contact-interno-ds2__scroll-container .swiper-wrapper {
    gap: 24px;
  }

  .c-contact-interno-ds2__slider-wrapper {
    flex: 0 0 55%;
  }

  .c-contact-interno-ds2__scroll-container {
    gap: 24px;
  }
}

@media (min-width: 1920px) {
  .c-contact-interno-ds2__title {
    flex: 0 0 35%;
    margin-bottom: 130px;
  }

  .c-contact-interno-ds2__slider-wrapper {
    flex: 0 0 60%;
  }
}

/* Pagination specific to Contact Interno */
.c-contact-interno-ds2__pagination {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-left: 0;
}

@media (min-width: 768px) {
  .c-contact-interno-ds2__pagination {
    display: none;
  }
}

.c-contact-interno-ds2__pagination .c-contacts-ds2__counter {
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: #BDBDBD;
  margin: 0;
}

.c-contact-interno-ds2__pagination .c-contacts-ds2__counter .current-slide {
  color: var(--ds2-primary);
}

.c-contact-interno-ds2__pagination .c-services-ds2__progress {
  width: 120px;
  height: 4px;
  background-color: #E0E0E0;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.c-contact-interno-ds2__pagination .c-services-ds2__bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: var(--ds2-primary);
  width: 50%;
  /* Initial for 2 cards */
  transition: width 0.3s ease;
}

/* COMBUSTIBLES DS2 */
.c-combustibles-ds2__pagination {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;

}

@media (min-width: 1366px) {
  .c-combustibles-ds2__pagination {
    display: none;
  }
}

.c-combustibles-ds2__pagination .c-contacts-ds2__counter {
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: #BDBDBD;
  margin: 0;
}

.c-combustibles-ds2__pagination .c-contacts-ds2__counter .current-slide {
  color: var(--ds2-primary);
}

.c-combustibles-ds2__pagination .c-services-ds2__progress {
  width: 120px;
  height: 4px;
  background-color: #E0E0E0;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.c-combustibles-ds2__pagination .c-services-ds2__bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: var(--ds2-primary);
  width: 33.33%;
  /* Initial for 3 cards */
  transition: width 0.3s ease;
}

.c-combustibles-ds2 {
  padding: 60px 0;
  background-color: #FFFFFF;
  overflow: hidden;
}

.c-combustibles-ds2__container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.c-combustibles-ds2__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 550px;
}

.c-combustibles-ds2__title {
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.1;
  color: var(--ds2-primary);
  margin: 0;
  letter-spacing: -2px;
}

.c-combustibles-ds2__subtitle {
  font-family: 'DIN', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: var(--grey-900);
  margin: 0;
}

/* Swiper container — let Swiper control width/overflow */
.c-combustibles-ds2__slider-wrapper {
  position: relative;
  width: 100%;
  /* Overflow visible so the 1.05 bleed card peeks out */
  overflow: visible;
}

.c-combustibles-ds2__scroll-container {
  overflow: visible;
}

/* Card combustibles — cosmetic only, Swiper controls width */
.c-combustibles-ds2__card {
  background-color: #F5F5F5;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 330px;
  transition: min-height 0.3s ease;
  box-sizing: border-box;
}

.c-combustibles-ds2__card-title {
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  color: var(--ds2-primary);
  margin: 0;
  text-transform: uppercase;
}

.c-combustibles-ds2__card-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.c-combustibles-ds2__card-description {
  font-family: 'DIN', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: var(--grey-900);
  margin: 0;
  /* Multi-line clamp or toggle logic */
}

/* Inline expand/collapse spans */
.c-ds2__ellipsis {
  display: inline;
}

.c-combustibles-ds2__extra-text {
  display: none;
  font-family: 'DIN', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: var(--grey-900);
}

.c-combustibles-ds2__card.is-expanded .c-ds2__ellipsis {
  display: none;
}

.c-combustibles-ds2__card.is-expanded .c-combustibles-ds2__extra-text {
  display: inline;
}

.c-combustibles-ds2__toggle-btn {
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--ds2-primary);
  text-decoration: underline;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
}

.c-combustibles-ds2__toggle-btn svg {
  transition: transform 0.3s ease;
}

.c-combustibles-ds2__card.is-expanded .c-combustibles-ds2__toggle-btn svg {
  transform: rotate(180deg);
}

.c-combustibles-ds2__card-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.c-combustibles-ds2__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border: 1px solid var(--ds2-primary);
  border-radius: 8px;
  color: var(--ds2-primary);
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.c-combustibles-ds2__button:hover {
  background-color: var(--ds2-primary);
  color: #FFFFFF;
}

.c-combustibles-ds2__button:hover svg path {
  stroke: #FFFFFF;
}

@media (min-width: 768px) {
  .c-combustibles-ds2 {
    padding: 80px 0;
  }

  /* Swiper handles layout at 768px (slidesPerView: 2) */
  .c-combustibles-ds2__scroll-container {
    overflow: visible;
  }
}

@media (min-width: 1366px) {
  .c-combustibles-ds2 {
    padding: 100px 0;
  }

  .c-combustibles-ds2__container {
    flex-direction: column;
    gap: 60px;
  }

  .c-combustibles-ds2__header {
    max-width: 100%;
    flex: none;
  }

  .c-combustibles-ds2__slider-wrapper {
    flex: none;
    width: 100%;
  }

  /* Swiper handles layout at 1366px (slidesPerView: 3) */
  .c-combustibles-ds2__scroll-container {
    overflow: visible;
  }

  .c-combustibles-ds2__card {
    width: auto;
    /* Swiper controls width */
  }

  .c-combustibles-ds2__title {
    font-size: 50px;
    line-height: 50px;
    letter-spacing: -2px;
  }
}

/* LUBRICANTES Y ESPECIALIDADES DS2 */
.c-lubricantes-ds2 {
  padding: 60px 0;
  background-color: #FFFFFF;
  overflow: hidden;
}

.c-lubricantes-ds2__container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.c-lubricantes-ds2__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 100%;
}

.c-lubricantes-ds2__title {
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.1;
  color: var(--ds2-primary);
  margin: 0;
  letter-spacing: -2px;
}

.c-lubricantes-ds2__subtitle {
  font-family: 'DIN', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: var(--grey-900);
  margin: 0;
}

/* Swiper container — let Swiper control width/overflow */
.c-lubricantes-ds2__slider-wrapper {
  position: relative;
  width: 100%;
  overflow: visible;
}

.c-lubricantes-ds2__scroll-container {
  overflow: visible;
}

/* Card lubricantes — cosmetic only, Swiper controls width */
.c-lubricantes-ds2__card {
  background-color: #FFFFFF;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: auto;
  /* removed fixed height for full view */
  box-sizing: border-box;
}

.c-lubricantes-ds2__card-image {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #F8F8F8;
  /* Light bg to avoid empty white gaps with contain */
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-lubricantes-ds2__card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Don't crop the jugs */
}

.c-lubricantes-ds2__card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.c-lubricantes-ds2__card-title {
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  color: var(--grey-900);
  margin: 0;
  text-transform: uppercase;
}

.c-lubricantes-ds2__card-description {
  font-family: 'DIN', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: var(--grey-900);
  margin: 0;
  min-height: 90px;
}

.c-lubricantes-ds2__extra-text {
  display: none;
  font-family: 'DIN', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: var(--grey-900);
}

.c-lubricantes-ds2__card.is-expanded .c-ds2__ellipsis {
  display: none;
}

.c-lubricantes-ds2__card.is-expanded .c-lubricantes-ds2__extra-text {
  display: inline;
}

.c-lubricantes-ds2__toggle-btn {
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--ds2-primary);
  text-decoration: underline;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  margin-top: 8px;
}

.c-lubricantes-ds2__card-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.c-lubricantes-ds2__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border: 1px solid var(--ds2-primary);
  border-radius: 8px;
  color: var(--ds2-primary);
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.c-lubricantes-ds2__button:hover {
  background-color: var(--ds2-primary);
  color: #FFFFFF;
}

.c-lubricantes-ds2__button:hover svg path {
  stroke: #FFFFFF;
}

.btn--pending {
  cursor: not-allowed;
}

.btn--pending .btn--pending-label {
  display: none;
}

.btn--pending:hover .btn--label {
  display: none;
}

.btn--pending:hover .btn--pending-label {
  display: inline;
}

/* Pagination */
.c-lubricantes-ds2__pagination {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.c-lubricantes-ds2__pagination .c-contacts-ds2__counter {
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: #BDBDBD;
  margin: 0;
}

.c-lubricantes-ds2__pagination .c-contacts-ds2__counter .current-slide {
  color: var(--ds2-primary);
}

.c-lubricantes-ds2__pagination .c-services-ds2__progress {
  width: 120px;
  height: 4px;
  background-color: #E0E0E0;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.c-lubricantes-ds2__pagination .c-services-ds2__bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: var(--ds2-primary);
  width: 25%;
  /* Initial for 4 cards */
  transition: width 0.3s ease;
}

@media (min-width: 768px) {
  .c-lubricantes-ds2 {
    padding: 80px 0;
  }

  /* Swiper handles layout at 768px (slidesPerView: 2) */
  .c-lubricantes-ds2__scroll-container {
    overflow: visible;
  }

  /* .c-lubricantes-ds2__card-description {
    min-height: 70px;
  } */
}

@media (min-width: 1366px) {
  .c-lubricantes-ds2 {
    padding: 100px 0;
  }

  .c-lubricantes-ds2__container {
    gap: 60px;
  }

  /* Swiper handles layout at 1366px (slidesPerView: 4) */
  .c-lubricantes-ds2__scroll-container {
    overflow: visible;
  }

  .c-lubricantes-ds2__card {
    width: auto;
    /* Swiper controls width */
  }

  .c-lubricantes-ds2__pagination {
    display: none;
  }

  .c-lubricantes-ds2__card-description {
    min-height: 90px;
  }
}

/* ==========================================================================
   MINERIA: MAPA INTERACTIVO (RECONSTRUCCION LIMPIA)
   ========================================================================== */

.c-map-interactive-ds2 {
  display: flex;
  background: #FFFFFF;
  overflow: hidden;
  height: 650px;
  margin-bottom: 80px;
}

.c-map-interactive-ds2__sidebar {
  flex: 0 0 400px;
  overflow-y: auto;
  background: white;
}

/* Scrollbar Sidebar */
.c-map-interactive-ds2__sidebar::-webkit-scrollbar {
  width: 4px;
}

.c-map-interactive-ds2__sidebar::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 4px;
  margin: 8px 0;
}

.c-map-interactive-ds2__sidebar::-webkit-scrollbar-thumb {
  background: #0451dd;
  border-radius: 4px;
}

.c-map-interactive-ds2__map-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #F1F1F1;
  cursor: grab;
  border-radius: 8px;
  margin-left: 15px;
}

.c-map-interactive-ds2__map-container:active {
  cursor: grabbing;
}

.c-map-interactive-ds2__svg-wrapper {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
  transition: transform 0.15s ease-out;
}

.c-map-interactive-ds2__svg-wrapper>svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Estilos para las provincias dentro del SVG */
#svg-map-wrapper svg path {
  fill: #F1F1F1;
  stroke: #BDBDBD;
  stroke-opacity: 0.8;
  stroke-linejoin: round;
  /* Esto hace que el relleno se dibuje encima del borde, 
     evitando que los bordes internos se solapen feo */
  paint-order: stroke fill;
  stroke-width: 3;
  transition: fill 0.3s ease;
}

#svg-map-wrapper .c-map-pin svg path {
  fill: #0451DD;
  stroke: transparent;
  stroke-width: 0.5;
  transition: fill 0.3s ease;
}

#svg-map-wrapper .c-map-pin__icon.terminal svg path {
  fill: #002D57;
  stroke: transparent;
  stroke-width: 0.5;
  transition: fill 0.3s ease;
}



#svg-map-wrapper svg path.is-active-province {
  fill: #647186 !important;
}

/* PINES */
.c-map-pin {
  position: absolute;
  background: #FFFFFF;
  border: 1px solid #FFFFFF;
  border-radius: 2px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  padding: 0;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0;
  /* Ancla el CENTRO del ícono (40px) en el punto del mapa.
     El texto se expande hacia la derecha sin mover el ícono. */
  transform: translate(-20px, -50%);
  transition: all 0.2s ease;
}

.c-map-pin.is-active {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0px 8px 10px 0px rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  padding-right: 16px;
  gap: 16px;
  z-index: 20;
}

.c-map-pin__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* Desktop: el ícono activo crece a 47×47 */
.c-map-pin.is-active .c-map-pin__icon {
  width: 47px;
  height: 47px;
  background: #0451DD;
}

/* Compensa el crecimiento 40→47px en desktop para que el centro del ícono
   siga clavado exactamente en el punto del mapa. */
.c-map-pin.is-active {
  transform: translate(-23.5px, -50%);
}

/* Mobile / Tablet: el ícono activo se queda en 40×40, sin crecer.
   Se restaura también el transform al de inactivo (sin compensación). */
@media (max-width: 1439px) {
  .c-map-pin.is-active .c-map-pin__icon {
    width: 40px;
    height: 40px;
    background: #0451DD;
  }

  .c-map-pin.is-active {
    transform: translate(-20px, -50%);
  }
}

.c-map-pin.is-active .c-map-pin__icon svg {
  filter: brightness(0) invert(1);
}

.c-map-pin__text {
  text-align: left;
  display: none;
  /* Only visible when active */
  flex-direction: column;
  justify-content: center;
}

.c-map-pin.is-active .c-map-pin__text {
  display: flex;
}

.c-map-pin__title {
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  color: #002D57;
  white-space: nowrap;
}

.c-map-pin__subtitle {
  font-family: 'DIN', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  color: #616161;
}

/* ACORDEÓN */
.c-map-accordion {
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 8px;
}

.c-map-accordion__item {
  border: 1px solid #F5F5F5;
  background: #FFFFFF;
  border-radius: 8px;
  overflow: clip;
}

.c-map-accordion__item.is-active {
  background: #FAFAFA;
}

.c-map-accordion__header {
  width: 100%;
  padding: 16px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
}

.c-map-accordion__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.c-map-accordion__text {
  font-family: 'DIN', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  color: var(--ds2-primary);
}

.c-map-accordion__subtext {
  font-family: 'DIN', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  color: #616161;
}

.c-map-accordion__toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 6L8 10L12 6" stroke="%230451DD" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.c-map-accordion__item.is-active .c-map-accordion__toggle {
  transform: rotate(180deg);
}

.c-map-accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: transparent;
}

.c-map-accordion__item.is-active .c-map-accordion__content {
  max-height: 800px;
}

.c-map-accordion__info {
  padding: 0 20px 20px;
  padding-left: 16px;
}

.c-map-accordion__info-title {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 8px;
  color: #0451DD;
}

.c-map-accordion__info-block {
  padding-left: 24px;
  font-size: 14px;
}

.c-map-accordion__info-block .c-map-accordion__info-label {
  display: block;
  font-weight: 500;
}

.c-map-accordion__info-block .c-map-accordion__info-value {
  font-size: 14px;
  line-height: 18px;
}

.c-map-accordion__info-label {
  color: #212121;
  font-size: 12px;
}

.c-map-accordion__info-block .c-map-accordion__info-value ul,
.c-map-accordion__info-block .c-map-accordion__info-value ul li {
  font-size: 14px;
  line-height: 18px;
  color: #616161;
  padding-top: 2px;
  list-style: disc;
}

/* LEYENDA */
.c-map-legend {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.05);
  z-index: 30;

  display: none;
}

.c-map-legend__title {
  font-weight: 400;
  font-size: 14px;
  display: block;
  color: #647186;
  margin-bottom: 12px;
}

.c-map-legend__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.c-map-legend__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.c-map-legend__icon {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  border-radius: 2px 0 0 2px;
  border: 0.5px solid var(--color-grey-scale-0, #FFF);
  background: var(--color-grey-scale-0, #FFF);
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.07);
  align-items: center;
}

.c-map-legend__icon svg {
  width: 24px;
  height: 24px;
  aspect-ratio: 1/1;
}

.c-map-legend__text.ypfdirecto {
  color: #0451DD;
}

.c-map-legend__text {
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
}

@media (min-width: 1366px) {
  .c-map-legend {
    display: block;
  }
}

/* =========================================================
   MAPA INTERACTIVO - RESPONSIVE (MOBILE / TABLET)
   ========================================================= */

.c-map-interactive-ds2--mobile {
  flex-direction: column !important;
  gap: 16px;
  width: 100%;
  padding: 0 16px;
  /* Para que el mapa no toque los bordes del dispositivo */
}

.c-map-interactive-ds2--mobile .c-map-interactive-ds2__map-container {
  width: 100%;
  height: 450px;
  /* Ventana fija: el mapa es más alto y se puede panear */
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  background: var(--color-grey-scale-off-white, #FAFAFA);
  cursor: grab;
  touch-action: none;
  /* JS maneja el pan manual, se previene scroll nativo del body */
}

/* Tablet: ventana del mapa más alta */
@media (min-width: 768px) and (max-width: 1439px) {
  .c-map-interactive-ds2--mobile .c-map-interactive-ds2__map-container {
    height: 700px;
  }
}

.c-map-interactive-ds2--mobile .c-map-interactive-ds2__slider-container {
  width: 100%;
  position: relative;
}

.c-map-referencia-container .c-map-legend__list {
  display: flex;
  flex-direction: row;
  gap: 20px;

}

.c-map-referencia-container .c-map-legend__text {
  font-size: 12px;
}

@media (max-width: 1439px) {
  .c-distribution-ds2__text-block {
    max-width: 100%;
  }
}

@media (min-width: 768px) {
  .c-map-referencia-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: end;
  }

  .c-map-referencia-container p {
    width: 50%;
    margin-bottom: 0;
  }

  .c-map-referencia-container div {
    width: 40%;
    margin-left: auto;
  }

  .c-map-legend-mobile {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: end;
  }

  .c-map-legend-mobile .c-map-legend__title {
    margin-bottom: 0;
  }
}

@media (min-width: 1366px) {
  .c-map-legend-mobile {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1365px) {
  .c-map-interactive-ds2--mobile {
    /* max-width: 760px; */
    margin: 0 auto;
    margin-bottom: 50px !important;
  }

  .c-map-interactive-ds2,
  .c-map-interactive-ds2--mobile .c-map-interactive-ds2__map-container {
    height: 700px;
  }
}

@media (min-width: 0) and (max-width: 1365px) {
  .c-map-interactive-ds2 {
    overflow: visible;
  }

  .c-map-interactive-ds2__map-container {
    overflow: visible;
  }

  #mineria-map-carousel {
    position: absolute;
    top: -90px;
    left: 0;
    width: 100%;

    overflow: visible;
  }
}

#mineria-map-carousel .swiper-slide {
  height: auto;
  display: flex;
}

.c-map-interactive-ds2--mobile .c-map-accordion__item {
  width: 100%;
  height: 100%;
  background: #FFF;
  border: 1px solid #E6E8ED;
  border-radius: 8px;
  margin-bottom: 0;
  display: flex;
  align-items: stretch;
}

.c-map-interactive-ds2--mobile .c-map-accordion__header {
  padding: 24px;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.c-map-interactive-ds2--mobile .c-map-accordion__item.is-active {
  background: #FAFAFA;
}

.c-map-interactive-ds2--mobile .c-map-accordion__item.is-active .c-map-accordion__text {
  color: #0451DD;
}

/* Slider Controls — alineación y colores según Figma node 5584-10016 */
.c-map-slider-controls {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 44px;
  margin-top: 24px;
}

/* Contador: "01 / 10" */
.c-map-pagination {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: 'DIN', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
}

/* Número actual (01) */
.c-map-pagination .current-slide {
  font-weight: 400;
  color: #212121;
}

/* Separador "/" */
.c-map-pagination .c-map-pagination__sep {
  color: #0451DD;
  font-weight: bold;
  margin: 0 4px;
}

/* Total (10) */
.c-map-pagination .c-map-pagination__total {
  color: #BDBDBD;
}

/* Grupo de flechas */
.c-map-arrows {
  display: flex;
  gap: 12px;
}

/* Botones prev/next */
.c-map-arrows button {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid #0451DD;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: static;
  margin-top: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.c-map-arrows button:hover {
  background: #F4F6F9;
}

/* Botón deshabilitado: border y flecha en gris */
.c-map-arrows button.swiper-button-disabled {
  border-color: #E0E0E0;
  cursor: not-allowed;
  opacity: 1;
  /* Sin opacity, solo cambia el color */
}

.c-map-arrows button.swiper-button-disabled svg path {
  fill: #BDBDBD;
}

.c-map-arrows button::after {
  display: none;
  /* Disable default swiper arrows */
}


/* Mobile legends inside map */
.c-map-interactive-ds2--mobile .c-map-legend {
  padding: 16px;
  bottom: 12px;
  right: 12px;
  border-radius: 8px;
  transform: scale(0.85);
  /* shrink legend a bit for mobile */
  transform-origin: bottom right;
}

/* Visibility Overrides */
@media (max-width: 1365px) {
  .only-desktop {
    display: none !important;
  }
}

@media (min-width: 1366px) {
  .only-mobile-tablet {
    display: none !important;
  }
}

.c-contacts-ds2__btn--mineria-map {
  width: 48px !important;
  height: 48px !important;
  border-radius: 8px !important;
  border: 1px solid #0451DD !important;
  background: white !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  cursor: pointer !important;
  position: relative !important;
  margin-top: 0 !important;
  left: auto !important;
  right: auto !important;
}

.c-contacts-ds2__btn--mineria-map::after {
  display: none !important;
}

.c-contacts-ds2__btn--mineria-map.swiper-button-disabled svg path {
  fill: #BDBDBD !important;
}

.c-contacts-ds2__btn--mineria-map.swiper-button-disabled {
  border-color: #BDBDBD !important;
}

.c-map-interactive-ds2--mobile .c-map-interactive-ds2__map-container {
  margin-left: 0;
  /* Reset desktop left margin */
}

/* SVG wrapper: el JS controla width/height/transform para que el mapa sea más alto que el container */
.c-map-interactive-ds2--mobile .c-map-interactive-ds2__svg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  /* width y height los setea el JS dinámicamente */
  transform-origin: 0 0;
}

.c-map-interactive-ds2--mobile .c-map-interactive-ds2__svg-wrapper>svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Explicit map aesthetics */
/* Card aesthetics when overlapping map */
.c-map-interactive-ds2--mobile .c-map-accordion__item {
  background: #FFF;
  border-radius: 8px;
  border: 1px solid #E6E8ED;
}

/* ------------------------------------------- */

/* Explicit Mobile map boundaries — misma estética que desktop.
   IMPORTANTE: fill: #F1F1F1 (no transparent) para que paint-order funcione
   correctamente y los bordes entre provincias adyacentes no aparezcan dobles. */
.c-map-interactive-ds2--mobile .c-map-interactive-ds2__svg-wrapper svg path {
  fill: #F1F1F1 !important;
  stroke: #BDBDBD !important;
  stroke-width: 2 !important;
  stroke-opacity: 0.85 !important;
  stroke-linejoin: round !important;
  paint-order: stroke fill !important;
}

.c-map-interactive-ds2--mobile .c-map-interactive-ds2__svg-wrapper svg path.is-active-province {
  fill: #647186 !important;
  stroke: #000 !important;
  transition: fill 0.3s ease;
}

.c-map-interactive-ds2--mobile .c-map-interactive-ds2__svg-wrapper .c-map-pin svg path {
  fill: #0451DD !important;
  stroke: none !important;
}

.c-map-interactive-ds2--mobile .c-map-interactive-ds2__svg-wrapper .c-map-pin__icon.terminal svg path {
  fill: #002D57 !important;
  stroke: none !important;
}