/* ==========================================================================
   HOME v2 — Hoja de estilos EXCLUSIVA de shared/home_v2.php.
   Migrada por completo desde main.css (que sigue siendo la hoja de las
   landings de curso, master_view_v2.php) para que la Home no dependa de esa
   hoja compartida ni se vea afectada por cambios futuros en ella, y
   viceversa. Contiene TODO lo que la Home necesita: bases, header, hero,
   formularios, botones, secciones genéricas, catálogo/destacados,
   certificación, footer y WhatsApp FAB.
   Review 2026-09-27.
   ========================================================================== */

:root {
  --course-color: #002d8f;
  --course-color-rgb: 0, 45, 143;
  --text-dark: #0f172a;
  --text-body: #1f2430;
  --text-muted: #64748b;
  --text-muted-2: #5b6478;
  --text-muted-3: #8d8d8d;
  --border-soft: rgba(15, 23, 42, 0.1);
  --bg-soft-tint: #dde7fc;
  --accent-orange: #f79e1b;
  --whatsapp-green: #00ae62;
  --danger-live: #e11d2e;
  --white: #ffffff;
  --placeholder: #757575;
  --radius-card: 13px;
  --radius-pill: 100px;
  --shadow-card: 0 2px 10px rgba(var(--course-color-rgb), 0.18);
  --shadow-header: 0 4px 12px rgba(var(--course-color-rgb), 0.2);
  --font-heading: 'Montserrat', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Montserrat', 'Segoe UI', sans-serif;
  --header-offset: 80px;
  --content-number: #002D8F1A;
  --home-red: #991534;
  --home-red-bg: #ad1619;
}

#destacados,
#catalogo,
#certificacion,
#contacto {
  scroll-margin-top: var(--header-offset);
}

* {
  box-sizing: border-box;
}

body.utn-v2 {
  font-family: var(--font-body);
  color: var(--text-body);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  background: var(--white);
  padding-top: 70px;
}

body.utn-v2 img {
  max-width: 100%;
}

div.utn-payment-logos>img {
  width: 110px;
}

body.utn-v2 a {
  text-decoration: none;
  color: inherit;
}

body>header>div.utn-header-v2__inner>a.utn-header-v2__cta.desktop-only>i {
  display: none;
}

body.utn-v2 .container-v2 {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

#certificacion {
  background: linear-gradient(134.7deg, #FFFFFF 0%, #DDE7FC 106.31%);
}

#certificacion > div > div > div:nth-child(1) > a{
  width: 140px;
  height: 36px;
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0px;
  padding: 0px;
}

#certificacion>div {
  padding: 32px 44px;
}

body.utn-v2 h1,
body.utn-v2 h2,
body.utn-v2 h3,
body.utn-v2 h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

/* ------------------------------------------------------------------------
   HEADER
   ------------------------------------------------------------------------ */
.utn-header-v2 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-header);
}

.utn-header-v2__inner {
  max-width: none;
  margin: 0 auto;
  padding: 0 64px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.utn-header-v2__logo {
  flex-shrink: 0;
}

.utn-header-v2__inner>nav {
  margin-left: auto;
}

.utn-header-v2__logo img {
  width: 177px;
  display: block;
}

.utn-header-v2__nav {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.utn-header-v2__nav a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-dark);
  white-space: nowrap;
  transition: color .2s ease;
}

.utn-header-v2__nav a:hover {
  color: var(--course-color);
}

.utn-header-v2__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--whatsapp-green);
  color: #fff !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: filter .2s ease;
}

.utn-header-v2__cta:hover {
  filter: brightness(0.92);
  color: #fff !important;
}

.utn-header-v2__burger {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--course-color);
  cursor: pointer;
}

.utn-header-v2__mobile {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--border-soft);
  padding: 16px 24px 24px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  box-shadow: 0 16px 24px rgba(0, 0, 0, .12);
}

.utn-header-v2__mobile a {
  padding: 10px 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-soft);
}

.utn-header-v2__mobile.show {
  display: flex;
}

/* Buscador de cursos en el header (exclusivo de la Home) */
.utn-header-v2__search {
  display: flex;
  align-items: center;
}

.utn-header-v2__search-btn {
  display: none;
  background: none;
  border: none;
  font-size: 16px;
  color: var(--text-dark);
  cursor: pointer;
  padding: 8px;
}

.utn-header-v2__search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f9fc;
  border: 1px solid var(--border-soft);
  border-radius: 7.3px;
  padding: 8px 16px;
  width: 220px;
}

.utn-header-v2__search-box i {
  color: var(--text-muted);
  font-size: 13px;
  flex-shrink: 0;
}

.utn-header-v2__search-box input {
  border: none;
  background: none;
  outline: none;
  width: 100%;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-dark);
}

/* ------------------------------------------------------------------------
   HERO
   ------------------------------------------------------------------------ */
.utn-hero-v2 {
  background: linear-gradient(101.32deg, #ffffff 33.34%, #78797b 107.33%);
  padding: 32px 0 72px;
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.utn-hero-v2__bg-deco {
  position: absolute;
  z-index: -1;
  top: 70px;
  right: -85px;
  width: 343px;
  height: 403px;
  max-width: none;
  pointer-events: none;
}

.utn-hero-v2__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 32px;
  align-items: start;
}

.utn-hero-v2__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(94deg, #8b0a0a, #d32b2e);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  width: 380px;
  height: 48px;
  font-size: 20px;
}

.utn-hero-v2__badge-icon {
  width: 34px;
  flex-shrink: 0;
}

body.utn-v2 .utn-hero-v2 h1 {
  font-weight: 800;
  font-size: 58px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.utn-hero-v2__title-prefix {
  display: block;
  color: var(--text-dark);
}

.utn-hero-v2__title-accent {
  color: var(--home-red);
}

.utn-hero-v2__desc {
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  max-width: 576px;
  margin-bottom: 24px;
  opacity: .85;
}

.utn-hero-v2__checklist {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}

.utn-hero-v2__checklist li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12.77px;
}

.utn-hero-v2__checklist i,
.utn-hero-v2__checklist .utn-icon-check {
  color: var(--home-red);
  margin-top: 3px;
  flex-shrink: 0;
}

.utn-hero-v2__checklist .utn-icon-check {
  margin-top: 0;
}

/* Desktop: 2 columnas rellenadas por columna (no por fila), para que el
   orden de lectura vertical en tablet/mobile (1 columna) coincida con el
   Figma: Certificación / Docentes / Clases / Ofertas. */
@media (min-width: 1025px) {
  .utn-hero-v2__checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
  }
}

