/* =========================================================
   DORSEY REINFORCEMENT
   PORTAL DE TRANSPARENCIA

   PALETA OFICIAL
   #0a1128
   #001f54
   #034078
   #1282a2
   #fefcfb

   IMPORTANTE:
   EL HERO SE CONTROLA DESDE:
   assets/css/hero-global.css

   SIN ANIMACIONES DE ENTRADA.
   SOLO EFECTOS HOVER.
   ========================================================= */


/* =========================================================
   SECCIÓN PRINCIPAL
   ========================================================= */

.section--transparencia {
  width: 100%;
  padding: 104px 0 112px;

  background:
    linear-gradient(
      180deg,
      #fefcfb 0%,
      rgba(18, 130, 162, 0.06) 100%
    );
}


/* =========================================================
   ENCABEZADO
   ========================================================= */

.section--transparencia .section__header {
  width: 100%;
  max-width: 820px;

  margin: 0 auto 64px;

  text-align: center;
}


.section--transparencia .section__header .mini {
  display: block;

  margin: 0 0 10px;

  color: #1282a2;

  font-size: 0.875rem;
  font-weight: 700;

  line-height: 1.4;

  letter-spacing: 0.15em;

  text-transform: uppercase;
}


/* H2
   Desktop recomendado:
   36px – 48px
*/

.section--transparencia .section__header h2 {
  margin: 0;

  color: #001f54;

  font-size:
    clamp(
      2.25rem,
      3.2vw,
      3rem
    );

  font-weight: 700;

  line-height: 1.25;

  letter-spacing: -0.02em;
}


/* =========================================================
   GRID
   ========================================================= */

.transparencia-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 28px;

  align-items: stretch;
}


/* =========================================================
   TARJETA
   ========================================================= */

.transparencia-card {
  position: relative;

  display: flex;
  flex-direction: column;

  min-width: 0;
  min-height: 300px;

  padding:
    54px
    30px
    30px;

  overflow: hidden;

  border:
    1px solid
    rgba(3, 64, 120, 0.12);

  border-radius: 18px;

  background: #fefcfb;

  box-shadow:
    0 12px 30px
    rgba(10, 17, 40, 0.08);

  text-align: left;

  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}


/* =========================================================
   HOVER TARJETA
   ========================================================= */

.transparencia-card:hover {
  transform: translateY(-6px);

  border-color:
    rgba(18, 130, 162, 0.30);

  box-shadow:
    0 22px 48px
    rgba(10, 17, 40, 0.14);
}


/* =========================================================
   LÍNEA INFERIOR HOVER
   ========================================================= */

.transparencia-card::before {
  content: "";

  position: absolute;

  right: 0;
  bottom: 0;
  left: 0;

  height: 4px;

  background:
    linear-gradient(
      90deg,
      #001f54,
      #034078,
      #1282a2
    );

  transform: scaleX(0);

  transform-origin: left center;

  transition:
    transform 0.28s ease;
}


.transparencia-card:hover::before {
  transform: scaleX(1);
}


/* =========================================================
   BADGE
   ========================================================= */

.transparencia-card::after {
  content: "Documento oficial";

  position: absolute;

  top: 16px;
  right: 16px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 24px;

  padding:
    4px
    10px;

  border:
    1px solid
    rgba(18, 130, 162, 0.14);

  border-radius: 999px;

  background:
    rgba(18, 130, 162, 0.07);

  color: #034078;

  font-size: 0.75rem;
  font-weight: 600;

  line-height: 1.2;

  letter-spacing: 0.04em;
}


/* =========================================================
   TÍTULO DE TARJETA
   ========================================================= */

/*
   H3 desktop:
   28px – 32px
*/

.transparencia-card h3 {
  margin:
    0
    0
    14px;

  color: #001f54;

  font-size:
    clamp(
      1.75rem,
      2vw,
      2rem
    );

  font-weight: 700;

  line-height: 1.3;

  letter-spacing: -0.015em;

  overflow-wrap: break-word;
}


/* =========================================================
   TEXTO
   ========================================================= */

.transparencia-card p {
  flex: 1 1 auto;

  margin:
    0
    0
    28px;

  color: #034078;

  font-size: 1rem;

  line-height: 1.7;
}


/* =========================================================
   ACCIONES
   ========================================================= */

.transparencia-card__actions {
  display: flex;

  align-items: center;

  width: 100%;

  margin-top: auto;
}


/* =========================================================
   BOTÓN
   ========================================================= */

