/* =========================================================
   Universidad Panamericana — Landing estática
   Paleta: verde #00685E · oro #B9975B · neutros
   Tipografía: Lora (serif) + Nunito Sans (sans)
   ========================================================= */

:root {
  --primary: #00685e;
  --primary-hover: #00564d;
  --accent: #b9975b;
  --foreground: #1f2a24;
  --muted-foreground: #6b6f6c;
  --background: #ffffff;
  --secondary: #f7f7f7;
  --border: #d9d9d9;
  --radius: 8px;
  --radius-sm: 4px;
  --font-sans: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-serif: "Lora", ui-serif, Georgia, "Times New Roman", serif;
  --shadow-card: 0 1px 2px rgba(31, 42, 36, 0.04), 0 12px 32px rgba(31, 42, 36, 0.08);
  --radius: 18px;
  --shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

/* Reset ----------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* Layout ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}
.container-narrow {
  max-width: 1200px;
}
.section {
  padding: 80px 20px;
  border-bottom: 1px solid var(--border);
}
.section-alt {
  background: var(--secondary);
}
@media (min-width: 768px) {
  .section {
    padding: 50px 0;
  }
}

/* Typography ----------------------------------------------- */
.serif {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
}
.serif h3{
  text-align: center;
}
.display {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.25rem, 4.2vw + 1rem, 2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  color: var(--primary);
}
.display-sub {
  display: block;
  color: var(--accent);
}
.h1-cta {
  font-weight: 500;
  font-size: clamp(1.85rem, 3vw + 1rem, 3rem);
  line-height: 1.1;
  margin: 0;
  color: #fff;
  text-wrap: balance;
}
.h2 {
  font-weight: 500;
  font-size: clamp(1.75rem, 2vw + 1rem, 2.25rem);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0;
}
.h4 {
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0;
}
.h5 {
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.35;
  margin: 0;
}
.paragraph {
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.75;
  margin: 20px 0 0;
  max-width: 620px;
}
@media (min-width: 768px) {
  .paragraph {
    font-size: 1rem;
  }
}
.muted {
  color: var(--muted-foreground);
}
.small {
  font-size: 0.75rem;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0;
}
.eyebrow-gold {
  color: var(--accent);
}
.lead-italic {
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 1vw + 1rem, 1.5rem);
  line-height: 1.25;
  margin: 0;
  color: var(--foreground);
  max-width: 540px;
}
.microcopy {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin: 0;
}

/* Buttons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  padding: 0 20px;
  font-weight: 500;
  font-size: 0.875rem;
  height: 40px;
  border: 1px solid transparent;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-sm {
  height: 40px;
  padding: 0 20px;
}
.btn-lg {
  height: 48px;
  padding: 0 24px;
  font-size: 1rem;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
}
.btn-gold {
  background: var(--accent);
  color: #fff;
}
.btn-gold:hover {
  background: #a5864f;
}
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Icons ----------------------------------------------------- */
.icon {
  flex-shrink: 0;
}
.icon-sm {
  width: 16px;
  height: 16px;
}
.icon-md {
  width: 40px;
  height: 40px;
}
.icon-lg {
  width: 24px;
  height: 24px;
}
.primary {
  color: var(--primary);
}

/* Header ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
}
.brand-mark-lg {
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
}
.brand-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1rem;
  color: var(--foreground);
  display: none;
}
.brand-name-lg {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--foreground);
}
@media (min-width: 640px) {
  .brand-name {
    display: inline;
  }
}

.main-nav {
  display: none;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 140ms ease;
}
.main-nav a:hover {
  color: var(--foreground);
}
@media (min-width: 1024px) {
  .main-nav {
    display: block;
  }
}

/* Hero ------------------------------------------------------ */
.heroBanner {
  padding: 0;
 
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

.heroBanner__grid {
  display: grid;
  grid-template-columns: 1fr;

}

.heroBanner__media {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: url("../images/maestrias-en-linea-mexico.webp#?v=1.0.6");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1f2a24;
}


.heroBanner__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(31, 42, 36, 0.88) 0%,
      rgba(31, 42, 36, 0.68) 45%,
      rgba(31, 42, 36, 0.18) 100%
    );
  z-index: 1;
}

.heroBanner__media::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: -80px;
  width: 190px;
  height: 300px;
  border: 2px solid rgba(185, 151, 91, 0.65);
  transform: rotate(-35deg);
  z-index: 2;
  pointer-events: none;
}

.heroBanner__content {
  position: relative;
  z-index: 3;
  width: min(620px, 100%);
  padding: 80px 48px 80px clamp(24px, 7vw, 120px);
  color: #ffffff;
}