/* Stats del hero: sin tarjeta, número en rojo institucional / label en negro */
.utn-home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-bottom: 28px;
  max-width: 434px;
}

.utn-home-stats .utn-stat-card {
  background: transparent;
  box-shadow: none;
  padding: 0;
  text-align: left;
}

.utn-home-stats .utn-stat-card__body {
  padding: 0;
}

.utn-home-stats .utn-stat-value {
  font-family: 'Montserrat', var(--font-heading);
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  color: var(--home-red);
  margin-bottom: 8px;
  text-align: start;
  display: block;
}

.utn-home-stats .utn-stat-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-dark);
}

/* Mini form (Hero) */
.utn-mini-form {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
  padding: 24px 22px;
}

.utn-mini-form__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--home-red);
  margin-bottom: 3px;
  padding: 8px 0;
}

.utn-mini-form__subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ------------------------------------------------------------------------
   FORM ELEMENTS (formulario hero + formulario final)
   ------------------------------------------------------------------------ */
.utn-form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 0px;
  flex-wrap: wrap;
}

.utn-form-row>.utn-form-group {
  flex: 1 1 120px;
  min-width: 0;
}

.utn-form-group {
  margin-bottom: 10px;
}

.utn-form-group--half {
  max-width: calc(50% - 6px);
}

.utn-form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  color: var(--home-red);
  margin-bottom: 5px;
  text-transform: none;
  letter-spacing: .3px;
}

.utn-form-group input[type="text"],
.utn-form-group input[type="email"],
.utn-form-group input[type="tel"],
.utn-form-group select {
  width: 100%;
  border: 1px solid var(--border-soft);
  background: #f8f9fc;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13.5px;
  font-family: var(--font-body);
  color: var(--text-dark);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.utn-form-group textarea {
  width: 100%;
  border: 1px solid var(--border-soft);
  background: #f8f9fc;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13.5px;
  font-family: var(--font-body);
  color: var(--text-dark);
  resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
}

/* Placeholder de los <select> (la opción disabled/selected "Elegí un ...")
   se muestra en gris, igual que el placeholder de los inputs de texto. */
.utn-form-group select:has(option[value=""]:checked) {
  color: var(--placeholder);
}

.utn-form-group select option[value=""] {
  color: var(--placeholder);
}

.utn-form-group input:focus,
.utn-form-group select:focus,
.utn-form-group textarea:focus {
  outline: none;
  border-color: var(--course-color);
  box-shadow: 0 0 0 3px rgba(var(--course-color-rgb), .12);
  background: #fff;
}

.utn-form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.utn-form-alert {
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  text-align: center;
  margin-bottom: 14px;
}

.utn-form-alert--danger {
  background: #fdecea;
  color: #c0392b;
}

.utn-form-alert--success {
  background: #eafaf1;
  color: #1e8449;
}

#utn-form-hero button[type="submit"],
#utn-form-final button[type="submit"] {
  background: var(--home-red);
}

/* El campo DNI del form del hero es exclusivo de mobile (ver Figma) */
.utn-form-group--dni {
  display: none;
}

/* ------------------------------------------------------------------------
   BOTONES
   ------------------------------------------------------------------------ */
.utn-btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: filter .2s ease, background .2s ease, color .2s ease;
  text-align: center;
}

.utn-btn-pill--solid {
  background: var(--course-color);
  color: #fff !important;
}

.utn-btn-pill--solid:hover {
  filter: brightness(1.1);
  color: #fff !important;
}

.utn-btn-pill--block {
  width: 100%;
  padding: 16px 28px;
  font-size: 12px;
  height: 40px;
  margin-top: 18px;
}

#utn-form-final>button {
  max-width: 356px;
}

/* ------------------------------------------------------------------------
   SECCIONES GENÉRICAS
   ------------------------------------------------------------------------ */
.utn-section-v2 {
  padding: 56px 0;
}

.utn-section-title-v2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
}

body.utn-v2 .utn-section-title-v2--light {
  color: #fff;
}

.utn-section-subtitle-v2 {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  font-size: 14px;
  color: var(--text-body);
  white-space: nowrap;
}

@media (max-width: 991px) {
  .utn-section-subtitle-v2 {
    white-space: normal;
  }
}

/* ------------------------------------------------------------------------
   MEDIOS DE PAGO
   ------------------------------------------------------------------------ */
.utn-payment-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.utn-payment-logos img.mp-logo {
  display: block;
}

.utn-payment-logos__card {
  font-size: 30px;
  color: var(--course-color);
}

/* ------------------------------------------------------------------------
   CERTIFICACIÓN
   ------------------------------------------------------------------------ */
.utn-cert-v2 {
  padding: 32px 193px;
}

.utn-cert-v2__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(94deg, #8b0a0a, #d32b2e);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.utn-cert-v2__badge-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

body.utn-v2 .utn-cert-v2 h2 {
  color: var(--text-dark);
  margin-bottom: 18px;
  max-width: 620px;
}

.utn-cert-v2 p {
  max-width: 620px;
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
}

.utn-cert-v2__text strong {
  color: var(--text-dark);
  font-weight: 700;
}

.utn-cert-v2__text .utn-cert-v2__text-strong {
  font-weight: 800;
}

.utn-cert-v2__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 1fr);
  gap: 40px;
  align-items: center;
}

.utn-cert-v2__preview {
  display: flex;
  justify-content: center;
}

.utn-cert-v2__preview img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 4px 4px 4px 0px #002D8F33;
}

/* ------------------------------------------------------------------------
   FORMULARIO FINAL (sección #contacto)
   ------------------------------------------------------------------------ */
.utn-form-final-v2__card {
  max-width: 900px;
  margin: 0 auto;
}

#contacto .utn-section-title-v2 {
  padding-bottom: 16px;
}

#contacto .utn-mini-form {
  width: 850px;
  max-width: 100%;
  padding: 24px 52px;
}

/* ------------------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------------------ */
.utn-footer-v2 {
  background: #000;
  color: #fff;
  padding: 32px 193px;
}

.utn-footer-v2__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  margin-bottom: 32px;
}

.utn-footer-v2__logo-img {
  width: 215.47px;
  height: 82.63px;
  object-fit: contain;
  object-position: left;
  margin-bottom: 16px;
}

.utn-footer-v2__contact {
  display: flex;
  gap: 16px;
  flex-direction: column;
}