.btn-documento {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 46px;

  padding:
    12px
    22px;

  border:
    1px solid
    #001f54;

  border-radius: 10px;

  background: #001f54;

  color: #fefcfb;

  font-size: 0.875rem;
  font-weight: 700;

  line-height: 1.35;

  letter-spacing: 0.04em;

  text-align: center;
  text-decoration: none;

  text-transform: uppercase;

  box-shadow:
    0 9px 22px
    rgba(0, 31, 84, 0.18);

  transition:
    transform 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}


/* =========================================================
   HOVER BOTÓN
   ========================================================= */

.btn-documento:hover {
  transform: translateY(-2px);

  border-color: #034078;

  background: #034078;

  box-shadow:
    0 14px 30px
    rgba(3, 64, 120, 0.28);
}


.btn-documento:active {
  transform: translateY(0);
}


.btn-documento:focus-visible {
  outline:
    3px solid
    rgba(18, 130, 162, 0.35);

  outline-offset: 3px;
}


/* =========================================================
   OFFSET
   ========================================================= */

.transparencia-card[id] {
  scroll-margin-top: 140px;
}


/* =========================================================
   TABLET GRANDE
   981px – 1180px
   ========================================================= */

@media (min-width: 981px) and (max-width: 1180px) {

  .section--transparencia {
    padding:
      90px
      0
      96px;
  }


  .section--transparencia .section__header {
    margin-bottom: 54px;
  }


  .section--transparencia .section__header h2 {
    font-size:
      clamp(
        2.15rem,
        3.5vw,
        2.6rem
      );
  }


  .transparencia-grid {
    gap: 22px;
  }


  .transparencia-card {
    min-height: 290px;

    padding:
      52px
      24px
      26px;
  }


  .transparencia-card h3 {
    font-size:
      1.65rem;
  }


  .transparencia-card p {
    font-size: 1rem;
  }

}


/* =========================================================
   TABLET
   701px – 980px
   ========================================================= */

@media (min-width: 701px) and (max-width: 980px) {

  .section--transparencia {
    padding:
      78px
      0
      84px;
  }


  .section--transparencia .container {
    width:
      min(
        100% - 48px,
        760px
      );

    margin-right: auto;
    margin-left: auto;
  }


  /* HEADER */

  .section--transparencia .section__header {
    max-width: 680px;

    margin-bottom: 44px;
  }


  .section--transparencia .section__header .mini {
    font-size: 0.8125rem;

    letter-spacing: 0.13em;
  }


  .section--transparencia .section__header h2 {
    font-size:
      clamp(
        2rem,
        5vw,
        2.35rem
      );

    line-height: 1.25;
  }


  /* GRID */

  .transparencia-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );

    gap: 20px;
  }


  /* CARD */

  .transparencia-card {
    min-height: 280px;

    padding:
      50px
      24px
      24px;

    border-radius: 16px;
  }


  .transparencia-card h3 {
    font-size:
      clamp(
        1.5rem,
        3.2vw,
        1.7rem
      );
  }


  .transparencia-card p {
    margin-bottom: 22px;

    font-size: 1rem;

    line-height: 1.65;
  }


  .btn-documento {
    min-height: 44px;

    padding:
      11px
      18px;

    font-size: 0.8125rem;
  }

}


/* =========================================================
   CELULAR
   HASTA 700px
   ========================================================= */