.heroBanner__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 18px;
  margin-bottom: 34px;

  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;

  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow: none;
}
.pill-dot {
  width: 7px;
  height: 7px;
  min-width: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.heroBanner .pill.heroBanner__pill {
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.heroBanner__title {
  color: #ffffff;
  margin: 0;
}

.heroBanner__title .display-sub {
  display: block;
  color: var(--accent);
}

.heroBanner__lead {
  color: #ffffff;
  margin: 28px 0 0;
}

.heroBanner__callout {
  margin-top: 34px;
  max-width: 520px;

  display: flex;
  align-items: center;
  gap: 16px;

  padding: 18px 22px;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.22);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-radius: 20px;

  color: #ffffff;
}
.heroBanner__callout p {
  margin: 0;
  color: #ffffff;
  line-height: 1.6;
}

.heroBanner__callout strong {
  color: #ffffff;
}

.heroBanner__callout .primary {
  min-width: 34px;
    color: var(--accent);

}

.heroBanner__formWrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 32px;
  background: #ffffff;
}

.heroBanner__formWrap .form-card {
  width: min(100%, 520px);
}
/* HERO más pequeño y adaptable */
.heroBanner {
  min-height: auto;
  padding: 0;
}

.heroBanner__grid {
  min-height: auto;
}

/* Imagen/banner */
.heroBanner__media {
  min-height: clamp(280px, 58vh, 480px);
  align-items: center;
}

/* Contenido */
.heroBanner__content {
  padding-top: clamp(40px, 6vh, 70px);
  padding-bottom: clamp(40px, 6vh, 70px);
}

/* Formulario */
.heroBanner__formWrap {
  min-height: auto;
  padding: clamp(24px, 4vh, 42px) 28px;
}

/* Portátiles bajitos */
@media (min-width: 1024px) and (max-height: 780px) {
  .heroBanner__media {
    min-height: 460px;
  }

  .heroBanner__content {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .heroBanner__formWrap {
    padding: 22px 24px;
  }

  .form-card {
    padding: 22px;
  }

  .field input,
  .field select {
    height: 40px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .heroBanner__media {
    min-height: 560px;
    align-items: flex-end;
  }

  .heroBanner__content {
    padding: 90px 24px 40px;
  }

  .heroBanner__formWrap {
    padding: 28px 20px 42px;
  }
}
/* Form conserva tu estilo */
.form-card-wrap {
  position: relative;
}

.form-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .form-card {
    padding: 32px;
  }
}

#form-registrarme {
  display: flex;
  flex-direction: column;
  gap: 15px;
}


.form-intro h2 {
  text-align: center;
  margin: 0;
  font-size: 1.8rem;

}

.form-intro p {
  margin: 8px 0 0;
  font-size: 0.8rem;
  line-height: 1.75;
  text-align: center;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--foreground);
}

.field input,
.field select {
  height: 44px;
  padding: 0 12px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--foreground);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field input::placeholder {
  color: #a9adaa;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 104, 94, 0.15);
}

/* Desktop */
@media (min-width: 1024px) {
  .heroBanner__grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .heroBanner__formWrap {
    min-height: auto;
  }

  .form-card-wrap {
    position: static;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .heroBanner {
    min-height: auto;
  }

  .heroBanner__grid {
    min-height: auto;
  }

 

  .heroBanner__content {
    padding: 120px 24px 48px;
  }

  .heroBanner__overlay {
    background:
      linear-gradient(
        180deg,
        rgba(31, 42, 36, 0.25) 0%,
        rgba(31, 42, 36, 0.88) 100%
      );
  }

  .heroBanner__media::after {
    width: 130px;
    height: 220px;
    right: -20px;
    bottom: -60px;
  }

  .heroBanner__formWrap {
    padding: 32px 20px 48px;
  }

  .heroBanner__callout {
    align-items: flex-start;
  }
}

/* Lead form ------------------------------------------------- */
.form-card-wrap {
  position: relative;
}
@media (min-width: 1024px) {
  .form-card-wrap {
    position: sticky;
    top: 96px;
  }
}
.form-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
@media (min-width: 768px) {
  .form-card {
    padding: 32px;
  }
}
#form-registrarme {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.form-intro h2 {
  margin: 0;
}
.form-intro p {
  margin: 8px 0 0;
  font-size: 0.8rem;
  line-height: 1.75;
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--foreground);
}
.field input,
.field select {
  height: 44px;
  padding: 0 12px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--foreground);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.field input::placeholder {
  color: #a9adaa;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 104, 94, 0.15);
}
.form-success {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  padding: 8px 0;
}
.success-badge {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(0, 104, 94, 0.1);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.success-badge svg {
  width: 20px;
  height: 20px;
}

/* Section heading ------------------------------------------ */
.section-head {
  max-width: 780px;
  margin: 0 0 56px;
}
.section-head .eyebrow {
  margin-bottom: 20px;
}

/* Grid cards (rankings + programs) ------------------------- */
.grid-cards {
  display: grid;
  gap: 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 48px;
}

.grid-cards > li {
  background: var(--background);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
 
}
.section-alt .grid-cards > li {
 text-align: center;
}
@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* Rankings card */
.card-plain {
  gap: 20px !important;
}
.card-plain:hover{
  box-shadow: 0 0 15px rgba(45, 212, 191, 0.4);
  transform: translateY(-5px);
}

.unionDatos{
  display: flex;
  justify-content: center;
  align-items: center;
}
.big-figure {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--primary);
}
.card-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.75;
  color: var(--foreground);
}
.card-source {
  margin: 6px 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted-foreground);
  min-height: 50px;
}
.rank-badge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
 /*  min-width: 120px; */
  height: 100px;
}

