:root{
  --bg:#071018;
  --bg2:#0b1722;
  --card:#0e2231;
  --card2:#0b1c29;
  --text:#eaf2f8;
  --muted:#a8c0d4;
  --line:rgba(255,255,255,.10);

  /* Austral logo palette */
  --brand:#4CA950;
  --brand2:#76BD79;
  --brand3:#ADC6AF;
  --gray:#D4D4D4;

  --ok:#2ee59d;
  --warn:#ffcc66;
  --danger:#ff5c77;

  --radius:18px;
  --shadow: 0 18px 55px rgba(0,0,0,.35);
  --shadow2: 0 10px 30px rgba(0,0,0,.28);
  --max:1180px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(900px 450px at 10% 15%, rgba(76,169,80,.28), transparent 60%),
    radial-gradient(900px 450px at 90% 10%, rgba(118,189,121,.20), transparent 58%),
    radial-gradient(900px 450px at 70% 90%, rgba(173,198,175,.14), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
.wrap{max-width:var(--max); margin:0 auto; padding:0 20px}

/* Top bar */
header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(7,16,24,.65);
  border-bottom:1px solid var(--line);
}
.nav{
  height:74px;
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
}
.brand{
  display:flex; align-items:center; gap:12px;
  min-width: 240px;
}
.brand img{width:38px; height:auto; display:block}
.brand .name{font-weight:800; letter-spacing:.2px}
.brand .tag{font-size:12px; color:var(--muted); margin-top:2px}

.navlinks{
  display:flex; align-items:center; gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.navlinks a, .navlinks button{
  font-size:14px;
  color:var(--muted);
  padding:8px 10px;
  border-radius:999px;
  border:1px solid transparent;
  background:transparent;
  cursor:pointer;
}
.navlinks a:hover, .navlinks button:hover{
  color:var(--text);
  border-color:var(--line);
  background:rgba(255,255,255,.03)
}

/* Dropdown */
.dropdown{
  position:relative;
  display:inline-flex;
  align-items:center;
}
.dropdownBtn{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.chev{
  width:12px;height:12px; opacity:.8;
}
.menu{
  position:absolute;
  top:44px;
  right:0;
  min-width:240px;
  border:1px solid var(--line);
  background: rgba(10,20,30,.92);
  backdrop-filter: blur(10px);
  border-radius:14px;
  box-shadow: var(--shadow2);
  padding:8px;
  display:none;
}
.menu a{
  display:block;
  padding:10px 10px;
  border-radius:12px;
  color:var(--muted);
  border:1px solid transparent;
}
.menu a:hover{
  color:var(--text);
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
}
.dropdown.open .menu{display:block}

/* Language toggle */
.langbar{
  display:flex; gap:6px; align-items:center;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  padding:6px;
  border-radius:999px;
}
.langbar button{
  padding:7px 10px;
  border-radius:999px;
  border:1px solid transparent;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
  font-weight:800;
  font-size:12px;
}
.langbar button.active{
  color:var(--text);
  border-color: rgba(76,169,80,.55);
  background: linear-gradient(135deg, rgba(76,169,80,.18), rgba(118,189,121,.10));
}

.cta{
  display:flex; gap:10px; align-items:center;
}
.btn{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  padding:10px 14px;
  border-radius:999px;
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  transition:.18s transform, .18s background, .18s border-color;
  display:inline-flex; align-items:center; gap:10px;
  user-select:none;
  white-space:nowrap;
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16)}
.btn.primary{
  border-color: rgba(76,169,80,.55);
  background: linear-gradient(135deg, rgba(76,169,80,.22), rgba(118,189,121,.12));
}
.btn.primary:hover{border-color: rgba(76,169,80,.85)}
.btn .dot{
  width:10px; height:10px; border-radius:50%;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(76,169,80,.18);
}

/* Hero */
.hero{padding:64px 0 24px;}
.heroGrid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:22px;
  align-items:stretch;
}
.heroCard{
  border:1px solid var(--line);
  background:
    radial-gradient(800px 400px at 10% 10%, rgba(76,169,80,.22), transparent 62%),
    radial-gradient(700px 340px at 85% 25%, rgba(118,189,121,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:28px;
  position:relative;
  overflow:hidden;
}
.heroBadge{
  width:84px;height:84px;
  border-radius:22px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;
  box-shadow: var(--shadow2);
  margin-bottom:14px;
}
.heroBadge img{ width:56px;height:auto; display:block; }
.heroH{
  font-size:44px;
  line-height:1.05;
  margin:10px 0 10px;
  letter-spacing:-.6px;
}
.heroH .grad{
  background: linear-gradient(90deg, var(--text), rgba(234,242,248,.75));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.heroP{
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:1.65;
  max-width: 64ch;
}
.pillRow{
  display:flex; flex-wrap:wrap; gap:10px;
  margin-top:16px;
}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size:13px;
}
.pill .pDot{
  width:9px;height:9px;border-radius:50%;
  background: var(--brand2);
  box-shadow: 0 0 0 6px rgba(118,189,121,.16);
}

.heroSide{
  border:1px solid var(--line);
  background:
    radial-gradient(600px 300px at 30% 15%, rgba(173,198,175,.18), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  padding:22px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:16px;
}
.stat{
  padding:14px;
  border-radius:16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.stat .k{font-size:12px; color:var(--muted); margin-bottom:6px}
.stat .v{font-weight:900; font-size:20px}
.stat .s{font-size:13px; color:var(--muted); margin-top:6px; line-height:1.45}
.miniList{margin:0; padding-left:18px; color:var(--muted); font-size:13px; line-height:1.6}
.miniList li{margin:6px 0}

/* Sections */
.section{padding:30px 0}
.sectionHead{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:18px;
  margin-bottom:14px;
}
.h2{margin:0; font-size:22px; letter-spacing:-.2px;}
.sub{margin:0; color:var(--muted); font-size:14px; line-height:1.55; max-width: 78ch;}

.services{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}
.svc{
  grid-column: span 4;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(600px 280px at 30% 15%, rgba(76,169,80,.16), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--shadow2);
  overflow:hidden;
  min-height: 230px;
  position:relative;
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.svc:nth-child(2){
  background:
    radial-gradient(600px 280px at 70% 15%, rgba(118,189,121,.16), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}
.svc:nth-child(3){
  background:
    radial-gradient(600px 280px at 40% 10%, rgba(173,198,175,.14), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}
.svc:nth-child(4){
  background:
    radial-gradient(600px 280px at 65% 18%, rgba(76,169,80,.14), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}
.svc:nth-child(5){
  background:
    radial-gradient(600px 280px at 35% 18%, rgba(118,189,121,.14), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}
.svc:nth-child(6){
  background:
    radial-gradient(600px 280px at 70% 25%, rgba(173,198,175,.16), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}

.svcTop{display:flex; align-items:center; gap:10px;}
.icon{
  width:38px; height:38px; border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
  flex:0 0 auto;
}
.icon svg{width:20px;height:20px; fill: var(--brand2)}
.svc h3{margin:0; font-size:16px}
.svc p{margin:0; color:var(--muted); font-size:13px; line-height:1.55}
.svc ul{
  margin:8px 0 0; padding-left:18px;
  color:var(--muted); font-size:13px; line-height:1.6;
}

/* Contact form (CamInspector style) */
#contacto.section{padding:34px 0 70px;}
.form-container{
  width: min(720px, 100%);
  margin: 0 auto;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(700px 320px at 20% 10%, rgba(76,169,80,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  padding: 22px 18px;
  text-align:left;
}
.form-container h1{
  margin:0 0 14px;
  font-size:22px;
  text-align:center;
}
form{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  align-items:end;
}
label{
  display:block;
  font-size:13px;
  color: var(--muted);
  margin: 0 0 6px;
}
input, select{
  width:100%;
  padding: 11px 12px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(6,12,18,.55);
  color: var(--text);
  outline:none;
}
input:focus, select:focus{
  border-color: rgba(76,169,80,.65);
  box-shadow: 0 0 0 6px rgba(76,169,80,.12);
}
.full{grid-column: 1 / -1;}
.captchaRow{
  display:flex;
  gap:12px;
  align-items:end;
  flex-wrap:wrap;
}
.captchaBox{
  flex:1 1 220px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 14px;
  padding: 10px 12px;
}
.captchaQ{
  font-weight:900;
  font-size:14px;
  margin-bottom:6px;
}
button[type="submit"]{
  width:100%;
  padding: 12px 14px;
  border-radius: 14px;
  border:1px solid rgba(76,169,80,.65);
  background: linear-gradient(135deg, rgba(76,169,80,.22), rgba(118,189,121,.12));
  color: var(--text);
  font-weight:900;
  cursor:pointer;
  transition: .18s transform, .18s filter, .18s opacity;
}
button[type="submit"]:hover{transform: translateY(-1px); filter: brightness(1.05)}
button[type="submit"][disabled]{opacity:.6; cursor:not-allowed; transform:none}

.formMsg{
  margin-top: 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
  display:none;
}
.formMsg.ok{display:block; border-color: rgba(46,229,157,.35); background: rgba(46,229,157,.08); color: rgba(234,242,248,.92)}
.formMsg.err{display:block; border-color: rgba(255,92,119,.35); background: rgba(255,92,119,.08); color: rgba(234,242,248,.92)}
.formMsg.neu{display:block;}

/* Footer */
footer{
  border-top:1px solid var(--line);
  padding:18px 0 30px;
  color:var(--muted);
  font-size:13px;
}
.footRow{
  display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
.footRow img{width:28px; height:auto; opacity:.95}

.legal-links{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 18px;
  margin-top:14px;
}
.legal-links button{
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  cursor:pointer;
}
.legal-links a, .legal-links button, .privacy-banner a, .legal-content a{
  text-decoration:underline;
  text-underline-offset:3px;
}

/* Privacy banner */
.privacy-banner{
  position:fixed;
  inset-inline:clamp(12px, 4vw, 40px);
  bottom:max(12px, env(safe-area-inset-bottom));
  z-index:60;
  max-width:920px;
  max-height:70dvh;
  overflow:auto;
  margin-inline:auto;
  padding:18px 20px;
  border:1px solid rgba(118,189,121,.45);
  border-top:3px solid var(--brand2);
  border-radius:var(--radius);
  background:var(--card);
  box-shadow:var(--shadow);
  font-size:14px;
  line-height:1.5;
}
.privacy-banner:not([hidden]){
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:14px 24px;
}
.privacy-banner > div:first-child{flex:1 1 300px}
.privacy-banner .h2{font-size:18px}
.privacy-banner p{margin:6px 0; color:var(--muted)}
.privacy-actions{display:flex; flex-wrap:wrap; gap:8px}
.privacy-actions .btn{min-height:44px; justify-content:center; border-color:var(--brand2)}
.privacy-banner :focus-visible, .legal-links :focus-visible, .legal-content a:focus-visible{
  outline:2px solid var(--brand2);
  outline-offset:3px;
}

/* Legal pages */
.legal-page{height:auto; min-height:100%}
.legal-page .brand:focus-visible{outline:2px solid var(--brand2); outline-offset:6px}
.legal-shell{max-width:900px}
.legal-content{
  padding:clamp(18px, 4vw, 42px);
  line-height:1.65;
  overflow-wrap:anywhere;
}
.legal-content .heroH{margin:0 0 8px; font-size:clamp(30px, 5vw, 44px)}
.legal-content section{margin-top:24px}
.legal-content .h2{margin:0 0 8px; line-height:1.25}
.legal-content p, .legal-content ul{margin:0; color:var(--muted)}
.legal-content p + p{margin-top:8px}
.legal-content .legal-date{font-size:14px}
.legal-content ul{margin-top:8px; padding-inline-start:22px}
.legal-content li + li{margin-top:4px}
.legal-content strong{color:var(--text)}

/* Products */
.products-page{height:auto; min-height:100%}
.product-header .nav{height:auto; min-height:74px; padding-block:10px; flex-wrap:wrap}
.product-header .brand{min-width:0}
.product-nav{display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.product-nav a:focus-visible, .product-body a:focus-visible{
  outline:2px solid var(--brand2);
  outline-offset:3px;
}
.product-body .heroH{font-size:clamp(28px, 3.4vw, 44px); line-height:1.12}
.product-category{margin:0 0 8px; color:var(--brand2); font-size:13px; font-weight:750}
.product-body .heroP + .btn{margin-top:18px}
.product-figure{margin:0; min-width:0}
.product-figure > a{display:block; border-radius:var(--radius); cursor:zoom-in}
.product-figure img, .product-tile img{
  display:block;
  width:100%;
  height:auto;
  border-radius:var(--radius);
  border:1px solid var(--line);
}
.product-figure figcaption{margin-top:8px; color:var(--muted); font-size:13px; line-height:1.45}
.product-features .svc{grid-column:span 6; min-height:0}
.product-tile .sub{font-size:14px}
.product-tile .btn{align-self:flex-start; margin-top:auto}
.product-tile img{aspect-ratio:2 / 1; object-fit:contain; background:var(--card2)}
.product-block p:not(.product-category){color:var(--muted); line-height:1.55}
.product-block .product-figure{max-width:850px; margin-top:18px}
.product-external{margin:18px 0 0}
.product-external a{text-decoration:underline; text-underline-offset:3px}

/* Responsive */
@media (max-width: 980px){
  .heroGrid{grid-template-columns: 1fr; }
  .brand{min-width:auto;}
}
@media (max-width: 720px){
  .heroH{font-size:34px}
  .services{gap:12px}
  .svc{grid-column: span 12}
  form{grid-template-columns: 1fr}
  .full{grid-column:auto}
  .navlinks{display:none}
  .cta .btn{padding:10px 12px}
  .privacy-banner{padding:14px 16px}
  .privacy-banner > div:first-child, .privacy-actions{flex-basis:100%}
  .privacy-actions .btn{flex:1; white-space:normal; text-align:center}
  .product-features .svc{grid-column:span 12}
}
