:root {
  --blue-950: #061b2a;
  --blue-900: #082a41;
  --blue-800: #0b486c;
  --blue-700: #075f96;
  --blue-600: #0874b9;
  --teal-700: #0f766e;
  --gold-500: #f4b400;
  --gold-400: #ffcf3a;
  --ink: #14232c;
  --muted: #5d707b;
  --line: #d8e2e8;
  --surface: #f4f8fb;
  --white: #ffffff;
  --success: #197c5a;
  --error: #b63b3b;
  --shadow: 0 18px 48px rgba(6, 27, 42, .13);
  --radius: 8px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow { max-width: 850px; }
.section { padding: 92px 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 9999;
  padding: 12px 18px; background: var(--gold-500); color: var(--blue-950);
  border-radius: var(--radius); font-weight: 800; transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000;
  background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(7,95,150,.12);
  backdrop-filter: blur(14px); transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 12px 30px rgba(6,27,42,.10); }
.navbar { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 220px; color: var(--blue-950); }
.brand img { width: 50px; height: 58px; object-fit: contain; }
.brand span { display: grid; gap: 1px; line-height: 1.05; }
.brand strong { font-size: 1.28rem; font-weight: 950; }
.brand small { max-width: 165px; color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.main-nav { display: flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 750; }
.main-nav a { position: relative; padding: 10px 0; color: #284451; }
.main-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 3px; height: 2px;
  background: var(--gold-500); transition: right .25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.main-nav .nav-cta {
  background: var(--blue-700); color: var(--white); padding: 12px 18px; border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(7,95,150,.20);
}
.main-nav .nav-cta:hover { background: var(--blue-800); transform: translateY(-1px); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 10px; }
.menu-toggle span:not(.sr-only) { display: block; width: 26px; height: 2px; margin: 5px; background: var(--blue-900); }

.hero {
  min-height: 760px; position: relative; display: flex; align-items: center;
  padding-top: 84px; overflow: hidden; color: var(--white); background: var(--blue-950);
}
.hero-media {
  position: absolute; inset: 0;
  background: url("../img/hero-videowall.jpg") center 44% / cover no-repeat;
  transform: scale(1.01);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,27,42,.98) 0%, rgba(6,27,42,.86) 48%, rgba(6,27,42,.42) 100%),
    linear-gradient(0deg, rgba(6,27,42,.62), transparent 55%);
}
.hero-content { position: relative; z-index: 2; padding-block: 110px 82px; }
.eyebrow {
  margin: 0 0 16px; color: var(--gold-400); font-size: .78rem; font-weight: 900;
  letter-spacing: 0; text-transform: uppercase;
}
.eyebrow.dark { color: var(--blue-700); }
.eyebrow.light { color: var(--gold-400); }
.hero h1 {
  max-width: 900px; margin: 0; font-size: 5rem;
  line-height: 1; letter-spacing: 0; font-weight: 850;
}
.hero-lead { max-width: 760px; margin: 28px 0 0; font-size: 1.24rem; color: #d9e8f1; }
.hero-actions, .page-actions, .centered-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.centered-actions { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 13px 20px; border: 1px solid transparent; border-radius: var(--radius);
  font-weight: 850; transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold-500); color: var(--blue-950); box-shadow: 0 14px 30px rgba(244,180,0,.22); }
.btn-primary:hover { background: var(--gold-400); }
.btn-ghost { border-color: rgba(255,255,255,.42); color: var(--white); background: rgba(255,255,255,.06); }
.btn-ghost:hover { background: rgba(255,255,255,.13); }
.dark-ghost { color: var(--blue-900); border-color: var(--line); background: var(--white); }
.btn-external { background: var(--teal-700); color: var(--white); box-shadow: 0 14px 30px rgba(15,118,110,.20); }
.btn-light { background: var(--white); color: var(--blue-900); }
.btn-full { width: 100%; border: 0; }
.hero-proof { margin-top: 60px; display: flex; gap: 18px; flex-wrap: wrap; color: #d3e3eb; font-size: .88rem; font-weight: 700; }
.hero-proof span { display: flex; align-items: center; gap: 9px; }
.hero-proof span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); }