.unionDatos{
  display: flex;
  align-items: center;
  justify-content: center;
  gap:0px;
}



.unionDatos::after{
  content: "";
}

.rank-badge{
  position: relative;
}

.card-label{
  position: relative;
  padding-left: 18px;
  margin: 0;
}

.card-label::before{
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60px;
  background: #d9d9d9;
}

/* .rank-badge::before,
.rank-badge::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  opacity: 0.18;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.rank-badge::before {
  left: 50%;
  margin-left: -72px;
  background-image: url("../images/laurel-left.png");
}

.rank-badge::after {
  left: 50%;
  margin-left: 10px;
  background-image: url("../images/laurel-right.png");
} */



/* Programs */
.program {
  justify-content: space-between;
  gap: 32px !important;
  transition: background-color 160ms ease;
}
.tituloProgram {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: var(--primary);
  padding: 20px;
  height: 80px;
}
.program:hover {
  background: var(--secondary);
}
.program > svg {
  color: var(--primary);
}
.program .grid-cards > li{
  padding: 28px;
}
.program h3 {
  margin: 0;
}
.bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bullets li {
  position: relative;
  padding-left: 16px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.programa-demo {
  padding: 40px;
}

.program-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  background: #f1f3ef;/*
  border: 1px solid #ece9e2;
  border-radius: var(--radius); */
  box-shadow: var(--shadow);
  padding: 30px 28px 26px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.program-card:hover{
  box-shadow: 0 0 15px rgba(45, 212, 191, 0.4);
  transform: translateY(-5px);
}

.program-card__topline {
  position: absolute;
  top: 0;
  left: 0;
  width: 92px;
  height: 5px;
  background: var(--primary);
  border-radius: 0 0 8px 0;
}

.program-card__header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.program-card__icon {
  width: 76px;
  height: 76px;
  min-width: 76px;
  border-radius: 50%;
  background: var(--background);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.program-card__title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.15;
  font-weight: 500;
  color: #203029;
}

.program-card__divider {
  width: 100%;
  height: 1px;
  background: var(--accent);
  margin-bottom: 22px;
}

.program-card__list {
  margin: 0 0 28px 0;
  padding: 0;
  list-style: none;
}

.program-card__list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 14px;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.75;
}

.program-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.program-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.program-card__link:hover {
  transform: translateX(2px);
  opacity: 0.9;
}

.program-card__link span {
  font-size: 1rem;
  line-height: 1;
}

/* Links ----------------------------------------------------- */
.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: color 160ms ease;
}
.link-underline:hover {
  color: var(--primary);
}
.link-underline svg {
  transition: transform 160ms ease;
}
.link-underline:hover svg {
  transform: translateX(2px);
}
.link-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  transition: color 160ms ease;
}
.link-primary:hover {
  color: var(--primary-hover);
}

/* Networking ----------------------------------------------- */
.networking-grid {
  display: grid;
  gap: 48px;
}
@media (min-width: 768px) {
  .networking-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: start;
  }
}
@media (min-width: 768px) {
  .networking-copy {
    position: sticky;
    top: 96px;
  }
}
.networking-copy .h2 {
  margin-top: 24px;
}
.row-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  justify-content: center;
  align-items: center;
}
.row-list > li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 10px 0;
/*   border-bottom: 1px solid var(--border); */
}
.row-list > li:last-child {
  border-bottom: 0;
}
.row-list h3 {
  margin: 0 0 6px;
}
.row-list p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: auto;
  color: var(--primary);
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  box-shadow: var(--shadow);
}
.row-icon-gran {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 340px;
  height: auto;
  color: var(--primary);
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}
.row-icon-gran img {
 
  width: 160px;
 
}
.row-icon svg {
  width: 20px;
  height: 20px;
}

