/* ===== Tokens ===== */
:root {
  --size-space-0: 0px;
  --size-space-16: 16px;
  --size-space-24: 24px;
  --border-radius-l: 16px;
  --border-radius-none: 0px;
  --border-width-l: 2px;
  --Color-Border-General-1: #C8D9D0;
  --Color-Surface-General-1: #FFF;
  --Color-Content-General-1: #2C2C2C;
  --Color-Content-Interactive-Active: #2F6852;
}

/* ===== Cabecera del mÃ³dulo ===== */
.ib-prep-hogar-header {
  text-align: center;
  margin-bottom: 24px;
}

.ib-prep-hogar-title {
  /* Title/S - base mobile (360px), spec Figma: 328×64 */
  width: 328px;
  height: auto;
  min-height: 64px;
  margin: 0 auto;
  color: var(--Color-Content-General-1, #2C2C2C);
  text-align: center;
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: IberPangea, Arial, sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 32px; /* 133.333% */
}

/* ===== Contenedor de las cards (mobile: columna) ===== */
.ib-prep-hogar-cards-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 0 auto 60px auto;
}

/* ===== CARD (spec exacta de Figma para 360px) ===== */
.ib-prep-hogar-card {
  display: flex;
  width: 328px;
  height: 380px;
  padding: var(--size-space-0);
  flex-direction: column;
  align-items: center;
  gap: var(--size-space-0);
  border-radius: var(--border-radius-l);
  border: var(--border-width-l) solid var(--Color-Border-General-1);
  background: var(--Color-Surface-General-1);
  overflow: hidden;
  font-family: Arial, sans-serif;
}
/* ===== IMAGEN / TOP ===== */
.ib-prep-hogar-card-top {
  display: flex;
  width: 328px;
  height: 200px;
  align-self: stretch;
  padding: var(--size-space-0);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--size-space-0);
  border-radius: var(--border-radius-l) var(--border-radius-l) var(--border-radius-none) var(--border-radius-none);
  position: relative;
  overflow: hidden;
}

