/* Encabezado y pie compartidos por todo el sitio.
   Todo va con prefijo .ctp- para no chocar con los estilos propios
   de la tienda ni del portal de certificaciones, que definen sus
   propias clases .button, .brand y .eyebrow. */

/* Los colores y tipografías salen de assets/sistema.css, que esta hoja
   da por cargado. Aquí solo se les pone un alias local. */

.ctp-chrome, .ctp-foot {
  --ctp-navy: var(--navy);
  --ctp-blue: var(--blue);
  --ctp-lime: var(--lime);
  --ctp-font: var(--font);
  --ctp-head: var(--font-head);
  font-family: var(--ctp-font);
  box-sizing: border-box;
}
.ctp-chrome *, .ctp-foot *, .ctp-chrome *::before, .ctp-foot *::before { box-sizing: border-box; }
.ctp-chrome a, .ctp-foot a { text-decoration: none; transition: color .2s; }
.ctp-wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

/* --- Encabezado --- */

.ctp-chrome { position: relative; z-index: 50; background: #fff; }
.ctp-strip { color: #d4e7f6; background: var(--ctp-navy); font-size: 12px; letter-spacing: .025em; }
.ctp-strip .ctp-wrap { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ctp-strip span { display: inline-flex; align-items: center; gap: 9px; }
.ctp-strip a { color: #d4e7f6; }
.ctp-strip a:hover { color: var(--ctp-lime); }
.ctp-contact { display: inline-flex; align-items: center; gap: 14px; }
.ctp-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--ctp-lime);
  box-shadow: 0 0 0 4px rgba(145, 216, 47, .16); }

.ctp-bar { height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.ctp-brand { display: inline-flex; align-items: center; flex: none; }
.ctp-brand img { display: block; width: 178px; height: auto; max-width: 100%; }

.ctp-nav { display: flex; align-items: center; gap: clamp(14px, 1.9vw, 28px); }
.ctp-nav a { padding: 13px 0; color: #253f5a; font-size: 13px; font-weight: 700; white-space: nowrap; }
.ctp-nav a:hover { color: var(--ctp-blue); }
.ctp-nav a.ctp-here { color: var(--ctp-blue); }
.ctp-cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px;
  padding: 0 17px; border-radius: 14px; background: var(--ctp-navy); color: #fff !important;
  font-size: 13px; font-weight: 800; white-space: nowrap;
  box-shadow: 0 8px 17px rgba(8, 26, 50, .16); transition: transform .2s, background .2s; }
.ctp-cta:hover { background: #144d83; transform: translateY(-2px); }
.ctp-cta span { color: var(--ctp-lime); font-size: 17px; line-height: 1; }

/* Contador del carrito, solo en la tienda. */
.ctp-cart { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 15px;
  border: 1px solid #dce6ef; border-radius: 14px; color: #253f5a !important;
  font-size: 13px; font-weight: 800; white-space: nowrap; transition: border-color .2s, background .2s; }
.ctp-cart:hover { background: #f4f8fc; border-color: #b9d2e8; }
.ctp-cart span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--ctp-lime); color: var(--ctp-navy); font-size: 12px; font-weight: 800; }

.ctp-burger { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid #dce6ef;
  border-radius: 12px; background: #fff; cursor: pointer; }
.ctp-burger span { display: block; width: 20px; height: 2px; margin: 4px auto; border-radius: 2px;
  background: var(--ctp-navy); transition: transform .25s, opacity .2s; }

@media (max-width: 1040px) {
  .ctp-bar { height: 76px; }
  .ctp-brand img { width: 140px; }
  .ctp-burger { display: block; }
  .ctp-nav { position: absolute; left: 0; right: 0; top: 100%; display: none;
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 22px;
    background: #fff; border-top: 1px solid #dce6ef; box-shadow: 0 22px 34px rgba(8, 26, 50, .13); }
  .ctp-nav.ctp-open { display: flex; }
  .ctp-nav a { padding: 14px 0; border-bottom: 1px solid #eef3f8; font-size: 15px; }
  .ctp-cart { justify-content: space-between; margin-top: 14px; padding: 0 15px; border-bottom: 1px solid #dce6ef !important; }
  .ctp-cta { justify-content: center; margin-top: 10px; border-bottom: 0 !important; }
}

/* --- Pie --- */

.ctp-foot { background: #07182d; color: #c4d6e6; }
.ctp-foot-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; padding-block: 60px 50px; }
.ctp-foot-brand img { display: block; width: 172px; height: auto; max-width: 100%;
  padding: 5px; border-radius: 13px; background: #fff; }
.ctp-foot-brand p { margin: 20px 0 0; font-size: 13px; line-height: 1.6; }
.ctp-foot-col { display: grid; align-content: start; justify-items: start; gap: 11px; }
.ctp-foot-col strong { margin-bottom: 8px; color: #fff; font: 800 14px var(--ctp-head); }
.ctp-foot-col a { color: #c4d6e6; font-size: 13px; }
.ctp-foot-col a:hover { color: var(--ctp-lime); }
.ctp-foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding-block: 19px 25px; border-top: 1px solid rgba(255, 255, 255, .14); color: #9bb3c8; font-size: 12px; }
.ctp-foot-bottom a { color: #9bb3c8; }
.ctp-foot-bottom a:hover { color: var(--ctp-lime); }

@media (max-width: 860px) {
  .ctp-foot-top { grid-template-columns: 1fr; gap: 34px; padding-block: 44px 34px; }
}

.ctp-chrome :focus-visible, .ctp-foot :focus-visible { outline: 3px solid var(--ctp-lime); outline-offset: 3px; }

/* Al imprimir un certificado no se lleva la navegación. */
@media print {
  .ctp-chrome, .ctp-foot { display: none !important; }
}