@media (max-width: 700px) {

  /* ---------------------------------------------------------
     SECCIÓN
     --------------------------------------------------------- */

  .section--transparencia {
    width: 100%;

    padding:
      58px
      0
      64px;

    overflow-x: hidden;
  }


  .section--transparencia * {
    box-sizing: border-box;
  }


  /* ---------------------------------------------------------
     CONTAINER
     --------------------------------------------------------- */

  .section--transparencia .container {
    width: 100%;

    max-width: none;

    margin-right: auto;
    margin-left: auto;

    padding-right: 20px;
    padding-left: 20px;
  }


  /* ---------------------------------------------------------
     HEADER
     --------------------------------------------------------- */

  .section--transparencia .section__header {
    width: 100%;

    max-width: 100%;

    margin:
      0
      0
      36px;

    text-align: left;
  }


  .section--transparencia .section__header .mini {
    margin-bottom: 8px;

    font-size: 0.75rem;

    line-height: 1.4;

    letter-spacing: 0.12em;
  }


  /*
     H2 móvil:
     28px – 32px
  */

  .section--transparencia .section__header h2 {
    font-size:
      clamp(
        1.75rem,
        7.5vw,
        2rem
      );

    line-height: 1.25;

    letter-spacing: -0.015em;
  }


  /* ---------------------------------------------------------
     GRID
     --------------------------------------------------------- */

  .transparencia-grid {
    grid-template-columns: 1fr;

    gap: 16px;
  }


  /* ---------------------------------------------------------
     TARJETA
     --------------------------------------------------------- */

  .transparencia-card {
    width: 100%;

    min-height: auto;

    padding:
      46px
      20px
      22px;

    border-radius: 14px;

    box-shadow:
      0 8px 22px
      rgba(10, 17, 40, 0.07);
  }


  /*
     En celular no queremos movimiento hover
     porque es una interfaz táctil.
  */

  .transparencia-card:hover {
    transform: none;

    border-color:
      rgba(3, 64, 120, 0.12);

    box-shadow:
      0 8px 22px
      rgba(10, 17, 40, 0.07);
  }


  .transparencia-card:hover::before {
    transform: scaleX(0);
  }


  /* ---------------------------------------------------------
     BADGE
     --------------------------------------------------------- */

  .transparencia-card::after {
    top: 13px;
    right: 13px;

    min-height: 22px;

    padding:
      4px
      8px;

    font-size: 0.6875rem;

    letter-spacing: 0.025em;
  }


  /* ---------------------------------------------------------
     H3
     24px – 28px
     --------------------------------------------------------- */

  .transparencia-card h3 {
    margin-bottom: 11px;

    font-size:
      clamp(
        1.5rem,
        6.3vw,
        1.75rem
      );

    line-height: 1.3;
  }


  /* ---------------------------------------------------------
     PÁRRAFO
     16px
     --------------------------------------------------------- */

  .transparencia-card p {
    margin-bottom: 20px;

    font-size: 1rem;

    line-height: 1.65;
  }


  /* ---------------------------------------------------------
     BOTÓN
     --------------------------------------------------------- */

  .transparencia-card__actions {
    width: 100%;
  }


  .btn-documento {
    width: 100%;

    min-height: 46px;

    padding:
      12px
      16px;

    border-radius: 9px;

    font-size: 0.875rem;

    letter-spacing: 0.035em;
  }


  .btn-documento:hover {
    transform: none;

    border-color: #001f54;

    background: #001f54;

    box-shadow:
      0 9px 22px
      rgba(0, 31, 84, 0.18);
  }

}


/* =========================================================
   CELULAR MEDIANO
   HASTA 480px
   ========================================================= */

@media (max-width: 480px) {

  .section--transparencia {
    padding:
      52px
      0
      58px;
  }


  .section--transparencia .container {
    padding-right: 18px;
    padding-left: 18px;
  }


  .section--transparencia .section__header {
    margin-bottom: 30px;
  }


  .section--transparencia .section__header h2 {
    font-size:
      clamp(
        1.75rem,
        8vw,
        1.95rem
      );
  }


  .transparencia-grid {
    gap: 15px;
  }


  .transparencia-card {
    padding:
      45px
      18px
      20px;
  }


  .transparencia-card h3 {
    font-size:
      clamp(
        1.5rem,
        7vw,
        1.65rem
      );
  }


  .transparencia-card p {
    font-size: 1rem;
  }


  .btn-documento {
    min-height: 44px;

    padding:
      11px
      14px;

    font-size: 0.875rem;
  }

}


/* =========================================================
   CELULAR PEQUEÑO
   HASTA 390px
   ========================================================= */

@media (max-width: 390px) {

  .section--transparencia .container {
    padding-right: 16px;
    padding-left: 16px;
  }


  .section--transparencia {
    padding:
      48px
      0
      54px;
  }


  .section--transparencia .section__header h2 {
    font-size: 1.75rem;
  }


  .transparencia-card {
    padding:
      43px
      16px
      18px;
  }


  .transparencia-card h3 {
    font-size: 1.5rem;
  }


  .transparencia-card p {
    font-size: 1rem;

    line-height: 1.65;
  }


  .btn-documento {
    font-size: 0.875rem;
  }

}


/* =========================================================
   CELULAR MUY PEQUEÑO
   HASTA 340px
   ========================================================= */

@media (max-width: 340px) {

  .section--transparencia .container {
    padding-right: 14px;
    padding-left: 14px;
  }


  .section--transparencia {
    padding:
      46px
      0
      50px;
  }


  .section--transparencia .section__header {
    margin-bottom: 28px;
  }


  .section--transparencia .section__header h2 {
    font-size: 1.7rem;
  }


  .transparencia-card {
    padding:
      42px
      15px
      17px;
  }


  .transparencia-card h3 {
    font-size: 1.45rem;
  }

}


/* =========================================================
   DISPOSITIVOS TÁCTILES
   ========================================================= */

@media (hover: none) and (pointer: coarse) {

  .transparencia-card:hover {
    transform: none;
  }


  .transparencia-card:hover::before {
    transform: scaleX(0);
  }


  .btn-documento:hover {
    transform: none;
  }

}