:root {
  --bg: #f5f8fc;
  --surface: rgba(255,255,255,0.78);
  --surface-strong: #ffffff;
  --text: #102133;
  --muted: #58708b;
  --line: rgba(16, 33, 51, 0.10);
  --primary: #0e3a66;
  --primary-2: #1a5f9c;
  --accent: #5aa6e6;
  --accent-soft: rgba(90,166,230,0.14);
  --shadow: 0 20px 50px rgba(15, 41, 66, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(90,166,230,0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(14,58,102,0.10), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #f2f7fc 40%, #eef4fb 100%);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(245,248,252,0.78);
  border-bottom: 1px solid rgba(16, 33, 51, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width:52px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,255,255,0.78)),
    linear-gradient(135deg, var(--accent), var(--primary));
  position: relative;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.8);
  overflow: hidden;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--primary);
  border-radius: 999px;
  opacity: 0.92;
}

.brand-mark::before {
  width: 22px;
  height: 6px;
}

.brand-mark::after {
  width: 6px;
  height: 22px;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.brand-copy span {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--muted);
  transition: 0.2s ease;
}

.nav-links a:hover {
  background: rgba(14,58,102,0.06);
  color: var(--primary);
}

.nav-links .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  box-shadow: 0 12px 30px rgba(14,58,102,0.20);
  line-height: 1;
}

.hero {
  padding: 52px 0 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--secondary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  box-shadow: 0 0 0 6px rgba(256,256,256,0.16);s
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4.3vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: #0d2f51;
  max-width: 12ch;
}

.hero-subtitle {
  margin: 20px 0 0;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  color: var(--muted);
  max-width: 62ch;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(14,58,102,0.08);
  background: rgba(14,58,102,0.04);
  border-radius: 14px;
  padding: 11px 14px;
  color: #284866;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.meta-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  flex: 0 0 auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.96rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 18px 36px rgba(14,58,102,0.22);
}

.btn-secondary {
  background: rgba(255,255,255,0.84);
  color: var(--primary);
  border-color: rgba(14,58,102,0.10);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: rgba(14,58,102,0.14);
}

.hero-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-visual {
  min-height: 640px;
  background:
    linear-gradient(135deg, rgba(7,32,58,0.82), rgba(14,58,102,0.54)),
    url('https://images.unsplash.com/photo-1579684385127-1ef15d508118?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  isolation: isolate;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,0.22), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(4,16,30,0.44));
  z-index: 0;
}

.section {
  padding: 34px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.3vw, 2.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #0e2f4e;
}

.section-head p {
  margin: 10px 0 0;
  max-width: 72ch;
  color: var(--muted);
  font-size: 1rem;
}

.modules-shell {
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(255,255,255,0.62));
  border: 1px solid rgba(255,255,255,0.74);
  box-shadow: var(--shadow);
  padding: 28px;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.module-card {
  position: relative;
  padding: 22px 18px 18px;
  min-height: 190px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,254,0.92));
  border: 1px solid rgba(14,58,102,0.08);
  overflow: hidden;
}

.module-card::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(90,166,230,0.30), rgba(90,166,230,0.03));
}

.module-index {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 24px rgba(14,58,102,0.16);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.module-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.18;
  color: #133658;
}

.module-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.info-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.glass-card {
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.70));
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: var(--shadow);
  padding: 30px;
}

.lead {
  font-size: 1.03rem;
  color: var(--muted);
  margin: 0 0 16px;
}

.check-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.check-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--text);
}

.check-item i {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-weight: 900;
  font-size: 0.95rem;
  margin-top: 2px;
}

.feature-panel {
  background:
    linear-gradient(135deg, rgba(14,58,102,0.96), rgba(28,89,145,0.88));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.feature-panel::after {
  content: "";
  position: absolute;
  inset: auto -90px -90px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.18), rgba(255,255,255,0.02));
}

.feature-panel h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  line-height: 1.1;
}

.feature-panel p,
.feature-panel li {
  color: rgba(255,255,255,0.86);
}

.feature-panel ul {
  margin: 18px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.cta-panel {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.admission {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  border-radius: 34px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(9,31,54,0.84), rgba(13,53,92,0.76)),
    url('https://images.unsplash.com/photo-1581056771107-24ca5f033842?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
  box-shadow: var(--shadow);
  min-height: 380px;
  display: grid;
  align-items: end;
}

.admission::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,36,61,0.10), rgba(7,24,41,0.60));
}