.ib-prep-hogar-card-top--alta {
  background-image: url('/documents/20122/31786666/prepara_tu_hogar_casa.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ib-prep-hogar-card-top--potencia {
  background-image: url('/documents/20122/31786666/prepara_tu_hogar_energia.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ib-prep-hogar-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== CONTENIDO CENTRAL ===== */
.ib-prep-hogar-content {
  display: flex;
  padding: var(--size-space-16);
  flex-direction: column;
  align-items: center;
  gap: 12px;
  align-self: stretch;
}

.ib-prep-hogar-title-subtitle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.ib-prep-hogar-card-title {
  align-self: stretch;
  height: 32px;
  margin: 0;
  color: var(--Color-Content-General-1, #2C2C2C);
  text-align: center;
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: IberPangea, Arial, sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 32px; /* 133.333% */
}

.ib-prep-hogar-card-subtitle {
  /* Body/SmBold/M */
  align-self: stretch;
  width: 296px;
  height: 44px;
  margin: 0;
  color: var(--Color-Content-General-1, #2C2C2C);
  text-align: center;
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: "IberPangea Text", Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 22px; /* 137.5% */
}

/* ===== BOTTOM (links) ===== */
.ib-prep-hogar-card-bottom {
  display: flex;
  padding: var(--size-space-16) var(--size-space-16) var(--size-space-24) var(--size-space-16);
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  align-self: stretch;
}

.ib-prep-hogar-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: var(--Color-Content-Interactive-Active, #2F6852);
  font-family: "IberPangea Text", Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

.ib-prep-hogar-link svg {
  flex-shrink: 0;
}

@media (min-width: 576px) {

  .ib-prep-hogar-header {
    padding-left: 42px;
    padding-right: 42px;
    box-sizing: border-box;
  }
  
  .ib-prep-hogar-cards-wrapper {
    padding-left: 42px;
    padding-right: 42px;
    box-sizing: border-box;
    width: 100%;
  }
  
  .ib-prep-hogar-title {
    width: 492px;
    height: 32px;
  }

  .ib-prep-hogar-card {
    width: 492px;
    height: 380px;
    align-self: stretch;
  }

  .ib-prep-hogar-card-top {
    width: 492px;
    height: 200px;
    align-self: stretch;
  }

  .ib-prep-hogar-card-title {
    width: 460px;
    height: 32px;
  }

  .ib-prep-hogar-card-subtitle {
    width: 460px;
    height: 44px;
  }

  .ib-prep-hogar-card-bottom {
    width: 492px;
    height: 60px;
  }
}

/* ============================================================
   BREAKPOINT 768px
   ============================================================ */
@media (min-width: 768px) {
  .ib-prep-hogar-title {
    width: 672px;
    height: 32px;
    margin: 0 auto 32px;
  }

  .ib-prep-hogar-cards-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }

  .ib-prep-hogar-card {
    width: 556px;
    height: 380px;
    align-self: stretch;
  }

  .ib-prep-hogar-card-top {
    width: 556px;
    height: 200px;
    align-self: stretch;
  }

  .ib-prep-hogar-card-title {
    width: 524px;
    height: 32px;
  }

  .ib-prep-hogar-card-subtitle {
    width: 524px;
    height: 44px;
  }

  .ib-prep-hogar-card-bottom {
    width: 556px;
    height: 60px;
  }
}

/* ============================================================
   BREAKPOINT 992px â€” Figma (Cards 402Ã—380, Title 828Ã—40)
   ============================================================ */
@media (min-width: 992px) and (max-width: 1199px) {

  .ib-prep-hogar-header {
    max-width: 828px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 32px;
  }

  .ib-prep-hogar-title {
    width: 100%;
    height: 40px;
    margin: 0;
  }

  .ib-prep-hogar-card {
    width: 402px;
    height: 380px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .ib-prep-hogar-card-top {
    width: 402px;
    height: 200px;
    flex-shrink: 0;
  }

  .ib-prep-hogar-content {
    padding: 16px;
    gap: 12px;
    flex-grow: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }

  .ib-prep-hogar-card-title {
    width: 370px;
    height: 32px;
    text-align: center;
    margin: 0;
    line-height: 32px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .ib-prep-hogar-card-subtitle {
    width: 370px;
    height: 44px;
    text-align: center;
    margin: 0;
    line-height: 22px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .ib-prep-hogar-card-bottom {
    width: 402px;
    padding: 16px 16px 24px 16px;
    flex-shrink: 0;
  }

  .ib-prep-hogar-link {
    width: 328px;
    height: 20px;
    box-sizing: border-box;
    justify-content: center;
  }
}/* ============================================================
   BREAKPOINT 1200px â€” Figma (Cards 316Ã—380, Title 996Ã—40)
   ============================================================ */
@media (min-width: 1200px) and (max-width: 1919px) {

  /* ===== CABECERA ===== */
  .ib-prep-hogar-header {
    max-width: 996px;
    margin: 0 auto;
    text-align: center;
    display: block;
    margin-bottom: 32px;
  }

  .ib-prep-hogar-title {
    width: 100%;
    height: 40px;
    margin: 0;
    color: var(--Color-Content-General-1, #2C2C2C);
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: IberPangea;
    font-size: 32px;
    font-weight: 600;
    line-height: 40px;
  }

  /* ===== WRAPPER ===== */
  .ib-prep-hogar-cards-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin-bottom: 32px;
  }

  /* ===== CARD ===== */
  .ib-prep-hogar-card {
    width: 316px;
    height: 380px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .ib-prep-hogar-card-top {
    width: 316px;
    height: 200px;
  }

  /* ===== CONTENT ===== */
  .ib-prep-hogar-content {
    padding: 16px;
    gap: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .ib-prep-hogar-card-title {
    width: 285px; /* 316 - 16 - 16 */
    height: 32px;
    text-align: center;
    margin: 0;
    line-height: 32px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .ib-prep-hogar-card-subtitle {
    width: 284px; /* 316 - 16 - 16 */
    height: 44px;
    text-align: center;
    margin: 0;
    line-height: 22px;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* ===== BOTTOM ===== */
  .ib-prep-hogar-card-bottom {
    width: 316px;
    padding: 16px 16px 24px 16px;
    flex-shrink: 0;
  }
}


/* ============================================================
   BREAKPOINT 1920px â€” Cards Figma (408 Ã— 380)
   ============================================================ */
@media (min-width: 1920px) {

  .ib-prep-hogar-title {
    width: 1272px;
    height: 40px;
    margin: 0 auto;
    color: var(--Color-Content-General-1, #2C2C2C);
    text-align: center;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: IberPangea, Arial, sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: 40px; /* 125% */
  }

  .ib-prep-hogar-cards-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px;                 /* Figma usa mÃ¡s separaciÃ³n en desktop */
    justify-content: center;
  }

  /* ===== CARD ===== */
  .ib-prep-hogar-card {
    display: flex;
    flex-direction: column;
    width: 408px;              /* medida exacta Figma */
    height: 380px;             /* medida exacta Figma */
    padding: 0;
    align-items: center;
    gap: 0;
    border-radius: var(--border-radius-l, 16px);
    border: var(--border-width-l, 2px) solid var(--Color-Border-General-1, #C8D9D0);
    background: var(--Color-Surface-General-1, #FFF);
    overflow: hidden;
  }

  /* ===== TOP ===== */
  .ib-prep-hogar-card-top {
    width: 408px;
    height: 200px;
    flex-shrink: 0;
  }

  /* ===== CONTENT ===== */
  .ib-prep-hogar-content {
    padding: 16px;
    gap: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .ib-prep-hogar-card-title {
    width: 376px;              /* 408 - 16 - 16 */
    height: 32px;
    margin: 0;
    text-align: center;
    line-height: 32px; /* 133.333% */
  }

  .ib-prep-hogar-card-subtitle {
    width: 376px;              /* 408 - 16 - 16 */
    height: 44px;
    margin: 0;
    text-align: center;
    line-height: 22px; /* 137.5% */
  }

  /* ===== BOTTOM ===== */
  .ib-prep-hogar-card-bottom {
    width: 408px;
    padding: 16px 16px 24px 16px;
    flex-shrink: 0;
  }
}