.utn-footer-v2__logo div p {
  font-size: 16px;
  font-weight: 700;
  opacity: .9;
  line-height: 1.6;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.utn-footer-v2__logo-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.utn-footer-v2 h5 {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  margin-top: 0px;
}

.utn-footer-v2__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.utn-footer-v2__col--social {
  max-width: 272px;
}

.utn-footer-v2__nav a {
  font-size: 12px;
  color: #fff;
  opacity: .85;
}

.utn-footer-v2__nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.utn-footer-v2__social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.utn-footer-v2__social a {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #AD1619;
  border: 1px solid rgba(255, 255, 255, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  transition: filter .2s ease, transform .2s ease;
}

.utn-footer-v2__social a:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

.utn-footer-v2__bottom {
  padding-top: 36px;
  text-align: center;
  font-size: 11.5px;
  color: #fff;
}

/* ------------------------------------------------------------------------
   WHATSAPP FAB
   ------------------------------------------------------------------------ */
body.utn-v2 .utn-whatsapp-fab-v2 {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #00AE62;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, transform .2s ease;
}

body.utn-v2 .utn-whatsapp-fab-v2.show {
  opacity: 1;
  visibility: visible;
}

body.utn-v2 .utn-whatsapp-fab-v2:hover {
  transform: scale(1.08);
  color: #fff;
}

/* ------------------------------------------------------------------------
   CATÁLOGO — destacados (carrusel), buscador+pills, estantes, medios de pago
   ------------------------------------------------------------------------ */
/* ------------------------------------------------------------------------
   Banner oscuro de "Diplomaturas UTN con mayor demanda" (debajo del hero)
   ------------------------------------------------------------------------ */
.utn-destacados-banner {
  width: 100%;
  min-height: 250px;
  padding: 32px 0;
  background: linear-gradient(270deg, #000000 0%, #232424 100%);
  display: flex;
  align-items: center;
}

.utn-destacados-banner__row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.utn-destacados-banner__icon {
  width: 41px;
  flex-shrink: 0;
  margin-bottom: 50px;
  margin-right: 20px;
}

body.utn-v2 .utn-destacados-banner__title {
  font-family: 'Montserrat', var(--font-heading);
  font-weight: 700;
  font-size: 40px;
  line-height: 36.48px;
  letter-spacing: -0.66px;
  color: #fff;
  margin: 0 0 12px;
}

.utn-destacados-banner__desc {
  font-family: 'Montserrat', var(--font-heading);
  font-weight: 500;
  font-size: 20px;
  line-height: 30px;
  letter-spacing: -0.66px;
  color: #fff;
  margin: 0;
}

.utn-destacados-banner__desc strong {
  font-weight: 700;
}

.utn-course-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  height: 100%;
  width: 100%;
  max-width: 400px;
}

.utn-course-card__banner {
  background: var(--course-color);
  height: 209px;
  border-radius: 12px 12px 0 0;
  position: relative;
  flex-shrink: 0;
}

.utn-course-card__banner {
  overflow: hidden;
}

/* Imagen del recuadro: la subida desde el admin cubre todo el recuadro; la ilustración de respaldo se muestra entera */
.utn-course-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.utn-course-card__img--photo {
  object-fit: cover;
}

.utn-course-card__img--default {
  object-fit: contain;
  padding: 10px;
}

.utn-course-card__top-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #000;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .5px;
  padding: 6px 14px;
  border-radius: 100px;
}

.utn-course-card__body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex: 1;
}

.utn-course-card__badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 100px;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .15)),
    linear-gradient(90deg, var(--course-color) 0%, color-mix(in srgb, var(--course-color) 55%, black) 96.63%);
}

body.utn-v2 .utn-course-card__body h4 {
  font-family: 'Montserrat', var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  line-height: 32px;
  color: var(--text-dark);
  margin: 0;
  /* 2 líneas siempre, sin importar el largo del título, para que el resto
     de los elementos (descripción, meta, precio, botón) arranquen a la
     misma altura en todas las cards de una misma fila. */
  min-height: 64px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.utn-course-card__desc {
  font-family: 'Montserrat', var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-body);
  margin: 0;
  /* 3 líneas siempre, mismo criterio que el título de arriba. */
  min-height: 72px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.utn-course-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.utn-course-card__meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  line-height: 16px;
  color: var(--text-dark);
}

.utn-course-card__meta-item i {
  color: var(--course-color);
  font-size: 21px;
  flex-shrink: 0;
}

.utn-course-card__icon-level {
  display: inline-block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background-color: var(--course-color);
  -webkit-mask: url(../img/icons/level.svg) no-repeat center / contain;
  mask: url(../img/icons/level.svg) no-repeat center / contain;
}

.utn-course-card__price-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.utn-course-card__icon-price {
  display: inline-block;
  width: 27px;
  height: 27px;
  flex-shrink: 0;
  background-color: var(--course-color);
  -webkit-mask: url(../img/icons/price.svg) no-repeat center / contain;
  mask: url(../img/icons/price.svg) no-repeat center / contain;
}

.utn-course-card__price-label {
  font-family: 'Montserrat', var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  line-height: 24px;
  color: var(--text-muted);
}

.utn-course-card__price {
  font-family: 'Montserrat', var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  line-height: 24px;
  color: var(--text-dark);
}

.utn-course-card__financing {
  font-family: 'Montserrat', var(--font-heading);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
  margin: 0;
}

.utn-course-card__financing strong {
  font-weight: 700;
}

/* En las cards grandes (Destacados) el texto de cuotas se alinea con el precio final, no con el ícono:
   ícono (27px) + separación (10px) */
.utn-course-card:not(.utn-course-card--compact) .utn-course-card__financing {
  padding-left: 37px;
}

.utn-course-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 337px;
  height: 48px;
  padding: 16px 32px;
  border-radius: 100px;
  background: #000;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  margin-top: auto;
  transition: filter .2s ease;
}

/* Más específico que el reset global "body.utn-v2 a { color: inherit }"
   (que si no, gana y deja el texto del botón en negro sobre fondo negro),
   así queda blanco en las dos variantes de card (grande y --compact). */
body.utn-v2 .utn-course-card__cta {
  color: #fff;
}

.utn-course-card__cta:hover {
  filter: brightness(1.2);
}

body.utn-v2 .utn-course-card__cta:hover {
  color: #fff;
}

/* ------------------------------------------------------------------------
   Card compacta (estantes por categoría, "¿Qué querés estudiar?") — misma
   estructura que la card grande de Destacados pero más chica y simple: sin
   tag "TOP", sin fila de días de cursada y sin texto de cuotas.
   ------------------------------------------------------------------------ */
