/* =========================================================
   Master's College — Redesign CSS
   Design tokens + utility classes
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=DM+Serif+Display:ital@0;1&display=swap');

/* ─── Tokens ───────────────────────────────────────────── */
:root {
  --primary: #550F78;
  --secondary: #960F7D;
  --accent: #FFCC00;
  --accent-dim: #E6B800;

  --ink: #0E0618;
  --text: #4A4460;
  --muted: #8B7FA8;

  --border: #EAE6F0;
  --surface: #F7F5FB;
  --white: #FFFFFF;

  --container: 1240px;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --r-xl: 48px;

  --shadow-sm: 0 2px 8px rgba(85, 15, 120, .06);
  --shadow-md: 0 8px 32px rgba(85, 15, 120, .10);
  --shadow-lg: 0 24px 64px rgba(85, 15, 120, .14);

  --ease: cubic-bezier(.25, .46, .45, .94);
}

/* ─── Reset ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 1rem;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Layout helpers ────────────────────────────────────── */
.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 112px 0;
}

.section--light {
  background: var(--surface);
}

.section--dark {
  background: var(--ink);
  color: var(--white);
}

/* ─── Typography scale ──────────────────────────────────── */
.display {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -.02em;
}

h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}

h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -.015em;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--secondary);
}

.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.lead {
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.8;
}

#financial-aid .section-header {
  max-width: 100%;
}

#financial-aid .lead {
  max-width: 100%;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .02em;
  transition: all .25s var(--ease);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(85, 15, 120, .3);
}

.btn-primary:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(150, 15, 125, .35);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 4px 20px rgba(85, 15, 120, .3);
}

.btn-secondary:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(150, 15, 125, .35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, .5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .8);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  background: var(--surface);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ─── Header ────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.logo img {
  height: 60px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  transition: color .2s;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--secondary);
  transform: scaleX(0);
  transition: transform .25s var(--ease);
}

.nav a:hover {
  color: var(--primary);
}

.nav a:hover::after {
  transform: scaleX(1);
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #2D0645 0%, #550F78 45%, #960F7D 100%);
  color: var(--white);
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}

/* decorative orbs */
.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 204, 0, .12) 0%, transparent 70%);
  top: -200px;
  right: -150px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .06) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  /*align-items: center;*/
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  margin-bottom: 24px;
}

.hero-eyebrow .eyebrow {
  color: var(--accent);
}

.hero-eyebrow .eyebrow::before {
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
  color: var(--white);
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero .lead {
  color: rgba(255, 255, 255, .82);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .88);
}

.trust-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 204, 0, .2);
  color: var(--accent);
  font-size: .75rem;
  flex-shrink: 0;
}

/* hero right card */
.hero-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-lg);
  padding: 40px;
  backdrop-filter: blur(8px);
}

.hero-card-stat {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.hero-card-stat:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.hero-stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2.8rem;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: .85rem;
  color: rgba(255, 255, 255, .7);
  margin-top: 4px;
}

/* ─── Stats strip ───────────────────────────────────────── */
.stats-strip {
  background: var(--ink);
  padding: 36px 0;
}

.stats-strip h2,
.stats-strip .lead {
  color: var(--white);
}

.stats-strip .eyebrow {
  color: var(--accent);
}

.stats-strip .section-header {
  padding-bottom: 32px;
}

.stats-strip .stats-icon svg {
  width: 36px;
  height: 36px;
  color: var(--accent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--r-md);
  overflow: hidden;
}

.stat-cell {
  padding: 28px 32px;
  background: rgba(255, 255, 255, .03);
  text-align: center;
  display: grid;
  align-items: center;
}

.stat-cell-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--accent);
  display: block;
}

.stat-cell-label {
  font-size: .82rem;
  color: rgba(255, 255, 255, .6);
  font-weight: 500;
  margin-top: 4px;
}

/* ─── Section header ────────────────────────────────────── */
.section-header {
  max-width: 720px;
}