.admission-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.admission h2 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 2.8vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.admission p {
  margin: 0;
  color: rgba(255,255,255,0.86);
  font-size: 1.04rem;
  max-width: 62ch;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.stat-card {
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.74));
  border: 1px solid rgba(255,255,255,0.82);
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
  color: var(--primary);
  letter-spacing: -0.04em;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 600;
}

.directors-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.director-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.72));
  border: 1px solid rgba(255,255,255,0.76);
  box-shadow: var(--shadow);
}

.director-media {
  aspect-ratio: 16/12;
  background:
    linear-gradient(135deg, rgba(14,58,102,0.24), rgba(90,166,230,0.22)),
    url('img/director-isidre-vilacosta.jpg') center/cover no-repeat;
  position: relative;
}

.director-card:nth-child(2) .director-media {
  background:
    linear-gradient(135deg, rgba(14,58,102,0.24), rgba(90,166,230,0.22)),
    url('img/director-david-vivas.jpg') center/cover no-repeat;
}

.director-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(8,26,46,0.66);
  backdrop-filter: blur(12px);
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255,255,255,0.14);
}

.director-content {
  padding: 24px;
}

.director-content h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #12365a;
}

.director-role {
  margin: 8px 0 14px;
  color: var(--primary-2);
  font-weight: 700;
  font-size: 0.95rem;
}

.director-content p {
  margin: 0;
  color: var(--muted);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-card {
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.74));
  border: 1px solid rgba(255,255,255,0.82);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.news-thumb {
  aspect-ratio: 16/10;
  background:
    linear-gradient(135deg, rgba(14,58,102,0.30), rgba(90,166,230,0.20)),
    url('https://images.unsplash.com/photo-1516549655169-df83a0774514?auto=format&fit=crop&w=1000&q=80') center/cover no-repeat;
}

.news-card:nth-child(2) .news-thumb {
  background:
    linear-gradient(135deg, rgba(14,58,102,0.30), rgba(90,166,230,0.20)),
    url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=1000&q=80') center/cover no-repeat;
}

.news-card:nth-child(3) .news-thumb {
  background:
    linear-gradient(135deg, rgba(14,58,102,0.30), rgba(90,166,230,0.20)),
    url('https://images.unsplash.com/photo-1505751172876-fa1923c5c528?auto=format&fit=crop&w=1000&q=80') center/cover no-repeat;
}

.news-content {
  padding: 20px;
}

.news-content small {
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.news-content h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.18;
  color: #14375b;
}

.news-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer {
  margin-top: 22px;
  background: linear-gradient(180deg, #0d2742 0%, #0a2137 100%);
  color: rgba(255,255,255,0.88);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-shell {
  padding: 48px 0 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 0fr;
  gap: 34px;
  align-items: start;
}

.footer strong {
  display: block;
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.footer p {
  margin: 0;
  color: rgba(255,255,255,0.74);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.footer-meta {
  display: grid;
  gap: 18px;
}

.footer-block {
  display: grid;
  gap: 8px;
}

.footer-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(144,198,255,0.92);
}

.footer-list {
  display: grid;
  gap: 8px;
}

.footer-list a,
.footer-list span {
  color: rgba(255,255,255,0.74);
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

.footer-links a {
  padding: 11px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.10);
}

.footer-copy {
  margin-top: 34px;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(255,255,255,0.10);
  width: 100%;
}

.footer-copy-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.62);
}

@media (max-width: 1150px) {
  .hero-grid,
  .info-grid,
  .footer-main,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .team-showcase {
    grid-template-columns: 1fr;
  }

  .modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-grid,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-grid,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .topbar {
    position: sticky;
  }

  .nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    min-height: auto;
  }

  .team-showcase__content {
    padding: 22px;
  }

  .team-showcase__media img {
    min-height: 260px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .brand-copy strong {
    font-size: 0.84rem;
    line-height: 1.15;
  }

  .brand-copy span {
    font-size: 0.76rem;
  }

  .nav-links {
    flex: 0 0 auto;
  }

  .nav-links .nav-cta {
    min-height: 44px;
    height: 44px;
    padding: 0 14px;
    font-size: 0.86rem;
    white-space: nowrap;
    line-height: 1;
    text-align: center;
  }

  .hero-card,
  .glass-card,
  .modules-shell,
  .admission,
  .footer-shell {
    padding: 22px;
  }

  .hero-visual {
    min-height: 460px;
  }

  h1 {
    max-width: none;
  }

  .modules-grid,
  .directors-grid,
  .news-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .cta-row,
  .footer-links {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .footer-links a {
    width: 100%;
  }

  .footer-copy {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 20px), var(--container));
  }

  .nav {
    align-items: flex-start;
  }

  .brand-copy span {
    display: none;
  }

  .brand-copy strong {
    font-size: 0.8rem;
  }

  .nav-links .nav-cta {
    min-height: 42px;
    height: 42px;
    padding: 0 12px;
    font-size: 0.82rem;
    line-height: 1;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-card,
  .hero-overlay,
  .glass-card,
  .modules-shell,
  .admission,
  .footer-shell {
    padding: 18px;
  }

  .meta-pill {
    width: 100%;
  }
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
}

.cookie-banner__content {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 20px;
  border-radius: 22px;
  background: rgba(8, 26, 46, 0.94);
  color: rgba(255,255,255,0.92);
  box-shadow: 0 24px 60px rgba(3, 15, 28, 0.35);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(16px);
}

.cookie-banner__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.80);
}