.utn-course-card--compact {
  width: 100%;
  max-width: 380px;
  border-radius: 12.7px;
  box-shadow: 0px 4.05px 28.47px 0px #002D8F1A;
}

.utn-course-card--compact .utn-course-card__banner {
  height: 184px;
  border-radius: 12.7px 12.7px 0 0;
}

.utn-course-card--compact .utn-course-card__body {
  padding: 24px;
  gap: 14px;
}

.utn-course-card--compact .utn-course-card__badge {
  background: var(--course-color);
  font-size: 12px;
  padding: 6px 14px;
}

body.utn-v2 .utn-course-card--compact .utn-course-card__body h4 {
  font-size: 20.32px;
  line-height: 25.39px;
  letter-spacing: -0.32px;
  min-height: 50.78px;
}

.utn-course-card--compact .utn-course-card__desc {
  font-weight: 400;
  font-size: 12.7px;
  line-height: 15.24px;
  min-height: 60.96px;
  -webkit-line-clamp: 4;
}

.utn-course-card--compact .utn-course-card__meta {
  gap: 10px;
}

.utn-course-card--compact .utn-course-card__meta-item {
  font-size: 13px;
}

.utn-course-card--compact .utn-course-card__icon-level {
  width: 18px;
  height: 18px;
}

.utn-course-card--compact .utn-course-card__icon-price {
  width: 15px;
  height: 15px;
}

.utn-course-card--compact .utn-course-card__price-label {
  font-size: 10px;
  line-height: 20px;
}

.utn-course-card--compact .utn-course-card__price {
  font-size: 18px;
  line-height: 20px;
}

.utn-course-card--compact .utn-course-card__cta {
  width: 100%;
  max-width: 339.37px;
  height: 40px;
  gap: 6.35px;
  padding: 10.16px 20.32px;
  border-radius: 63.49px;
  background: #0E0D0D;
  font-size: 12px;
  line-height: 11.58px;
}

.utn-destacados-grid {
  display: flex;
  gap: 24px; /* misma separación que los estantes (.utn-catalog-grid) */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-bottom: 16px;
}

.utn-destacados-grid::-webkit-scrollbar {
  display: none;
}

.utn-destacados-slide {
  /* el ancho del carril = el ancho de la card (400px, su máximo): así la separación visible entre cards es la del `gap` y no sobra espacio dentro del carril */
  flex: 0 0 400px;
  max-width: 100%;
  min-width: 260px;
  scroll-snap-align: start;
}

.utn-destacados-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.utn-destacados-pagination__arrow {
  border: none;
  background: none;
  color: #000000;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.utn-destacados-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.utn-destacados-dots__dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  border: none;
  background: var(--border-soft);
  cursor: pointer;
  padding: 0;
  transition: width .2s ease, background .2s ease;
}

.utn-destacados-dots__dot.active {
  width: 24px;
  background: #000000;
}

.utn-catalog-search-v2 {
  padding: 48px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, #f3f4f7 0%, #ffffff 100%);
}

.utn-catalog-search-v2__heading {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
}

.utn-catalog-search-v2__icon {
  display: block;
  width: 30px;
  height: 83px;
  flex-shrink: 0;
  padding-bottom: 48px;
  background-color: #000;
  -webkit-mask: url(../img/icons/asterisco_utn.svg) no-repeat top / 30px 35px;
  mask: url(../img/icons/asterisco_utn.svg) no-repeat top / 30px 35px;
}

.utn-catalog-search-v2 .utn-section-title-v2 {
  margin-bottom: 0;
  padding-bottom: 48px;
  background-image: linear-gradient(90.2deg, #000000 -0.16%, #666666 72.03%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.utn-catalog-search {
  position: relative;
  max-width: 600px;
  margin: 0 auto 28px;
}

.utn-catalog-search i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.utn-catalog-search input {
  width: 100%;
  border: 1px solid var(--border-soft);
  background: #fff;
  border-radius: 7.3px;
  padding: 15px 46px 15px 44px;
  font-size: 14px;
  font-family: var(--font-body);
  box-shadow: 0 2px 10px rgba(15, 23, 42, .06);
}

.utn-catalog-search input:focus {
  outline: none;
  border-color: var(--course-color);
  box-shadow: 0 0 0 3px rgba(0, 45, 143, .12);
}

.utn-catalog-search__clear {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
}

.utn-catalog-search__clear.is-visible {
  display: flex;
}

.utn-catalog-search__clear:hover {
  color: var(--text-dark);
}

/* Etiquetas por categoría (filtran los estantes) */
.utn-catalog-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 18px;
}

.utn-catalog-tag {
  --tag-color: #111;
  border: 2px solid var(--tag-color);
  background: #fff;
  color: var(--tag-color);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.utn-catalog-tag:hover,
.utn-catalog-tag.is-active {
  background: var(--tag-color);
  color: #fff;
}

.utn-catalog-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.utn-catalog-pill {
  border: 1.5px solid transparent;
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  background: #fff;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.utn-catalog-pill--diseno {
  border-color: #9242BD;
  color: #9242BD;
}

.utn-catalog-pill--diseno:hover,
.utn-catalog-pill--diseno.is-active {
  background: #9242BD;
  color: #fff;
}

.utn-catalog-pill--marketing {
  border-color: #0078B3;
  color: #0078B3;
}

.utn-catalog-pill--marketing:hover,
.utn-catalog-pill--marketing.is-active {
  background: #0078B3;
  color: #fff;
}

.utn-catalog-pill--programacion {
  border-color: #272AB7;
  color: #272AB7;
}

.utn-catalog-pill--programacion:hover,
.utn-catalog-pill--programacion.is-active {
  background: #272AB7;
  color: #fff;
}

.utn-catalog-shelf {
  margin-top: 40px;
}

.utn-catalog-shelf__banner {
  min-height: 134px;
  padding: 24px 0;
  display: flex;
  align-items: center;
  text-align: left;
  margin-bottom: 32px;
}

body.utn-v2 .utn-catalog-shelf__banner h3 {
  font-family: 'Montserrat', var(--font-heading);
  font-weight: 700;
  font-size: 40px;
  line-height: 36.48px;
  letter-spacing: -0.66px;
  color: #fff;
  margin: 0 0 6px;
}

.utn-catalog-shelf__banner p {
  font-family: 'Montserrat', var(--font-heading);
  font-weight: 500;
  font-size: 20px;
  line-height: 30px;
  letter-spacing: -0.66px;
  color: #fff;
  margin: 0;
}

.utn-catalog-shelf__cta {
  width: 356px;
  max-width: 100%;
  height: 48px;
  gap: 7.3px;
  padding-left: 21.89px;
  padding-right: 21.89px;
  border-radius: 100px;
  background-color: #991534;
  color: #fff;
  font-family: 'Montserrat', var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  line-height: 18.24px;
  letter-spacing: 0px;
  text-align: center;
}

/* Estante de categoría: carrusel (scroll-snap) con flechas y puntos, igual que Destacados */
.utn-catalog-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-bottom: 16px;
}

