/* Page-specific styles (extends styles.css) */

/* Active nav state */
.nav-links a.active { color: var(--navy); position: relative; }
.nav-links a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -18px; height: 3px; background: var(--coral); border-radius: 2px; }

/* Mobile nav */
.nav-burger { display: none; background: transparent; border: none; color: var(--ink); padding: 8px; cursor: pointer; border-radius: 8px; }
.nav-burger.open { background: var(--navy); color: #fff; }
.nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 16px 0 24px; border-top: 1px solid var(--line); }
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 14px 4px; color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line); }
.nav-mobile a.active { color: var(--coral); }
.nav-mobile .m-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--coral); color: #fff !important; padding: 14px 18px !important; border-radius: 999px; border: none !important; margin-top: 12px; justify-content: center; }

/* Page hero */
.page-hero { padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero.tone-navy { background: var(--navy-ink); color: #fff; }
.page-hero.tone-navy .page-hero-eyebrow { color: rgba(255,255,255,.55); }
.page-hero.tone-navy .page-hero-lede { color: rgba(255,255,255,.78); }
.page-hero.tone-coral { background: linear-gradient(135deg, var(--coral) 0%, #ed5c4c 100%); color: #fff; }
.page-hero.tone-coral .page-hero-eyebrow { color: rgba(255,255,255,.7); }
.page-hero.tone-coral .page-hero-lede { color: rgba(255,255,255,.92); }
.page-hero.tone-ink { background: var(--ink); color: #fff; }
.page-hero.tone-ink .page-hero-eyebrow { color: rgba(255,255,255,.55); }
.page-hero.tone-ink .page-hero-lede { color: rgba(255,255,255,.78); }

.page-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: end; }
.page-hero-title { font-size: clamp(40px, 6.4vw, 92px); line-height: .96; letter-spacing: -.035em; font-weight: 800; margin: 14px 0 0; max-width: 14ch; }
.page-hero-title em { font-style: normal; color: #FFC857; }
.page-hero-title .coral { color: var(--coral); }
.page-hero-lede { font-size: 18px; line-height: 1.55; margin-top: 22px; max-width: 540px; }
.page-hero-foot { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.page-hero-photo { aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; }
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero-stats { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 28px; }
.page-hero-stats .num { font-size: 44px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.page-hero-stats .lbl { font-size: 13px; opacity: .7; margin-top: 8px; }

.btn-ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ============ PROGRAMAS ============ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; align-items: center; }
.filter-bar .lbl { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); margin-right: 12px; letter-spacing: .04em; text-transform: uppercase; }
.filter-bar button { background: #fff; border: 1.5px solid var(--line); padding: 9px 16px; border-radius: 999px; font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; transition: all .15s; }
.filter-bar button:hover { border-color: var(--navy); }
.filter-bar button.on { background: var(--navy); color: #fff; border-color: var(--navy); }

.career-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.career-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; transition: transform .2s, box-shadow .2s; position: relative; }
.career-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -16px rgba(11,30,63,.18); }
.career-card .level { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--coral); letter-spacing: .06em; text-transform: uppercase; }
.career-card h3 { margin: 0; font-size: 22px; letter-spacing: -.015em; color: var(--navy-ink); font-weight: 800; line-height: 1.1; }
.career-card .specs { display: flex; flex-wrap: wrap; gap: 6px; }
.career-card .specs span { font-size: 11.5px; color: var(--ink-2); background: var(--bg-2); padding: 4px 10px; border-radius: 999px; }
.career-card .blurb { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; }
.career-card .row-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.career-card .row-meta .duration { font-size: 12.5px; color: var(--muted); }
.career-card .row-meta .more { color: var(--coral); font-weight: 700; font-size: 13.5px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }

.level-block { padding: 80px 0; }
.level-block .head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 32px; gap: 24px; flex-wrap: wrap; }
.level-block h2 { font-size: clamp(28px, 4vw, 52px); line-height: 1; letter-spacing: -.025em; margin: 8px 0 0; font-weight: 800; color: var(--navy-ink); }
.level-block .lvl-meta { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.level-block .lvl-side { color: var(--muted); max-width: 360px; font-size: 15px; line-height: 1.55; }

/* ============ ADMISIONES ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; counter-increment: step; position: relative; }
.step::before { content: counter(step, decimal-leading-zero); font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--coral); letter-spacing: .04em; }
.step h4 { margin: 8px 0 8px; font-size: 18px; color: var(--navy-ink); letter-spacing: -.01em; font-weight: 800; }
.step p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.step .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-2); display: flex; align-items: center; justify-content: center; color: var(--navy); margin-bottom: 16px; }

.becas-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.beca { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 280px; }
.beca.featured { background: var(--coral); color: #fff; border: none; grid-row: span 2; }
.beca.featured h3 { color: #fff; }
.beca.featured p { color: rgba(255,255,255,.9); }
.beca .pct { font-size: clamp(48px, 5vw, 80px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--navy); }
.beca.featured .pct { color: #fff; }
.beca h3 { margin: 0; font-size: 20px; font-weight: 800; color: var(--navy-ink); letter-spacing: -.01em; }
.beca p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.beca ul { padding-left: 18px; margin: 0; color: inherit; font-size: 13.5px; line-height: 1.6; }
.beca .meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; opacity: .7; margin-top: auto; }

.calendar-table { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.calendar-table .row { display: grid; grid-template-columns: 120px 1fr 1fr 140px; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); align-items: center; }
.calendar-table .row:last-child { border-bottom: none; }
.calendar-table .row.head { background: var(--navy-ink); color: rgba(255,255,255,.7); font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; padding: 14px 24px; }
.calendar-table .row .when { font-family: 'JetBrains Mono', monospace; color: var(--coral); font-size: 13.5px; font-weight: 600; }
.calendar-table .row .who { color: var(--ink-2); font-size: 14.5px; font-weight: 600; }
.calendar-table .row .desc { color: var(--muted); font-size: 13.5px; }
.calendar-table .row .tag { font-size: 11.5px; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); text-align: center; }
.calendar-table .row .tag.on { background: #d7f0dd; color: #0a6b35; }

/* ============ COMUNIDAD ============ */
.events-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.event { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.event .img { aspect-ratio: 16/10; overflow: hidden; }
.event .img img { width: 100%; height: 100%; object-fit: cover; }
.event .body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.event .date-row { display: flex; gap: 10px; align-items: center; }
.event .pin { width: 50px; height: 50px; background: var(--navy); color: #fff; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; flex-shrink: 0; }
.event .pin .d { font-size: 22px; font-weight: 800; }
.event .pin .m { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; margin-top: 2px; }
.event h4 { margin: 0; font-size: 17px; line-height: 1.25; color: var(--navy-ink); letter-spacing: -.01em; font-weight: 700; }
.event .where { color: var(--muted); font-size: 13px; }
.event .foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; }
.event .foot .tag { font-size: 11px; background: var(--bg-2); color: var(--ink-2); padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; font-family: 'JetBrains Mono', monospace; }
.event .foot .cta { color: var(--coral); font-size: 13.5px; font-weight: 700; text-decoration: none; }

.clubs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.club { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: transform .15s; }
.club:hover { transform: translateY(-3px); }
.club .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-2); display: flex; align-items: center; justify-content: center; color: var(--coral); }
.club h4 { margin: 0; font-size: 16px; color: var(--navy-ink); font-weight: 800; letter-spacing: -.005em; }
.club .members { font-size: 12px; color: var(--muted); font-family: 'JetBrains Mono', monospace; letter-spacing: .04em; }

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ============ CONOCIMIENTO ============ */
.kw-search { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 22px; display: flex; align-items: center; gap: 12px; max-width: 640px; margin-bottom: 28px; }
.kw-search input { border: none; outline: none; flex: 1; font-size: 15.5px; font-family: inherit; background: transparent; color: var(--ink); padding: 12px 0; }
.kw-search input::placeholder { color: var(--muted); }
.kw-search button { background: var(--navy); color: #fff; border: none; padding: 12px 22px; border-radius: 999px; font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }

.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.cat-pills button { background: #fff; border: 1.5px solid var(--line); padding: 8px 14px; border-radius: 999px; font-family: inherit; font-size: 13px; cursor: pointer; color: var(--ink); }
.cat-pills button.on { background: var(--coral); color: #fff; border-color: var(--coral); }

.featured-post { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px; }
.featured-post .img { aspect-ratio: 16/11; overflow: hidden; }
.featured-post .img img { width: 100%; height: 100%; object-fit: cover; }
.featured-post .body { padding: 40px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.featured-post .cat { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--coral); letter-spacing: .06em; text-transform: uppercase; }
.featured-post h2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.1; letter-spacing: -.02em; color: var(--navy-ink); margin: 0; font-weight: 800; }
.featured-post p { color: var(--muted); font-size: 15.5px; line-height: 1.55; margin: 0; }
.featured-post .author { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.featured-post .author .av { width: 44px; height: 44px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.featured-post .author .av img { width: 100%; height: 100%; object-fit: cover; }
.featured-post .author b { color: var(--ink); font-size: 14px; display: block; }
.featured-post .author small { color: var(--muted); font-size: 12.5px; }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.newsletter { background: var(--navy-ink); color: #fff; border-radius: var(--radius-lg); padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.newsletter h3 { margin: 0; font-size: clamp(24px, 3vw, 36px); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
.newsletter p { color: rgba(255,255,255,.78); margin: 12px 0 0; line-height: 1.55; }
.newsletter form { display: flex; gap: 8px; }
.newsletter input { flex: 1; padding: 14px 20px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; font-family: inherit; font-size: 14.5px; }
.newsletter input::placeholder { color: rgba(255,255,255,.5); }
.newsletter input:focus { outline: none; border-color: #fff; }

/* ============ CAMPUS ============ */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.gallery .ph { border-radius: var(--radius); overflow: hidden; aspect-ratio: auto; min-height: 200px; }
.gallery .ph:first-child { grid-row: 1 / span 2; }
.gallery .ph img { width: 100%; height: 100%; object-fit: cover; }

.amenities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.amenity { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.amenity .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--coral); color: #fff; display: flex; align-items: center; justify-content: center; }
.amenity h4 { margin: 0; font-size: 17px; color: var(--navy-ink); font-weight: 800; letter-spacing: -.01em; }
.amenity p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }

.tour-cta { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.tour-cta h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; margin: 12px 0 14px; letter-spacing: -.02em; font-weight: 800; }
.tour-cta .options { display: flex; flex-direction: column; gap: 12px; }
.tour-cta .opt { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tour-cta .opt b { font-size: 16px; font-weight: 700; display: block; }
.tour-cta .opt small { color: rgba(255,255,255,.6); font-size: 13px; }
.tour-cta .opt .btn { padding: 10px 18px; font-size: 13px; }

/* Responsive */
@media (max-width: 920px) {
  .nav-burger { display: flex; align-items: center; }
  .nav-right .btn.btn-ghost, .nav-right .btn.btn-primary { display: none; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .page-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .career-grid, .posts-grid, .testimonial-grid, .events-row { grid-template-columns: 1fr; }
  .steps, .clubs, .amenities { grid-template-columns: 1fr 1fr; }
  .becas-grid { grid-template-columns: 1fr; }
  .beca.featured { grid-row: auto; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .ph:first-child { grid-row: auto; }
  .featured-post, .newsletter, .tour-cta { grid-template-columns: 1fr; padding: 28px; }
  .calendar-table .row { grid-template-columns: 1fr; gap: 4px; padding: 16px; }
  .calendar-table .row.head { display: none; }
}
