/**
 * Degree program v2 — hero de programas académicos.
 * Fuente de verdad en Pattern Lab (clonado desde el tema UAO XAMPP).
 * Scope: .degree-program-v2
 *
 * Incluye:
 * 1) Base .sh-breadcrumb (pastilla)
 * 2) Hero + facts + CTAs
 * 3) Variante blanca / posición breadcrumb en hero
 * 4) Escudo CF7 / lead form
 *
 * Enqueue desde WP: PATTERNLAB_BASEURL + 'css/degree-program-v2.css'
 */

/* —— 1) Breadcrumb base —— */
.sh-breadcrumb{--sh-red:#EE1D23;--sh-breadcrumb-max:22rem;display:block;width:auto;max-width:min(var(--sh-breadcrumb-max),calc(100vw - 24px));margin:0;padding:0;background:0 0}.sh-breadcrumb-pill{display:inline-flex;flex-wrap:nowrap;align-items:center;gap:.4em .5em;box-sizing:border-box;width:auto;max-width:100%;margin:0;padding:.7em 1.75em .7em 1.2em;list-style:none;background:var(--sh-red);color:#fff;border-radius:0 999px 999px 0;font-family:Montserrat,'Segoe UI',Arial,sans-serif;font-size:clamp(12px, 1.7vw, 13px);font-weight:400;font-style:normal;line-height:1.35;letter-spacing:.01em;overflow:hidden;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:geometricPrecision}.sh-breadcrumb-item{margin:0;padding:0;flex:0 1 auto;min-width:0;max-width:100%;background:0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sh-breadcrumb-item.is-current,.sh-breadcrumb-item:last-of-type:not(.sh-breadcrumb-home){flex:1 1 auto}.sh-breadcrumb-home{flex:0 0 auto;overflow:visible}.sh-breadcrumb-item a,.sh-breadcrumb-item span{display:block;max-width:100%;color:#fff!important;font-style:normal;font-weight:400;text-decoration:none!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:normal;overflow-wrap:normal;hyphens:none;background:0 0;cursor:pointer;opacity:1!important;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:geometricPrecision}.sh-breadcrumb-item a:active,.sh-breadcrumb-item a:focus,.sh-breadcrumb-item a:focus-visible,.sh-breadcrumb-item a:hover{color:#fff!important;opacity:1!important;text-decoration:none!important}.sh-breadcrumb-home a{display:flex;align-items:center;justify-content:center;line-height:0;overflow:visible;color:#fff!important;opacity:1!important}.sh-breadcrumb-home a:active,.sh-breadcrumb-home a:focus,.sh-breadcrumb-home a:focus-visible,.sh-breadcrumb-home a:hover{color:#fff!important;opacity:1!important}.sh-breadcrumb-home-icon{display:block;width:18px;height:18px;flex-shrink:0;shape-rendering:geometricPrecision}.sh-breadcrumb-sep{margin:0;padding:0;color:#fff;font-style:normal;font-weight:400;font-size:1.15em;line-height:1;text-decoration:none;flex-shrink:0;user-select:none;background:0 0;opacity:1}@media (min-width:1200px){.sh-breadcrumb{--sh-breadcrumb-max:26rem}}@media (max-width:960px){.sh-breadcrumb{--sh-breadcrumb-max:18rem}.sh-breadcrumb-pill{padding:.65em 1.55em .65em 1.1em;font-size:12px}}@media (max-width:768px){.sh-breadcrumb{--sh-breadcrumb-max:16rem}}@media (max-width:480px){.sh-breadcrumb{--sh-breadcrumb-max:14rem}.sh-breadcrumb-pill{padding:.55em 1.35em .55em .95em;gap:.25em .4em;font-size:11px}}

/* —— 2) Hero v2 —— */
/**
 * Degree program v2 — hero con datos en grid + formulario compacto.
 * Scoped bajo .degree-program-v2.
 * Tipografía en px (base 16px) — immune al html { font-size: 62.5% } del tema.
 */

.degree-program-v2 {
  --maroon: #79102d;
  --maroon-dark: #5c1019;
  --maroon-ink: #3a1c22;
  --maroon-muted: #6b4a50;
  --red: #c8102e;
  --red-line: #e30613;
  --amber: #f58220;
  --cream: #fcf5ed;
  --white: #ffffff;
  --line: rgba(121, 16, 45, 0.12);
  --shadow: 0 18px 48px rgba(20, 8, 12, 0.28);
  --radius: 14px;
  --max: 1520px;
  --hero-pad-l: clamp(120px, 10vw, 180px);
  --hero-pad-r: clamp(40px, 4vw, 72px);
  --font: "DM Sans", Arial, sans-serif;
  --font-serif: "Georgia", "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Tipografía del hero (no tocar el CF7 dentro de .lead) */
.degree-program-v2 .hero__copy,
.degree-program-v2 .hero__copy *,
.degree-program-v2 .hero-facts,
.degree-program-v2 .hero-facts *,
.degree-program-v2 .hero > .sh-breadcrumb,
.degree-program-v2 .hero > .sh-breadcrumb * {
  font-family: "DM Sans", Arial, sans-serif !important;
}

.degree-program-v2 *,
.degree-program-v2 *::before,
.degree-program-v2 *::after {
  box-sizing: border-box;
}

/* —— HERO —— */
.degree-program-v2 .hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: center;
  padding-top: 0;
  color: var(--white);
  overflow: hidden;
  overflow-x: clip;
  isolation: isolate;
  width: 100%;
  margin: 0;
}

.degree-program-v2 .hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.degree-program-v2 .hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  transform: scale(1.04);
  animation: dprog-hero-zoom 12s var(--ease) both;
}