.utn-catalog-grid::-webkit-scrollbar {
  display: none;
}

.utn-catalog-grid > .utn-course-card {
  flex: 0 0 calc((100% - 48px) / 3);
  max-width: none;
  min-width: 260px;
  scroll-snap-align: start;
}

.utn-catalog-pagination.is-single {
  display: none;
}

.utn-catalog-mp {
  background: linear-gradient(270deg, #000000 0%, #232424 100%);
  padding: 56px 0;
  margin-top: 56px;
}

.utn-catalog-mp .utn-section-title-v2 {
  margin-bottom: 48px;
}

.utn-catalog-mp__card {
  background: #fff;
  border-radius: var(--radius-card);
  margin: 0 auto;
  padding: 32px 40px;
  text-align: left;
}

.utn-catalog-mp__row {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 789px;
  max-width: 100%;
  margin: 0 auto 24px;
}

.utn-catalog-mp__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.utn-catalog-mp__brand-logo {
  width: 84px;
  height: auto;
  flex-shrink: 0;
}

.utn-catalog-mp__brand-text {
  font-family: 'Montserrat', var(--font-heading);
  font-weight: 500;
  font-size: 24px;
  line-height: 30px;
  color: var(--text-dark);
}

.utn-catalog-mp__brand-text strong {
  font-weight: 700;
  color: #0A0080;
}

.utn-catalog-mp__desc {
  font-family: 'Montserrat', var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-body);
  margin: 0;
  flex: 1;
}

.utn-catalog-mp__community {
  background: #f2f3f6;
  border-radius: 10px;
  padding: 14px 20px;
  width: 800px;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  font-size: 13px;
  color: var(--text-body);
}

.utn-catalog-mp__community strong {
  color: var(--course-color);
}

/* Scroll reveal (usado por tracking.js en las secciones .reveal-v2) */
.reveal-v2 {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal-v2.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* ------------------------------------------------------------------------
   TABLET (<=1024px)
   ------------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .utn-destacados-banner {
    padding: 28px 0;
  }

  .utn-destacados-banner__title {
    font-size: 30px;
    line-height: 1.15;
  }

  .utn-destacados-banner__desc {
    font-size: 16px;
    line-height: 24px;
  }

  .utn-catalog-shelf__banner {
    padding: 24px 0;
  }

  body.utn-v2 .utn-catalog-shelf__banner h3 {
    font-size: 28px;
    line-height: 1.15;
  }

  .utn-catalog-shelf__banner p {
    font-size: 16px;
    line-height: 22px;
  }

  .utn-header-v2__nav {
    display: none;
  }

  .utn-header-v2__cta.desktop-only {
    display: inline-flex;
  }

  .utn-header-v2__burger {
    display: block;
    order: -1;
  }

  .utn-hero-v2__bg-deco {
    right: -200px;
  }

  #hero>img {
    max-width: 343px;
  }

  .utn-cert-v2 {
    padding: 32px 56px;
  }

  body.utn-v2 .container-v2,
  .utn-header-v2__inner {
    padding: 0 56px;
  }

  body.utn-v2 {
    padding-top: 72px;
  }

  :root {
    --header-offset: 72px;
  }

  .utn-hero-v2__grid {
    gap: 28px;
  }

  body.utn-v2 .utn-hero-v2 h1 {
    font-size: 48px;
  }

  .utn-section-v2 {
    padding: 32px 0;
  }

  .utn-hero-v2 {
    padding-bottom: 0;
    padding-top: 16px;
  }

  .utn-destacados-slide {
    flex: 0 0 calc((100% - 24px) / 1.6);
    min-width: 240px;
  }

  .utn-catalog-grid > .utn-course-card {
    flex: 0 0 calc((100% - 24px) / 2.2);
    min-width: 240px;
  }

  .utn-footer-v2 {
    padding: 32px 18.24px;
  }

  .utn-footer-v2__social a {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    text-align: center;
  }

  .utn-footer-v2__social a i {
    width: 16px;
    height: 16px;
    font-size: 16px;
  }

  /* Home: spider más chico y stats en 1 columna */
  .utn-hero-v2__bg-deco {
    width: 203px;
    height: 238px;
    top: auto;
    bottom: 0;
  }

  .utn-home-stats {
    grid-template-columns: 1fr;
  }

  .utn-header-v2__search-box {
    width: 180px;
  }
}

/* ------------------------------------------------------------------------
   TABLET (768-1024px) — ajustes que NO aplican en desktop ni en mobile
   ------------------------------------------------------------------------ */
@media (min-width: 768px) and (max-width: 1024px) {
  .utn-hero-v2__grid {
    grid-template-columns: minmax(0, 1fr) 440px;
  }

  .utn-mini-form {
    width: 408px;
    max-width: 100%;
  }

  #hero .utn-mini-form {
    margin-left: auto;
  }
}