.section-header.center {
  text-align: center;
  margin-inline: auto;
}

.section-header .eyebrow {
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header .lead {
  max-width: 600px;
}

.section-header.center .lead {
  margin-inline: auto;
}

/* ─── Consultant ────────────────────────────────────────── */
.consultant-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 80px;
  align-items: center;
}

.consultant-image-wrap {
  position: relative;
}

.consultant-image-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--r-lg);
  display: block;
}

.consultant-badge {
  position: absolute;
  bottom: 28px;
  right: -20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
}

.badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.badge-label {
  font-size: .78rem;
  color: var(--muted);
}

.badge-value {
  font-size: .92rem;
  font-weight: 700;
  color: var(--ink);
}

.consultant-content h2 {
  margin: 12px 0 20px;
}

.consultant-bio {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 28px;
}

.credential-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.credential-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary);
}

/* ─── Why guidance ──────────────────────────────────────── */
.questions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.question-card {
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}

.question-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(85, 15, 120, .2);
}

.question-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, rgba(85, 15, 120, .08), rgba(150, 15, 125, .08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.question-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--ink);
}

.question-card p {
  color: var(--text);
  font-size: .95rem;
}

/* ─── Challenges ────────────────────────────────────────── */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.challenge-card {
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}

.challenge-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(85, 15, 120, .2);
}

/*.challenge-card::before {
  content: attr(data-num);
  position: absolute;
  top: 20px; right: 28px;
  font-family: 'DM Serif Display', serif;
  font-size: 4.5rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: .12;
}*/

/* ─── Challenge icon ─────────────────────────────────── */
.challenge-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(85, 15, 120, .08), rgba(150, 15, 125, .08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  transition: background .3s;
}

.challenge-icon svg {
  width: 36px;
  height: 36px;
  color: var(--primary);
  /* hereda el stroke de currentColor */
  transition: color .3s;
}

.challenge-card:hover .challenge-icon {
  background: linear-gradient(135deg, rgba(85, 15, 120, .15), rgba(150, 15, 125, .15));
}

.challenge-card:hover .challenge-icon svg {
  color: var(--secondary);
}

.challenge-card h3 {
  margin-bottom: 12px;
}

.challenge-card p {
  color: var(--text);
  font-size: .93rem;
}

/* ─── Challenges section — background image ─────────── */
.challenges-section {
  position: relative;
  overflow: hidden;
}

.challenges-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('img/mit.webp');
  /* ← tu imagen aquí */
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  /* parallax sutil — quita si prefieres estática */
  opacity: 0.2;
  /* ← ajusta: 0.03 casi invisible · 0.07 más presente */
  pointer-events: none;
  z-index: 0;
}

/* El contenido por encima de la imagen */
.challenges-section>.container {
  position: relative;
  z-index: 1;
}

/* ─── Process timeline ──────────────────────────────────── */
/* ─── Process Timeline ──────────────────────────────────── */

/*
  Layout logic (desktop):
  Each .timeline-item is a 3-column grid:
    [left half] [node column] [right half]
  The node sits in the middle column, centered on the track.
  .left items place the card in column 1, empty in column 3.
  .right items place the card in column 3, empty in column 1.
*/

.timeline-wrap {
  position: relative;
  margin-top: 80px;
  max-width: 960px;
  margin-inline: auto;
}

