/*
CTC Separate Stylesheet
Updated: 2026-02-11 16:30:32
Theme Name: GP Certificacion Gerona
Theme URI: https://gerona.cl
Template: generatepress
Author: Esteban Gonzalez
Author URI: http://gerona.cl
Description: sitio especifico para certificaciones subtel.
Version: 3.6.1.1770827432
*/

/* ===== Base: quitar rarezas en single certificacion ===== */
.single-certificacion .entry-header {
  margin-bottom: 10px;
}

.single-certificacion .entry-title {
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 18px;
}

/* “Hoja” centrada como ficha */
.cert-sheet {
  max-width: 1100px;
  margin: 0 auto 40px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  overflow: hidden; /* para que el header azul respete bordes */
}

/* padding del contenido bajo el header */
.cert-sheet > .cert-section-title,
.cert-sheet > .tabla-tecnica,
.cert-sheet > .certificacion-comercial,
.cert-sheet > .certificacion-tecnica,
.cert-sheet > .certificacion-declaracion {
  padding-left: 22px;
  padding-right: 22px;
}

/* ===== Header institucional ===== */
.cert-header {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: 22px;
  background: #0b5fa5;
  color: #fff;
  padding: 26px 22px;
}

.cert-header-left h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.cert-qr {
  display: block;
  width: 180px;
  height: 180px;
  background: #fff;            /* evita “transparencias” raras */
  padding: 6px;
  border-radius: 6px;
}

.btn-descargar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  background: #fff;
  color: #0b5fa5;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 6px;
}

.btn-descargar:hover,
.btn-descargar:focus {
  text-decoration: underline;
}

.cert-header-right {
  display: flex;
  justify-content: flex-end;
}

.cert-header-right img {
  max-width: 360px;
  width: 100%;
  height: auto;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
}

/* ===== Titulos de sección ===== */
.cert-section-title {
  font-size: 26px;
  margin: 22px 0 14px;
}

/* ===== Tabla técnica ===== */
.tabla-tecnica {
  width: calc(100% - 44px); /* compensa padding lateral */
  margin: 0 22px 26px;
  border-collapse: collapse;
  font-size: 15px;
}

.tabla-tecnica td {
  border: 1px solid #d9d9d9;
  padding: 12px;
  vertical-align: top;
}

.tabla-tecnica td:first-child {
  width: 280px;
  font-weight: 700;
  background: #f7f7f7;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .cert-header {
    grid-template-columns: 1fr;
  }

  .cert-header-right {
    justify-content: flex-start;
  }

  .cert-header-right img {
    max-width: 100%;
  }

  .tabla-tecnica td:first-child {
    width: 42%;
  }
}

@media (max-width: 520px) {
  .single-certificacion .entry-title {
    font-size: 28px;
  }

  .cert-qr {
    width: 160px;
    height: 160px;
  }

  .tabla-tecnica {
    font-size: 14px;
  }
}
/* ===== Integración del título del post al diseño ===== */

/* Centrar y alinear el título con la ficha */
.single-certificacion .entry-header {
  max-width: 1100px;      /* mismo ancho que .cert-sheet */
  margin: 20px auto 14px; /* centrado */
  padding: 0 10px;
}

/* Título más “institucional” (menos gigante) */
.single-certificacion .entry-title {
  font-size: 32px;
  line-height: 1.15;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.2px;
}

/* Que el contenido (ficha) arranque pegado al título */
.single-certificacion .entry-content {
  margin-top: 0;
}

/* Opcional: separar del header del sitio para que no quede pegado al menú */
.single-certificacion .site-content {
  padding-top: 10px;
}

/* Si GeneratePress agrega una línea/borde raro debajo del header, suavizarlo */
.single-certificacion .inside-article {
  padding-top: 0;
}

/* ===== Afinar la “hoja” para que se vea más producción ===== */
.cert-sheet {
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* La tabla se ve más “documento” */
.tabla-tecnica td {
  border-color: #e0e0e0;
}

.tabla-tecnica td:first-child {
  background: #f5f6f7;
}

/* Mejor espaciado de títulos dentro de la ficha */
.cert-section-title {
  margin-top: 20px;
}

/* Responsive: título más pequeño */
@media (max-width: 520px) {
  .single-certificacion .entry-title {
    font-size: 26px;
  }
}
.cert-qr {
  width: 180px;
  height: 180px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}

.cert-qr-wrap {
    width: 180px;
    height: 180px;
    background: #fff;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-qr-wrap img {
    max-width: 100%;
    height: auto;
}
/* ===== Header institucional ===== */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
}