.cookie-banner__text a {
  color: #9dd1ff;
  text-decoration: underline;
}

.cookie-banner__actions,
.cookie-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.cookie-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cookie-btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
}

.cookie-btn--secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.14);
}

.cookie-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.16);
}

.cookie-panel {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.cookie-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 19, 33, 0.58);
  backdrop-filter: blur(6px);
}

.cookie-panel__dialog {
  position: relative;
  width: min(calc(100% - 24px), 760px);
  margin: 7vh auto 0;
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 28px 70px rgba(15, 41, 66, 0.24);
}

.cookie-panel__dialog h2 {
  margin: 0 0 10px;
  color: #0e2f4e;
}

.cookie-panel__intro {
  margin: 0 0 18px;
  color: var(--muted);
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid rgba(16, 33, 51, 0.08);
}

.cookie-option:first-of-type {
  border-top: 0;
}

.cookie-option strong {
  display: block;
  margin-bottom: 6px;
  color: #133658;
}

.cookie-option p {
  margin: 0;
  color: var(--muted);
}

.cookie-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-weight: 700;
  color: var(--primary);
}

.cookie-manage {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9998;
  appearance: none;
  border: 1px solid rgba(14,58,102,0.10);
  border-radius: 999px;
  min-height: 42px;
  padding: 0 14px;
  background: rgba(255,255,255,0.96);
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(15, 41, 66, 0.14);
  cursor: pointer;
}

#cookie-banner:not([hidden]) ~ .cookie-manage {
  display: none;
}

@media (max-width: 780px) {
  .cookie-banner__actions,
  .cookie-panel__actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }

  .cookie-option {
    flex-direction: column;
  }

  .cookie-panel__dialog {
    margin-top: 4vh;
    padding: 20px;
  }
}

.footer-cookie-link {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  color: rgba(255,255,255,0.74);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.team-showcase {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.74));
  border: 1px solid rgba(255,255,255,0.82);
  box-shadow: var(--shadow);
}

.team-showcase__media {
  min-height: 100%;
}

.team-showcase__media img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
}

.team-showcase__content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-showcase__eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.team-showcase__content h3 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.08;
  color: #12365a;
}

.team-showcase__content p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.98rem;
}

.team-showcase__content p:last-child {
  margin-bottom: 0;
}

.team-showcase__media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.team-showcase__media img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
}

.team-showcase__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,58,102,0.24), rgba(90,166,230,0.22));
  pointer-events: none;
}

@media (max-width: 780px) {
  .team-showcase {
    gap: 0;
    border-radius: 22px;
  }

  .team-showcase__media img {
    min-height: 220px;
    max-height: 260px;
  }

  .team-showcase__content {
    padding: 20px;
  }

  .team-showcase__content h3 {
    font-size: 1.3rem;
    line-height: 1.15;
  }

  .team-showcase__content p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

@media (max-width: 560px) {
  .team-showcase {
    border-radius: 18px;
  }

  .team-showcase__media img {
    min-height: 190px;
    max-height: 220px;
  }

  .team-showcase__content {
    padding: 16px;
  }

  .team-showcase__eyebrow {
    font-size: 0.74rem;
    padding: 7px 10px;
    margin-bottom: 12px;
  }

  .team-showcase__content h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
  }

  .team-showcase__content p {
    font-size: 0.92rem;
    margin-bottom: 12px;
  }
}

