/* =========================================================
   LUMAR — Servicios Tecnológicos
   Design tokens + base + components
   ========================================================= */

:root{
  /* --- Brand color tokens (sampled from logo) --- */
  --brand-blue:        #0E5EA8;   /* primary brand blue */
  --brand-blue-hover:  #0B4D8A;
  --brand-blue-deep:   #0A2C4D;   /* deep navy for headings/ink */
  --brand-navy-bg:     #0A1F38;   /* footer / reversed sections */
  --brand-navy-bg-2:   #0D2A4A;
  --accent-cyan:       #29ABE2;   /* logo dot accent */
  --accent-cyan-soft:  #E4F4FC;
  --neutral-grey:      #8792A3;   /* logo secondary stroke */

  /* --- Functional tokens --- */
  --ink:            #0E2233;
  --ink-soft:       #45566B;
  --paper:          #F5F9FC;
  --paper-raised:   #FFFFFF;
  --paper-sunk:     #EEF3F8;
  --border:         #E1E8F0;
  --border-strong:  #C9D5E3;
  --success:        #1E9E6A;

  /* --- Type --- */
  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;

  /* --- Layout --- */
  --max-w: 1220px;
  --gutter: 24px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(10,44,77,.06), 0 1px 1px rgba(10,44,77,.04);
  --shadow-md: 0 12px 28px -12px rgba(10,44,77,.22);
  --shadow-lg: 0 24px 60px -20px rgba(10,44,77,.32);
  --header-h: 84px;
}

