/* ============================================================
   MónPRL — Full Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:        #15353F;
  --teal-mid:    #1E4A59;
  --teal-soft:   #2A6277;
  --green:       #2B6B4A;
  --green-mid:   #3A8A60;
  --amber:       #D4721E;
  --amber-lt:    #E8892E;
  --amber-pale:  #FDF0E3;
  --surface:     #F7F5F0;
  --surface-2:   #EDE9E1;
  --text:        #151515;
  --text-mid:    #3A4550;
  --text-muted:  #6B7880;
  --white:       #FFFFFF;
  --border:      rgba(21,53,63,0.13);

  --f-display: 'Fraunces', serif;
  --f-body:    'Plus Jakarta Sans', sans-serif;

  --max-w:     1200px;
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 6px rgba(21,53,63,0.09);
  --shadow:    0 4px 24px rgba(21,53,63,0.12);
  --shadow-lg: 0 12px 48px rgba(21,53,63,0.16);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── UNDER CONSTRUCTION BANNER ─────────────────────────────── */
.construction-bar {
  background: #FFD600;
  color: #1A1200;
  padding: .7rem 1.5rem;
  text-align: center;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .02em;
  line-height: 1.4;
  border-bottom: 2px solid #E8B800;
  position: relative;
  z-index: 900;
}

/* ── COOKIE BANNER ─────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--teal);
  color: var(--white);
  padding: 1.1rem 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.22);
  transform: translateY(0);
  transition: transform .35s ease;
}
.cookie-banner.hidden { transform: translateY(110%); }
.cookie-banner p {
  flex: 1 1 300px;
  font-size: .88rem;
  line-height: 1.55;
  opacity: .9;
}
.cookie-banner p a { color: var(--amber-lt); text-decoration: underline; }
.cookie-banner .cookie-btns {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: .55rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--f-body);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.cookie-btn.accept {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
}
.cookie-btn.accept:hover { background: var(--amber-lt); border-color: var(--amber-lt); }
.cookie-btn.reject {
  background: transparent;
  color: rgba(255,255,255,.8);
  border-color: rgba(255,255,255,.35);
}
.cookie-btn.reject:hover { border-color: rgba(255,255,255,.7); color: var(--white); }

/* ── HEADER ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 800;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.logo-area {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-shrink: 0;
}
.logo-img-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
}
.logo-img-wrap img { width: 100%; height: 100%; object-fit: contain; }
.logo-name {
  font-family: var(--f-display);
  font-size: 1.45rem;
  color: var(--teal);
  line-height: 1;
  letter-spacing: -.01em;
}
.logo-name span { color: var(--amber); }

/* Nav */
.header-right {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.site-nav { display: flex; align-items: center; gap: .1rem; }
.site-nav a {
  padding: .45rem .9rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--surface); color: var(--teal); }

/* Campus button */
.btn-campus {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--teal);
  color: var(--white);
  padding: .55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s, transform .2s;
  margin-left: .5rem;
  flex-shrink: 0;
}
.btn-campus:hover { background: var(--teal-mid); transform: translateY(-1px); }
.btn-campus svg { width: 15px; height: 15px; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  background: none;
  border: none;
  order: 10;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  background: var(--teal);
  color: var(--white);
  padding: 6rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 80% 20%, rgba(43,107,74,.35) 0%, transparent 70%),
    radial-gradient(ellipse 500px 400px at 10% 80%, rgba(212,114,30,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-deco {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 45%;
  background: var(--teal-mid);
  clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
  opacity: .35;
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--amber-lt);
  border: 1px solid rgba(232,137,46,.4);
  padding: .3rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  max-width: 700px;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--amber-lt);
}
.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 540px;
  opacity: .85;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.btn-primary {
  display: inline-block;
  background: var(--amber);
  color: var(--white);
  padding: .85rem 2.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: background .2s, transform .2s;
}
.btn-primary:hover { background: var(--amber-lt); transform: translateY(-2px); }
.btn-secondary {
  display: inline-block;
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.35);
  padding: .85rem 2.25rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .95rem;
  transition: border-color .2s, color .2s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,.75); color: var(--white); }

