/* ==========================================
   RESET & BASE
   ========================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'IberPangea Text', 'Segoe UI', Arial, sans-serif;
  color: #2c2c2c;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ==========================================
   ESTILOS TIPOGRÁFICOS (Design Tokens)
   ========================================== */

/* Title/S — 24px/32px IberPangea SmBold */
.title_s {
  font-family: 'IberPangea', 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0;
}

/* Title/M — 32px/40px IberPangea SmBold */
.title_m {
  font-family: 'IberPangea', 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: 0;
}

/* Body/Regular/M — 16px/22px IberPangea Text Regular */
.body_regular_m {
  font-family: 'IberPangea Text', 'Segoe UI', Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0;
}

/* Button/Main M — 16px/24px IberPangea Text SmBold */
.button_main_m {
  font-family: 'IberPangea Text', 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
}

/* ==========================================
   MODULE CONTAINER
   ========================================== */
.modo-estable-module {
  width: 100%;
  background: #fff;
}

.modo-estable-module__inner {
  width: 100%;
  max-width: 1272px;
  margin: 0 auto;
}

/* ==========================================
   HEADER
   ========================================== */
.modo-estable-module__header {
  text-align: center;
  padding: 40px 16px 0;
}

.modo-estable-module__title {
  color: #2c2c2c;
  margin-bottom: 16px;
  padding-bottom: 0rem;
}

.modo-estable-module__subtitle {
  color: #2c2c2c;
  margin-bottom: 0rem;
}

/* ==========================================
   CARDS – ESTILOS COMPARTIDOS
   ========================================== */
.grid-card {
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.grid-card--1 { background-color: #f9f9f9; }
.grid-card--2 { background-color: #dcebe1; }
.grid-card--3 { background-color: #fff5ec; }

.grid-card__image {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.grid-card__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.grid-card__text-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.grid-card__card-title {
  color: #2c2c2c;
  margin-bottom: 0rem;
  padding-bottom: 0rem;
}

.grid-card__description {
  color: #2c2c2c;
}

.grid-card__meta {
  color: rgba(71, 71, 71, 0.8);
}

/* ==========================================
   CAROUSEL (Mobile / Tablet ≤991px)
   ========================================== */
.modo-estable-module__carousel-wrapper {
  padding: 24px 16px 20px;
  overflow: hidden;
}

.modo-estable-module__carousel {
  overflow: visible;
}

.modo-estable-module__carousel .swiper-slide {
  width: 304px;
  height: auto;
}

.modo-estable-module__carousel .swiper-slide .grid-card {
  height: 100%;
}

.modo-estable-module__carousel .grid-card__image {
  height: 180px;
}

/* ---- Controles del carrusel ---- */
.modo-estable-module__carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

/* Flechas prev / next */
.modo-estable-module__carousel-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #bfbfbf;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s;
  flex-shrink: 0;
  padding: 0;
  color: #bfbfbf;
}

.modo-estable-module__carousel-btn:hover {
  border-color: #2f6852;
  color: #2f6852;
}

.modo-estable-module__carousel-btn svg {
  width: 10px;
  height: 16px;
}

/* ---- Dots: contenedor pill con borde ---- */
.modo-estable-module__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #fff;
  border: 1px solid #c8d9d0;
  border-radius: 100px;
  padding: 4px;
  height: 32px;
  flex-shrink: 0;
  width: auto !important;
}

/* Área clicable del dot (24x24) */
.modo-estable-module__dot {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* Círculo del dot — inactivo: solo borde */
.modo-estable-module__dot span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #2f6852;
  background: transparent;
  transition: background-color 0.3s, border-color 0.3s;
}

/* Dot activo — relleno verde */
.modo-estable-module__dot.is-active span {
  background-color: #007f33;
  border-color: #007f33;
}

/* ==========================================
   DESKTOP GRID (≥992px) – oculto en mobile
   ========================================== */
.modo-estable-module__grid-desktop {
  display: none;
}

/* ==========================================
   BOTÓN CTA
   ========================================== */
.modo-estable-module__cta-wrapper {
  padding: 16px 16px 40px;
}

.modo-estable-module__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 328px;
  height: 56px;
  margin: 0 auto;
  background-color: #2f6852;
  color: #fffaf6;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s;
}

.modo-estable-module__cta:hover {
  background-color: #245542;
}

/* ==========================================
   RESPONSIVE – 576px
   ========================================== */
@media (min-width: 576px) {
  .modo-estable-module__carousel-wrapper {
    padding: 24px 48px 20px;
  }

  .modo-estable-module__header {
    padding: 40px 48px 0;
  }

  .modo-estable-module__cta-wrapper {
    padding: 16px 48px 40px;
  }
}

/* ==========================================
   RESPONSIVE – 992px (Desktop grid)
   ========================================== */
@media (min-width: 992px) {
  .modo-estable-module__title {
    font-size: 32px;
    line-height: 40px;
  }

  .modo-estable-module__header {
    padding: 32px 82px 0;
  }

  .modo-estable-module__carousel-wrapper {
    display: none;
  }

  .modo-estable-module__grid-desktop {
    display: grid;
    grid-template-columns: 1fr 316px;
    gap: 24px;
    padding: 24px 82px 20px;
  }

  .grid-desktop__left {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .grid-card--horizontal {
    flex-direction: row;
    align-items: stretch;
  }

  .grid-card--horizontal .grid-card__image {
    width: 208px;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    flex-shrink: 0;
  }

  .grid-card--horizontal .grid-card__content {
    flex: 1;
    justify-content: center;
  }

  .grid-card--reversed {
    flex-direction: row-reverse;
  }

  .grid-desktop__right .grid-card {
    height: 100%;
  }

  .grid-desktop__right .grid-card__image {
    height: 180px;
  }

  .modo-estable-module__cta-wrapper {
    padding: 16px 82px 40px;
  }
}

/* ==========================================
   RESPONSIVE – 1200px
   ========================================== */
@media (min-width: 1200px) {
  .modo-estable-module__header {
    padding: 32px 102px 0;
  }

  .modo-estable-module__grid-desktop {
    grid-template-columns: 1fr 316px;
    padding: 24px 102px 20px;
  }

  .grid-card--horizontal .grid-card__image {
    width: 292px;
  }

  .modo-estable-module__cta-wrapper {
    padding: 16px 102px 40px;
  }
}

/* ==========================================
   RESPONSIVE – 1400px+ (wide desktop)
   ========================================== */
@media (min-width: 1400px) {
  .modo-estable-module__header {
    padding: 32px 0 0;
  }

  .modo-estable-module__grid-desktop {
    grid-template-columns: 1fr 408px;
    padding: 24px 0 20px;
    max-width: 1272px;
    margin: 0 auto;
  }

  .grid-card--horizontal .grid-card__image {
    width: 268px;
    height: 169px;
  }

  .modo-estable-module__cta-wrapper {
    padding: 16px 0 40px;
  }
}


#contenedorModuloCondicionesGen .pdfCondiciones:last-of-type {
    display: none !important;
}

#contenedorModuloCondicionesGen {
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
}

#contenedorModuloCondicionesGen .textoCondiciones{
    margin-bottom: 15px !important;
}