.degree-program-v2 .hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg,
      rgba(18, 8, 10, 0.88) 0%,
      rgba(28, 10, 14, 0.72) 42%,
      rgba(28, 10, 14, 0.45) 68%,
      rgba(18, 8, 10, 0.55) 100%),
    linear-gradient(to top, rgba(12, 4, 6, 0.7) 0%, transparent 40%);
}

.degree-program-v2 .hero__inner {
  width: min(100%, var(--max));
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px var(--hero-pad-r) 40px var(--hero-pad-l);
  display: grid;
  grid-template-columns: auto minmax(360px, 480px);
  justify-content: start;
  gap: 128px;
  align-items: start;
}

.degree-program-v2 .hero__copy {
  max-width: 720px;
  width: auto;
  min-width: 0;
  margin-top: 120px;
  margin-left: 0;
  padding-left: 0;
  padding-right: 0;
  animation: dprog-rise 0.9s var(--ease) both;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  justify-self: start;
}

.degree-program-v2 .hero__badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 14px;
}

.degree-program-v2 .hero__badges .badge-mod,
.degree-program-v2 .hero__badges .acred,
.degree-program-v2 .hero__badges .badge-new {
  margin: 0;
}

.degree-program-v2 .badge-mod,
.degree-program-v2 .acred,
.degree-program-v2 .badge-new {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 10px 20px;
  margin: 0;
  font-family: var(--font) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #fff !important;
  background: var(--red-line);
  border: none;
  border-radius: 6px;
  box-shadow: none;
  backdrop-filter: none;
  line-height: 1.25 !important;
}

.degree-program-v2 .badge-new {
  background: #f5b400;
  color: var(--maroon-ink) !important;
}

.degree-program-v2 .acred {
  background: var(--maroon);
}

.degree-program-v2 .hero h1,
.degree-program-v2 .hero__copy h1,
.degree-program-v2 .hero #programa-titulo {
  font-family: var(--font) !important;
  font-size: clamp(34px, 5vw, 52px) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  text-wrap: balance;
  color: var(--white) !important;
  text-transform: none !important;
}

.degree-program-v2 .hero__lede {
  font-family: var(--font) !important;
  font-size: clamp(16px, 1.4vw, 18px) !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  max-width: 640px;
  margin: 0 0 8px !important;
  padding: 0 !important;
  line-height: 1.5 !important;
}

.degree-program-v2 .hero__legal {
  font-family: var(--font) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  color: rgba(255, 255, 255, 0.82) !important;
  max-width: 640px;
  margin: 0 0 20px !important;
  padding: 0 !important;
}

.degree-program-v2 .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.degree-program-v2 .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: var(--font) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  text-decoration: none !important;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.degree-program-v2 .btn:hover {
  transform: translateY(-2px);
}

.degree-program-v2 .btn:active {
  transform: translateY(0);
}

.degree-program-v2 .btn--primary {
  background: var(--red) !important;
  color: var(--white) !important;
  box-shadow: 0 8px 22px rgba(200, 16, 46, 0.35);
}