@media (max-width: 991px) {
  .utn-footer-v2__grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------------
   MOBILE — quiebre general a 1 columna (<=767px)
   ------------------------------------------------------------------------ */
@media (max-width: 767px) {

  body.utn-v2 .container-v2,
  .utn-header-v2__inner {
    padding: 0 32px;
  }

  .utn-cert-v2 {
    padding: 24px 32px;
  }

  .utn-hero-v2__grid {
    grid-template-columns: 1fr;
    justify-content: center;
  }

  .utn-cert-v2__grid {
    grid-template-columns: 1fr;
  }

  .utn-cert-v2__preview {
    order: -1;
    max-width: 320px;
    margin: 0 auto 24px;
  }

  .utn-catalog-grid {
    gap: 16px;
  }

  .utn-catalog-grid > .utn-course-card {
    flex: 0 0 85%;
    min-width: 0;
  }

  .utn-destacados-slide {
    flex: 0 0 85%;
  }

  .utn-catalog-pills {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
}

/* ------------------------------------------------------------------------
   MOBILE (<=576px)
   ------------------------------------------------------------------------ */
@media (max-width: 576px) {
  .utn-catalog-mp__card {
    padding: 24px;
  }

  .utn-catalog-mp__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  body.utn-v2 .utn-hero-v2 h1 {
    font-size: 40px;
  }

  .utn-destacados-banner {
    padding: 24px 0;
    min-height: 0;
  }

  .utn-destacados-banner__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .utn-destacados-banner__icon {
    width: 28px;
    height: 33px;
  }

  .utn-destacados-banner__title {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .utn-destacados-banner__desc {
    font-size: 14px;
    line-height: 20px;
  }

  .utn-catalog-shelf__banner {
    padding: 20px 0;
  }

  body.utn-v2 .utn-catalog-shelf__banner h3 {
    font-size: 22px;
    line-height: 1.2;
  }

  .utn-catalog-shelf__banner p {
    font-size: 14px;
    line-height: 20px;
  }

  .utn-catalog-shelf__cta {
    width: 100%;
  }

  .utn-header-v2__cta-text {
    display: none;
  }

  .utn-header-v2__cta {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    font-size: 18px;
    margin-left: auto;
  }

  .utn-header-v2__burger {
    color: #000;
  }

  .utn-header-v2__inner {
    justify-content: flex-start;
    height: 60px;
    padding-left: 8px;
  }

  .utn-form-row {
    flex-direction: column;
  }

  .utn-form-row>.utn-form-group {
    flex: 1 1 auto;
    width: 100%;
  }

  .utn-form-group--half {
    max-width: 100%;
  }

  .utn-hero-v2 {
    padding: 5px 0 48px;
  }

  .utn-footer-v2__bottom {
    max-width: 320px;
    padding-top: 16px;
  }

  .utn-footer-v2__social {
    justify-content: flex-start;
  }

  .utn-footer-v2 {
    padding: 32px 0px 16px 0px;
  }

  .utn-footer-v2__col--social {
    max-width: 100%;
  }

  .utn-cert-v2__preview {
    order: 0;
    width: 330px;
    height: 230px;
    align-items: center;
    background: var(--course-color);
    box-shadow: 2.69px 2.69px 2.69px 0px #002D8F33;
    margin: 0 auto;
    padding: 10px;
    border-radius: 8px;
  }

  .utn-cert-v2__preview img {
    width: 308px;
    height: 209px;
    border-radius: 5px;
    box-shadow: none;
  }

  .utn-cert-v2 p {
    font-size: 14px;
  }

  .utn-cert-v2__grid {
    gap: 20px;
  }

  #certificacion {
    background: none;
    border-radius: 0;
  }

  #certificacion>div {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
  }

  /* Home: header con buscador colapsado + fila de búsqueda full-width */
  .utn-header-v2__inner {
    flex-wrap: wrap;
    height: auto;
    min-height: 60px;
    padding-bottom: 12px;
  }

  body.utn-v2 {
    padding-top: 122px;
  }

  :root {
    --header-offset: 122px;
  }

  .utn-header-v2__search {
    order: 3;
    margin-left: auto;
    flex-wrap: wrap;
  }

  .utn-header-v2__search-btn {
    display: flex;
    order: 1;
  }

  .utn-header-v2__search-box {
    order: 2;
    flex: 1 1 100%;
    width: 100%;
    margin-top: 10px;
  }

  .utn-header-v2__cta {
    order: 4;
  }

  .utn-home-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 10px;
  }

  .utn-mini-form {
    width: 321px;
    max-width: 100%;
  }

  .utn-form-group--dni {
    display: block;
  }
}

/* ------------------------------------------------------------------------
   HOME · HEADER EN MOBILE (<=576px, diseño de 393px)
   Fila 1: ☰ · logo · [lupa] [WhatsApp]  —  Fila 2: buscador a todo el ancho.
   Solo aplica hasta 576px: tablet y escritorio no cambian.
   ------------------------------------------------------------------------ */
@media (max-width: 576px) {
  .utn-header-v2__inner {
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    height: auto;
    min-height: 0;
    padding: 14px 16px 16px 15px;
    column-gap: 0;
    row-gap: 23px;
  }

  .utn-header-v2__burger {
    order: 1;
    display: flex;
    align-items: center;
    width: 24px;
    height: 41px;
    margin-left: 5px;
    margin-right: 20px;
    padding: 0;
    font-size: 27px;
    color: #000;
  }

  .utn-header-v2__inner>nav {
    display: none;
  }

  .utn-header-v2__logo {
    order: 2;
  }

  .utn-header-v2__logo img {
    width: 119px;
  }

  /* el <form> deja de ser una caja: sus hijos (botón lupa y campo) se acomodan en la fila de la cabecera */
  .utn-header-v2__search {
    display: contents;
  }

  .utn-header-v2__search-btn {
    order: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 41px;
    height: 41px;
    margin-left: auto;
    padding: 0;
    border-radius: 50%;
    background: #f3f3f3;
    color: #8a8a8a;
    font-size: 18px;
  }

  .utn-header-v2__cta {
    order: 4;
    width: 41px;
    height: 41px;
    margin-left: 19px;
    margin-right: 8px;
  }

  /* en mobile el botón de WhatsApp es solo el ícono (el resto de los tamaños lo oculta por el texto) */
  body>header>div.utn-header-v2__inner>a.utn-header-v2__cta.desktop-only>i {
    display: inline-block;
    font-size: 24px;
  }

  .utn-header-v2__search-box {
    order: 5;
    flex: 0 0 100%;
    width: 100%;
    height: 32px;
    margin: 0;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
  }

  .utn-header-v2__search-box i {
    display: none;
  }

  .utn-header-v2__search-box input {
    font-size: 15px;
    color: #111;
  }

  .utn-header-v2__search-box input::placeholder {
    color: #222;
    opacity: 1;
  }

  body.utn-v2 {
    padding-top: 129px;
  }

  :root {
    --header-offset: 129px;
  }
}

/* ------------------------------------------------------------------------
   HOME · HERO EN MOBILE (<=576px, diseño de 393px)
   El badge tenía un ancho fijo de 380px (pensado para escritorio) que ensanchaba la columna y
   corría todo el hero hacia la izquierda: el formulario quedaba descentrado. Acá el hero tiene
   36px de margen a cada lado, el badge se ajusta a su texto y el formulario ocupa y centra el ancho útil.
   Solo aplica hasta 576px.
   ------------------------------------------------------------------------ */