/* The vertical track sits behind everything */
.timeline-track {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  transform: translateX(-50%);
  z-index: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  column-gap: 40px;
  align-items: center;
  margin-bottom: 48px;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Card placement */
.timeline-item.left .timeline-content {
  grid-column: 1;
  grid-row: 1;
}

.timeline-item.left .timeline-node {
  grid-column: 2;
  grid-row: 1;
}

.timeline-item.left .timeline-spacer {
  grid-column: 3;
  grid-row: 1;
}

.timeline-item.right .timeline-spacer {
  grid-column: 1;
  grid-row: 1;
}

.timeline-item.right .timeline-node {
  grid-column: 2;
  grid-row: 1;
}

.timeline-item.right .timeline-content {
  grid-column: 3;
  grid-row: 1;
}

/* The node sits centered on the track line */
.timeline-node {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: .85rem;
  z-index: 2;
  position: relative;
  /* ring effect */
  box-shadow: 0 0 0 5px var(--surface), 0 0 0 7px rgba(85, 15, 120, .25);
  /* keep it vertically centered with the card */
  justify-self: center;
  align-self: center;
}

/* Empty column — holds space on the opposite side of the card */
.timeline-spacer {
  /* no styles needed; grid places it */
}

.timeline-content {
  padding: 28px 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.timeline-step-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 8px;
}

.timeline-content h3 {
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: .93rem;
  color: var(--text);
}

/* ─── Personalized / Strategy ───────────────────────────── */
.personalized-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 20px;
  align-items: start;
  margin-top: 64px;
}

.strategy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.strategy-card {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform .3s var(--ease), box-shadow .3s;
}

.strategy-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.strategy-card-icon {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.strategy-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.strategy-card p {
  color: var(--text);
  font-size: .92rem;
}

/* sticky card */
.tailored-card {
  position: sticky;
  top: 100px;
  background: linear-gradient(160deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: 48px;
}

.tailored-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, .15);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 24px;
}

.tailored-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  line-height: 1.25;
  margin-bottom: 20px;
  font-weight: 400;
}

.tailored-card p {
  font-size: .95rem;
  line-height: 1.75;
  opacity: .88;
  margin-bottom: 16px;
}

.tailored-divider {
  height: 1px;
  background: rgba(255, 255, 255, .15);
  margin: 24px 0;
}

.tailored-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: .9rem;
  opacity: .9;
}

.tailored-feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 7px;
}

/* ─── FAQ ───────────────────────────────────────────────── */
.faq-list {
  margin-top: 56px;
}

details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  transition: box-shadow .2s;
}

details[open] {
  box-shadow: var(--shadow-sm);
  border-color: rgba(85, 15, 120, .2);
}

summary {
  padding: 24px 28px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  color: var(--ink);
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--primary);
  transition: transform .2s;
  flex-shrink: 0;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  padding: 0 28px 24px;
  color: var(--text);
  font-size: .95rem;
}

/* ─── CTA / Contact ─────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #2D0645 0%, #550F78 50%, #960F7D 100%);
  color: var(--white);
  padding: 112px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.cta-left h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.cta-left .lead {
  color: rgba(255, 255, 255, .8);
  margin-bottom: 32px;
}

.cta-perks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cta-perk {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .92rem;
  color: rgba(255, 255, 255, .85);
}

.cta-perk-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 204, 0, .2);
  border: 1px solid rgba(255, 204, 0, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: .75rem;
}

/* form */
.contact-form {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink);
}

.form-field input,
.form-field textarea,
.form-field select {
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: .93rem;
  color: var(--ink);
  transition: border-color .2s;
  outline: none;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--primary);
  background: var(--white);
}

.form-field textarea {
  height: 120px;
  resize: none;
}

.form-full {
  margin-bottom: 14px;
}

.form-submit {
  margin-top: 20px;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: all .25s var(--ease);
  box-shadow: 0 4px 20px rgba(85, 15, 120, .3);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(85, 15, 120, .4);
}

/* ─── Footer ────────────────────────────────────────────── */
/* ─── Footer ────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--white);
  padding: 72px 0 0;
  position: relative;
  overflow: hidden;
}

/* Subtle decorative orb */
.footer::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(85, 15, 120, .18) 0%, transparent 70%);
  bottom: -200px;
  right: -100px;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
}

/* ── Col 1: Brand ───────────────────────────────────────── */
.footer-brand {}

.footer-logo img {
  height: 60px;
  width: auto;
  margin-bottom: 20px;
}

.footer-company-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.footer-company-loc {
  font-size: .82rem;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 24px;
  line-height: 1.5;
}