.degree-program-v2 .btn--primary:hover {
  background: #a80d26 !important;
  box-shadow: 0 12px 28px rgba(200, 16, 46, 0.42);
  color: var(--white) !important;
}

.degree-program-v2 .btn--ghost {
  background: transparent !important;
  color: var(--white) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
}

.degree-program-v2 .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: #fff !important;
  color: var(--white) !important;
}

/* —— Facts grid (dentro del hero) —— */
.degree-program-v2 .hero-facts {
  margin: 0;
  padding: 0;
  width: auto;
  max-width: 100%;
  color: var(--white);
}

.degree-program-v2 .hero-facts__grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 220px)) !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  width: max-content !important;
  max-width: 100% !important;
}

.degree-program-v2 .hero-facts .fact {
  margin: 0;
  padding: 12px 14px;
  min-width: 0;
  max-width: 220px;
  border: 2.5px solid #f58220;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(245, 130, 32, 0.35);
}

.degree-program-v2 .hero-facts dt,
.degree-program-v2 .hero-facts dd {
  margin: 0 !important;
  padding: 0 !important;
  margin-inline-start: 0 !important;
  float: none;
}

.degree-program-v2 .hero-facts .fact__label {
  display: block;
  font-family: var(--font) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-align: center !important;
  color: rgba(255, 255, 255, 0.92) !important;
  margin: 0 0 6px !important;
  line-height: 1.25 !important;
}

.degree-program-v2 .hero-facts .fact__value,
.degree-program-v2 .hero-facts .fact__main {
  display: block;
  font-family: var(--font) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  text-align: center !important;
  color: rgba(255, 255, 255, 0.88) !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
}

.degree-program-v2 .hero-facts .fact__value small {
  display: inline;
  margin: 0;
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
}

/*
 * Lead: solo la tarjeta blanca.
 * El diseño del CF7 vive en degree-lead-form.css (escudo vs Pattern Lab).
 */
.degree-program-v2 .lead {
  background: var(--white);
  color: #1a1a18;
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
  animation: dprog-rise 0.9s var(--ease) 0.12s both;
  align-self: start;
  justify-self: start;
  margin-top: 88px;
  overflow: visible;
  min-width: 0;
  width: 100%;
  max-width: 480px;
  font-size: 16px;
  line-height: normal;
}

.degree-program-v2 .lead__form,
.degree-program-v2 .lead .wpcf7,
.degree-program-v2 .lead .wpcf7-form {
  margin: 0;
  padding: 0;
  width: 100%;
}

/* —— Motion —— */
@keyframes dprog-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dprog-hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .degree-program-v2 *,
  .degree-program-v2 *::before,
  .degree-program-v2 *::after {
    animation: none !important;
    transition: none !important;
  }
  .degree-program-v2 .hero__media img {
    transform: none;
  }
}

/* —— Responsive: desktop → laptop → tablet → mobile —— */

/* 15" / 1680 */
@media (max-width: 1680px) {
  .degree-program-v2 .hero__inner {
    grid-template-columns: auto minmax(340px, 440px);
    gap: 112px;
  }

  .degree-program-v2 .lead {
    max-width: 440px;
  }
}

/* 15" 1536 */
@media (max-width: 1536px) {
  .degree-program-v2 {
    --hero-pad-l: 110px;
    --hero-pad-r: clamp(32px, 3.2vw, 52px);
  }

  .degree-program-v2 .hero__inner {
    width: 100%;
    max-width: none;
    grid-template-columns: auto minmax(320px, 420px);
    gap: 104px;
  }

  .degree-program-v2 .lead {
    max-width: 420px;
  }
}

/* 14" 1366 */
@media (max-width: 1366px) {
  .degree-program-v2 {
    --hero-pad-l: 96px;
    --hero-pad-r: 28px;
  }

  .degree-program-v2 .hero__inner {
    grid-template-columns: auto minmax(300px, 380px);
    gap: 92px;
    padding-top: 56px;
  }

  .degree-program-v2 .hero__copy {
    margin-top: 96px;
  }

  .degree-program-v2 .lead {
    margin-top: 64px;
    max-width: 380px;
  }

  .degree-program-v2 .hero #programa-titulo {
    font-size: clamp(30px, 3.6vw, 42px) !important;
  }
}