@media (max-width: 576px) {
  .utn-hero-v2 {
    padding-top: 38px;
  }

  #hero .container-v2 {
    padding-left: 36px;
    padding-right: 36px;
  }

  .utn-hero-v2__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .utn-hero-v2__badge {
    width: fit-content;
    max-width: 100%;
    height: 32px;
    padding: 0 10px;
    gap: 8px;
    border-radius: 6px;
    margin-bottom: 23px;
    font-size: 14px;
  }

  .utn-hero-v2__badge-icon {
    width: 20px;
  }

  body.utn-v2 .utn-hero-v2 h1 {
    font-size: 40px;
    line-height: 1;
    letter-spacing: -1px;
    margin-bottom: 24px;
  }

  .utn-hero-v2__desc {
    margin-bottom: 20px;
  }

  .utn-hero-v2__checklist {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    margin-bottom: 28px;
  }

  .utn-hero-v2 .utn-home-stats {
    margin-bottom: 0;
  }

  /* formulario: ocupa todo el ancho útil (hasta 321px) y queda centrado */
  .utn-mini-form {
    width: 100%;
    max-width: 321px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ------------------------------------------------------------------------
   HOME · BANNER "Diplomaturas UTN con mayor demanda" EN MOBILE (<=576px)
   Las reglas de tablet/mobile no llegaban a aplicar (el título base tiene más especificidad): el título
   quedaba en 40px. Acá van los tamaños del diseño: ícono de 44px, título de 24px y tres párrafos separados.
   Solo aplica hasta 576px.
   ------------------------------------------------------------------------ */
@media (max-width: 576px) {
  .utn-destacados-banner {
    padding: 72px 0 62px;
    min-height: 0;
  }

  body.utn-v2 .utn-destacados-banner .container-v2 {
    padding-left: 36px;
    padding-right: 36px;
  }

  .utn-destacados-banner__row {
    gap: 16px;
  }

  .utn-destacados-banner__icon {
    width: 44px;
    height: auto;
    margin: 0 0 0 8px;
  }

  body.utn-v2 .utn-destacados-banner__title {
    font-size: 24px;
    line-height: 34px;
    margin-bottom: 18px;
  }

  .utn-destacados-banner__desc {
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 11px;
  }

  .utn-destacados-banner__desc:last-child {
    margin-bottom: 0;
  }
}

/* ------------------------------------------------------------------------
   HOME · CARDS DE "DESTACADOS" EN MOBILE (<=576px, diseño de 393px)
   Las cards eran las de escritorio apenas achicadas: sin separación entre ellas (la siguiente pegada),
   de 750px de alto y con el título y el botón cortados. Acá van las proporciones del diseño: card de
   ~290px de ancho (88% del carril) con 16px entre cards, recuadro de 166px, tipografías más chicas y
   botón de 32px de alto. Solo aplica hasta 576px y solo a las cards grandes de Destacados.
   ------------------------------------------------------------------------ */
@media (max-width: 576px) {
  .utn-destacados-grid {
    gap: 16px;
    margin-bottom: 39px;
  }

  .utn-destacados-slide {
    flex: 0 0 88%;
    min-width: 0;
  }

  .utn-destacados-slide .utn-course-card {
    max-width: none;
  }

  .utn-destacados-slide .utn-course-card__banner {
    height: 166px;
  }

  .utn-destacados-slide .utn-course-card__top-tag {
    top: 17px;
    right: 16px;
    padding: 5px 12px;
    font-size: 11px;
    line-height: 12px;
  }

  .utn-destacados-slide .utn-course-card__body {
    padding: 20px 24px 32px;
    gap: 10px;
  }

  .utn-destacados-slide .utn-course-card__badge {
    height: 24px;
    padding: 0 12px;
    font-size: 11px;
  }

  body.utn-v2 .utn-destacados-slide .utn-course-card__body h4 {
    font-size: 20px;
    line-height: 23px;
    letter-spacing: -0.66px;
    min-height: 46px;
  }

  .utn-destacados-slide .utn-course-card__desc {
    font-size: 12px;
    line-height: 14.4px;
    min-height: 58px;
    -webkit-line-clamp: 4;
  }

  .utn-destacados-slide .utn-course-card__meta {
    gap: 8px;
    margin-top: 3px;
  }

  .utn-destacados-slide .utn-course-card__meta-item {
    font-size: 12px;
    line-height: 16px;
  }

  .utn-destacados-slide .utn-course-card__meta-item i {
    font-size: 16px;
    width: 16px;
  }

  .utn-destacados-slide .utn-course-card__icon-level {
    width: 16px;
    height: 16px;
  }

  .utn-destacados-slide .utn-course-card__icon-price {
    width: 28px;
    height: 28px;
  }

  .utn-destacados-slide .utn-course-card__price-label {
    font-size: 11px;
    line-height: 12px;
  }

  .utn-destacados-slide .utn-course-card__price {
    font-size: 20px;
    line-height: 18px;
  }

  .utn-destacados-slide .utn-course-card__financing {
    font-size: 11px;
    line-height: 13px;
  }

  .utn-destacados-slide .utn-course-card__cta {
    width: 225px;
    max-width: 100%;
    height: 32px;
    padding: 0 24px;
    font-size: 12px;
    align-self: center;
    white-space: nowrap;
  }
}

/* ------------------------------------------------------------------------
   HOME · "¿QUÉ QUERÉS ESTUDIAR?" EN MOBILE (<=576px, diseño de 393px)
   Ícono arriba y título centrado (antes iban en fila), buscador de 36px de margen y las etiquetas y
   chips en filas centradas de una sola línea (antes los chips corrían hacia un costado con el texto
   cortado en dos líneas). Solo aplica hasta 576px.
   ------------------------------------------------------------------------ */
@media (max-width: 576px) {
  .utn-catalog-search-v2 {
    padding: 66px 0 36px;
  }

  body.utn-v2 .utn-catalog-search-v2 .container-v2 {
    padding-left: 36px;
    padding-right: 36px;
  }

  .utn-catalog-search-v2__heading {
    flex-direction: column;
    align-items: center;
    gap: 37px;
    margin-bottom: 42px;
  }

  .utn-catalog-search-v2__icon {
    width: 40px;
    height: 47px;
    padding-bottom: 0;
    -webkit-mask-size: 40px 47px;
    mask-size: 40px 47px;
    -webkit-mask-position: center;
    mask-position: center;
  }

  .utn-catalog-search-v2 .utn-section-title-v2 {
    padding-bottom: 0;
  }

  .utn-catalog-search {
    margin-bottom: 38px;
  }

  .utn-catalog-search input {
    font-size: 15px;
    padding: 15px 52px 15px 54px;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(15, 23, 42, .18);
  }

  .utn-catalog-search i {
    left: 22px;
    font-size: 17px;
  }

  .utn-catalog-search__clear {
    right: 18px;
    width: 28px;
    height: 28px;
    font-size: 17px;
  }

  /* etiquetas de categoría y chips de cursos: mismo tamaño, filas centradas, sin cortar el texto */
  .utn-catalog-tags,
  .utn-catalog-pills {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 9px 10px;
    padding-bottom: 0;
  }

  .utn-catalog-tags {
    margin-bottom: 9px;
  }

  .utn-catalog-tag,
  .utn-catalog-pill {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border-width: 1px;
    font-size: 13.5px;
    white-space: nowrap;
  }
}

/* ------------------------------------------------------------------------
   HOME · MOBILE (<=576px): orden de secciones, formulario de contacto y cuotas
   - Orden: Certificación universitaria, "Tu próximo paso empieza acá" (medios de pago) y el formulario al final; la certificación pierde su botón.
   - El formulario de contacto tenía 52px de relleno por lado (pensado para escritorio): se reduce, y el
     botón de envío se ensancha un poco más que los campos para que su texto entre en una línea.
   - Las cuotas de las cards de Destacados se alinean con el precio (el ícono mide 28px acá).
   Solo aplica hasta 576px.
   ------------------------------------------------------------------------ */
@media (max-width: 576px) {
  main {
    display: flex;
    flex-direction: column;
  }

  /* orden en mobile: Certificación, «Tu próximo paso empieza acá» (medios de pago) y, al final, el formulario */
  #certificacion {
    order: 1;
  }

  .utn-catalog-mp {
    order: 2;
  }

  #contacto {
    order: 3;
  }

  #certificacion .utn-btn-pill {
    display: none;
  }

  #contacto .utn-mini-form {
    width: 100%;
    padding: 24px 26px;
  }

  #utn-form-final>button {
    width: calc(100% + 20px);
    max-width: none;
    margin-left: -10px;
    margin-right: -10px;
    white-space: nowrap;
  }

  .utn-destacados-slide .utn-course-card:not(.utn-course-card--compact) .utn-course-card__financing {
    padding-left: 38px;
  }
}