*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--font-display); color:var(--brand-blue-deep); margin:0; text-wrap:balance; }
p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }
[hidden]{ display:none !important; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

.wrap{
  max-width:var(--max-w);
  margin-inline:auto;
  padding-inline:var(--gutter);
}

.eyebrow{
  font-family:var(--font-mono);
  font-size:12.5px;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--brand-blue);
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before{
  content:"";
  width:22px; height:2px;
  background:var(--accent-cyan);
  display:inline-block;
}
.eyebrow.on-dark{ color:var(--accent-cyan); }

/* --- Buttons --- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 26px;
  border-radius:999px;
  font-weight:600;
  font-size:15px;
  border:1.5px solid transparent;
  transition:transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space:nowrap;
}
.btn svg{ width:16px; height:16px; flex:none; transition:transform .15s ease; }
.btn:hover svg{ transform:translateX(3px); }
.btn:active{ transform:translateY(1px); }
.btn-primary{ background:var(--brand-blue); color:#fff; box-shadow:var(--shadow-sm); }
.btn-primary:hover{ background:var(--brand-blue-hover); box-shadow:var(--shadow-md); }
.btn-outline{ background:transparent; color:var(--brand-blue-deep); border-color:var(--border-strong); }
.btn-outline:hover{ border-color:var(--brand-blue); background:var(--paper-raised); }
.btn-outline.on-dark{ color:#fff; border-color:rgba(255,255,255,.35); }
.btn-outline.on-dark:hover{ border-color:#fff; background:rgba(255,255,255,.08); }
.btn-ghost{ background:transparent; color:var(--brand-blue); padding:10px 4px; }
.btn-ghost svg{ width:14px; height:14px; }
.btn-sm{ padding:10px 18px; font-size:14px; }
.btn-block{ width:100%; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(247,250,253,.98);
  border-bottom:1px solid var(--border);
}
.site-header .wrap{
  height:var(--header-h);
  display:flex; align-items:center; justify-content:space-between;
  gap:24px;
}
.brand{ display:flex; align-items:center; }
.brand img{ height:44px; width:auto; }

.main-nav{ display:flex; align-items:center; gap:6px; }
.main-nav a{
  padding:10px 14px;
  border-radius:999px;
  font-size:14.5px;
  font-weight:600;
  color:var(--ink-soft);
  position:relative;
  transition:color .15s ease, background-color .15s ease;
}
.main-nav a:hover{ color:var(--brand-blue-deep); background:var(--paper-sunk); }
.main-nav a[aria-current="page"]{ color:var(--brand-blue); background:var(--accent-cyan-soft); }

.header-actions{ display:flex; align-items:center; gap:14px; }

.lang-switch{
  display:flex; align-items:center;
  border:1px solid var(--border-strong);
  border-radius:999px;
  padding:3px;
  font-family:var(--font-mono);
  font-size:12px;
  font-weight:600;
  background:var(--paper-raised);
}
.lang-switch button{
  border:0; background:transparent; padding:6px 11px; border-radius:999px;
  color:var(--ink-soft); letter-spacing:.04em;
  transition:background-color .15s ease, color .15s ease;
}
.lang-switch button[aria-pressed="true"]{ background:var(--brand-blue); color:#fff; }

.nav-toggle{
  display:none;
  width:42px; height:42px;
  align-items:center; justify-content:center;
  border-radius:10px;
  border:1px solid var(--border-strong);
  background:var(--paper-raised);
}
.nav-toggle svg{ width:20px; height:20px; }

/* Mobile nav */
@media (max-width: 900px){
  .main-nav{
    position:fixed;
    top:var(--header-h); right:0; bottom:0; left:0;
    z-index:50;
    background:var(--paper);
    flex-direction:column;
    align-items:stretch;
    padding:18px var(--gutter) 28px;
    gap:4px;
    transform:translateY(-8px);
    opacity:0;
    pointer-events:none;
    transition:opacity .18s ease, transform .18s ease;
    overflow-y:auto;
  }
  .main-nav.is-open{ opacity:1; transform:translateY(0); pointer-events:auto; }
  .main-nav a{ padding:14px 16px; font-size:17px; border-bottom:1px solid var(--border); border-radius:0; }
  .main-nav .nav-cta{ margin-top:10px; }
  .nav-toggle{ display:inline-flex; }
  .header-actions .btn-primary.nav-only-desktop{ display:none; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(1100px 520px at 82% -10%, #CFE8FB 0%, transparent 60%),
    linear-gradient(180deg, #EAF4FC 0%, #F5F9FC 62%, var(--paper) 100%);
  border-bottom:1px solid var(--border);
}
.hero .wrap{
  display:grid;
  grid-template-columns:1.02fr .98fr;
  align-items:center;
  gap:48px;
  padding-block:64px 56px;
  min-height:0;
}
.hero-copy h1{
  font-size:clamp(32px, 4.4vw, 52px);
  line-height:1.08;
  letter-spacing:-.01em;
  margin-block:16px 18px;
}
.hero-copy .lede{
  font-size:18px;
  color:var(--ink-soft);
  max-width:46ch;
  margin-bottom:30px;
}
.hero-ctas{ display:flex; flex-wrap:wrap; gap:14px; margin-bottom:34px; }
.hero-trust{ display:flex; flex-wrap:wrap; gap:22px 30px; }
.trust-item{ display:flex; align-items:center; gap:10px; font-size:14px; font-weight:600; color:var(--brand-blue-deep); }
.trust-item .chip{
  width:34px; height:34px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  background:var(--paper-raised); border:1px solid var(--border);
  color:var(--brand-blue);
}
.trust-item .chip svg{ width:18px; height:18px; }

.hero-art{ position:relative; }
.hero-art svg{ width:100%; height:auto; display:block; }
.hero-badge{
  position:absolute; top:14px; right:8px;
  background:rgba(10,31,56,.72);
  backdrop-filter:blur(6px);
  color:#fff;
  padding:14px 16px;
  border-radius:var(--radius-sm);
  font-family:var(--font-mono);
  font-size:11.5px;
  letter-spacing:.08em;
  text-transform:uppercase;
  line-height:1.7;
  max-width:200px;
}
.hero-badge b{ display:block; font-size:12.5px; color:var(--accent-cyan); }
.hero-badge .rule{ width:26px; height:2px; background:var(--accent-cyan); margin:6px 0 8px; }

@media (max-width: 980px){
  .hero .wrap{ grid-template-columns:1fr; padding-block:40px 36px; gap:34px; }
  .hero-badge{ position:static; margin-top:16px; max-width:none; display:inline-flex; flex-direction:column; }
}

/* =========================================================
   SECTIONS / GENERIC
   ========================================================= */
section{ padding-block:76px; }
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:24px;
  margin-bottom:38px;
}
.section-head h2{ font-size:clamp(26px, 3vw, 36px); margin-top:14px; }
.section-head .desc{ color:var(--ink-soft); max-width:56ch; margin-top:10px; }
@media (max-width:720px){
  .section-head{ flex-direction:column; align-items:flex-start; }
}
.section-alt{ background:var(--paper-raised); border-block:1px solid var(--border); }

/* --- Service grid --- */
.grid-5{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:18px;
}
@media (max-width:1080px){ .grid-5{ grid-template-columns:repeat(3, 1fr); } }
@media (max-width:640px){ .grid-5{ grid-template-columns:1fr 1fr; } }
@media (max-width:440px){ .grid-5{ grid-template-columns:1fr; } }

.svc-card{
  background:var(--paper-raised);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:26px 22px;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.svc-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:var(--border-strong); }
.svc-icon{
  width:48px; height:48px; border-radius:12px;
  background:var(--accent-cyan-soft);
  color:var(--brand-blue);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:16px;
}
.svc-icon svg{ width:24px; height:24px; }
.svc-card h3{ font-size:17px; margin-bottom:8px; }
.svc-card p{ font-size:14.5px; color:var(--ink-soft); }
.svc-card a.card-link{ display:inline-flex; align-items:center; gap:6px; margin-top:14px; font-size:13.5px; font-weight:700; color:var(--brand-blue); }
.svc-card a.card-link svg{ width:13px; height:13px; }

/* --- Feature strip (Starlink / Marítimo) --- */
.feature-strip{ display:grid; grid-template-columns:1.15fr .85fr; gap:20px; }
@media (max-width:860px){ .feature-strip{ grid-template-columns:1fr; } }

.feature-card{
  position:relative;
  border-radius:var(--radius-lg);
  overflow:hidden;
  padding:34px 32px;
  display:flex; flex-direction:column; justify-content:flex-end;
  min-height:300px;
  color:#fff;
}
.feature-card .art{
  position:absolute; inset:0;
}
.feature-card .art svg{ width:100%; height:100%; }
.feature-card .content{ position:relative; z-index:2; }
.feature-card.primary{ background:linear-gradient(155deg, #0A2C4D 0%, #0E5EA8 100%); }
.feature-card.secondary{ background:linear-gradient(155deg, #0D3057 0%, #163B63 100%); min-height:260px; }
.feature-card h3{ color:#fff; font-size:22px; margin-bottom:8px; }
.feature-card p{ color:rgba(255,255,255,.82); font-size:14.5px; max-width:34ch; margin-bottom:18px; }
.feature-tag{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.22);
  padding:6px 12px; border-radius:999px; color:#fff; margin-bottom:14px; width:fit-content;
}

/* =========================================================
   PAGE HERO (inner pages)
   ========================================================= */
.page-hero{
  background:linear-gradient(180deg, #EAF4FC 0%, var(--paper) 100%);
  border-bottom:1px solid var(--border);
  padding-block:52px 44px;
}
.page-hero h1{ font-size:clamp(30px, 4vw, 44px); margin-top:14px; }
.page-hero .lede{ color:var(--ink-soft); max-width:60ch; margin-top:14px; font-size:17px; }
.breadcrumb{ font-family:var(--font-mono); font-size:12px; color:var(--neutral-grey); letter-spacing:.04em; margin-bottom:6px; }
.breadcrumb a{ color:var(--brand-blue); }

/* --- Detailed service/solution blocks --- */
.detail-block{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:44px;
  align-items:center;
  padding-block:52px;
  border-bottom:1px solid var(--border);
}
.detail-block:last-child{ border-bottom:0; }
.detail-block.reverse{ grid-template-columns:1.1fr .9fr; }
.detail-block.reverse .detail-art{ order:2; }
@media (max-width:860px){
  .detail-block, .detail-block.reverse{ grid-template-columns:1fr; }
  .detail-block.reverse .detail-art{ order:0; }
}
.detail-num{ font-family:var(--font-mono); font-size:13px; color:var(--accent-cyan); letter-spacing:.1em; }
.detail-block h3{ font-size:26px; margin-block:10px 14px; }
.detail-block p{ color:var(--ink-soft); margin-bottom:18px; }
.detail-list{ display:flex; flex-direction:column; gap:12px; }
.detail-list li{ display:flex; gap:12px; align-items:flex-start; font-size:15px; color:var(--ink); }
.detail-list svg{ width:19px; height:19px; flex:none; color:var(--success); margin-top:2px; }
.detail-art{
  background:var(--paper-raised);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:24px;
}
.detail-art svg{ width:100%; height:auto; }

/* --- Solutions audience grid --- */
.audience-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
@media (max-width:980px){ .audience-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .audience-grid{ grid-template-columns:1fr; } }
.audience-card{
  border:1px solid var(--border);
  background:var(--paper-raised);
  border-radius:var(--radius-md);
  padding:24px;
}
.audience-card .svc-icon{ background:var(--paper-sunk); }
.audience-card h3{ font-size:16.5px; margin-bottom:6px; }
.audience-card p{ font-size:14px; color:var(--ink-soft); }
.audience-card.muted{ background:var(--paper-sunk); }

/* --- Stats --- */
.stat-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
@media (max-width:760px){ .stat-row{ grid-template-columns:repeat(2,1fr); } }
.stat{ text-align:left; }
.stat b{ font-family:var(--font-display); font-size:clamp(28px,3.4vw,40px); color:var(--brand-blue-deep); display:block; font-variant-numeric:tabular-nums; }
.stat span{ font-size:13.5px; color:var(--ink-soft); }

/* --- Values grid --- */
.values-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
@media (max-width:860px){ .values-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .values-grid{ grid-template-columns:1fr; } }

/* --- Timeline --- */
.timeline{ display:flex; flex-direction:column; }
.tl-item{ display:grid; grid-template-columns:110px 1fr; gap:22px; padding-block:22px; border-top:1px solid var(--border); }
.tl-item:first-child{ border-top:0; }
.tl-year{ font-family:var(--font-mono); font-weight:600; color:var(--brand-blue); }
.tl-item h4{ font-family:var(--font-display); color:var(--brand-blue-deep); font-size:16px; margin-bottom:6px; }
.tl-item p{ color:var(--ink-soft); font-size:14.5px; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid{ display:grid; grid-template-columns:1fr 1.15fr; gap:44px; align-items:flex-start; }
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }

.contact-info-card{
  background:var(--brand-navy-bg);
  color:#fff;
  border-radius:var(--radius-lg);
  padding:34px 30px;
  position:relative;
  overflow:hidden;
}
.contact-info-card h3{ color:#fff; font-size:20px; margin-bottom:6px; }
.contact-info-card > p{ color:rgba(255,255,255,.72); font-size:14.5px; margin-bottom:26px; }
.contact-rows{ display:flex; flex-direction:column; gap:18px; position:relative; z-index:2; }
.contact-row{ display:flex; gap:14px; align-items:flex-start; }
.contact-row .chip{
  width:38px; height:38px; border-radius:10px; flex:none;
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.18);
  display:flex; align-items:center; justify-content:center; color:var(--accent-cyan);
}
.contact-row .chip svg{ width:18px; height:18px; }
.contact-row h4{ font-family:var(--font-body); font-weight:600; font-size:14.5px; color:#fff; margin-bottom:2px; }
.contact-row p, .contact-row a{ font-size:14px; color:rgba(255,255,255,.75); }
.contact-row a:hover{ color:var(--accent-cyan); }
.contact-hours{ margin-top:26px; padding-top:22px; border-top:1px solid rgba(255,255,255,.14); }
.contact-hours h4{ font-size:13px; color:#fff; margin-bottom:10px; }
.contact-hours ul{ display:flex; flex-direction:column; gap:6px; }
.contact-hours li{ display:flex; justify-content:space-between; font-size:13.5px; color:rgba(255,255,255,.72); }

.form-card{
  background:var(--paper-raised);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:34px 32px;
  box-shadow:var(--shadow-sm);
}
.field{ margin-bottom:20px; }
.field label{ display:block; font-size:13.5px; font-weight:600; color:var(--brand-blue-deep); margin-bottom:8px; }
.field input, .field textarea, .field select{
  width:100%;
  border:1.5px solid var(--border-strong);
  border-radius:var(--radius-sm);
  padding:13px 15px;
  font-family:var(--font-body);
  font-size:15px;
  color:var(--ink);
  background:var(--paper);
  transition:border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus{
  outline:none; border-color:var(--brand-blue); box-shadow:0 0 0 4px var(--accent-cyan-soft);
}
.field textarea{ resize:vertical; min-height:130px; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:560px){ .field-row{ grid-template-columns:1fr; } }
.form-note{ font-size:12.5px; color:var(--neutral-grey); margin-top:14px; }
.form-status{
  margin-top:16px; padding:13px 16px; border-radius:var(--radius-sm);
  font-size:14px; font-weight:600; display:none;
}
.form-status.show{ display:block; }
.form-status.ok{ background:#E7F7EF; color:#187A50; display:block; }
.form-status.err{ background:#FDECEC; color:#B3261E; display:block; }
.honey{ position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band{
  background:radial-gradient(900px 300px at 15% 0%, #113A63 0%, transparent 60%), var(--brand-navy-bg);
  color:#fff;
  border-radius:var(--radius-lg);
  padding:52px 44px;
  display:flex; align-items:center; justify-content:space-between; gap:30px;
  position:relative;
  overflow:hidden;
}
.cta-band h2{ color:#fff; font-size:clamp(24px,3vw,32px); max-width:22ch; }
.cta-band p{ color:rgba(255,255,255,.72); margin-top:10px; max-width:44ch; }
.cta-band-actions{ display:flex; gap:14px; flex:none; }
@media (max-width:760px){
  .cta-band{ flex-direction:column; align-items:flex-start; }
  .cta-band-actions{ flex-wrap:wrap; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ background:var(--brand-navy-bg); color:rgba(255,255,255,.7); padding-block:64px 28px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:36px; }
@media (max-width:860px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-grid img{ height:40px; width:auto; margin-bottom:16px; }
.footer-grid p{ font-size:14px; line-height:1.7; max-width:34ch; }
.footer-col h4{ font-family:var(--font-mono); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--accent-cyan); margin-bottom:16px; }
.footer-col ul{ display:flex; flex-direction:column; gap:10px; }
.footer-col a{ font-size:14.5px; transition:color .15s ease; }
.footer-col a:hover{ color:#fff; }
.footer-bottom{
  margin-top:52px; padding-top:24px; border-top:1px solid rgba(255,255,255,.12);
  display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap;
  font-size:13px; color:rgba(255,255,255,.5);
}
.footer-socials{ display:flex; gap:10px; }
.footer-socials a{
  width:36px; height:36px; border-radius:10px; border:1px solid rgba(255,255,255,.16);
  display:flex; align-items:center; justify-content:center;
}
.footer-socials a svg{ width:16px; height:16px; }
.footer-socials a:hover{ background:rgba(255,255,255,.08); }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal{ opacity:1; transform:none; }
@media (prefers-reduced-motion: no-preference){
  .reveal{ opacity:0; transform:translateY(16px); transition:opacity .55s ease, transform .55s ease; }
  .reveal.in{ opacity:1; transform:none; }
}

/* Utility */
.mt-0{ margin-top:0 !important; }
.text-center{ text-align:center; }