.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 74px; align-items: start; }
.section-heading h2 {
  margin: 0; font-size: 3.5rem; line-height: 1.08; letter-spacing: 0; color: var(--blue-950);
}
.section-heading > p:last-child { max-width: 690px; margin: 20px auto 0; color: var(--muted); font-size: 1.08rem; }
.section-heading.centered { text-align: center; max-width: 900px; margin: 0 auto 50px; }
.intro-copy { font-size: 1.12rem; color: #415560; }
.intro-copy p { margin-top: 0; margin-bottom: 22px; }
.intro-copy strong { color: var(--blue-700); }

.services-preview, .gallery-section, .brand-section, .values-section, .sector-section, .projects, .courses-preview { background: var(--surface); }
.brand-mark-section { padding: 44px 0; background: var(--white); }
.brand-mark-grid {
  display: grid; grid-template-columns: 180px 1fr; gap: 36px; align-items: center;
  padding: 30px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(90deg, #ffffff, #f7fbfd);
}
.brand-mark-grid img { width: 160px; height: 160px; object-fit: contain; }
.brand-mark-grid h2 { margin: 0 0 10px; color: var(--blue-950); font-size: 2.2rem; line-height: 1.08; }
.brand-mark-grid p:not(.eyebrow) { margin: 0; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  min-height: 390px; display: flex; flex-direction: column;
  padding: 0; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(7,95,150,.25); }
.service-card-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--blue-950); }
.service-number { display: block; margin: 22px 28px 0; color: var(--gold-500); font-weight: 900; font-size: .86rem; letter-spacing: 0; }
.service-card h3 { margin: 14px 28px 12px; color: var(--blue-950); font-size: 1.34rem; line-height: 1.22; }
.service-card p { margin: 0 28px 24px; color: var(--muted); }
.service-card a { margin: auto 28px 28px; color: var(--blue-700); font-weight: 850; }