/* ------------------------------------------------------------------------
   HOME · CARRUSELES CENTRADOS (<=1024px)
   En tablet y mobile la card activa queda siempre centrada en la pantalla y, a los costados, se
   asoma un pedazo de la anterior y de la siguiente. El carril sale hasta los bordes de la pantalla
   (margen negativo = margen de la página) y el relleno lateral deja la primera y la última card
   también centradas. Vale para Destacados y para los estantes de categoría.
   ------------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .utn-destacados-grid,
  .utn-catalog-grid {
    --cw: min(400px, 70vw);
    --pad: 56px; /* margen lateral de la página (el carril lo compensa para llegar al borde) */
    margin-left: calc(-1 * var(--pad));
    margin-right: calc(-1 * var(--pad));
    /* mitad del ancho de la pantalla menos la mitad de la card (el % es el ancho de la página, sin la barra de scroll) */
    padding-left: calc(50% + var(--pad) - var(--cw) / 2);
    padding-right: calc(50% + var(--pad) - var(--cw) / 2);
  }

  .utn-destacados-slide,
  .utn-catalog-grid > .utn-course-card {
    flex: 0 0 var(--cw);
    min-width: 0;
    scroll-snap-align: center;
  }
}

@media (max-width: 767px) {
  .utn-destacados-grid,
  .utn-catalog-grid {
    --pad: 32px;
    gap: 16px;
  }
}

@media (max-width: 576px) {
  .utn-destacados-grid,
  .utn-catalog-grid {
    --cw: min(289px, 78vw);
  }
}

/* ------------------------------------------------------------------------
   HOME · HERO: ARAÑA DE FONDO Y TABLET
   - Mobile y tablet: la araña roja asomaba apenas (o quedaba tapada por el formulario). Ahora se ve del lado
     derecho, detrás del texto, con una capa blanca que la desvanece hacia la izquierda (opacidad + máscara).
   - Tablet (768-979px): dos columnas dejaban el texto en 190px y el formulario pegado arriba pisando el badge;
     ahí el hero va en una columna y el formulario queda debajo, centrado. Desde 980px sigue en dos columnas.
   ------------------------------------------------------------------------ */
@media (max-width: 979px) {
  .utn-hero-v2__bg-deco {
    top: 120px;
    bottom: auto;
    width: 300px;
    height: 352px;
    right: -150px;
    opacity: .6;
    /* capa blanca: la araña se desvanece hacia la izquierda y se ve más fuerte pegada al borde derecho */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%);
    mask-image: linear-gradient(to right, transparent 0%, #000 45%);
  }
}

@media (min-width: 768px) and (max-width: 979px) {
  .utn-hero-v2__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  #hero .utn-mini-form {
    width: 440px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  /* con una sola columna hay lugar para las tres estadísticas en una fila */
  .utn-home-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
  }
}

@media (max-width: 576px) {
  .utn-hero-v2__bg-deco {
    top: 200px;
    width: 240px;
    height: 282px;
    right: -150px;
  }
}

/* HOME · HERO: de 1025px hasta que el contenedor (1200px) deja margen propio, el hero conserva el relleno
   lateral de 56px que tiene en tablet (sin esto, el badge y el formulario quedaban pegados a los bordes) */
@media (min-width: 1025px) and (max-width: 1311px) {
  #hero .container-v2 {
    padding-left: 56px;
    padding-right: 56px;
  }
}

/* HOME · HERO: 48px de relleno inferior en todos los tamaños (va al final para ganarle a las reglas de cada breakpoint) */
.utn-hero-v2 {
  padding-bottom: 48px;
}

/* HOME · HERO: de 577px a 767px las tres estadísticas van en una fila (antes quedaban en una sola columna) */
@media (min-width: 577px) and (max-width: 767px) {
  .utn-home-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
  }
}

/* Header de la Home entre 577 y 767px: el botón de WhatsApp pasa a solo ícono (con texto se salía del ancho) */
@media (min-width: 577px) and (max-width: 767px) {
  .utn-header-v2__cta-text {
    display: none;
  }

  .utn-header-v2__cta {
    width: 41px;
    height: 41px;
    padding: 0;
    justify-content: center;
    margin-left: auto;
  }

  body>header>div.utn-header-v2__inner>a.utn-header-v2__cta.desktop-only>i {
    display: inline-block;
    font-size: 24px;
  }
}