.site-branding {
    display: flex;
    align-items: center;
    padding: 18px 0;
}

.site-logo img {
    max-height: 55px;
    width: auto;
}

/* Quitar espacios innecesarios */
.main-navigation {
    display: none; /* si no necesitas menú */
}

/* Centrar contenido del header */
.inside-header {
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 10px;
    padding-right: 10px;
}


/* ===== Archive Certificaciones ===== */

.cert-archive-header{
  max-width:1100px;
  margin:20px auto 12px;
  padding: 0 10px;
}

.cert-archive-header .page-title{
  font-size: 32px;
  margin: 0 0 12px;
}

.cert-archive-search{
  display:flex;
  gap:10px;
  align-items:center;
}

.cert-archive-search input[type="search"]{
  flex:1;
  max-width: 520px;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
}

.cert-archive-search button{
  padding: 10px 14px;
  border: 1px solid #0b5fa5;
  background: #0b5fa5;
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
}

.cert-archive-sheet{
  max-width:1100px;
  margin: 0 auto 40px;
  padding: 18px 10px 0;
}

.cert-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.cert-card{
  border:1px solid #e6e6e6;
  border-radius: 10px;
  overflow:hidden;
  background:#fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.cert-card-link{
  display:block;
  color: inherit;
  text-decoration:none;
}

.cert-card-media{
  height: 170px;
  background:#f5f6f7;
  display:flex;
  align-items:center;
  justify-content:center;
}

.cert-card-media img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.cert-card-media-placeholder{
  font-size: 13px;
  color:#777;
}

.cert-card-body{
  padding: 14px 14px 16px;
}

.cert-card-title{
  font-size: 18px;
  margin: 0 0 8px;
  line-height: 1.2;
}

.cert-card-meta{
  font-size: 14px;
  color:#333;
  margin-top: 6px;
}

.cert-card:hover{
  border-color:#0b5fa5;
}

.cert-pagination{
  margin-top: 22px;
}

/* Responsive */
@media (max-width: 520px){
  .cert-archive-search{
    flex-direction: column;
    align-items: stretch;
  }
  .cert-archive-search input[type="search"]{
    max-width: 100%;
  }
}
/* ===== Hero Search (estilo Google/Pinterest) ===== */

.cert-archive-header {
  max-width: 1100px;
  margin: 26px auto 18px;
  padding: 0 10px;
  text-align: center;
}