/* 1280 */
@media (max-width: 1280px) {
  .degree-program-v2 {
    --hero-pad-l: 80px;
  }

  .degree-program-v2 .hero__inner {
    grid-template-columns: auto minmax(280px, 360px);
    gap: 80px;
  }

  .degree-program-v2 .lead {
    max-width: 360px;
  }

  .degree-program-v2 .hero-facts .fact {
    padding: 10px 12px;
  }

  .degree-program-v2 .hero-facts .fact__label {
    font-size: 13px !important;
  }

  .degree-program-v2 .hero-facts .fact__value,
  .degree-program-v2 .hero-facts .fact__main {
    font-size: 13px !important;
  }
}

/* Tablet landscape y desktops estrechos: una columna */
@media (max-width: 1024px) {
  .degree-program-v2 {
    --hero-pad-l: 24px;
    --hero-pad-r: 24px;
  }

  .degree-program-v2 .hero {
    background: #14080a;
    min-height: auto;
  }

  .degree-program-v2 .hero__media {
    position: absolute;
    inset: 0;
    height: auto;
  }

  .degree-program-v2 .hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 30%;
    transform: none;
    animation: none;
  }

  .degree-program-v2 .hero__scrim {
    background:
      linear-gradient(
        to bottom,
        rgba(18, 8, 10, 0.45) 0%,
        rgba(18, 8, 10, 0.62) 45%,
        rgba(18, 8, 10, 0.78) 100%
      );
  }

  .degree-program-v2 .hero__inner {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: none;
    gap: 24px;
    padding: 56px 24px 36px;
  }

  .degree-program-v2 .hero__copy {
    margin-top: 72px;
  }

  .degree-program-v2 .lead {
    margin-top: 8px;
    width: 100%;
    max-width: 520px;
    justify-self: start;
  }

  .degree-program-v2 .hero-facts {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .degree-program-v2 .hero-facts__grid {
    grid-template-columns: repeat(2, minmax(0, 220px)) !important;
    width: max-content !important;
    margin-inline: auto !important;
    justify-content: center;
  }

  .degree-program-v2 .hero-facts .fact {
    max-width: 220px;
  }
}

@media (max-width: 768px) {
  .degree-program-v2 .hero__inner {
    padding: 52px 20px 32px;
  }

  .degree-program-v2 .hero__copy {
    margin-top: 64px;
  }

  .degree-program-v2 .lead {
    max-width: none;
  }

  .degree-program-v2 .hero #programa-titulo {
    font-size: clamp(26px, 7vw, 36px) !important;
  }
}