.footer-small-image {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  opacity: .85;
  border: 1px solid rgba(255, 255, 255, .1);
}

/* ── Col 2: Contact ─────────────────────────────────────── */
.footer-col-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.footer-phones {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-phone-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-phone-country {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
}

.footer-phone-number {
  font-size: .92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
}

.footer-wa-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  color: #25D366;
  margin-top: 3px;
  transition: opacity .2s;
}

.footer-wa-link:hover {
  opacity: .75;
}

.footer-wa-link svg {
  width: 14px;
  height: 14px;
  fill: #25D366;
  flex-shrink: 0;
}

/* ── Col 3: Social ──────────────────────────────────────── */
.footer-social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .7);
  transition: color .2s, transform .2s;
}

.footer-social-link:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-social-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, border-color .2s;
}

.footer-social-link:hover .footer-social-icon {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .2);
}

.footer-social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ── Bottom bar ─────────────────────────────────────────── */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-copy {
  font-size: .8rem;
  color: rgba(255, 255, 255, .3);
  text-align: center;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: auto;
  }
}

/* ─── Scroll animations ─────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  animation: fadeUp .7s var(--ease) forwards;
}

.fade-up:nth-child(1) {
  animation-delay: .05s;
}

.fade-up:nth-child(2) {
  animation-delay: .12s;
}

.fade-up:nth-child(3) {
  animation-delay: .19s;
}

.fade-up:nth-child(4) {
  animation-delay: .26s;
}

.fade-up:nth-child(5) {
  animation-delay: .33s;
}

.fade-up:nth-child(6) {
  animation-delay: .40s;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .consultant-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .consultant-image-wrap {
    max-width: 400px;
  }

  .consultant-badge {
    /*right: 0;*/
  }

  .personalized-layout {
    grid-template-columns: 1fr;
  }

  .tailored-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-card {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .challenge-grid {
    grid-template-columns: 1fr;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .questions-grid {
    grid-template-columns: 1fr;
  }

  .strategy-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

}

@media (max-width: 700px) {
  .section {
    padding: 72px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  /* Mobile timeline: vertical line on the left, cards stacked */
  .timeline-wrap {
    padding-left: 28px;
  }

  .timeline-track {
    left: 32px;
    transform: none;
  }

  /* Override grid: single column, node on far left */
  .timeline-item,
  .timeline-item.left,
  .timeline-item.right {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    grid-template-columns: none;
    column-gap: 0;
  }

  /* Always: node first, then card, spacer hidden */
  .timeline-item .timeline-node,
  .timeline-item.left .timeline-node,
  .timeline-item.right .timeline-node {
    grid-column: auto;
    grid-row: auto;
    order: -1;
    flex-shrink: 0;
    /* align node with track */
    position: relative;
    left: -20px;
    margin-right: -32px;
    box-shadow: 0 0 0 5px var(--surface), 0 0 0 7px rgba(85, 15, 120, .25);
  }

  .timeline-item .timeline-content,
  .timeline-item.left .timeline-content,
  .timeline-item.right .timeline-content {
    grid-column: auto;
    grid-row: auto;
    flex: 1;
    margin-left: 32px;
  }

  .timeline-item .timeline-spacer {
    flex: 0;
  }

  .timeline-spacer {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }

  /* .footer-links handled by new footer grid */
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}


/* ═══════════════════════════════════════════════════════════
   SUCCESS STORIES
   ═══════════════════════════════════════════════════════════ */

.stories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 64px;
}

/* ── Base card ──────────────────────────────────────────── */
.story-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--r-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  transition: background .3s, border-color .3s, transform .3s var(--ease);
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.story-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 204, 0, .04) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}

.story-card:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 204, 0, .25);
  transform: translateY(-4px);
}

.story-card:hover::before {
  opacity: 1;
}

/* ── Featured card (with scholarship) ──────────────────── */
.story-card--featured {
  background: linear-gradient(160deg, rgba(255, 204, 0, .08) 0%, rgba(255, 255, 255, .05) 100%);
  border-color: rgba(255, 204, 0, .22);
}

