/* ====== Cards ====== */
.boletin-card{
  border: 1px solid rgba(0,0,0,.125);
  border-radius: .75rem;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
  transition: transform .15s ease, box-shadow .15s ease;
  position: relative;
}
.boletin-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.12);
}

/* Imagen */
.boletin-img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Texto */
.boletin-title{ font-size: 1.1rem; margin: .25rem 0; }
.boletin-desc{ color: #6c757d; font-size: .95rem; }

/* Botón flotante */
.boletin-check-wrap{
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 5;
}

/* Botón Bootstrap cuando está checked */
.btn-check:checked + label.btn{
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}


.boletines-wrapper{
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.boletines-hero{
  background: linear-gradient(135deg, #1074c782, #1074c782);
  color: #000;
  padding: 1.75rem;
  border-radius: .5rem;
}

.boletines-hero h1{
  margin: 0 0 .25rem;
}

.boletines-hero p{
  margin: 0;
  opacity: .9;
}


/**************/
.card {
  padding: 12px;
}

.newsletter--active label, .btn-check:checked + label.btn {
  background-color: var(--pa-color-primary) !important;
  border: 0px;
  font-weight: 500;
}

.newsletter--active .card {
    border: 2px solid var(--pa-color-primary) !important;
    border-radius: 5px !important;
}

h5.card-title {
    color: var(--pa-color-primary);
}

.newsletter--inactive label, .newsletter--inactive label:hover {
    background-color: #fff;
    border: 1px solid var(--pa-color-primary)  !important;
    border-radius: 0.5rem !important;
    color: #000 !important;
}

.newsletter--inactive .card {
    border: 2px solid #e9e9e9 !important;
}

@media screen and (max-width: 800px){
  .boletines-wrapper {
    padding: 0;
    margin-top: 20px;
  }

  .card-footer {
    text-align: center !important;
  }

  .newsletter--inactive .card {
    border: 2px solid #e9e9e9 !important;
    border-radius: 5px !important;
  }
}



.boletin-descripcion {
  color: #454b52;
  font-size: 0.92rem;
  line-height: 1.55;
}

.boletin-descripcion p {
  margin-bottom: 0.65rem;
}

.boletin-descripcion p:last-child {
  margin-bottom: 0;
}

.boletin-descripcion strong {
  color: #252a30;
  font-weight: 600;
}

.boletin-descripcion ul {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
}

.boletin-descripcion li {
  margin-bottom: 0.25rem;
}


.boletines-hero {
  position: relative;
  overflow: hidden;

  min-height: 310px;
  margin-bottom: 1.5rem;
  padding: 2.5rem 3rem;

  display: flex;
  align-items: center;

  background-image:
    linear-gradient(
      90deg,
      rgba(0, 67, 105, 0.96) 0%,
      rgba(0, 83, 128, 0.90) 35%,
      rgba(0, 83, 128, 0.55) 58%,
      rgba(0, 83, 128, 0.10) 100%
    ),
    url("../images/boletines-hero.png");

  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;

  border-radius: 16px;
}

.boletines-hero__content {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 650px;

  color: #fff;
}

.boletines-hero h1 {
  margin: 0 0 0.5rem;

  color: #fff;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
}

.boletines-hero__lead {
  margin-bottom: 0.5rem;

  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

.boletines-hero__text {
  max-width: 580px;
  margin-bottom: 1.2rem;

  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.55;
}

.boletines-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 52px;
  height: 52px;
  margin-bottom: 1rem;

  color: #0074aa;
  background: #fff;

  border-radius: 50%;

  font-size: 1.4rem;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.boletines-beneficios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;

  font-size: 0.88rem;
  font-weight: 500;
}

.boletines-beneficios span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.boletines-beneficios i {
  color: #fff;
}

@media (max-width: 767.98px) {
  .boletines-hero {
    min-height: auto;
    padding: 2rem 1.4rem;
    background-image: linear-gradient( rgba(0, 67, 105, 0.21), rgba(0, 67, 105, 0.92) ), url("../images/boletines-hero.png");
    background-position: 69% center;
  }
}


  .boletines-hero__content {
    max-width: 100%;
  }

  .boletines-hero h1 {
    font-size: 2rem;
  }

  .boletines-hero__lead {
    font-size: 1.1rem;
  }

  .boletines-beneficios {
    flex-direction: column;
    gap: 0.45rem;
  }
}

.boletines-confirm-modal {
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgb(0 0 0 / 18%);
}

.boletines-confirm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 72px;
  height: 72px;

  color: #fff;
  background: #198754;
  border-radius: 50%;

  font-size: 2rem;

  box-shadow: 0 8px 25px rgb(25 135 84 / 25%);
}

.boletines-confirm-modal h3 {
  color: #202124;
  font-size: 1.45rem;
}

.boletines-confirm-modal p {
  max-width: 390px;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.55;
}

.boletines-confirm-modal .btn-primary {
  min-width: 140px;
}


.newsletter--guest .boletin-card {
  border-color: #e2e6ea;
}

.newsletter--guest .boletin-card:hover {
  border-color: #a8cfe2;
}


.boletines-login-box {
  padding: 1.5rem 2rem;
  background: #f4f9fc;
  border: 1px solid #d4e8f3;
  border-radius: 14px;
}

.boletines-login-box__content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.boletines-login-box__icon {
  display: flex;
  flex: 0 0 58px;
  align-items: center;
  justify-content: center;

  width: 58px;
  height: 58px;

  color: #0074aa;
  background: #fff;

  border-radius: 50%;
  font-size: 1.45rem;

  box-shadow: 0 4px 15px rgb(0 0 0 / 8%);
}

.boletines-login-box__text h3 {
  margin: 0 0 0.35rem;
  color: #242424;
  font-size: 1.1rem;
  font-weight: 700;
}

.boletines-login-box__text p {
  margin: 0;
  color: #616970;
  line-height: 1.5;
}

.boletines-login-btn {
  margin-left: 74px;
}

@media (max-width: 767.98px) {

  .boletines-login-box {
    padding: 1.25rem;
    text-align: center;
  }

  .boletines-login-box__content {
    flex-direction: column;
  }

  .boletines-login-btn {
    display: block;
    width: 100%;
    margin-left: 0;
  }
}


/* ==========================================================================
   MODAL DE CONFIRMACIÓN
   ========================================================================== */

.boletines-confirm-modal {
  position: fixed;

  top: 50%;
  left: 50%;

  z-index: 1055;

  width: calc(100% - 30px);
  max-width: 480px;

  margin: 0;

  transform: translate(-50%, -50%) scale(0.95);

  opacity: 0;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;

  border: 0;
  border-radius: 20px;

  box-shadow:
    0 20px 60px rgb(0 0 0 / 20%);
}

#boletinesConfirmModal.show .boletines-confirm-modal {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}


.boletines-confirm-icon {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 70px;
  height: 70px;

  margin-bottom: 1rem;

  color: #fff;

  background: #198754;

  border-radius: 50%;

  font-size: 2rem;

  box-shadow:
    0 8px 25px rgb(25 135 84 / 25%);
}


#boletinesConfirmModal {
  position: fixed;

  top: 0;
  left: 0;

  z-index: 1055;

  width: 100%;
  height: 100%;

  overflow-x: hidden;
  overflow-y: auto;

  outline: 0;

  opacity: 0;

  visibility: hidden;

  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}


#boletinesConfirmModal.show {
  opacity: 1;
  visibility: visible;
}


.boletines-modal-backdrop {
  position: fixed;

  top: 0;
  left: 0;

  z-index: 1050;

  width: 100vw;
  height: 100vh;

  background: rgb(0 0 0 / 55%);

  opacity: 1;
}


body.boletines-modal-open {
  overflow: hidden;
}


.boletines-confirm-modal h3 {
  color: #212529;

  font-size: 1.4rem;
}


.boletines-confirm-modal p {
  color: #6c757d;

  line-height: 1.55;
}


.boletines-confirm-modal .btn {
  min-width: 130px;
}


.newsletter--guest .boletin-card
 {
    border-color: #7b8793 !important;
    background-color: #1929e303 !important;
}