/* ── SECTIONS ──────────────────────────────────────────────── */
.section { padding: 5rem 1.5rem; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .85rem;
}
.section-title {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--teal);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}
.section-body {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 640px;
  line-height: 1.8;
}
.section-body + .section-body { margin-top: .85rem; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.about-text .section-body { max-width: 100%; }
.about-callout {
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.callout-item { display: flex; gap: 1rem; align-items: flex-start; }
.callout-dot {
  width: 10px;
  height: 10px;
  background: var(--amber-lt);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}
.callout-item-text strong {
  display: block;
  font-size: .92rem;
  font-weight: 600;
  margin-bottom: .2rem;
  color: var(--white);
}
.callout-item-text span {
  font-size: .85rem;
  opacity: .75;
  line-height: 1.55;
}

/* ── COURSES ───────────────────────────────────────────────── */
.section--surface { background: var(--surface); }
.courses-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.course-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.course-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.course-card-top {
  height: 8px;
  background: var(--green-mid);
}
.course-card-top.amber { background: var(--amber); }
.course-card-top.teal  { background: var(--teal-soft); }
.course-card-top.dark  { background: var(--teal); }
.course-card-body { padding: 1.75rem; }
.course-level {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.course-card-body h3 {
  font-family: var(--f-display);
  font-size: 1.15rem;
  color: var(--teal);
  letter-spacing: -.01em;
  margin-bottom: .6rem;
  line-height: 1.3;
}
.course-card-body p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.course-tags {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.course-tag {
  font-size: .72rem;
  font-weight: 600;
  padding: .25rem .7rem;
  border-radius: 100px;
  background: var(--surface);
  color: var(--text-mid);
}

/* ── FOR WHO ───────────────────────────────────────────────── */
.forwhom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.forwhom-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--white);
}
.forwhom-card-icon {
  width: 40px;
  height: 40px;
  background: var(--amber-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.forwhom-card-icon svg { width: 20px; height: 20px; }
.forwhom-card h3 {
  font-weight: 600;
  font-size: .95rem;
  color: var(--teal);
  margin-bottom: .4rem;
}
.forwhom-card p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── CAMPUS CTA ─────────────────────────────────────────────── */
.campus-cta {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-mid) 50%, var(--green) 100%);
  color: var(--white);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.campus-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.campus-cta-inner { position: relative; z-index: 1; }
.campus-cta h2 {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  letter-spacing: -.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.campus-cta p {
  opacity: .8;
  font-size: .95rem;
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ── FOOTER ────────────────────────────────────────────────── */
.site-footer {
  background: var(--teal);
  color: rgba(255,255,255,.65);
  padding: 3rem 1.5rem 2rem;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 1.75rem;
}
.footer-brand .logo-name { color: var(--white); font-size: 1.1rem; }
.footer-tagline {
  font-size: .82rem;
  opacity: .55;
  margin-top: .4rem;
  font-weight: 300;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links a { font-size: .82rem; opacity: .65; transition: opacity .2s; }
.footer-links a:hover { opacity: 1; }
.footer-bottom { font-size: .78rem; opacity: .45; text-align: center; }

/* ── LEGAL PAGES ───────────────────────────────────────────── */
.legal-page { padding: 4rem 1.5rem; }
.legal-inner { max-width: 820px; margin: 0 auto; }
.legal-inner h1 {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  color: var(--teal);
  letter-spacing: -.02em;
  margin-bottom: .5rem;
  line-height: 1.15;
}
.legal-date {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  display: block;
}
.legal-inner h2 {
  font-family: var(--f-display);
  font-size: 1.25rem;
  color: var(--teal);
  letter-spacing: -.01em;
  margin: 2.5rem 0 .75rem;
}
.legal-inner h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--teal-mid);
  margin: 1.5rem 0 .5rem;
}
.legal-inner p {
  font-size: .93rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: .85rem;
}
.legal-inner ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-inner ul li {
  font-size: .93rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: .35rem;
}
.legal-inner a { color: var(--amber); text-decoration: underline; }
.legal-notice-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
  font-size: .88rem;
  color: var(--text-mid);
}
.placeholder { background: rgba(212,114,30,.13); padding: .1em .35em; border-radius: 3px; font-style: italic; color: var(--amber); }

/* ── TABLE (cookies) ────────────────────────────────────────── */
.cookies-table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
thead { background: var(--surface); }
th { text-align: left; padding: .65rem 1rem; font-weight: 600; color: var(--teal);
     border-bottom: 2px solid var(--border); font-family: var(--f-body); }
td { padding: .6rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-mid);
     vertical-align: top; line-height: 1.55; }
tr:last-child td { border-bottom: none; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .header-right {
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: .75rem 1rem 1rem;
    box-shadow: var(--shadow);
    gap: 0;
    display: none;
  }
  .header-right.open { display: flex; }
  .site-nav { flex-direction: column; align-items: stretch; width: 100%; }
  .site-nav a { padding: .7rem 1rem; font-size: .92rem; }
  .btn-campus {
    margin-left: 0;
    margin-top: .5rem;
    align-self: flex-start;
  }
  .nav-toggle { display: flex; }
  .header-inner { position: relative; }
}

@media (max-width: 640px) {
  .hero { padding: 4rem 1.25rem 3.5rem; }
  .section { padding: 3.5rem 1.25rem; }
  .footer-top { flex-direction: column; gap: 1.25rem; }
  .footer-links { gap: 1rem; }
  .cookie-banner { padding: 1rem 1.25rem; gap: 1rem; }
  .courses-grid { grid-template-columns: 1fr; }
  .forwhom-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .courses-intro { flex-direction: column; align-items: flex-start; }
  .about-callout { padding: 1.75rem; }
}