.feature-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 74px; align-items: center; }
.feature-grid.reverse { grid-template-columns: .95fr 1.05fr; }
.feature-image { position: relative; }
.feature-image > img { width: 100%; min-height: 500px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.image-badge {
  position: absolute; left: 22px; right: 22px; bottom: 22px; padding: 16px 18px;
  border-radius: var(--radius); background: rgba(6,27,42,.92); color: var(--white); backdrop-filter: blur(10px);
}
.image-badge strong, .image-badge span { display: block; }
.image-badge span { margin-top: 4px; color: #c9dbe4; font-size: .9rem; }
.feature-content h2 {
  margin: 0 0 22px; color: var(--blue-950); font-size: 3.2rem;
  line-height: 1.08; letter-spacing: 0;
}
.feature-content > p:not(.eyebrow) { color: var(--muted); font-size: 1.06rem; }
.check-list { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: #344b58; }
.check-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px;
  display: grid; place-items: center; border-radius: 50%; background: #e2f4ef;
  color: var(--teal-700); font-size: .76rem; font-weight: 950;
}
.text-link { color: var(--blue-700); font-weight: 850; text-decoration: underline; text-underline-offset: 4px; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item {
  position: relative; min-height: 300px; margin: 0; overflow: hidden; border-radius: var(--radius);
  background: var(--blue-950); box-shadow: 0 12px 30px rgba(6,27,42,.08);
}
.gallery-item img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 20px;
  color: var(--white); background: linear-gradient(0deg, rgba(6,27,42,.96), rgba(6,27,42,0));
}
.gallery-item span { display: block; color: var(--gold-400); font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0; }
.gallery-item strong { display: block; margin-top: 5px; font-size: 1.15rem; line-height: 1.2; }
.compact-gallery { grid-template-columns: repeat(4, 1fr); }
.compact-gallery .gallery-item, .compact-gallery .gallery-item img { min-height: 230px; }

.web-feature { background: var(--blue-950); color: var(--white); overflow: hidden; position: relative; }
.web-feature .feature-content, .web-feature .web-illustration { position: relative; z-index: 1; }
.web-feature .feature-content h2 { color: var(--white); }
.web-feature .feature-content > p:not(.eyebrow) { color: #c5d9e4; }
.web-illustration img { border-radius: var(--radius); box-shadow: 0 30px 70px rgba(0,0,0,.26); background: #eef6fb; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 30px 0; }
.metric-row div { padding: 15px; border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); background: rgba(255,255,255,.05); }
.metric-row strong, .metric-row span { display: block; }
.metric-row strong { color: var(--gold-400); font-size: 1.15rem; }
.metric-row span { color: #bcd1dc; font-size: .78rem; margin-top: 3px; }

.brand-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: center; }
.brand-grid img {
  width: 100%; height: 86px; object-fit: contain; padding: 18px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
}

.courses-callout { padding: 0 0 92px; background: var(--surface); }
.callout-grid {
  display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center;
  padding: 48px; border-radius: var(--radius); background: var(--teal-700); color: var(--white);
  box-shadow: 0 24px 60px rgba(15,118,110,.22);
}
.callout-grid h2 { margin: 0; max-width: 800px; font-size: 2.55rem; line-height: 1.1; }
.callout-grid p:not(.eyebrow) { max-width: 720px; color: #d9f4ef; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.process-grid article { padding: 28px 22px; border-top: 3px solid var(--gold-500); background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); }
.process-grid span { color: var(--blue-700); font-weight: 900; font-size: .85rem; }
.process-grid h3 { margin: 24px 0 10px; color: var(--blue-950); font-size: 1.22rem; }
.process-grid p { margin: 0; color: var(--muted); font-size: .95rem; }

.split-heading { display: grid; grid-template-columns: 1fr .65fr; gap: 70px; align-items: end; margin-bottom: 44px; }
.split-heading > p { color: var(--muted); font-size: 1.05rem; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-carousel { position: relative; }
.project-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(360px, 42%);
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 4px 18px; scrollbar-width: thin;
}
.project-card {
  min-height: 330px; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white); border-radius: var(--radius); overflow: hidden;
  background-image: linear-gradient(0deg, rgba(6,27,42,.98), rgba(6,27,42,.36)), var(--project-image);
  background-size: cover; background-position: center;
  scroll-snap-align: start;
}
.project-card-content { margin-top: auto; }
.project-card p { color: var(--gold-400); font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0; }
.project-card h3 { margin: 7px 0 12px; font-size: 1.45rem; line-height: 1.15; }
.project-card span { color: #d3e1e8; font-size: .92rem; }
.project-more {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 18px;
  min-height: 42px; padding: 10px 14px; border-radius: var(--radius);
  background: var(--gold-500); color: var(--blue-950); font-weight: 900;
}
.project-more:hover { background: var(--gold-400); }
.carousel-btn {
  position: absolute; top: 50%; z-index: 4; width: 42px; height: 42px; transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: var(--blue-950);
  color: var(--white); font-size: 1.35rem; font-weight: 900; box-shadow: var(--shadow);
}
.carousel-prev { left: -14px; }
.carousel-next { right: -14px; }
.carousel-btn:hover { background: var(--blue-700); }

.project-detail-grid { display: grid; grid-template-columns: 1fr .82fr; gap: 60px; align-items: start; }
.project-detail-content h2 { margin: 0 0 22px; color: var(--blue-950); font-size: 2.2rem; line-height: 1.14; }
.project-detail-content p { color: var(--muted); font-size: 1.06rem; }
.project-detail-aside img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.project-facts { margin-top: 18px; display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.project-facts div { padding: 18px; background: var(--white); border-bottom: 1px solid var(--line); }
.project-facts div:last-child { border-bottom: 0; }
.project-facts span, .project-facts strong { display: block; }
.project-facts span { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: 0; font-weight: 900; }
.project-facts strong { margin-top: 5px; color: var(--blue-950); }

.cta-section { padding-top: 0; background: var(--surface); }
.cta-box {
  min-height: 280px; display: flex; justify-content: space-between; align-items: center; gap: 44px;
  padding: 48px 56px; background: var(--blue-700); color: var(--white);
  border-radius: var(--radius); box-shadow: 0 26px 70px rgba(7,95,150,.22);
}
.cta-box h2 { max-width: 780px; margin: 0; font-size: 2.85rem; line-height: 1.08; letter-spacing: 0; }

.page-hero {
  padding: 195px 0 95px; color: var(--white); background-color: var(--blue-950);
  background-image:
    linear-gradient(90deg, rgba(6,27,42,.94), rgba(6,27,42,.74)),
    url("../img/hero-videowall.jpg");
  background-size: cover; background-position: center;
}
.page-hero.about-hero { background-image: linear-gradient(90deg, rgba(6,27,42,.95), rgba(6,27,42,.70)), url("../img/equipo-obra.jpg"); }
.page-hero.contact-hero { background-image: linear-gradient(90deg, rgba(6,27,42,.96), rgba(6,27,42,.72)), url("../img/sala-monitoreo.jpg"); }
.page-hero.compact { padding-bottom: 80px; }
.page-hero h1 { max-width: 920px; margin: 0; font-size: 4.3rem; line-height: 1.02; letter-spacing: 0; }
.page-hero > .container > p:last-child { max-width: 760px; margin: 26px 0 0; color: #d6e6ee; font-size: 1.16rem; }
.service-index { padding: 28px 0; background: var(--white); border-bottom: 1px solid var(--line); }
.service-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.service-strip a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--blue-900); font-weight: 760;
}
.service-strip span { color: var(--gold-500); font-weight: 900; }
.service-list-section { padding-top: 70px; }
.service-detail-list { display: grid; gap: 0; }
.service-detail {
  scroll-margin-top: 108px; display: grid; grid-template-columns: .95fr 1.05fr; gap: 70px;
  padding: 62px 0; border-bottom: 1px solid var(--line);
}
.service-detail:first-child { padding-top: 0; }
.service-detail-title { display: flex; gap: 20px; align-items: flex-start; }
.service-detail-title > span { color: var(--gold-500); font-weight: 950; }
.service-detail-title p { margin: 0 0 8px; color: var(--blue-700); font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0; }
.service-detail-title h2 { margin: 0 0 22px; color: var(--blue-950); font-size: 2.45rem; line-height: 1.08; letter-spacing: 0; }
.service-detail-title img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.service-detail-body > p { margin-top: 0; color: var(--muted); font-size: 1.06rem; }
.service-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 20px; }

.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sector-grid div { padding: 26px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.sector-grid strong, .sector-grid span { display: block; }
.sector-grid strong { color: var(--blue-950); font-size: 1.12rem; }
.sector-grid span { margin-top: 10px; color: var(--muted); }

.mission-section { background: var(--blue-950); color: var(--white); }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mission-grid article { padding: 40px; border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); background: rgba(255,255,255,.04); }
.mission-grid span { color: var(--gold-400); font-weight: 900; text-transform: uppercase; font-size: .78rem; letter-spacing: 0; }
.mission-grid h2 { margin: 22px 0 16px; font-size: 2.15rem; line-height: 1.14; letter-spacing: 0; }
.mission-grid p { color: #c8dbe5; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.values-grid article { padding: 28px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.values-grid strong { color: var(--blue-700); font-size: 1.12rem; }
.values-grid p { color: var(--muted); margin-bottom: 0; }
.company-facts { padding-top: 0; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts-grid div { padding: 28px; border-right: 1px solid var(--line); }
.facts-grid div:last-child { border-right: 0; }
.facts-grid span, .facts-grid strong { display: block; }
.facts-grid span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: 0; }
.facts-grid strong { margin-top: 8px; color: var(--blue-950); overflow-wrap: anywhere; }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
.contact-info h2 { margin: 0 0 20px; color: var(--blue-950); font-size: 3.1rem; line-height: 1.08; letter-spacing: 0; }
.contact-info > p:not(.eyebrow) { color: var(--muted); }
.contact-card { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-card span { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: 0; font-weight: 850; }
.contact-card a, .contact-card p { display: block; margin: 5px 0 0; color: var(--blue-800); font-weight: 800; overflow-wrap: anywhere; }
.external-card a { color: var(--teal-700); }
.contact-form { padding: 34px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label, .admin-panel label, .admin-login-card label, .admin-contact-card label { display: block; margin-bottom: 18px; }
.contact-form label > span:first-child, .admin-panel label > span:first-child, .admin-login-card label > span:first-child, .admin-contact-card label > span:first-child {
  display: block; margin-bottom: 7px; color: #304754; font-size: .88rem; font-weight: 800;
}
.contact-form input, .contact-form textarea, .contact-form select,
.admin-panel input, .admin-panel textarea, .admin-panel select,
.admin-login-card input, .admin-contact-card textarea, .admin-contact-card select {
  width: 100%; border: 1px solid #cbd9e0; background: var(--white); color: var(--ink);
  padding: 13px 14px; border-radius: var(--radius); outline: none; transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea, .admin-panel textarea, .admin-contact-card textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus,
.admin-panel input:focus, .admin-panel textarea:focus, .admin-panel select:focus,
.admin-login-card input:focus, .admin-contact-card textarea:focus, .admin-contact-card select:focus {
  border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(8,116,185,.12);
}
.privacy-check, .check-field { display: flex !important; gap: 10px; align-items: flex-start; }
.privacy-check input, .check-field input { width: 18px !important; height: 18px; margin-top: 3px; flex: 0 0 18px; }
.privacy-check span, .check-field span { margin: 0 !important; font-weight: 600 !important; color: var(--muted) !important; }
.privacy-check a { color: var(--blue-700); text-decoration: underline; }
.honeypot { position: absolute !important; left: -9999px; }
.form-note { text-align: center; color: var(--muted); font-size: .8rem; }
.flash-stack { position: fixed; top: 98px; left: 0; right: 0; z-index: 999; }
.flash { max-width: 760px; margin: 0 auto 10px; padding: 14px 18px; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white); }
.flash-success { border-left: 5px solid var(--success); }
.flash-error { border-left: 5px solid var(--error); }

.legal-content h2 { margin: 38px 0 12px; color: var(--blue-950); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: #4f626d; }
.legal-content a { color: var(--blue-700); text-decoration: underline; }
.legal-table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: var(--radius); }
.legal-table { width: 100%; min-width: 620px; border-collapse: collapse; background: var(--white); }
.legal-table th, .legal-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table th { color: var(--blue-950); font-size: .82rem; text-transform: uppercase; letter-spacing: 0; }
.resources-section { background: var(--surface); }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.faq-item { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 24px rgba(6,27,42,.05); }
.faq-item h2 { margin: 0 0 12px; color: var(--blue-950); font-size: 1.22rem; line-height: 1.25; }
.faq-item p { margin: 0; color: var(--muted); }
.not-found { min-height: 76vh; display: grid; place-items: center; padding-top: 130px; text-align: center; }
.not-found h1 { max-width: 780px; margin: 0 auto; font-size: 3.7rem; line-height: 1.06; letter-spacing: 0; }
.not-found p:not(.eyebrow) { margin: 24px auto; color: var(--muted); max-width: 620px; }

.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 900; display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; padding: 0; color: var(--white); background: #168c59;
  border-radius: 999px; font-weight: 850; box-shadow: 0 12px 30px rgba(22,140,89,.3);
}
.whatsapp-float img { width: 34px; height: 34px; }

.chatbot-widget { position: fixed; right: 22px; bottom: 86px; z-index: 910; }
.chatbot-toggle {
  width: 58px; height: 58px; padding: 0; border: 0; border-radius: 999px;
  background: var(--blue-700); color: var(--white); font-weight: 900; box-shadow: var(--shadow);
  display: inline-flex; align-items: center; justify-content: center;
}
.chatbot-toggle img { width: 36px; height: 36px; border-radius: 50%; background: var(--white); padding: 4px; }
.chatbot-panel {
  position: absolute; right: 0; bottom: 54px; width: min(360px, calc(100vw - 32px));
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.chatbot-panel[hidden] { display: none; }
.chatbot-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: var(--blue-950); color: var(--white); }
.chatbot-head button { border: 0; background: transparent; color: var(--white); font-weight: 900; }
.chatbot-messages { max-height: 230px; overflow-y: auto; padding: 14px; display: grid; gap: 10px; }
.chatbot-messages p { margin: 0; padding: 10px 12px; border-radius: var(--radius); background: var(--surface); color: var(--muted); font-size: .9rem; }
.chatbot-messages p.answer { background: #e9f4fb; color: var(--blue-900); }
.chatbot-quick { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 14px 12px; }
.chatbot-quick button, .chatbot-panel form button {
  border: 0; border-radius: var(--radius); background: var(--gold-500); color: var(--blue-950); font-weight: 900; padding: 8px 10px;
}
.chatbot-panel form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 14px; border-top: 1px solid var(--line); }
.chatbot-panel input { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }

.site-footer { padding: 70px 0 24px; background: var(--blue-950); color: #c4d5de; }
.footer-grid { display: grid; grid-template-columns: 1.15fr .85fr .85fr 1fr; gap: 42px; }
.footer-logo { width: 156px; height: 80px; object-fit: contain; background: white; border-radius: var(--radius); }
.footer-grid p { max-width: 420px; }
.footer-grid h2 { margin: 0 0 18px; color: var(--white); font-size: 1rem; }
.footer-grid a { display: block; margin: 9px 0; overflow-wrap: anywhere; }
.footer-grid a:hover { color: var(--gold-400); }
.footer-admin { color: var(--gold-400); font-size: .9rem; font-weight: 800; }
.footer-cookie-link {
  display: block; margin: 9px 0 0; padding: 0; border: 0; background: transparent;
  color: #c4d5de; font: inherit; text-align: left; overflow-wrap: anywhere;
}
.footer-cookie-link:hover { color: var(--gold-400); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 46px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .84rem; }

.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 1100;
  display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center;
  width: min(calc(100% - 40px), 1040px); margin-inline: auto; padding: 18px;
  background: rgba(255,255,255,.98); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(12px);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner strong { display: block; color: var(--blue-950); font-size: 1.02rem; }
.cookie-banner p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.cookie-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cookie-actions .btn { min-height: 44px; padding: 10px 14px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Admin */
.admin-body, .admin-login-body { background: #eef4f7; color: var(--ink); }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; }
.admin-sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px;
  padding: 22px; background: var(--blue-950); color: #dbe9ef;
}
.admin-brand { display: flex; align-items: center; gap: 12px; color: var(--white); font-weight: 900; }
.admin-brand img { width: 70px; height: 48px; object-fit: contain; background: var(--white); border-radius: var(--radius); }
.admin-menu { display: grid; gap: 6px; }
.admin-menu a, .admin-sidebar-foot a {
  padding: 12px 14px; border-radius: var(--radius); color: #d6e4ec; font-weight: 760;
}
.admin-menu a:hover, .admin-menu a.active, .admin-sidebar-foot a:hover { background: rgba(255,255,255,.10); color: var(--white); }
.admin-sidebar-foot { margin-top: auto; display: grid; gap: 6px; }
.admin-main { padding: 30px; min-width: 0; }
.admin-topbar {
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
  margin-bottom: 24px; padding: 20px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.admin-topbar span, .admin-panel-head span { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: 0; font-weight: 900; }
.admin-topbar h1, .admin-panel h2 { margin: 2px 0 0; color: var(--blue-950); line-height: 1.15; }
.admin-flashes { margin-bottom: 18px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 18px; }
.admin-stat-grid article, .admin-panel, .admin-login-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 28px rgba(6,27,42,.06);
}
.admin-stat-grid article { padding: 22px; }
.admin-stat-grid span { display: block; color: var(--muted); font-size: .86rem; font-weight: 800; }
.admin-stat-grid strong { display: block; color: var(--blue-950); font-size: 2.1rem; line-height: 1.1; margin-top: 8px; }
.admin-panel { padding: 24px; margin-bottom: 18px; }
.admin-panel-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 20px; }
.admin-action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.admin-action-grid a {
  padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--blue-800);
  font-weight: 850; background: var(--surface);
}
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.admin-table th, .admin-table td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { color: var(--blue-950); font-size: .82rem; text-transform: uppercase; letter-spacing: 0; }
.admin-table td span { color: var(--muted); font-size: .9rem; }
.table-actions { display: flex; gap: 10px; align-items: center; }
.table-actions a, .table-actions button, .danger-link {
  border: 0; background: transparent; color: var(--blue-700); font-weight: 850; padding: 0; cursor: pointer;
}
.danger-link, .table-actions button { color: var(--error); }
.admin-form-stack { display: grid; gap: 18px; }
.admin-grid { display: grid; gap: 16px; }
.admin-grid.two { grid-template-columns: 1fr 1fr; }
.admin-grid.three { grid-template-columns: repeat(3, 1fr); }
.admin-grid .wide { grid-column: 1 / -1; }
.admin-grid small { display: block; margin-top: 6px; color: var(--muted); font-size: .78rem; }
.admin-note { color: var(--muted); font-size: .88rem; }
.admin-help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 18px; }
.admin-help-grid div { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.admin-help-grid strong, .admin-help-grid span { display: block; }
.admin-help-grid strong { color: var(--blue-950); }
.admin-help-grid span { margin-top: 5px; color: var(--muted); font-size: .85rem; }
.admin-page-list { display: grid; gap: 16px; }
.admin-edit-card {
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fbfdfe;
}
.admin-edit-card h3 { margin: 0 0 16px; color: var(--blue-950); }
.project-editor { scroll-margin-top: 24px; }
.admin-project-head {
  display: grid; grid-template-columns: 190px 1fr; gap: 18px; align-items: center;
  margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.admin-project-head img {
  width: 190px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.admin-project-head span {
  color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: 0; font-weight: 900;
}
.admin-project-head h3 { margin: 5px 0 8px; }
.admin-form-actions { display: flex; gap: 14px; align-items: center; justify-content: flex-end; margin-top: 10px; }
.admin-media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.admin-media-card { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fbfdfe; }
.admin-media-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; background: var(--surface); }
.brand-edit { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; }
.brand-edit img { width: 160px; height: 86px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 14px; }
.admin-contact-list { display: grid; gap: 16px; }
.admin-contact-card {
  display: grid; grid-template-columns: 1fr 340px; gap: 20px; padding: 20px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fbfdfe;
}
.contact-main span { color: var(--muted); font-size: .82rem; font-weight: 800; }
.contact-main h3 { margin: 6px 0 4px; color: var(--blue-950); }
.contact-main p { color: var(--muted); overflow-wrap: anywhere; }
.contact-main a { display: inline-block; margin-right: 12px; color: var(--blue-700); font-weight: 800; overflow-wrap: anywhere; }
.admin-login-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.admin-login-card { width: min(100%, 430px); padding: 32px; }
.admin-login-card img { width: 150px; height: 72px; object-fit: contain; margin-bottom: 16px; }
.admin-login-card h1 { margin: 0 0 20px; color: var(--blue-950); font-size: 2rem; line-height: 1.1; }

.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.course-card { display: grid; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 28px rgba(6,27,42,.06); }
.course-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface); }
.course-card > div { padding: 24px; }
.course-card span { color: var(--gold-500); font-weight: 900; font-size: .86rem; }
.course-card h2 { margin: 10px 0; color: var(--blue-950); font-size: 1.42rem; line-height: 1.18; }
.course-card p { color: var(--muted); }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.video-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.video-card > div:last-child { padding: 22px; }
.video-card span { color: var(--blue-700); font-weight: 900; font-size: .8rem; }
.video-card h2 { margin: 8px 0; color: var(--blue-950); }
.video-card p { color: var(--muted); }
.video-frame { width: 100%; aspect-ratio: 16 / 9; background: var(--blue-950); border-radius: var(--radius); overflow: hidden; }
.video-card .video-frame { border-radius: 0; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-placeholder { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--blue-950); color: var(--white); font-weight: 900; }
.lesson-list { display: grid; gap: 14px; margin-top: 22px; }
.lesson-item { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.lesson-item span { color: var(--blue-700); font-weight: 900; font-size: .8rem; }
.lesson-item h3 { margin: 8px 0; color: var(--blue-950); }
.quiz-box { white-space: pre-wrap; padding: 14px; border-radius: var(--radius); background: var(--surface); color: var(--blue-950); }
.payment-box { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); margin-bottom: 18px; }
.payment-box h2 { margin: 0 0 14px; color: var(--blue-950); }
.payment-box form { display: grid; gap: 14px; margin-top: 18px; }
.payment-box label span { display: block; margin-bottom: 6px; font-weight: 800; color: #304754; }
.payment-box input, .payment-box select { width: 100%; border: 1px solid #cbd9e0; border-radius: var(--radius); padding: 12px; }
.lesson-admin { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.lesson-admin-card { padding: 16px; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.inline-admin-form { display: grid; gap: 8px; min-width: 220px; }
.inline-admin-form select, .inline-admin-form textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px; }

@media (max-width: 1050px) {
  .section { padding: 78px 0; }
  .main-nav {
    position: fixed; top: 84px; left: 20px; right: 20px; display: none; flex-direction: column;
    align-items: stretch; gap: 3px; padding: 18px; background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; }
  .main-nav .nav-cta { text-align: center; margin-top: 7px; }
  .menu-toggle { display: block; }
  .hero h1 { font-size: 4rem; }
  .split, .feature-grid, .feature-grid.reverse, .contact-grid, .service-detail { grid-template-columns: 1fr; gap: 42px; }
  .service-grid, .gallery-grid, .project-grid, .course-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
  .project-track { grid-auto-columns: minmax(320px, 58%); }
  .project-detail-grid { grid-template-columns: 1fr; }
  .compact-gallery, .process-grid, .sector-grid, .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .mission-grid, .callout-grid { grid-template-columns: 1fr; }
  .values-grid, .facts-grid, .faq-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid div:nth-child(2) { border-right: 0; }
  .facts-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split-heading { grid-template-columns: 1fr; gap: 18px; }
  .cta-box { align-items: flex-start; flex-direction: column; padding: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .cookie-banner { grid-template-columns: 1fr; }
  .cookie-actions { justify-content: flex-start; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-menu { grid-template-columns: repeat(3, 1fr); }
  .admin-stat-grid, .admin-action-grid, .admin-media-grid, .admin-help-grid, .admin-grid.three { grid-template-columns: repeat(2, 1fr); }
  .admin-contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .navbar { min-height: 76px; }
  .brand { min-width: 0; gap: 8px; }
  .brand img { width: 42px; height: 50px; }
  .brand strong { font-size: 1.05rem; }
  .brand small { max-width: 128px; font-size: .58rem; }
  .main-nav { top: 76px; left: 14px; right: 14px; }
  .hero { min-height: 690px; padding-top: 76px; }
  .hero-content { padding-block: 80px 54px; }
  .hero h1 { font-size: 3rem; }
  .hero-lead { font-size: 1.06rem; }
  .hero-proof { margin-top: 38px; flex-direction: column; gap: 9px; }
  .section { padding: 64px 0; }
  .section-heading h2, .feature-content h2, .contact-info h2 { font-size: 2.35rem; }
  .service-grid, .gallery-grid, .compact-gallery, .process-grid, .sector-grid, .values-grid, .facts-grid, .form-grid, .brand-grid, .faq-grid, .course-grid, .video-grid, .brand-mark-grid { grid-template-columns: 1fr; }
  .brand-mark-grid { text-align: center; }
  .brand-mark-grid img { margin-inline: auto; }
  .project-track { grid-auto-columns: 86%; }
  .carousel-btn { display: none; }
  .service-card { min-height: 260px; }
  .feature-image > img { min-height: 330px; }
  .metric-row { grid-template-columns: 1fr; }
  .mission-grid article { padding: 28px 22px; }
  .mission-grid h2 { font-size: 1.72rem; }
  .facts-grid div, .facts-grid div:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .facts-grid div:last-child { border-bottom: 0; }
  .page-hero { padding: 145px 0 70px; }
  .page-hero h1 { font-size: 3rem; }
  .page-actions { align-items: stretch; flex-direction: column; }
  .service-detail { padding: 42px 0; }
  .service-detail-title { gap: 14px; }
  .service-detail-title h2 { font-size: 2rem; }
  .contact-form { padding: 22px 16px; }
  .cta-box, .callout-grid { padding: 30px 22px; }
  .cta-box h2, .callout-grid h2 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .cookie-banner { left: 14px; right: 14px; bottom: 84px; width: auto; padding: 16px; }
  .cookie-actions { align-items: stretch; flex-direction: column; }
  .cookie-actions .btn, .cookie-actions .text-link { width: 100%; justify-content: center; text-align: center; }
  .whatsapp-float span { display: none; }
  .whatsapp-float { width: 52px; height: 52px; justify-content: center; padding: 0; }
  .admin-main { padding: 18px; }
  .admin-topbar, .admin-panel-head, .admin-form-actions { align-items: flex-start; flex-direction: column; }
  .admin-grid.two, .admin-grid.three, .admin-stat-grid, .admin-action-grid, .admin-media-grid, .admin-menu, .admin-help-grid { grid-template-columns: 1fr; }
  .chatbot-widget { right: 14px; bottom: 150px; }
  .chatbot-panel { right: 0; }
  .brand-edit { grid-template-columns: 1fr; }
  .admin-project-head { grid-template-columns: 1fr; }
  .admin-project-head img { width: 100%; }
  .admin-table { min-width: 620px; }
}