/* Título más “landing” */
.cert-archive-header .page-title {
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

/* Barra centrada y grande */
.cert-archive-search {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: stretch;
  padding: 14px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 999px; /* píldora */
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

/* Input grande */
.cert-archive-search input[type="search"] {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 18px;
  padding: 14px 16px;
  background: transparent;
}

/* Placeholder más visible */
.cert-archive-search input[type="search"]::placeholder {
  color: #8a8a8a;
}

/* Botón tipo “primary” */
.cert-archive-search button {
  border: 0;
  background: #0b5fa5;
  color: #fff;
  padding: 0 22px;
  font-weight: 800;
  border-radius: 999px;
  min-width: 140px;
  font-size: 16px;
  cursor: pointer;
}

.cert-archive-search button:hover {
  filter: brightness(0.95);
}

/* Enfoque: resaltar el borde */
.cert-archive-search:focus-within {
  border-color: rgba(11,95,165,0.6);
  box-shadow: 0 12px 34px rgba(11,95,165,0.18);
}

/* Separación mejor con el grid */
.cert-archive-sheet {
  padding-top: 10px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .cert-archive-header .page-title {
    font-size: 32px;
  }

  .cert-archive-search {
    max-width: 100%;
    border-radius: 18px; /* menos píldora en móvil */
    padding: 12px;
  }

  .cert-archive-search button {
    min-width: 110px;
  }
}

@media (max-width: 520px) {
  .cert-archive-search {
    flex-direction: column;
    border-radius: 18px;
  }

  .cert-archive-search button {
    width: 100%;
    padding: 12px 16px;
  }
}

/* =========================
   Search UI - Certificaciones
========================= */

.cert-search-page{
  padding: 28px 0 60px;
}

.cert-search-container{
  max-width: 1240px; /* más ancho que antes */
  margin: 0 auto;
  padding: 0 18px;
}

.cert-search-hero{
  background: #ffffff;
  border-radius: 14px;
  padding: 26px 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
  margin: 12px auto 26px;
}

.cert-search-title{
  margin: 0 0 18px;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.cert-search-title span{
  font-weight: 800;
}

.cert-search-form{
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 999px;
  padding: 10px 12px;
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}

.cert-search-input{
  width: 100%;
  border: 0 !important;
  outline: none !important;
  background: transparent;
  font-size: 16px;
  padding: 10px 14px;
}

.cert-search-button{
  border: 0;
  background: #0b5fa5;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  transition: transform .08s ease, opacity .12s ease;
}

.cert-search-button:hover{ opacity: .95; }
.cert-search-button:active{ transform: scale(.98); }

/* Grid de productos */
.cert-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.cert-card{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 18px rgba(0,0,0,.06);
  transition: transform .10s ease, box-shadow .12s ease;
}

.cert-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0,0,0,.10);
}

.cert-card-link{
  color: inherit;
  text-decoration: none;
  display: block;
}

/* Imagen: recorte profesional */
.cert-card-media{
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f4f6f8;
  overflow: hidden;
}

.cert-card-img{
  width: 100%;
  height: 100%;
  object-fit: contain; /* mejor para productos */
  object-position: center;
  display: block;
}

/* Texto: quitar sensación “apretada” */
.cert-card-body{
  padding: 14px 14px 16px;
}

.cert-card-title{
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0;
  font-weight: 800;
  text-transform: none !important; /* evita mayúsculas forzadas */
}

.cert-card-meta{
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.cert-meta-row{
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.cert-meta-label{
  font-weight: 800;
  color: rgba(0,0,0,.65);
  min-width: 86px;
}

.cert-meta-value{
  color: rgba(0,0,0,.82);
  word-break: break-word;
}

/* Estado vacío */
.cert-empty{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 18px rgba(0,0,0,.06);
}

/* Paginación */
.cert-pagination{
  margin: 28px 0 0;
  display: flex;
  justify-content: center;
}

.cert-pagination ul{
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.cert-pagination li{
  margin: 0;
}

.cert-pagination a,
.cert-pagination span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  text-decoration: none;
  font-weight: 700;
  color: rgba(0,0,0,.80);
}

.cert-pagination .current{
  background: #0b5fa5;
  color: #fff;
  border-color: #0b5fa5;
}

.cert-pagination a:hover{
  background: rgba(11,95,165,.08);
  border-color: rgba(11,95,165,.25);
}

/* Responsive */
@media (max-width: 980px){
  .cert-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-search-title{ font-size: 28px; }
}

@media (max-width: 640px){
  .cert-grid{ grid-template-columns: 1fr; }
  .cert-search-form{ flex-direction: column; border-radius: 18px; }
  .cert-search-button{ width: 100%; }
}


/* Front page: asegurar centrado y ancho consistente */
body.home .site-content,
body.home #primary,
body.home #main {
  width: 100%;
}

/* Quitar “empujes” típicos de GP */
body.home .content-area {
  float: none;
  margin: 0 auto;
}

/* Contenedor de tu buscador */
body.home .cert-search-page {
  width: 100%;
}

body.home .cert-search-container {
  max-width: 1240px;   /* ajusta si quieres más ancho */
  margin: 0 auto;
  padding: 40px 20px;
}

/* Centrar el layout del buscador en Home y en Search */
.cert-search-page{
  width: 100%;
  max-width: 1240px;   /* ajusta el ancho a gusto */
  margin: 0 auto;      /* <- esto es lo que te funcionó manual */
  padding: 40px 20px;
}

/* Asegurar que el contenedor interior no vuelva a “chocar” */
.cert-search-container{
  width: 100%;
  margin: 0 auto;
}

/* Por si GeneratePress mete un wrapper con grid que afecta el alineado */
.site-content{
  width: 100%;
}


