.welcome-page {
  --welcome-blue: rgb(24, 59, 103);
  --welcome-orange: #ffa700;
  --welcome-ink: #263648;
  --welcome-muted: #657487;
  --welcome-surface: #f4f7fa;
  color: var(--welcome-ink);
}

.welcome-shell {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.welcome-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0;
  color: #fff;
  background: var(--welcome-blue);
}

.welcome-hero::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(15, 42, 75, 0.96), rgba(24, 59, 103, 0.79)),
    url("/img/graduados.jpeg") center 42% / cover;
  content: "";
}

.welcome-hero__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.welcome-hero__copy {
  max-width: 610px;
}

.welcome-eyebrow {
  margin: 0 0 0.65rem;
  color: #dce8f5;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.welcome-hero h1 {
  margin: 0 0 1.25rem;
  color: #fff;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
}

.welcome-hero h1 span {
  color: var(--welcome-orange);
}

.welcome-hero__description {
  max-width: 570px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  line-height: 1.7;
}

.welcome-link,
.welcome-account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.1rem;
  border: 0;
  border-radius: 8px;
  background: var(--welcome-orange);
  color: #17283b;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.welcome-link {
  margin-top: 1.6rem;
}

.welcome-link:hover,
.welcome-account-button:hover {
  background: #ffbd3c;
  color: #17283b;
  transform: translateY(-2px);
}

.welcome-link .material-icons,
.welcome-account-button .material-icons {
  font-size: 1.2rem;
}

.welcome-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  scroll-margin-top: 6rem;
}

.welcome-account-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 45px rgba(8, 29, 55, 0.2);
  color: var(--welcome-ink);
}

.welcome-account-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
  background: #fff2d6;
  color: #9a5c00;
}

.welcome-account-icon .material-icons {
  font-size: 1.8rem;
}