.team-showcase {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.74));
  border: 1px solid rgba(255,255,255,0.82);
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .team-showcase {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .team-showcase__media,
  .team-showcase__content {
    width: 100%;
  }

  .team-showcase__media img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
  }

  .team-showcase__content {
    padding: 22px;
  }
}

@media (max-width: 560px) {
  .team-showcase__content {
    padding: 18px;
  }

  .team-showcase__content h3 {
    font-size: 1.2rem;
    line-height: 1.15;
  }

  .team-showcase__content p {
    font-size: 0.94rem;
  }
}

.hero {
  padding: 52px 0 34px;
}

.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.72);
  min-height: 680px;
  background:
    url('img/FotoBanner.jpg') center/cover no-repeat;
}

.hero-banner__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(7,32,58,0.82), rgba(14,58,102,0.56)),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(4,16,30,0.46));
}

.hero-banner__content {
  position: relative;
  z-index: 1;
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: end;
  padding: 46px;
}

.hero-banner__main {
  color: #ffffff;
  max-width: 760px;
}

.hero-banner__main h1 {
  color: #ffffff;
  max-width: 12ch;
}

.hero-banner__main .hero-subtitle {
  color: rgba(255,255,255,0.86);
}

.hero-banner__main .meta-pill {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  color: #ffffff;
  box-shadow: none;
}

.hero-banner__main .meta-pill::before {
  background: #9dd1ff;
}

.hero-banner__main .btn-secondary,
.hero-banner__main .btn-ghost {
  color: #ffffff;
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
}

.hero-banner__side {
  align-self: end;
  padding: 24px;
  border-radius: 24px;
  background: rgba(8, 26, 46, 0.56);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(18px);
  color: #f7fbff;
  max-width: 430px;
  justify-self: end;
}

.hero-banner__side small {
  display: block;
  color: rgba(255,255,255,0.74);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-banner__side strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.15;
}

.hero-banner__side p {
  margin: 10px 0 0;
  color: rgba(255,255,255,0.84);
  font-size: 0.96rem;
}

@media (max-width: 1100px) {
  .hero-banner__content {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .hero-banner__side {
    justify-self: start;
    max-width: 100%;
  }
}

@media (max-width: 780px) {
  .hero-banner {
    min-height: auto;
  }

  .hero-banner__content {
    min-height: auto;
    padding: 22px;
  }

  .hero-banner__side {
    padding: 18px;
  }
}

@media (max-width: 560px) {
  .hero-banner__content {
    padding: 18px;
  }

  .hero-banner__side strong {
    font-size: 1.2rem;
  }
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  flex: 1 1 auto;
}

.official-logos {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.official-logos img {
  height: 60px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  padding: 5px 5px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.86));
  border: 1px solid rgba(14,58,102,0.08);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

@media (max-width: 1150px) {
  .nav-left {
    gap: 16px;
  }

  .official-logos {
    gap: 12px;
  }

  .official-logos img {
    height: 44px;
    max-width: 220px;
    padding: 8px 12px;
    border-radius: 16px;
  }
}

@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .nav-left {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
  }

  .brand {
    justify-content: center;
  }

  .brand-copy {
    text-align: center;
  }

  .official-logos {
    width: 100%;
    justify-content: center;
    gap: 10px;
  }

  .official-logos img {
    height: 64px;
    max-width: 250px;
    padding: 8px 10px;
    border-radius: 14px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .official-logos {
    gap: 8px;
  }

  .official-logos img {
    height: 44px;
    max-width: 200px;
    padding: 7px 9px;
    border-radius: 12px;
  }

  .brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .brand-copy {
    text-align: center;
  }
}

@media (max-width: 900px) and (min-width: 561px) {
  html {
    scroll-padding-top: 60px;
  }

  section[id],
  div[id],
  article[id] {
    scroll-margin-top: 60px;
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 100px;
  }

  section[id],
  div[id],
  article[id] {
    scroll-margin-top: 100px;
  }
}