.story-card--featured::after {
  content: '★ Featured';
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255, 204, 0, .12);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 204, 0, .25);
}

/* ── University block ───────────────────────────────────── */
.story-university {
  /*flex: 0;*/
  padding-bottom: 0;
  /*display: flex;
  flex-direction: column;
  justify-content: flex-end;*/
}

/* ── Bottom block (divider + student) ───────────────────── */
.story-bottom {
  /*flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;*/
}

.story-program {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 10px;
  width: 75%;
}

.story-uni-name {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}

.story-uni-sub {
  font-size: .82rem;
  color: rgba(255, 255, 255, .5);
  font-weight: 500;
}

/* ── Scholarship badge ──────────────────────────────────── */
.story-scholarship {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 16px;
  background: rgba(255, 204, 0, .14);
  border: 1px solid rgba(255, 204, 0, .3);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
}

/* ── Also admitted block ────────────────────────────────── */
.story-also {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .05);
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, .08);
}

.story-also-label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 6px;
}

.story-also-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.story-also-item {
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .8);
}

.story-also-sep {
  color: rgba(255, 255, 255, .25);
  font-size: .85rem;
}

.story-also-scholarship {
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(255, 204, 0, .12);
  padding: 2px 8px;
  border-radius: 999px;
}

/* ── Divider ────────────────────────────────────────────── */
.story-divider {
  height: 1px;
  background: rgba(255, 255, 255, .10);
  margin: 24px 0;
}

/* ── Student row ────────────────────────────────────────── */
.story-student {
  display: flex;
  align-items: center;
  gap: 20px;
}

.story-photo {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 204, 0, .4);
  flex-shrink: 0;
}

.story-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.story-services {
  font-size: .88rem;
  color: rgba(255, 255, 255, .45);
  font-weight: 500;
  margin-top: 5px;
  letter-spacing: .02em;
}

/* ── Bottom CTA row ─────────────────────────────────────── */
.stories-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 760px) {
  .stories-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .stories-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* ── Card background image layer ──────────────────────── */
.story-card {
  isolation: isolate;
}

/* añade esto al selector existente */

.card-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: var(--bg-img);
  background-size: cover;
  background-position: center 30%;
  opacity: 0.1;
  /* ← el único número que tocas */
  z-index: 0;
  pointer-events: none;
  /* Máscara: solo asoman las esquinas, centro invisible */
  mask-image: radial-gradient(ellipse 100% 100% at 0% 0%,
      transparent 0%,
      transparent 40%,
      rgba(0, 0, 0, 0.3) 60%,
      black 100%);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 0% 0%,
      transparent 0%,
      transparent 40%,
      rgba(0, 0, 0, 0.3) 60%,
      black 100%);
}

/* Todo el contenido por encima */
.story-card>*:not(.card-bg) {
  position: relative;
  z-index: 1;
}

/* ─── Who We Are Section ──────────────────────────────────── */
.who-we-are-section {
  /*background: var(--white);*/
  overflow: hidden;
  position: relative;
}

.who-we-are-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -180px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(85, 15, 120, .05) 0%, transparent 70%);
  pointer-events: none;
}

/* Grid layout */
.wwa-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 72px;
}

/* ── Left column: identity ── */
.wwa-identity {
  position: sticky;
  top: 0px;
}

.wwa-logo-wrap {
  /*background: var(--surface);
  border-radius: var(--r-lg);*/
  padding: 50px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  /*border: 1px solid var(--border);*/
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.wwa-logo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  /*background: linear-gradient(135deg, rgba(85,15,120,.03) 0%, transparent 60%);*/
  pointer-events: none;
}

.wwa-logo {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
}

/* Stats row */
.wwa-badge-strip {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--r-md);
  padding: 24px 20px;
  gap: 0;
}

