/* ============================================================
   CREDENTIALS v2.0 — page rewrite, prefix .ctcr-*
   ============================================================ */

/* Ocultar el page-hero default del theme (título "Credentials & Permits"
   y breadcrumb) — el contenido ya tiene su propio hero .ctcr-hero */
.page-id-1421 .page-hero,
.page-id-1421 .entry-title,
.page-id-1421 .page-title,
.page-id-1421 > header.entry-header,
.page-id-1421 .post-header,
.page-id-1421 .single-page-title,
.page-id-1421 h1.entry-title,
.page-id-1421 article#post-1421 > h1,
.page-id-1421 article.post-1421 > h1,
.page-id-1421 article > h1,
.page-id-1421 article h1:first-child,
.page-id-1421 .section .container > article > h1,
.page-id-1421 .container > h1:not([class]),
.page-id-1421 main h1:not([class]) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Esconder también el wrapper section vacío que dejaría espacio */
.page-id-1421 > main > .section:first-child:has(article > h1:only-child),
.page-id-1421 article#post-1421 {
  /* el article queda pero su h1 desaparece */
}

/* También quitar padding/margin top del main para que el ctcr-hero pegue arriba */
.page-id-1421 #main-content,
.page-id-1421 main#main-content,
.page-id-1421 .site-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
.page-id-1421 .ctcr-hero {
  margin-top: 0;
}

/* ── HERO ───────────────────────────────────────────── */
.ctcr-hero {
  position: relative;
  background: linear-gradient(135deg, #134e4a 0%, #0d9488 100%);
  color: #fff;
  padding: 80px 24px 64px;
  text-align: center;
  overflow: hidden;
}
.ctcr-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.ctcr-hero__inner {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}
.ctcr-hero__label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: #2dd4bf;
  font-weight: 700;
  margin-bottom: 14px;
}
.ctcr-hero__title,
h2.ctcr-hero__title,
.ctcr-hero h2,
.ctcr-hero .ctcr-hero__title {
  font-family: var(--font-display, 'Bebas Neue', sans-serif) !important;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin: 0 0 16px;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
.ctcr-hero__lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin: 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.ctcr-hero__lead strong { color: #fff; font-weight: 600; }

/* ── STATS bar ──────────────────────────────────────── */
.ctcr-stats {
  background: #fff;
  padding: 36px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: -40px auto 0;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(15, 78, 73, 0.15);
  position: relative;
  z-index: 2;
}
.ctcr-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ctcr-stat__num {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: 2.6rem;
  color: #0d9488;
  line-height: 1;
}
.ctcr-stat__lbl {
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475569;
  margin-top: 8px;
}
@media (max-width: 700px) {
  .ctcr-stats {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: -32px;
  }
  .ctcr-stat__num { font-size: 2.2rem; }
}

/* ── DOCS section ───────────────────────────────────── */
.ctcr-docs {
  padding: 72px 24px 48px;
  background: #f8fafc;
}
.ctcr-docs__head {
  max-width: 1100px;
  margin: 0 auto 36px;
  text-align: center;
}
.ctcr-docs__title {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  color: #134e4a;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
.ctcr-docs__sub {
  font-size: 1rem;
  color: #64748b;
  margin: 0;
  line-height: 1.55;
}

.ctcr-docs__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.ctcr-doc {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 78, 73, 0.08);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.ctcr-doc:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 78, 73, 0.18);
}

.ctcr-doc__head {
  padding: 24px 24px 20px;
  border-bottom: 1px solid #f1f5f9;
}
.ctcr-doc__cat {
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0d9488;
  margin: 0 0 6px;
}
.ctcr-doc__title {
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #134e4a;
  margin: 0 0 8px;
  line-height: 1.2;
}
.ctcr-doc__sub {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* PDF viewer (más grande, más pepa) */
.ctcr-doc__viewer {
  position: relative;
  width: 100%;
  background: #f1f5f9;
  height: 520px;
}
.ctcr-doc__viewer iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (max-width: 700px) {
  .ctcr-doc__viewer { height: 380px; }
}

.ctcr-doc__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  background: #134e4a;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 150ms ease;
}
.ctcr-doc__btn:hover {
  background: #0d9488;
  color: #fff;
}
.ctcr-doc__btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── TRUST GRID ─────────────────────────────────────── */
.ctcr-trust {
  padding: 72px 24px;
  background: #fff;
}
.ctcr-trust__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.ctcr-trust__title {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  color: #134e4a;
  text-align: center;
  margin: 0 0 40px;
  letter-spacing: 0.02em;
}
.ctcr-trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.ctcr-trust__item {
  background: #f0fdfa;
  border-left: 4px solid #0d9488;
  border-radius: 8px;
  padding: 24px;
}
.ctcr-trust__item-icon {
  width: 36px;
  height: 36px;
  color: #0d9488;
  margin-bottom: 14px;
}
.ctcr-trust__item-icon svg { width: 100%; height: 100%; }
.ctcr-trust__item-title {
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #134e4a;
  margin: 0 0 8px;
}
.ctcr-trust__item-text {
  font-size: 14px;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

/* ── CTA ────────────────────────────────────────────── */
.ctcr-cta {
  background: linear-gradient(135deg, #134e4a 0%, #0d9488 100%);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
}
.ctcr-cta__inner {
  max-width: 720px;
  margin: 0 auto;
}
.ctcr-cta__title {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
.ctcr-cta__text {
  font-size: 1rem;
  color: #cbd5e1;
  margin: 0 0 28px;
}
.ctcr-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: #fff;
  color: #134e4a;
  text-decoration: none;
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 8px;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.ctcr-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
  color: #0d9488;
}