@media (max-width: 640px) {
  .degree-program-v2 {
    --hero-pad-l: 16px;
    --hero-pad-r: 16px;
  }

  .degree-program-v2 .hero {
    min-height: auto;
    background: #14080a;
  }

  .degree-program-v2 .hero__media img {
    object-position: center 22%;
  }

  .degree-program-v2 .hero__inner {
    width: 100%;
    padding: 48px 16px 28px;
  }

  .degree-program-v2 .hero__copy {
    margin-top: 44px;
  }

  .degree-program-v2 .lead {
    margin-top: 8px;
    max-width: none;
  }

  .degree-program-v2 .hero__badges {
    gap: 6px;
    margin-bottom: 12px;
  }

  .degree-program-v2 .badge-mod,
  .degree-program-v2 .acred,
  .degree-program-v2 .badge-new {
    padding: 6px 10px;
    font-size: 11px !important;
  }

  .degree-program-v2 .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .degree-program-v2 .btn {
    width: 100%;
  }

  .degree-program-v2 .hero-facts {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .degree-program-v2 .hero-facts__grid {
    grid-template-columns: minmax(0, 280px) !important;
    width: max-content !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    justify-items: center;
  }

  .degree-program-v2 .hero-facts .fact {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .degree-program-v2 .hero__legal {
    font-size: 13px !important;
  }
}


/* —— 3) Breadcrumb en hero programa —— */
/* Variante blanca — programas académicos (burdeos UAO v2) */
.sh-breadcrumb--white .sh-breadcrumb-pill{background:#fff;color:#79102d;box-shadow:0 2px 14px rgba(0,0,0,.12)}
.sh-breadcrumb--white .sh-breadcrumb-item a,
.sh-breadcrumb--white .sh-breadcrumb-item span{color:#79102d!important}
.sh-breadcrumb--white .sh-breadcrumb-home a{color:#79102d!important}
.sh-breadcrumb--white .sh-breadcrumb-item a:active,
.sh-breadcrumb--white .sh-breadcrumb-item a:focus,
.sh-breadcrumb--white .sh-breadcrumb-item a:focus-visible,
.sh-breadcrumb--white .sh-breadcrumb-item a:hover,
.sh-breadcrumb--white .sh-breadcrumb-home a:active,
.sh-breadcrumb--white .sh-breadcrumb-home a:focus,
.sh-breadcrumb--white .sh-breadcrumb-home a:focus-visible,
.sh-breadcrumb--white .sh-breadcrumb-home a:hover{color:#79102d!important;opacity:.82!important}
.sh-breadcrumb--white .sh-breadcrumb-sep{color:#79102d;opacity:.72}

/* Tipografía del breadcrumb en programas: DM Sans → Arial */
.degree-program-v2 .hero .sh-breadcrumb,
.degree-program-v2 .hero .sh-breadcrumb-pill,
.degree-program-v2 .hero .sh-breadcrumb-item,
.degree-program-v2 .hero .sh-breadcrumb-item a,
.degree-program-v2 .hero .sh-breadcrumb-item span{font-family:"DM Sans",Arial,sans-serif!important}

/* Posición sobre el hero v2 — el origen completo debe verse, no recortarse a 22rem */
.degree-program-v2 .hero>.sh-breadcrumb{
  position:absolute;
  top:clamp(18px,3.2vw,44px);
  left:0;
  z-index:5;
  width:auto;
  max-width:min(72rem,calc(100% - 24px));
  pointer-events:none;
}
.degree-program-v2 .hero>.sh-breadcrumb .sh-breadcrumb-pill,
.degree-program-v2 .hero>.sh-breadcrumb a{pointer-events:auto}

.degree-program-v2 .hero .sh-breadcrumb-pill{
  overflow:visible;
  flex-wrap:nowrap;
  max-width:none;
  width:auto;
}
.degree-program-v2 .hero .sh-breadcrumb-item{
  flex:0 0 auto;
  min-width:auto;
  max-width:none;
  overflow:visible;
  text-overflow:unset;
  white-space:nowrap;
}
.degree-program-v2 .hero .sh-breadcrumb-item a,
.degree-program-v2 .hero .sh-breadcrumb-item span{
  overflow:visible;
  text-overflow:unset;
  max-width:none;
  white-space:nowrap;
}
.degree-program-v2 .hero .sh-breadcrumb-item.is-current,
.degree-program-v2 .hero .sh-breadcrumb-item:last-of-type:not(.sh-breadcrumb-home){
  flex:0 1 auto;
  min-width:0;
  max-width:min(28em,40vw);
  overflow:hidden;
}
.degree-program-v2 .hero .sh-breadcrumb-item.is-current a,
.degree-program-v2 .hero .sh-breadcrumb-item.is-current span,
.degree-program-v2 .hero .sh-breadcrumb-item:last-of-type:not(.sh-breadcrumb-home) a,
.degree-program-v2 .hero .sh-breadcrumb-item:last-of-type:not(.sh-breadcrumb-home) span{
  overflow:hidden;
  text-overflow:ellipsis;
}

@media (min-width:1200px){
  .degree-program-v2 .hero>.sh-breadcrumb{
    top:clamp(24px,3.8vw,52px);
    max-width:min(80rem,calc(100% - 32px));
  }
}
@media (max-width:1024px){
  .degree-program-v2 .hero>.sh-breadcrumb{
    top:clamp(14px,2.8vw,24px);
    max-width:calc(100% - 20px);
  }
  .degree-program-v2 .hero .sh-breadcrumb-pill{flex-wrap:wrap}
  .degree-program-v2 .hero .sh-breadcrumb-item.is-current,
  .degree-program-v2 .hero .sh-breadcrumb-item:last-of-type:not(.sh-breadcrumb-home){max-width:100%}
}
@media (max-width:640px){
  .degree-program-v2 .hero>.sh-breadcrumb{top:14px;max-width:calc(100% - 16px)}
  .degree-program-v2 .hero>.sh-breadcrumb .sh-breadcrumb-pill{padding:.5em 1.1em .5em .85em;font-size:10px}
}
@media (max-width:480px){
  .degree-program-v2 .hero>.sh-breadcrumb{top:12px}
}


/* —— 4) Lead / CF7 —— */
/**
 * Escudo del CF7 en el hero de programas.
 * Pattern Lab (uao.css) usa las mismas clases (.input-form, .cb-container)
 * y pisa el CSS pegado en Contact Form 7. Aquí se anula PL y se aplica
 * el diseño del formulario, scoped bajo .degree-program-v2 .lead.
 */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500&family=DM+Sans:wght@300;400;500&display=swap");

/* —— Anular Pattern Lab dentro del form del hero —— */
.degree-program-v2 .lead .form-wrap .input-form::before,
.degree-program-v2 .lead .form-wrap .input-form::after,
.degree-program-v2 .lead .form-wrap .select-input::before,
.degree-program-v2 .lead .form-wrap .cb-container::before {
  content: none !important;
  display: none !important;
}

.degree-program-v2 .lead .form-wrap .cb-container .wpcf7-form-control-wrap {
  position: static !important;
  display: inline-block !important;
  width: auto !important;
}

.degree-program-v2 .lead .form-wrap .cb-container .icon-no-check-two {
  display: none !important;
}

.degree-program-v2 .lead .uao-cf7-hidden-fields {
  display: none !important;
}

/* —— Diseño CF7 (mismas reglas, mayor especificidad) —— */
.degree-program-v2 .lead .form-wrap *,
.degree-program-v2 .lead .form-wrap *::before,
.degree-program-v2 .lead .form-wrap *::after {
  box-sizing: border-box;
}

.degree-program-v2 .lead .form-wrap {
  font-family: "DM Sans", sans-serif;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 32px 16px 16px;
}

.degree-program-v2 .lead .form-header {
  text-align: center;
  margin-bottom: 32px;
}

.degree-program-v2 .lead .form-header .eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888780;
  margin-bottom: 8px;
}

.degree-program-v2 .lead .form-header h2 {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: 26px;
  color: #1a1a18;
  margin: 0 0 6px;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: normal;
}

.degree-program-v2 .lead .form-header p {
  font-size: 14px;
  color: #888780;
  margin: 0;
  font-weight: 300;
}

.degree-program-v2 .lead span.wpcf7-spinner {
  display: contents;
}

.degree-program-v2 .lead .form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.degree-program-v2 .lead .form-divider-line {
  flex: 1;
  height: 0.5px;
  background: #e0ded8;
}

.degree-program-v2 .lead .form-divider-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c4c2ba;
}

.degree-program-v2 .lead .form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.degree-program-v2 .lead .input-form {
  margin: 0 0 14px;
  position: static;
  width: 100%;
}

.degree-program-v2 .lead .input-form input[type="text"],
.degree-program-v2 .lead .input-form input[type="tel"],
.degree-program-v2 .lead .input-form input[type="email"],
.degree-program-v2 .lead .input-form input[type="number"] {
  width: 100%;
  height: 44px;
  min-height: 44px;
  max-height: none;
  padding: 0 14px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 300;
  background: #ffffff;
  border: 0.5px solid #c4c2ba;
  border-radius: 8px;
  border-bottom: 0.5px solid #c4c2ba;
  color: #1a1a18;
  outline: none;
  line-height: 44px;
  letter-spacing: normal;
  box-shadow: none;
  display: block;
  position: static;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.degree-program-v2 .lead .input-form select {
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 36px 0 14px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 300;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  border: 0.5px solid #c4c2ba;
  border-radius: 8px;
  border-bottom: 0.5px solid #c4c2ba;
  color: #888780;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  display: block;
  position: static;
  line-height: 44px;
  letter-spacing: normal;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.degree-program-v2 .lead .input-form input:focus,
.degree-program-v2 .lead .input-form select:focus {
  border-color: #378add;
  box-shadow: 0 0 0 3px rgba(55, 138, 221, 0.1);
}

.degree-program-v2 .lead .input-form input::placeholder {
  color: #b4b2a9;
  font-weight: 300;
}

.degree-program-v2 .lead .input-form .message {
  display: none;
  font-size: 12px;
  color: #a32d2d;
  margin: 4px 0 0;
  padding: 0;
  visibility: hidden;
}

.degree-program-v2 .lead .politic {
  margin: 24px 0 20px;
  padding: 14px;
  border: 0.5px solid #e0ded8;
  border-radius: 8px;
  background: #f8f7f4;
}

.degree-program-v2 .lead .cb-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin: 0;
  padding: 0;
  position: relative;
  user-select: none;
}

.degree-program-v2 .lead .cb-container input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  margin-left: 0;
  flex-shrink: 0;
  accent-color: #185fa5;
  cursor: pointer;
  opacity: 1;
  position: static;
}

.degree-program-v2 .lead .cb-container p {
  margin: 0;
  font-size: 13px;
  color: #5f5e5a;
  line-height: 1.5;
  font-weight: 300;
  font-family: "DM Sans", sans-serif;
  position: static;
  z-index: auto;
}

.degree-program-v2 .lead .cb-container a {
  color: #185fa5;
  text-decoration: none;
  font-weight: 500;
}

.degree-program-v2 .lead .politic-link {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 0.5px solid #e0ded8;
}

.degree-program-v2 .lead .politic-link a {
  font-size: 12px;
  color: #185fa5;
  text-decoration: none;
}

.degree-program-v2 .lead .recaptcha-wrap {
  margin: 16px 0;
  text-align: center;
}

.degree-program-v2 .lead .submit-wrapper {
  display: block;
  position: relative;
  z-index: 2;
  width: auto;
  max-width: 260px;
  margin: 0 auto;
  padding: 0;
  background: transparent !important;
  border-radius: 8px;
  pointer-events: auto;
}

/* Anula flecha/overlay de uao.css (div.submit-wrapper::after) que tapa el click */
.degree-program-v2 .lead .submit-wrapper::before,
.degree-program-v2 .lead .submit-wrapper::after {
  content: none !important;
  display: none !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.degree-program-v2 .lead .submit-wrapper input[type="submit"],
.degree-program-v2 .lead .submit-wrapper button,
.degree-program-v2 .lead .submit-wrapper .wpcf7-submit {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 48px;
  background: #c8102e !important;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none;
  pointer-events: auto !important;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.degree-program-v2 .lead .submit-wrapper input[type="submit"]:hover,
.degree-program-v2 .lead .submit-wrapper button:hover,
.degree-program-v2 .lead .submit-wrapper .wpcf7-submit:hover {
  background: #a80d26 !important;
  color: #fff !important;
}

.degree-program-v2 .lead .submit-wrapper input[type="submit"]:focus,
.degree-program-v2 .lead .submit-wrapper input[type="submit"]:focus-visible,
.degree-program-v2 .lead .submit-wrapper input[type="submit"]:active,
.degree-program-v2 .lead .submit-wrapper button:focus,
.degree-program-v2 .lead .submit-wrapper button:active,
.degree-program-v2 .lead .submit-wrapper .wpcf7-submit:focus,
.degree-program-v2 .lead .submit-wrapper .wpcf7-submit:active,
.degree-program-v2 .lead form.submitting .submit-wrapper input[type="submit"],
.degree-program-v2 .lead form.submitting .submit-wrapper button,
.degree-program-v2 .lead form.submitting .submit-wrapper .wpcf7-submit {
  background: #c8102e !important;
  color: #fff !important;
  opacity: 1 !important;
}

.degree-program-v2 .lead .submit-wrapper input[type="submit"]:active,
.degree-program-v2 .lead .submit-wrapper button:active,
.degree-program-v2 .lead .submit-wrapper .wpcf7-submit:active {
  transform: scale(0.99);
}

/* form.js puede marcar disabled; en el hero el CTA sigue rojo y usable vía JS del tema */
.degree-program-v2 .lead .submit-wrapper.disabled input[type="submit"],
.degree-program-v2 .lead .submit-wrapper.disabled button,
.degree-program-v2 .lead .submit-wrapper.disabled .wpcf7-submit,
.degree-program-v2 .lead .submit-wrapper input[type="submit"][disabled],
.degree-program-v2 .lead .submit-wrapper button[disabled],
.degree-program-v2 .lead .submit-wrapper .wpcf7-submit[disabled] {
  background: #c8102e !important;
  color: #fff !important;
  cursor: pointer;
  opacity: 1;
}

@media (max-width: 480px) {
  .degree-program-v2 .lead .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .degree-program-v2 .lead .form-wrap {
    padding: 24px 16px;
  }
}