/* Testimonials --------------------------------------------- */
.testimonial-grid {
  display: grid;
  gap: 40px;
  margin-bottom: 48px;
}
@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }
}
.testimonial {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  margin: 0;
}
@media (min-width: 768px) {
  .testimonial {
    padding: 40px;
  }
}
.testimonial blockquote {
  margin: 0;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.35;
  text-wrap: balance;
}
@media (min-width: 768px) {
  .testimonial blockquote {
    font-size: 1.5rem;
  }
}
.quote-mark {
  color: var(--accent);
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--secondary);
}
.testimonial figcaption strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

/* Steps / Benefits ----------------------------------------- */
.steps {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps > li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 24px;
  row-gap: 8px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.steps > li:last-child {
  border-bottom: 0;
}
.steps .step-num {
  display: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  padding-top: 4px;
}
.steps > li > svg {
  grid-row: 1;
  margin-top: 4px;
}
.steps > li > div {
  grid-row: 1;
  grid-column: 2;
}
.steps h3 {
  margin: 0 0 8px;
}
.steps p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted-foreground);
  max-width: 620px;
}
@media (min-width: 768px) {
  .steps > li {
    grid-template-columns: 80px auto 1fr;
    column-gap: 40px;
  }
  .steps .step-num {
    display: block;
  }
  .steps > li > svg {
    grid-column: 2;
  }
  .steps > li > div {
    grid-column: 3;
  }
  .steps h3 {
    font-size: 1.5rem;
  }
  .steps p {
    font-size: 1rem;
  }
}

