:root {
  --ink: #15162f;
  --muted: #666b86;
  --line: #e4e0f2;
  --paper: #ffffff;
  --soft: #f7f5ff;
  --brand: #6d28d9;
  --brand-dark: #30125f;
  --accent: #1d4ed8;
  --cyan: #00b8d9;
  --lilac: #b794f4;
  --gold: #ffbd32;
  --focus: #5b35f5;
  --shadow: 0 20px 52px rgba(45, 20, 110, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  background: var(--ink);
  color: #fff;
  left: 16px;
  padding: 10px 14px;
  position: absolute;
  top: -44px;
  z-index: 20;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.nav-wrap {
  align-items: center;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 74px;
  padding: 0 22px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  min-width: 236px;
}

.brand-logo {
  height: 52px;
  object-fit: contain;
  object-position: left center;
  width: 132px;
}

.brand-name {
  display: block;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-sub {
  color: #705b9a;
  display: block;
  font-size: 0.82rem;
  margin-top: -3px;
}

.nav-toggle {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink);
  display: none;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  background: currentColor;
  content: "";
  display: block;
  height: 2px;
  position: relative;
  width: 18px;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 6px;
}

.site-nav a {
  color: #2f3a46;
  font-weight: 700;
  padding: 11px 12px;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.active {
  color: var(--brand-dark);
}

.btn {
  align-items: center;
  border: 1px solid transparent;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #6d28d9, #1d4ed8);
  color: #fff;
  box-shadow: 0 14px 30px rgba(78, 50, 210, 0.28);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #5721b3, #173ea6);
}

.btn-secondary {
  background: linear-gradient(135deg, #00a9ce, #1d4ed8);
  color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--brand-dark);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}

.btn-outline.dark {
  border-color: var(--line);
  color: var(--ink);
}

.hero {
  background:
    linear-gradient(90deg, rgba(20, 9, 52, 0.92), rgba(42, 18, 102, 0.74), rgba(16, 68, 145, 0.7)),
    radial-gradient(circle at 78% 18%, rgba(183, 148, 244, 0.44), transparent 28%),
    radial-gradient(circle at 72% 72%, rgba(0, 184, 217, 0.24), transparent 26%),
    url("https://ct-image-proxy.controlterrestre.workers.dev/images/panama-P9/cocle-P9-E05/penonome-P9-E05-C001.webp") center/cover;
  color: #fff;
  min-height: calc(100vh - 74px);
  padding: 92px 22px 58px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.4), transparent 78%);
  pointer-events: none;
  position: absolute;
}

.hero-inner {
  margin: 0 auto;
  max-width: 1180px;
  position: relative;
  z-index: 1;
}

.hero-logo {
  height: auto;
  margin-bottom: 22px;
  max-width: min(480px, 88vw);
  object-fit: contain;
  width: 100%;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  letter-spacing: 0;
  line-height: 0.96;
  margin: 18px 0;
  max-width: 920px;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.06rem, 2.3vw, 1.35rem);
  max-width: 720px;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 62px;
  max-width: 840px;
}

.metric {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 18px;
  backdrop-filter: blur(14px);
}

.metric strong {
  display: block;
  font-size: clamp(1.55rem, 4vw, 2.7rem);
  line-height: 1;
}

.metric span {
  color: rgba(255, 255, 255, 0.78);
  display: block;
  font-weight: 700;
  margin-top: 8px;
}

.section {
  padding: 78px 22px;
}

.section.alt {
  background: var(--soft);
}

.container {
  margin: 0 auto;
  max-width: 1180px;
}

.section-head {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-head h2,
.content-block h2 {
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

.section-head p,
.content-block p {
  color: var(--muted);
  margin: 10px 0 0;
  max-width: 680px;
}

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

.news-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.news-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.news-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.tag {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.news-card h3 {
  font-size: 1.2rem;
  line-height: 1.18;
  margin: 10px 0;
}

.news-card p {
  color: var(--muted);
  margin: 0 0 18px;
}

.read-more {
  color: var(--brand-dark);
  font-weight: 900;
  margin-top: auto;
}

.feature-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.1fr 0.9fr;
}

.feature-panel {
  background:
    linear-gradient(135deg, rgba(48, 18, 95, 0.96), rgba(29, 78, 216, 0.92)),
    radial-gradient(circle at 80% 20%, rgba(183, 148, 244, 0.38), transparent 32%);
  color: #fff;
  padding: 34px;
}

.feature-panel h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
  margin: 0 0 16px;
}

.feature-panel p {
  color: rgba(255, 255, 255, 0.84);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
}

.check-list li {
  background: rgba(255, 255, 255, 0.1);
  list-style: none;
  padding: 12px 14px;
}

.contact-card,
.form-card,
.plain-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 26px;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.contact-list li {
  border-bottom: 1px solid var(--line);
  list-style: none;
  padding-bottom: 14px;
}

.contact-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-list strong {
  display: block;
}

.contact-list span,
.contact-list a {
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 850;
}

input,
select,
textarea {
  border: 1px solid #cbd5df;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 11px 12px;
  width: 100%;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
a:focus,
button:focus {
  outline: 3px solid rgba(20, 87, 217, 0.25);
  outline-offset: 2px;
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 12px 0 0;
}

.status {
  color: var(--brand-dark);
  font-weight: 800;
  margin-top: 12px;
  min-height: 24px;
}

.page-hero {
  background:
    linear-gradient(135deg, #1a103f, #4c1d95 54%, #1d4ed8),
    radial-gradient(circle at 80% 18%, rgba(183, 148, 244, 0.4), transparent 28%);
  color: #fff;
  padding: 72px 22px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.15rem;
  max-width: 760px;
}

.two-col {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
}

.article {
  background: #fff;
}

.article img {
  aspect-ratio: 16 / 8;
  object-fit: cover;
  width: 100%;
}

.article-body {
  padding: 30px 0 0;
}

.article-body h2,
.article-body h3 {
  line-height: 1.16;
}

.article-body p {
  color: #364250;
}

.sidebar {
  display: grid;
  gap: 16px;
}

.privacy-list {
  display: grid;
  gap: 18px;
  padding: 0;
}

.privacy-list li {
  background: #fff;
  border: 1px solid var(--line);
  list-style: none;
  padding: 22px;
}

.site-footer {
  background: #120b2b;
  color: #fff;
  padding: 40px 22px;
}

.footer-logo {
  height: auto;
  margin-bottom: 14px;
  max-width: 250px;
  width: 100%;
}

.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.1fr 0.9fr 0.8fr;
}

.site-footer a,
.site-footer p {
  color: rgba(255, 255, 255, 0.76);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.62);
  margin-top: 28px;
  padding-top: 18px;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    background: #fff;
    border-top: 1px solid var(--line);
    bottom: 0;
    display: none;
    flex-direction: column;
    left: 0;
    padding: 24px;
    position: fixed;
    right: 0;
    top: 74px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a,
  .site-nav .btn {
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding-top: 70px;
  }

  .hero-metrics,
  .news-grid,
  .feature-grid,
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .brand {
    min-width: 0;
  }

  .brand-logo {
    height: 44px;
    width: 96px;
  }

  .brand-sub {
    display: none;
  }

  .hero-actions,
  .section-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .feature-panel,
  .contact-card,
  .form-card,
  .plain-card {
    padding: 22px;
  }
}
