/* Nexen Aplicaciones company site. Palette and type follow the developer portfolio. */
:root {
  --indigo: #26235E;
  --indigo-deep: #1A1845;
  --green: #0FA84B;
  --green-action: #087F37;
  --green-light: #3DD47A;
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --ink: #1D1B2E;
  --ink-muted: #5C5A6E;
  --hairline: #E5E4EE;
  --link: #087F37;
  --radius: 14px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12112B;
    --surface: #1C1A3F;
    --ink: #F1F0F8;
    --ink-muted: #B4B2CC;
    --hairline: #2F2C5E;
    --link: #3DD47A;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 Onest, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--link); text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--green-light); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 10px 14px; border-radius: 10px;
  background: var(--surface); color: var(--ink); font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Header */
.site-header { background: var(--indigo); color: #FFFFFF; position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #FFFFFF; text-decoration: none; }
.brand svg { flex: none; }
.word { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1; }
.word span { color: var(--green-light); font-weight: 700; }
.nav { display: flex; gap: 4px; justify-content: flex-end; }
.nav a { color: #FFFFFF; text-decoration: none; font-weight: 500; font-size: 0.9375rem; padding: 8px 10px; border-radius: 8px; }
.nav a:hover { background: rgba(255, 255, 255, 0.11); }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.16); }
@media (max-width: 560px) {
  .nav { gap: 0; }
  .nav .opt { display: none; }
  .nav a { padding: 8px 6px; }
  .site-header .wrap { gap: 8px; }
  .brand { gap: 8px; }
  .word { font-size: 1rem; }
}

/* Indigo bands */
.band { background: var(--indigo); color: #FFFFFF; position: relative; overflow: hidden; }
.band a { color: var(--green-light); }
.hero { padding: 72px 0 88px; }
.hero::after {
  content: ""; position: absolute; right: -6%; top: -10%; width: 46%; height: 130%;
  background: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 600' preserveAspectRatio='none'%3E%3Cpath d='M120 0 C 210 120 260 260 300 380 C 330 470 360 540 400 600 L 400 470 C 380 420 350 330 320 240 C 280 130 240 50 210 0 Z' fill='%230FA84B'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 14px; color: var(--green-light); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2.25rem, 6vw, 3.6rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; max-width: 14ch; }
.lead { margin: 20px 0 0; font-size: 1.125rem; max-width: 56ch; color: rgba(255, 255, 255, 0.86); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.band .btn-primary, .btn-primary { background: var(--green-action); color: #FFFFFF; }
.btn-primary:hover { background: #066B2E; }
.band .btn-ghost { background: rgba(255, 255, 255, 0.11); color: #FFFFFF; }
.band .btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }
@media (max-width: 560px) { .hero { padding: 48px 0 64px; } .hero::after { display: none; } }

/* Sections */
.section { padding-block: 72px; }
.section + .section { padding-top: 0; }
h2 { margin: 0 0 8px; font-size: clamp(1.625rem, 3.4vw, 2.125rem); line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
h3 { margin: 0 0 8px; font-size: 1.1875rem; line-height: 1.3; font-weight: 700; }
.section-intro { margin: 0 0 32px; color: var(--ink-muted); max-width: 60ch; }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--hairline); border-top: 4px solid var(--green);
  border-radius: var(--radius); padding: 24px;
}
.card p { margin: 0; color: var(--ink-muted); }

.product { display: grid; gap: 24px; align-items: start; }
@media (min-width: 720px) { .product { grid-template-columns: 1.3fr 1fr; } }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.tags li { font-size: 0.8125rem; font-weight: 700; color: var(--ink-muted); background: var(--bg); border: 1px solid var(--hairline); border-radius: 999px; padding: 2px 10px; }
.product ul.points { margin: 12px 0 0; padding-left: 20px; color: var(--ink-muted); }
.product ul.points li + li { margin-top: 4px; }

/* Contact band */
.contact { padding: 64px 0; }
.contact .row { display: grid; gap: 24px; align-items: center; }
@media (min-width: 720px) { .contact .row { grid-template-columns: 1fr auto; } }
.contact p { margin: 8px 0 0; color: rgba(255, 255, 255, 0.86); max-width: 52ch; }
.contact .mail { font-size: 1.25rem; font-weight: 700; word-break: break-word; }

/* Facts table (company page) */
.facts { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 14px 20px; border-bottom: 1px solid var(--hairline); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 38%; color: var(--ink-muted); font-weight: 500; }
.facts td { font-weight: 700; }
@media (max-width: 560px) {
  .facts, .facts tbody, .facts tr, .facts th, .facts td { display: block; width: 100%; }
  .facts th { padding-bottom: 0; border-bottom: 0; }
  .facts td { padding-top: 2px; }
}

/* Legal pages */
.page-head { padding-block: 56px 48px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 2.75rem); max-width: none; }
.page-head p { margin: 12px 0 0; color: rgba(255, 255, 255, 0.86); }
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.375rem; margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); padding: 40px 0 48px; color: var(--ink-muted); font-size: 0.9375rem; }
.site-footer .wrap { display: grid; gap: 24px; }
@media (min-width: 720px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr; } }
.site-footer address { font-style: normal; }
.site-footer strong { color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer .copy { grid-column: 1 / -1; margin: 0; font-size: 0.875rem; }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