/* CTA block ------------------------------------------------ */
.cta-block {
  background: var(--primary);
  border-bottom: 1px solid var(--border);
}
.cta-inner {
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  max-width: 1200px;
}
@media (min-width: 768px) {
  .cta-inner {
    padding: 50px 0px;
  }
}
.cta-lead {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  max-width: 620px;
}
@media (min-width: 768px) {
  .cta-lead {
    font-size: 1.125rem;
  }
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
@media (min-width: 640px) {
  .cta-actions {
    flex-direction: row;
    align-items: center;
  }
}

/* FAQ ------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child {
  border-bottom: 0;
}
.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
  padding: 24px 0;
  text-align: left;
  transition: color 160ms ease;
}
.faq-trigger:hover {
  color: var(--primary);
}
.faq-question {
  font-weight: 500;
  font-size: 1.12rem;
  line-height: 1.35;
  color: var(--foreground);
}
@media (min-width: 768px) {
  .faq-question {
    font-size: 1.12rem;
  }
}
.faq-toggle {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
  color: var(--primary);
}
.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 200ms ease, opacity 200ms ease;
}
.faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq-trigger[aria-expanded="true"] .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 300ms ease, opacity 300ms ease, padding 300ms ease;
}
.faq-panel > p {
  overflow: hidden;
  margin: 0;
  max-width: 640px;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.65;
}
.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
  opacity: 1;
  padding-bottom: 24px;
}

/* Footer ---------------------------------------------------- */
.site-footer {
  background: var(--background);
  padding: 64px 20px 48px;
}
.footer-grid {
  display: grid;
  gap: 48px;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 2fr;
    gap: 64px;
  }
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-brand p {
  max-width: 360px;
  font-size: 0.875rem;
  line-height: 1.65;
  margin: 0;
}
.footer-columns {
  display: grid;
  gap: 40px;
}
@media (min-width: 640px) {
  .footer-columns {
    grid-template-columns: repeat(4, 1fr);
  }
}
.footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 20px;
  color: var(--foreground);
}
.footer-columns ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-columns a {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  transition: color 160ms ease;
}
.footer-columns a:hover {
  color: var(--primary);
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.footer-bottom p {
  margin: 0;
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-legal a:hover {
  color: var(--primary);
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Utilities ------------------------------------------------- */
.card-grid-divider {
  /* Wrapper class for semantic clarity; grid gap already produces the 1px hairlines */
}


/*=============================.testimonial==================*/

.testimoniosVideoUP{
  --color-bg: #f5f4f1;
  --color-surface: #ffffff;
  --color-text: #1f2a27;
  --color-muted: #66706c;
  --color-line: #dfe5e1;
  --color-brand: #0f7f73;
  --color-brand-dark: #0b6158;
  --shadow-soft: 0 10px 30px rgba(16, 39, 35, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1200px;

  background: var(--secondary);
  padding: 50px 20px;
  overflow: hidden;
}

.testimoniosVideoUP *{
  box-sizing: border-box;
}

.testimoniosVideoUP__wrap{
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.testimoniosVideoUP__info{
  position: sticky;
  top: 30px;
}

.testimoniosVideoUP__eyebrow,
.testimoniosVideoUP__miniTitle{
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-brand);
  font-weight: 700;
  margin-bottom: 18px;
  font-family: var(--font-sans);
}

.testimoniosVideoUP__title{
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.95;
  font-weight: 500;
  color: var(--color-text);
  max-width: 9ch;
}

.testimoniosVideoUP__title span{
  color: var(--color-brand);
}

.testimoniosVideoUP__text{
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-muted);
  max-width: 36ch;
}

.testimoniosVideoUP__benefits{
  display: grid;
  gap: 18px;
}

.testimoniosVideoUP__benefit{
  display: grid;
  grid-template-columns:  1fr;
  gap: 16px;
  align-items: start;
}

.testimoniosVideoUP__icon{
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #edf4f2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
  flex-shrink: 0;
}

.testimoniosVideoUP__icon svg{
  width: 30px;
  height: 30px;
}

.testimoniosVideoUP__benefit h3{
  margin: 4px 0 6px;
  font-size: 1.12rem;
  color: var(--color-text);
  font-family: var(--font-serif);
  font-weight: 500;
}

.testimoniosVideoUP__benefit p{
  margin: 0;
  color: var(--color-muted);
  line-height: 1.65;
  font-size: 1rem;
}

.testimoniosVideoUP__sliderBox{
  min-width: 0;
}

.testimoniosVideoUP__headerSlider{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.testimoniosVideoUP__arrows{
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimoniosVideoUP__arrow{
  width: 52px;
  height: 52px;
  border: 1px solid var(--color-line);
  background: rgba(255,255,255,0.8);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.25s ease;
  color: var(--color-text);
}

.testimoniosVideoUP__arrow:hover{
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
  transform: translateY(-1px);
}

.testimoniosVideoUP__arrow svg{
  width: 22px;
  height: 22px;
}

.testimoniosVideoUP__viewport{
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.testimoniosVideoUP__viewport.is-dragging{
  cursor: grabbing;
}

.testimoniosVideoUP__track{
  display: flex;
  gap: 22px;
  transition: transform 0.45s ease;
  will-change: transform;
}

.testimoniosVideoUP__card{
  flex: 0 0 calc((100% - 44px) / 3);
  min-width: 0;
}

.testimoniosVideoUP__videoLink{
  display: block;
  text-decoration: none;
  color: inherit;
}

.testimoniosVideoUP__thumb{
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #d9dfdc;
  box-shadow: var(--shadow-soft);
}

.testimoniosVideoUP__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimoniosVideoUP__overlay{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.18) 42%, rgba(0,0,0,0.04) 100%);
}

.testimoniosVideoUP__play{
  position: absolute;
  right: 18px;
  bottom: 18px;

  width: 42px;
  height: 42px;

  border-radius: 50%;

  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;

  transition: 0.25s ease;

  border: 1px solid rgba(255,255,255,0.22);
}

.testimoniosVideoUP__play svg{
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

.testimoniosVideoUP__videoLink:hover .testimoniosVideoUP__play{
  transform: scale(1.08);
  background: rgba(15,127,115,0.92);
}

.testimoniosVideoUP__meta{
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  color: #fff;
}

.testimoniosVideoUP__meta h3{
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.1;
}

.testimoniosVideoUP__meta p{
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.45;
  opacity: 0.95;
}

.testimoniosVideoUP__meta span{
  font-size: 0.96rem;
  opacity: 0.88;
  color: var(--accent);
  font-weight: bold;
}

.testimoniosVideoUP__dots{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.testimoniosVideoUP__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: #c9d1cd;
  cursor: pointer;
  transition: 0.25s ease;
  padding: 0;
}

.testimoniosVideoUP__dot.is-active{
  width: 28px;
  background: var(--color-brand);
}

@media (max-width: 1200px){
  .testimoniosVideoUP__wrap{
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 32px;
  }

  .testimoniosVideoUP__card{
    flex: 0 0 calc((100% - 22px) / 2);
  }
}

@media (max-width: 991px){
  .testimoniosVideoUP{
    padding: 64px 18px;
  }

  .testimoniosVideoUP__wrap{
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .testimoniosVideoUP__info{
    position: static;
  }

  .testimoniosVideoUP__title{
    max-width: 12ch;
  }

  .testimoniosVideoUP__text{
    max-width: 100%;
  }

  .testimoniosVideoUP__card{
    flex: 0 0 78%;
  }
}

@media (max-width: 640px){
  .testimoniosVideoUP__headerSlider{
    align-items: center;
  }

  .testimoniosVideoUP__arrows{
    gap: 8px;
  }

  .testimoniosVideoUP__arrow{
    width: 44px;
    height: 44px;
  }

  .testimoniosVideoUP__card{
    flex: 0 0 88%;
  }

  .testimoniosVideoUP__meta h3{
    font-size: 1.3rem;
  }

  .testimoniosVideoUP__meta p,
  .testimoniosVideoUP__meta span{
    font-size: 0.95rem;
  }

  .testimoniosVideoUP__play{
    width: 72px;
    height: 72px;
  }
}
.testimoniosVideoUP__thumb.is-playing {
  background: #000;
}

.testimoniosVideoUP__iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  border-radius: inherit;
}

/*================MODALIDAD======================*/
.up-modalidad {
  background: var(--background);
  padding: 50px 20px 50px;
  overflow: hidden;
}

.up-modalidad * {
  box-sizing: border-box;
}

.up-modalidad__container {
  max-width: 1200px;
  margin: 0 auto;
}

.up-modalidad__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 64px;
  align-items: start;
}

.up-modalidad__eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--primary);
}

.up-modalidad__title {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 3vw, 4.25rem);
  line-height: 0.98;
  color: var(--foreground);
  max-width: 10ch;
}

.up-modalidad__title span {
  color: var(--primary);
}

.up-modalidad__description {
  max-width: 31ch;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.up-modalidad__highlight {
  margin-top: 36px;
  background: var(--secondary);
  border: 1px solid rgba(0, 104, 94, 0.08);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.up-modalidad__highlight-icon {
  width: 62px;
  height: 62px;
  min-width: 62px;
  border-radius: 50%;
  background: rgba(0, 104, 94, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.up-modalidad__highlight-icon svg {
  width: 30px;
  height: 30px;
}

.up-modalidad__highlight-content h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.15;
  color: var(--foreground);
  font-weight: 500;
}

.up-modalidad__highlight-content p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.up-modalidad__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.up-modalidad__item {
  display: grid;
  grid-template-columns: 64px  1fr;
  gap: 22px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.up-modalidad__number {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.up-modalidad__icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.up-modalidad__icon svg {
  width: 34px;
  height: 34px;
}

.up-modalidad__content h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem);
  line-height: 1.12;
  color: var(--foreground);
  font-weight: 500;
}

.up-modalidad__content p {
  margin: 0;
  max-width: 36ch;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

/* MARQUEE */
.up-modalidad__marquee {
  position: relative;
  margin-top: 56px;
  overflow: hidden;
  border-top: 1px solid rgba(0, 104, 94, 0.12);
  border-bottom: 1px solid rgba(0, 104, 94, 0.12);
  padding: 18px 0;
}

.up-modalidad__marquee-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: upModalidadMarquee 28s linear infinite;
  will-change: transform;
}

.up-modalidad__pill {
  flex: 0 0 auto;
  min-width: 320px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--secondary);
  border: 1px solid rgba(0, 104, 94, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.up-modalidad__pill strong {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
}

.up-modalidad__pill span {
  font-family: var(--font-sans);
  font-size: 0.96rem;
  line-height: 1.45;
  color: var(--muted-foreground);
}

.up-modalidad__marquee:hover .up-modalidad__marquee-track {
  animation-play-state: paused;
}

@keyframes upModalidadMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* RESPONSIVE */
@media (max-width: 1199px) {
  .up-modalidad__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .up-modalidad__description {
    max-width: 100%;
  }

  .up-modalidad__title {
    max-width: 12ch;
  }
}

@media (max-width: 767px) {
  .up-modalidad {
    padding: 72px 16px 50px;
  }

  .up-modalidad__item {
    grid-template-columns: 52px 64px 1fr;
    gap: 14px;
    align-items: start;
    padding: 22px 0;
  }

  .up-modalidad__number {
    font-size: 1rem;
    padding-top: 20px;
  }

  .up-modalidad__icon {
    width: 64px;
    height: 64px;
  }

  .up-modalidad__icon svg {
    width: 26px;
    height: 26px;
  }

  .up-modalidad__content h3 {
    font-size: 1.45rem;
  }

  .up-modalidad__content p {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .up-modalidad__highlight {
    padding: 20px;
  }

  .up-modalidad__highlight-content h3 {
    font-size: 1.3rem;
  }

  .up-modalidad__pill {
    min-width: 260px;
    padding: 16px 18px;
  }
}

@media (max-width: 575px) {
  .up-modalidad__title {
    font-size: 2.35rem;
    line-height: 1.02;
  }

  .up-modalidad__item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .up-modalidad__number {
    padding-top: 0;
  }

  .up-modalidad__icon {
    margin-bottom: 2px;
  }
}
.iconoModalidad{
  text-align: center;
  width: 20px;
  height: 20px;
  margin: 0 auto;
  color: var(--primary);
}

/*======================Formulario Popup=====================================*/
/*====================== FORM POPUP ADAPTADO ======================*/

.form-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.form-popup.is-active {
  display: flex;
}

.form-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.form-popup__content {
  position: relative;
  width: min(500px, 100%);
  max-height: calc(100svh - 28px);
  margin: 0;
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  z-index: 2;
  overflow: visible;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.form-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f3f3f3;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #111;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-popup__close:hover {
  background: #e5e5e5;
}

body.form-popup-open {
  overflow: hidden;
}

/* Evita que el form mantenga el sticky cuando está dentro del popup */
.form-popup__content .form-card-wrap {
  position: static !important;
  width: 100%;
}

/* Compacta la tarjeta dentro del popup */
.form-popup__content .form-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

/* Compacta el formulario */
.form-popup__content .lead-form {
  gap: 9px;
}

.form-popup__content .form-intro {
  text-align: center;
  padding-right: 22px;
}

.form-popup__content .form-intro h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.08;
}

.form-popup__content .form-intro p {
  margin-top: 5px;
  font-size: 0.72rem;
  line-height: 1.35;
}

.form-popup__content .field {
  gap: 4px;
}

.form-popup__content .field label {
  font-size: 0.68rem;
}

.form-popup__content .field input,
.form-popup__content .field select {
  height: 34px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.form-popup__content .form-checks {
  gap: 5px;
  margin-top: 0;
}

.form-popup__content .check-field {
  gap: 6px;
}

.form-popup__content .check-field input {
  margin-top: 1px;
}

.form-popup__content .check-field label {
  font-size: 0.65rem;
  line-height: 1.2;
}

.form-popup__content .btn.btn-primary.btn-lg {
  min-height: 36px;
  margin-top: 0;
  font-size: 0.82rem;
}

.form-popup__content .microcopy {
  font-size: 0.66rem;
  line-height: 1.2;
}

/* Pantallas bajitas */
@media (max-height: 700px) {
  .form-popup__content {
    padding: 16px;
    width: min(460px, 100%);
  }

  .form-popup__content .lead-form {
    gap: 7px;
  }

  .form-popup__content .form-intro h2 {
    font-size: 1.2rem;
  }

  .form-popup__content .form-intro p {
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .form-popup__content .field input,
  .form-popup__content .field select {
    height: 31px;
    font-size: 0.74rem;
  }

  .form-popup__content .btn.btn-primary.btn-lg {
    min-height: 33px;
  }
}

/* Pantallas muy bajitas */
@media (max-height: 600px) {
  .form-popup__content {
    transform: scale(0.9);
    transform-origin: center center;
  }
}

/* Casos extremos */
@media (max-height: 520px) {
  .form-popup__content {
    transform: scale(0.82);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .form-popup {
    padding: 10px;
  }

  .form-popup__content {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
  }

  .form-popup__content .form-intro h2 {
    font-size: 1.15rem;
  }
}
/*===============Video POPUP========================*/

.video-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.video-popup.is-active {
  display: block;
}

.video-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.video-popup__content {
  position: relative;
  width: min(920px, calc(100% - 32px));
  aspect-ratio: 16 / 9;
  margin: 8vh auto;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.video-popup__content iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.video-popup__close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

body.video-popup-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .video-popup__content {
    width: calc(100% - 24px);
    margin: 12vh auto;
    border-radius: 14px;
  }
}

.video-popup__sound {
  position: absolute;
  top: 18px;
  right: 72px;
  z-index: 20;

  display: flex;
  align-items: center;
  gap: 8px;

  background: rgba(255, 255, 255, 0.95);
  color: #111;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;

  font-size: 14px;
  font-weight: 700;
  cursor: pointer;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  transition: transform .2s ease, background .2s ease;
}

.video-popup__sound:hover {
  background: #fff;
  transform: translateY(-2px);
}

.video-popup__soundIcon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.video-popup__soundIcon path:first-child {
  fill: currentColor;
  stroke: none;
}

@media (max-width: 767px) {
  .video-popup__sound {
    top: 14px;
    right: 14px;
    padding: 9px 13px;
    font-size: 13px;
  }
}


.testimoniosVideoUP__viewport.video-is-playing {
  cursor: default;
}

.testimoniosVideoUP__viewport.video-is-playing .testimoniosVideoUP__track {
  transition: none;
}

.testimoniosVideoUP__thumb.is-playing {
  pointer-events: auto;
}

/*================ESTILOS FORMULARIO====================* /

/* Lead form ------------------------------------------------- */

.form-card-wrap {
  position: relative;
}

@media (min-width: 1024px) {
  .form-card-wrap {
    position: sticky;
    top: 96px;
  }
}

.form-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .form-card {
    padding: 32px;
  }
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.form-intro h2 {
  margin: 0;
    color: var(--primary);
}

.form-intro p {
  margin: 8px 0 0;
  font-size: 0.8rem;
  line-height: 1.75;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--foreground);
  text-transform: none;
}

.field input,
.field select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--foreground);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field input::placeholder {
  color: #a9adaa;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 104, 94, 0.15);
}

.field select {
  cursor: pointer;
  appearance: auto;
}

.form-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.check-field input {
  margin-top: 3px;
  accent-color: var(--primary);
}

.check-field label {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--foreground);
  text-transform: none;
}

.check-field a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.check-field a:hover {
  text-decoration: underline;
}

.btn.btn-primary.btn-lg {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.icon-sm {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.microcopy {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
}

/* ================================
   MOBILE MENU UP
================================ */

.up-mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 80;
}

.up-mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--foreground);
  border-radius: 20px;
  display: block;
}

.up-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  visibility: hidden;
}

.up-mobile-menu.is-open {
  pointer-events: auto;
  visibility: visible;
}

.up-mobile-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.up-mobile-menu.is-open .up-mobile-menu__overlay {
  opacity: 1;
}

.up-mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(84%, 360px);
  height: 100%;
  background: #ffffff;
  padding: 76px 24px 24px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.16);
}

.up-mobile-menu.is-open .up-mobile-menu__panel {
  transform: translateX(0);
}

.up-mobile-menu__close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: var(--muted);
  color: var(--foreground);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.up-mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.up-mobile-menu__nav a {
  display: block;
  padding: 14px 0;
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.up-mobile-menu__cta {
  margin-top: 16px;
  padding: 14px 18px !important;
  text-align: center;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff !important;
  border-bottom: none !important;
}

body.up-menu-open {
  overflow: hidden;
}

/* Mostrar botón hamburguesa en mobile */
@media (max-width: 1023px) {
  .up-mobile-menu-btn {
    display: inline-flex;
  }

  .header-inner > .btn {
    display: none;
  }
}


/* ================================
   FLOATING WHATSAPP
================================ */

.up-whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 950;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.up-whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.45);
}

