:root {
  --bg: #000000;
  --panel: #0b0b0b;
  --panel-2: #111111;
  --text: #ffffff;
  --muted: #b0b0b0;
  --gold: #d8b47a;
  --line: rgba(255, 255, 255, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: 'DM Sans', sans-serif; }
a { color: inherit; text-decoration: none; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 28px 6vw; background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 210px; height: 70px; object-fit: contain; object-position: left center; }
.brand-mark { color: var(--text); font-size: 1.65rem; font-weight: 700; letter-spacing: .08em; }
.brand-subtitle { border-left: 1px solid var(--line); padding-left: 12px; color: var(--muted); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 30px; font-size: .82rem; }
nav a { color: var(--muted); }
nav a:hover, .text-link:hover, .program-card a:hover { color: var(--gold); }
.nav-login { border: 1px solid var(--gold); padding: 11px 16px; color: var(--gold); }
.hero { min-height: 680px; display: flex; flex-direction: column; justify-content: center; padding: 90px 12vw 110px; position: relative; overflow: hidden; background: var(--bg); color: var(--text); }
.hero:after { content: 'CFNI'; position: absolute; right: -30px; bottom: -115px; color: rgba(216, 180, 122, .08); font-family: 'Playfair Display', serif; font-size: 26vw; line-height: 1; }
.hero-copy { max-width: 760px; position: relative; z-index: 1; animation: rise .8s ease both; }
.eyebrow { margin: 0 0 22px; color: var(--gold); font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 600; }
h1 { max-width: 780px; margin: 0; font-size: clamp(3.4rem, 7vw, 6.8rem); line-height: .96; letter-spacing: -.03em; color: var(--text); }
.hero-text { max-width: 480px; margin: 34px 0 0; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 42px; }
.button { display: inline-flex; align-items: center; gap: 18px; padding: 15px 20px; font-size: .78rem; font-weight: 700; letter-spacing: .03em; }
.button-primary { background: var(--gold); color: #000; }
.button-light { background: var(--text); color: #000; }
.text-link { border-bottom: 1px solid var(--gold); padding-bottom: 5px; color: var(--text); font-size: .78rem; }
.hero-note { display: flex; align-items: center; gap: 15px; position: absolute; right: 9vw; bottom: 95px; z-index: 1; max-width: 190px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.note-line { width: 38px; height: 1px; flex: 0 0 auto; background: var(--gold); }
.intro, .programs { padding: 120px 12vw; }
.intro { background: var(--panel); border-top: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: end; }
h2 { margin: 0; color: var(--text); font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: 1.02; }
h2 em { color: var(--gold); font-style: normal; }
.intro-grid > p { max-width: 430px; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 55px; }
.section-heading > p { max-width: 240px; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.program-card { min-height: 340px; display: flex; flex-direction: column; align-items: flex-start; padding: 30px 28px 28px 0; border-right: 1px solid var(--line); }
.program-card:not(:first-child) { padding-left: 28px; }
.program-card:last-child { border: 0; }
.program-card.featured { color: var(--text); }
.card-number { color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .1em; }
h3 { margin: 55px 0 16px; color: var(--text); font-size: 2rem; }
.program-card p { max-width: 250px; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.program-card a { margin-top: auto; color: var(--text); font-size: .76rem; font-weight: 700; }
.program-card a span { margin-left: 12px; color: var(--gold); }
.campus { display: grid; grid-template-columns: 1.1fr .8fr auto; gap: 50px; align-items: center; padding: 80px 12vw; background: var(--panel-2); color: var(--text); border-top: 1px solid var(--line); }
.campus .eyebrow { color: var(--gold); }
.campus h2 { color: var(--text); font-size: clamp(2.5rem, 4vw, 4rem); }
.campus > p { max-width: 290px; margin: 0; color: var(--muted); line-height: 1.7; }
footer { display: grid; grid-template-columns: 1fr 1fr auto; gap: 40px; padding: 70px 6vw 35px; background: var(--bg); color: var(--text); border-top: 1px solid var(--line); }
footer .brand-mark { color: var(--text); }
.footer-logo { width: 240px; height: 80px; object-fit: contain; object-position: left center; }
.footer-brand p, .footer-contact p:last-of-type, .copyright { color: var(--muted); font-size: .78rem; line-height: 1.6; }
.footer-address { max-width: 320px; }
.social-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.social-link:hover { color: var(--gold); }
.footer-contact a { font-size: 1rem; }
.footer-contact .eyebrow { margin-bottom: 12px; }
.copyright { align-self: end; margin: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  .site-header { align-items: flex-start; padding: 22px 6vw; }
  .brand-logo { width: 168px; height: 56px; }
  nav { gap: 13px; flex-wrap: wrap; justify-content: flex-end; font-size: .7rem; }
  .site-header nav a:not(.nav-login) { display: none; }
  .hero { min-height: 650px; padding: 80px 8vw; }
  h1 { font-size: clamp(3.1rem, 15vw, 5rem); }
  .hero-note { right: 8vw; bottom: 45px; }
  .intro, .programs { padding: 80px 8vw; }
  .intro-grid, .program-grid, .campus, footer { grid-template-columns: 1fr; }
  .intro-grid { gap: 30px; }
  .section-heading { display: block; margin-bottom: 35px; }
  .section-heading > p { margin-top: 20px; }
  .program-card, .program-card:not(:first-child) { min-height: 285px; padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  h3 { margin-top: 35px; }
  .campus { gap: 25px; padding: 70px 8vw; }
  footer { gap: 30px; padding: 55px 8vw 30px; }
}

/* Campus: paginas de autenticacion */
.campus-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.auth-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: radial-gradient(circle at 50% 0%, #141414, #000 60%); }
.auth-wrap { width: 100%; max-width: 440px; }
.auth-logo { display: block; text-align: center; margin-bottom: 26px; }
.auth-logo img { width: 220px; height: 74px; object-fit: contain; }
.auth-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 40px 34px; }
.auth-card h1 { color: var(--text); font-size: 2.2rem; margin: 4px 0 6px; }
.auth-sub { margin: 0 0 26px; color: var(--muted); font-size: .92rem; }
form label { display: block; margin-bottom: 16px; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
form input, form select { display: block; width: 100%; margin-top: 7px; padding: 12px 14px; background: #000; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-family: inherit; font-size: .95rem; }
form input:focus, form select:focus { outline: none; border-color: var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form button[type="submit"] { width: 100%; justify-content: center; margin-top: 8px; cursor: pointer; border: 0; }
.form-message { margin: 14px 0 0; font-size: .84rem; min-height: 1.1em; }
.form-message.error { color: #ff6b6b; }
.form-message.success { color: #7bd88f; }
.auth-alt { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: .86rem; }
.auth-alt a, .auth-card a { color: var(--gold); }

/* Campus: paginas internas (dashboard / admin) */
.app-body { background: var(--bg); color: var(--text); min-height: 100vh; }
.app-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 6vw; border-bottom: 1px solid var(--line); }
.app-nav { display: flex; align-items: center; gap: 22px; font-size: .85rem; }
.app-nav a { color: var(--muted); }
.app-nav a:hover { color: var(--gold); }
.app-nav .nav-login { background: transparent; color: var(--gold); cursor: pointer; font-family: inherit; }
.app-main { max-width: 960px; margin: 0 auto; padding: 60px 6vw 90px; }
.app-sub { color: var(--muted); margin: 6px 0 0; }
.panel { margin-top: 40px; padding: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.panel h2 { font-size: 1.5rem; margin: 0 0 20px; }
.panel .button { margin-top: 24px; }
.muted { color: var(--muted); }
.profile-grid { display: grid; grid-template-columns: 160px 1fr; gap: 12px 20px; margin: 0; }
.profile-grid dt { color: var(--muted); font-size: .8rem; font-weight: 700; }
.profile-grid dd { margin: 0; color: var(--text); font-size: .95rem; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.data-table th { color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.data-table select { padding: 8px 10px; background: #000; border: 1px solid var(--line); border-radius: 6px; color: var(--text); font-family: inherit; }
@media (max-width: 520px) {
  .form-row, .profile-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 30px 22px; }
}
