/* ====== ESTILO CONSTANCIA OFICIAL ====== */

/* Contenedor general */
.pdb-single {
  max-width: 900px;
  margin: 40px auto;
  padding: 50px 60px;
  background: #fff;
  box-shadow: 0 0 0 1px #ddd;
  font-family: "Times New Roman", Georgia, serif;
  line-height: 1.8;
}

/* Títulos de secciones */
.pdb-single h2,
.pdb-single h3 {
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

/* Cada campo como renglón */
.pdb-single .pdb-field,
.pdb-single .pdb-field-row,
.pdb-single .pdb-single-field {
  margin-bottom: 18px;
}
/* ===== HOJA TIPO CONSTANCIA ===== */

.pdb-single {
  max-width: 900px;
  margin: 40px auto;
  padding: 60px 70px;
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 0 20px rgba(0,0,0,0.08);
  font-family: "Times New Roman", Georgia, serif;
}

/* Título VER REGISTRO */
.pdb-single h1,
.pdb-single h2 {
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 35px;
}

/* Secciones */
.pdb-single .pdb-group-title {
  text-align: center;
  font-size: 20px;
  margin: 40px 0 25px;
  border-bottom: 1px solid #000;
  padding-bottom: 8px;
}

/* Campos formato ficha */
.pdb-single .pdb-field {
  display: grid;
  grid-template-columns: 240px 1fr;
  column-gap: 20px;
  margin-bottom: 16px;
}

/* Etiquetas */
.pdb-single .pdb-field-label,
.pdb-single .pdb-field-title {
  font-weight: bold;
  text-transform: uppercase;
}

/* Valores */
.pdb-single .pdb-field-value,
.pdb-single .pdb-field-data,
.pdb-single .pdb-field-body {
  line-height: 1.7;
}

/* ===== CAPACITADOS ===== */

.pdb-single .pdb-field-capacitados {
  margin-top: 30px;
}

.pdb-single .pdb-field-capacitados .pdb-field-label,
.pdb-single .pdb-field-capacitados .pdb-field-title {
  display: block;
  font-size: 17px;
  margin-bottom: 12px;
  text-align: left;
}

.pdb-single .pdb-field-capacitados .pdb-field-value,
.pdb-single .pdb-field-capacitados .pdb-field-data,
.pdb-single .pdb-field-capacitados .pdb-field-body {
  display: block;
  padding-left: 30px;
  white-space: pre-line;
  line-height: 2;
  font-size: 16px;
}

/* ===== QR GRANDE EN PANTALLA ===== */

.pdb-single .pdb-field-qr img {
  width: 2440px !important;   /* puedes subir a 2480 o 2600 si quieres */
  height: auto !important;
  margin-top: 20px;
}

/* ===== Firma / pie ===== */

.pdb-single::after {
  content: "Gestiones CORPAD · Sistema de verificación de constancias";
  display: block;
  margin-top: 60px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 1px;
  color: #444;
}

/* ===== RESPONSIVO ===== */

@media (max-width: 768px){
  .pdb-single {
    padding: 30px 20px;
  }
  .pdb-single .pdb-field {
    grid-template-columns: 1fr;
  }
}
/* ===== ENCABEZADO CONSTANCIA ===== */

.constancia-header {
  text-align: center;
  margin-bottom: 40px;
}

.logo-constancia {
  max-width: 160px;
  margin-bottom: 15px;
}

.constancia-header h1 {
  font-size: 30px;
  letter-spacing: 3px;
  margin: 10px 0;
}

.constancia-header p {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ===== TEXTO LEGAL ===== */

.constancia-texto {
  text-align: justify;
  font-size: 17px;
  line-height: 1.9;
  margin: 30px 0 50px;
}

/* ===== FORMATO IMPRESIÓN ===== */

@media print {
  body {
    background: white !important;
  }

  header, nav, footer {
    display: none !important;
  }

  .pdb-single {
    box-shadow: none;
    border: none;
    margin: 0;
    padding: 40px;
  }

  .constancia-header h1 {
    font-size: 28px;
  }
}
/* ===== MODO IMPRESIÓN / PDF ===== */
@media print {

  /* Quitar todo lo que no es constancia */
  header, nav, footer, aside,
  .site-header, .site-footer, .navigation, .menu,
  .wp-block-navigation, .wp-block-site-title {
    display: none !important;
  }

  body {
    background: white !important;
  }

  /* Hoja limpia */
  .pdb-single {
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 30px 40px !important;
    width: 100% !important;
  }

  /* Evitar que se partan bloques */
  .pdb-single * {
    page-break-inside: avoid;
  }

  /* QR un poco más grande en impresión */
  .pdb-single .pdb-field-qr img {
    width: 160px !important;
  }
}
/* Botón imprimir */
.boton-imprimir {
  text-align: right;
  margin-bottom: 25px;
}

.boton-imprimir button {
  padding: 10px 18px;
  border: none;
  background: #000;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
}

.boton-imprimir button:hover {
  opacity: 0.8;
}

/* Que el botón NO salga en la impresión */
@media print {
  .boton-imprimir {
    display: none !important;
  }
}
/* Ocultar el título "VER REGISTRO" solo en la página 242 */
body.page-id-242 .entry-title,
body.page-id-242 h1.entry-title,
body.page-id-242 .wp-block-post-title,
body.page-id-242 h1.wp-block-post-title {
  display: none !important;
}