.welcome-account-card h2 {
  margin: 1rem 0 0.4rem;
  color: var(--welcome-blue);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

.welcome-account-card p {
  flex: 1;
  margin: 0 0 1.2rem;
  color: var(--welcome-muted);
  line-height: 1.5;
}

.welcome-account-card .welcome-account-button {
  width: 100%;
}

.welcome-section {
  padding: clamp(3.5rem, 6vw, 5rem) 0;
}

.welcome-section-heading {
  max-width: 680px;
  margin: 0 auto 2.25rem;
  text-align: center;
}

.welcome-section-heading .welcome-eyebrow,
.welcome-alumni .welcome-eyebrow,
.welcome-closing .welcome-eyebrow {
  color: #a46100;
}

.welcome-section-heading h2,
.welcome-alumni h2,
.welcome-closing h2 {
  margin: 0 0 0.6rem;
  color: var(--welcome-blue);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
}

.welcome-section-heading p:last-child {
  margin: 0;
  color: var(--welcome-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.top-empresas-section {
  background: #fff;
}

.top-empresas-grid,
.latest-plazas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.listing-card {
  display: flex;
  min-width: 0;
  min-height: 370px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e6ebf0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 59, 103, 0.08);
  color: var(--welcome-ink);
  text-decoration: none;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.listing-card:hover {
  color: var(--welcome-ink);
  box-shadow: 0 16px 32px rgba(24, 59, 103, 0.15);
  transform: translateY(-4px);
}

.listing-card:focus-visible,
.welcome-page a:focus-visible {
  outline: 3px solid #d78300;
  outline-offset: 3px;
}

.top-empresa-logo {
  display: flex;
  height: 132px;
  flex: 0 0 132px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
  background: #f4f7fa;
}

.top-empresa-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.top-empresa-logo--placeholder {
  padding: 0;
  background: linear-gradient(135deg, #eaf1f8, #f8fafc);
  color: #6380a0;
}

.top-empresa-logo--placeholder .material-icons {
  font-size: 2.8rem;
}

.top-empresa-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 1.25rem;
}

.top-empresa-info h6 {
  margin: 0 0 0.55rem;
  color: var(--welcome-blue);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.top-empresa-info p {
  margin: 0;
  color: var(--welcome-muted);
  line-height: 1.5;
}

.top-empresas-grid .top-empresa-info > p:not(.plaza-login-note) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.top-empresa-badge {
  display: inline-flex;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #fff2d6;
  color: #805000;
  font-size: 0.88rem;
  font-weight: 700;
}

.top-empresa-info .plaza-login-note {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
}

.card-footer {
  margin-top: auto;
  padding-top: 0.35rem;
}

.btn-consistent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  background: var(--welcome-orange);
  box-shadow: none;
  color: #17283b;
  font-weight: 700;
  text-decoration: none;
}

.btn-consistent:hover {
  background: #ffbd3c;
  color: #17283b;
}

.top-empresa-empty,
.latest-plazas-placeholder {
  padding: 2rem;
  border: 1px dashed #cbd5df;
  border-radius: 12px;
  color: var(--welcome-muted);
  text-align: center;
}

.latest-plazas-section {
  scroll-margin-top: 5rem;
  background: var(--welcome-surface);
}

.plaza-card {
  min-height: 390px;
}

.plaza-card .top-empresa-logo {
  height: 118px;
  flex-basis: 118px;
}

.plaza-card .top-empresa-info small {
  display: block;
  color: var(--welcome-muted);
}

.plaza-card .top-empresa-info p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.welcome-benefits {
  background: #fff;
}

.welcome-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.5rem;
}

.welcome-benefit-card.card-cuved {
  position: relative;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  isolation: isolate;
  margin: 0;
  border: 1px solid #e6ebf0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(24, 59, 103, 0.09);
}

.welcome-benefit-card.card-cuved::before {
  top: -7rem;
  right: -6rem;
  width: 11rem;
  height: 11rem;
  transform: rotate(-29deg);
  opacity: 0.12;
}

.welcome-benefit-card .card-content {
  display: flex;
  height: 100%;
  flex-direction: column;
  position: relative;
  z-index: 1;
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

.welcome-benefit-title {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.welcome-benefit-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 12px;
  background: #fff2d6;
  color: #9a5c00;
}

.welcome-benefit-icon .material-icons {
  font-size: 1.7rem;
}

.welcome-benefit-title h2 {
  margin: 0;
  color: var(--welcome-blue);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.25;
}

.welcome-benefit-card .collection-item {
  min-height: 48px;
  color: var(--welcome-ink);
  line-height: 1.5;
}

.welcome-benefit-card .collection {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-around;
  margin-bottom: 0;
}

.welcome-benefit-card .collection-item .material-icons {
  flex: 0 0 auto;
  color: var(--welcome-blue);
}

.welcome-benefit-card .collection-item a {
  color: var(--welcome-blue);
  font-weight: 700;
  text-decoration: none;
}

.welcome-benefit-card .collection-item a:hover {
  color: #a46100;
  text-decoration: underline;
}

.welcome-alumni {
  padding: clamp(3.5rem, 6vw, 5rem) 0;
  background: #f0f3f6;
}

.welcome-alumni__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.welcome-alumni__copy p {
  color: #4e5e70;
  line-height: 1.75;
}

.welcome-alumni__copy .welcome-eyebrow {
  margin-bottom: 0.5rem;
  color: #a46100;
}

.welcome-alumni .container-video {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(24, 59, 103, 0.18);
}

.welcome-video-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  color: var(--welcome-blue);
  font-weight: 700;
  text-decoration: none;
}

.welcome-video-link:hover {
  color: #a46100;
  text-decoration: underline;
}

.welcome-video-link .material-icons {
  font-size: 1.1rem;
}

.welcome-closing {
  position: relative;
  padding: 4.5rem 1.5rem;
  background: linear-gradient(115deg, rgba(15, 42, 75, 0.94), rgba(24, 59, 103, 0.84)),
    url("/img/bw_contador.jpeg") center / cover;
  text-align: center;
}

.welcome-closing__message {
  max-width: 720px;
  margin: 0 auto;
}

.welcome-closing .welcome-eyebrow {
  color: #ffcf70;
}

.welcome-closing h2 {
  margin-bottom: 1.5rem;
  color: #fff;
}

@media (max-width: 900px) {
  .top-empresas-grid,
  .latest-plazas-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .welcome-hero__layout {
    grid-template-columns: 1fr;
  }

  .welcome-hero__copy {
    max-width: 700px;
  }

  .welcome-account-grid {
    max-width: 700px;
  }

  .welcome-alumni__layout {
    grid-template-columns: 1fr;
  }

  .welcome-alumni__video {
    max-width: 740px;
  }
}

@media (max-width: 760px) {
  .welcome-benefits-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .welcome-shell {
    width: calc(100% - 32px);
  }

  .welcome-hero {
    padding: 3.5rem 0;
  }

  .welcome-hero__layout {
    gap: 2rem;
  }

  .welcome-hero__description {
    font-size: 1.05rem;
  }

  .welcome-account-grid {
    grid-template-columns: 1fr;
  }

  .welcome-account-card {
    min-height: 0;
  }

  .top-empresas-grid,
  .latest-plazas-grid {
    grid-template-columns: 1fr;
  }

  .listing-card {
    min-height: 0;
  }

}

@media (prefers-reduced-motion: reduce) {
  .welcome-page *,
  .welcome-page *::before,
  .welcome-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