.up-whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

@media (max-width: 767px) {
  .up-whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .up-whatsapp-float svg {
    width: 31px;
    height: 31px;
  }
}


/* FIX HERO + FORM EN PANTALLAS BAJITAS */
.heroBanner {
  padding: 0;
  min-height: auto;
}

.heroBanner__grid {
  min-height: auto;
}

.heroBanner__media {
  min-height: clamp(360px, 60vh, 520px) !important;
  align-items: center;
}

.heroBanner__content {
  padding-top: clamp(28px, 5vh, 56px);
  padding-bottom: clamp(28px, 5vh, 56px);
}

.heroBanner__pill {
  margin-bottom: 18px;
  padding: 8px 14px;
  font-size: 0.78rem;
}

.heroBanner__lead {
  margin-top: 16px;
}

.heroBanner__callout {
  margin-top: 18px;
  padding: 12px 16px;
  gap: 12px;
}

.heroBanner__callout p {
  font-size: 0.85rem;
  line-height: 1.45;
}

.heroBanner__callout .icon {
  width: 28px;
  height: 28px;
}

.heroBanner__formWrap {
  min-height: auto !important;
  padding: 18px 22px;
  align-items: center;
}

.heroBanner__formWrap .form-card-wrap {
  position: static !important;
}

