/* ======================================
   RESET
====================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #333;
}

/* ======================================
   CONTENEDOR
====================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======================================
   HERO
====================================== */

.hero {
    position: relative;
    height: 340px;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-header {
    position: absolute;
    top: 30px;
    left: 50px;
    color: #1f2f46;
}

.nombre-linea1 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 2px;
}

.nombre-linea2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 3px;
}

.nit {
    font-size: 11px;
    opacity: 0.7;
}

@media (min-width: 768px) {
    .nombre-linea1, .nombre-linea2, .nit { color: white; }

}

/* ======================================
   CARDS
====================================== */

.cards {
    max-width: 1200px;
    margin: 24px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 20px;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e3e7ec;
    text-decoration: none;
    color: #2f3a45;

    display: flex;
    align-items: center;
    gap: 16px;

    padding: 18px 18px;
    min-height: 90px;
    cursor:pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

/* Icono */
.card-icon img {
    height: 68px;
    width: auto;
    display: block;
}

/* Texto */
.card-text {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
}

/* Hover elegante y sutil */

.card:hover {
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    transform: translateY(-3px);
}

/* ============================= */
/* PAGINA DOCUMENTOS */
/* ============================= */

.pagina-interna {
    max-width: 900px;
    margin: 60px auto 80px;
    padding: 0 20px;
}

.encabezado-seccion {
    text-align: center;
    margin-bottom: 40px;
}

.nombre-conjunto {
    font-size: 16px;
    color: #6b7683;
    margin-bottom: 6px;
}

.encabezado-seccion h1 {
    font-size: 32px;
    color: #1f2f46;
    margin-bottom: 10px;
}

.subtitulo {
    font-size: 15px;
    color: #7a8694;
}

.contenedor-documentos {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.doc-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 18px 22px;
    border-radius: 12px;
    border: 1px solid #e2e6ea;
    text-decoration: none;
    color: #2f3a45;
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.doc-card img {
    width: 42px;
    margin-right: 18px;
}

.doc-card span {
    flex: 1;
    font-weight: 600;
}

.flecha {
    font-size: 26px;
    color: #9aa5b1;
}

.doc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

.sin-documentos {
    text-align: center;
    color: #7a8694;
}

.btn-volver {
    display: inline-block;
    padding: 12px 22px;
    background: #2f3a45;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.btn-volver:hover {
    background: #1f2830;
}

/* ======================================
   FOOTER COMPACTO EN UNA LÍNEA
====================================== */

footer {
    background: #2f3a45;
    color: #ffffff;
    padding: 25px 20px;
    margin-top: 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.footer-col p {
    margin-bottom: 5px;
    font-size: 15px;
}

.footer-col.center {
    text-align: center;
}

.footer-col.right {
    text-align: right;
}

.visor2-pdf {
    width: 100%;
    height: 80vh;
    border: none;
    border-radius: 12px;
}

/* ======================================
   RESPONSIVE
====================================== */

@media (max-width: 992px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .hero {
        height: 220px;
    }

    .hero-header {
        top: 20px;
        right: 20px;
        left: auto;
        text-align: right;
    }

    .nombre-linea1 {
        font-size: 14px;
    }

    .nombre-linea2 {
        font-size: 18px;
    }

    .nit {
        font-size: 10px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 16px;
        min-height: 75px;
        cursor:pointer;
    }

    .card-icon img {
        height: 46px;
    }

    .card-text {
        font-size: 14px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col.right,
    .footer-col.center {
        text-align: center;
    }

.   visor2-pdf {
        width: 100%;
        height: 80vh;
        border: none;
        border-radius: 12px;
    }

}

/* =========================
   DOCUMENTOS
========================= */

.pagina-interna {
  width: 90%;
  max-width: 850px;
  margin: 40px auto;
}

.encabezado-seccion {
  text-align: center;
  margin-bottom: 35px;
}

.nombre-conjunto {
  color: #666;
  margin-bottom: 10px;
}

.contenedor-documentos {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.doc-card {
  display: flex;
  align-items: center;
  justify-content: space-between;

  background: white;

  border-radius: 12px;

  padding: 18px 20px;

  text-decoration: none;

  color: #333;

  border: 1px solid #e5e5e5;

  transition: 0.2s;

  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.doc-card:hover {
  transform: translateY(-2px);
  background: #fafafa;
}

.doc-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.doc-info img {
  width: 28px;
}

.doc-info span {
  font-weight: 600;
}

.flecha {
  font-size: 28px;
  color: #999;
}

.sin-documentos {
  text-align: center;
  color: #666;
}

.volver-documentos {
  text-align: center;
  margin: 40px 0 10px;
}

.btn-volver {
  display: inline-block;

  padding: 12px 20px;

  border-radius: 8px;

  background: #f1f1f1;

  text-decoration: none;

  color: #333;

  font-weight: bold;
}

.btn-volver:hover {
  background: #e4e4e4;
}