.wwa-badge {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.wwa-badge-number {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
  display: flex;
  align-items: flex-start;
}

.wwa-badge-plus {
  font-size: 1.1rem;
  margin-top: 2px;
}

.wwa-badge-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  line-height: 1.4;
}

.wwa-badge-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, .18);
  flex-shrink: 0;
}

/* ── Right column: content ── */
.wwa-content .eyebrow {
  margin-bottom: 16px;
}

.wwa-content h2 {
  margin-bottom: 20px;
}

.wwa-content .lead {
  margin-bottom: 48px;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
}

/* Pillars */
.wwa-pillars {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.wwa-pillar {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}

.wwa-pillar:hover {
  border-color: rgba(85, 15, 120, .25);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.wwa-pillar-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.wwa-pillar-icon svg {
  width: 22px;
  height: 22px;
}

.wwa-pillar h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.wwa-pillar p {
  font-size: .92rem;
  color: var(--text);
  line-height: 1.65;
  margin: 0;
}

/* ── Universities strip ── */
.wwa-unis {
  border-top: 1px solid var(--border);
  padding-top: 40px;
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}

.wwa-unis-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.wwa-unis-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: var(--text);
  font-weight: 500;
}

.wwa-dot {
  color: var(--accent);
  font-weight: 900;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .wwa-grid {
    grid-template-columns: 340px 1fr;
    gap: 48px;
  }
}

@media (max-width: 860px) {
  .wwa-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .wwa-identity {
    position: static;
  }

  .wwa-logo-wrap {
    padding: 32px 24px;
  }

  .wwa-logo {
    max-width: 420px;
  }

  .wwa-unis {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .wwa-badge-strip {
    gap: 0;
    padding: 18px 12px;
  }

  .wwa-badge-number {
    font-size: 1.5rem;
  }
}

/* =========================
   Success Principles
========================= */

.success-principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  margin-top: 40px;
}

.success-principle {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-principle-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 24px;

  color: var(--accent);

  /*background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.15);*/
}

/* Placeholder visual */
.success-principle-icon::before {
  /*content:"+";*/
  font-size: 2rem;
  color: rgba(255, 255, 255, .5);
  font-weight: 300;
}

.success-principle .lead {
  margin: 0;
  color: rgba(255, 255, 255, .72);
}

/* Mobile */
@media (max-width: 768px) {

  .success-principles {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .success-principle-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
  }

}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 64px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
}

.offer-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transition: background .2s var(--ease);
}

/*.offer-item:hover { background: var(--surface); }*/
.offer-item:nth-child(even) {
  border-right: none;
}

/* Remove bottom border only when last row has TWO items */
.offer-item:nth-last-child(-n+2):nth-child(odd),
.offer-item:nth-last-child(-n+2):nth-child(even) {
  border-bottom: none;
}

/* Last item alone (odd = left col): span full width, center content, round bottom corners */
.offer-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-content: center;
  border-right: none;
  border-bottom: none;
  border-bottom-left-radius: var(--r-lg);
  border-bottom-right-radius: var(--r-lg);
}

/* When last item is alone, restore border-bottom on the even item above it */
.offer-item:nth-last-child(2):nth-child(even) {
  border-bottom: 1px solid var(--border);
}

.offer-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  /*background: linear-gradient(135deg, rgba(85,15,120,.08), rgba(150,15,125,.08));*/
  background-color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s var(--ease);
}

.offer-item:hover .offer-icon {
  /*background: linear-gradient(135deg, rgba(85,15,120,.15), rgba(150,15,125,.15));*/
  background-color: var(--accent-dim);
}

.offer-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  transition: color .25s var(--ease);
}

.offer-item:hover .offer-icon svg {
  color: var(--primary);
}

.offer-item p {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.65;
  margin: 0;
  /*padding-top: 11px;*/
}

@media (max-width: 720px) {
  .offer-grid {
    grid-template-columns: 1fr;
  }

  .offer-item {
    border-right: none;
  }

  .offer-item:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .offer-item:last-child {
    border-bottom: none;
  }
}