.heroBanner__formWrap .form-card {
  padding: 20px;
  width: min(100%, 480px);
}

#form-registrarme {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#form-registrarme .form-intro h2 {
  font-size: 1.35rem;
  line-height: 1.15;
}

#form-registrarme .form-intro p {
  font-size: 0.75rem;
  line-height: 1.35;
}

#form-registrarme .field {
  gap: 4px;
}

#form-registrarme .field label {
  font-size: 0.68rem;
}

#form-registrarme .field input,
#form-registrarme .field select {
  height: 36px;
  font-size: 0.8rem;
  padding: 0 10px;
}

#form-registrarme .check-field label {
  font-size: 0.7rem;
  line-height: 1.25;
}

#form-registrarme .btn-lg {
  height: 38px;
  font-size: 0.85rem;
}

#form-registrarme .microcopy {
  font-size: 0.68rem;
  line-height: 1.35;
}

/* Pantallas tipo 552px de alto */
@media (min-width: 1024px) and (max-height: 620px) {
  .heroBanner__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .heroBanner__media {
    min-height: 430px !important;
  }

  .heroBanner__content {
    padding: 28px 36px 28px clamp(24px, 5vw, 80px);
  }

  .heroBanner__title {
    font-size: clamp(1.85rem, 3vw, 2.4rem);
  }

  .heroBanner__lead {
    font-size: 1.05rem;
  }

  .heroBanner__formWrap {
    padding: 14px 18px;
  }

  .heroBanner__formWrap .form-card {
    padding: 16px;
  }

  #form-registrarme {
    gap: 8px;
  }

  #form-registrarme .field input,
  #form-registrarme .field select {
    height: 34px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .heroBanner__media {
    min-height: 520px !important;
    align-items: flex-end;
  }

  .heroBanner__content {
    padding: 90px 24px 36px;
  }

  .heroBanner__formWrap {
    padding: 24px 18px 36px;
  }
}