:root{
  --bg:#070b10;
  --bg2:#0b111a;
  --text:#eaf0f8;
  --muted:#a9b6c8;
  --line:rgba(255,255,255,.10);
  --accent:#ff6a00;
  --accent2:#7ae0ff;
  --shadow:0 18px 50px rgba(0,0,0,.45);
  --max:1180px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  position:relative;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 85% -10%, rgba(122,224,255,.10), transparent 60%),
              radial-gradient(900px 500px at 10% 0%, rgba(255,106,0,.10), transparent 55%),
              linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  color:var(--text);
  line-height:1.55;
}
a{color:inherit; text-decoration:none}
a:hover{color:var(--accent2)}
.container{max-width:var(--max); margin:0 auto; padding:0 20px}

/* Subhero for internal pages (no cards) */
body.has-subhero::before{
  content:"";
  position:absolute; left:0; right:0; top:0;
  height: 340px;
  background:
    linear-gradient(180deg, rgba(7,11,16,.62) 0%, rgba(7,11,16,.92) 65%, rgba(7,11,16,1) 100%),
    var(--subhero) center/cover no-repeat;
  border-bottom: 1px solid rgba(255,255,255,.10);
  z-index:-1;
}
body.page-empresa{ --subhero: url("../img/empresa.webp"); }
body.page-servicios{ --subhero: url("../img/servicios.webp"); }
body.page-filosofia{ --subhero: url("../img/filosofia.webp"); }
body.page-contacto{ --subhero: url("../img/contacto.webp"); }

/* Top bar */
.topbar{
  border-bottom:1px solid var(--line);
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
}
.topbar .inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:10px 0;
  font-size:13px; color:var(--muted);
}
.topbar .meta{display:flex; gap:16px; flex-wrap:wrap}
.topbar .dot{opacity:.35}

/* Header */
.site-header{
  position:sticky; top:0; z-index:50;
  border-bottom:1px solid var(--line);
  background: rgba(7,11,16,.55);
  backdrop-filter: blur(14px);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:18px;
}
.brand{display:flex; align-items:center; gap:14px; min-width:240px}
.brand img{height:78px; width:auto; display:block; filter: drop-shadow(0 8px 14px rgba(0,0,0,.35))}
.brand .name{display:flex; flex-direction:column; line-height:1.1}
.brand .name strong{letter-spacing:.14em; font-weight:800; font-size:15px}
.brand .name span{color:var(--muted); font-size:12px; letter-spacing:.10em; text-transform:uppercase}

.nav{
  display:flex; align-items:center; gap:22px;
  font-size:13px; letter-spacing:.12em; text-transform:uppercase;
}
.nav a{position:relative; padding:10px 2px; color:var(--muted)}
.nav a[aria-current="page"], .nav a:hover{color:var(--text)}
.nav a::after{
  content:""; position:absolute; left:0; bottom:6px; height:2px; width:0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent2) 100%);
  transition: width .22s ease;
}
.nav a[aria-current="page"]::after, .nav a:hover::after{width:100%}

.burger{
  display:none;
  width:44px; height:44px; border:1px solid var(--line);
  background:transparent; color:var(--text);
  border-radius:12px;
}
.burger:active{transform: translateY(1px)}

/* Mobile drawer */
.drawer{
  position:fixed; inset:0;
  background: rgba(0,0,0,.55);
  display:none;
}
.drawer.open{display:block}
.drawer-panel{
  position:absolute; right:0; top:0; height:100%; width:min(360px, 92vw);
  background: linear-gradient(180deg, rgba(11,17,26,.98) 0%, rgba(7,11,16,.98) 100%);
  border-left:1px solid var(--line);
  padding:18px;
  box-shadow: var(--shadow);
}
.drawer-head{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px}
.drawer-close{width:44px; height:44px; border:1px solid var(--line); background:transparent; color:var(--text); border-radius:12px}
.drawer-nav{display:flex; flex-direction:column; gap:6px; margin-top:12px}
.drawer-nav a{padding:14px 12px; border:1px solid transparent; border-radius:14px; color:var(--text)}
.drawer-nav a:hover{border-color:rgba(255,255,255,.14); background: rgba(255,255,255,.04)}
.drawer-meta{margin-top:18px; color:var(--muted); font-size:13px; border-top:1px solid var(--line); padding-top:16px}
.drawer-meta a{color:var(--text)}

/* Hero */
.hero{
  position:relative;
  padding: clamp(64px, 10vw, 110px) 0;
  overflow:hidden;
  background:
    linear-gradient(180deg, rgba(7,11,16,.72) 0%, rgba(7,11,16,.92) 60%, rgba(7,11,16,.98) 100%),
    url("../img/hero.webp") center/cover no-repeat;
}
.hero::before{
  content:"";
  position:absolute; inset:-120px -40px auto -40px; height:460px;
  background:
    radial-gradient(700px 260px at 20% 40%, rgba(255,106,0,.18), transparent 60%),
    radial-gradient(700px 260px at 80% 0%, rgba(122,224,255,.14), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 1px, transparent 1px 14px);
  transform: skewY(-8deg);
  border-bottom:1px solid rgba(255,255,255,.10);
  opacity:.40;
}
.hero::after{
  content:"";
  position:absolute; inset:auto -20% -120px -20%; height:280px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 18px);
  transform: skewY(6deg);
  border-top:1px solid rgba(255,255,255,.10);
  opacity:.32;
}
.hero .grid{
  position:relative;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:28px;
  align-items:end;
}
.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  letter-spacing:.18em;
  text-transform:uppercase;
  font-size:12px;
}
.kicker .mark{
  width:12px; height:12px;
  background:conic-gradient(from 180deg, var(--accent), var(--accent2));
  border-radius:2px;
}
.hero h1{
  margin:14px 0 14px;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height:1.02;
  letter-spacing:-.02em;
}
.hero h1 span{
  background: linear-gradient(90deg, var(--text) 0%, rgba(234,240,248,.70) 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero p{margin:0; color:var(--muted); font-size:16px; max-width:62ch}

.hero .stamp{
  text-align:right;
  align-self:start;
}
.hero .stamp .big{
  font-size: clamp(52px, 8.6vw, 96px);
  font-weight:900;
  letter-spacing:.18em;
  color: rgba(255,255,255,.06);
  user-select:none;
}
.hero .stamp .sub{
  margin-top:6px;
  color: var(--muted);
  font-size:13px;
  letter-spacing:.12em;
  text-transform:uppercase;
}

/* Sections */
.section{
  padding: clamp(56px, 7vw, 90px) 0;
  border-top:1px solid var(--line);
  position:relative;
}
.section h2{
  margin:0 0 14px;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing:.02em;
}
.lead{color:var(--muted); max-width:78ch; margin:0 0 22px}
.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:26px;
  align-items:start;
}

/* Section background images (index) */
.section--about::before,
.section--coverage::before{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(7,11,16,.88) 0%, rgba(7,11,16,.92) 60%, rgba(7,11,16,.98) 100%),
    var(--secimg) center/cover no-repeat;
  opacity:.55;
  z-index:-1;
}
.section--about{ --secimg: url("../img/about.webp"); }
.section--coverage{ --secimg: url("../img/coverage.webp"); }

/* Feature list with stripes */
.stripe-list{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:14px}
.stripe-list li{
  padding-left:16px;
  position:relative;
  color:var(--muted);
}
.stripe-list li::before{
  content:"";
  position:absolute; left:0; top:.45em;
  width:6px; height:6px;
  background: var(--accent);
  border-radius:1px;
  box-shadow: 0 0 0 4px rgba(255,106,0,.12);
}

/* Industries columns */
.flow{
  columns: 2;
  column-gap: 22px;
  color: var(--muted);
}
.flow li{break-inside:avoid; margin:0 0 10px}

/* Services timeline */
.timeline{
  margin: 18px 0 0;
  padding:0;
  list-style:none;
  border-left:2px solid rgba(255,255,255,.12);
}
.timeline li{
  padding: 0 0 22px 18px;
  position:relative;
}
.timeline li::before{
  content:"";
  position:absolute; left:-7px; top:4px;
  width:12px; height:12px;
  border-radius:3px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.timeline h3{margin:0 0 6px; font-size:18px; letter-spacing:.02em}
.timeline p{margin:0; color:var(--muted)}

/* Philosophy bullets */
.bullets{margin:14px 0 0; padding:0; list-style:none; display:flex; flex-direction:column; gap:12px}
.bullets li{color:var(--muted); display:flex; gap:10px}
.bullets li .chk{
  flex:0 0 auto;
  width:18px; height:18px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:5px;
  background: radial-gradient(circle at 30% 30%, rgba(122,224,255,.22), transparent 55%);
  position:relative;
}
.bullets li .chk::after{
  content:"";
  position:absolute; inset:4px;
  background: linear-gradient(135deg, rgba(255,106,0,.95), rgba(122,224,255,.85));
  clip-path: polygon(0 55%, 12% 43%, 38% 68%, 86% 18%, 100% 30%, 38% 92%);
  opacity:.9;
}

/* Contact slab */
.contact-slab{
  position:relative;
  border-top:1px solid rgba(255,255,255,.10);
  border-bottom:1px solid rgba(255,255,255,.10);
  padding:28px 0;
  background:
    radial-gradient(700px 260px at 15% 50%, rgba(255,106,0,.18), transparent 60%),
    radial-gradient(700px 260px at 85% 30%, rgba(122,224,255,.14), transparent 58%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 1px, transparent 1px 16px);
}
.contact-grid{display:grid; grid-template-columns: 1fr 1fr; gap:22px; align-items:start}
.contact-grid h3{margin:0 0 8px; font-size:16px; letter-spacing:.12em; text-transform:uppercase; color:var(--text)}
.contact-grid p{margin:0; color:var(--muted)}
.contact-grid a{color:var(--text)}

/* Footer */
.footer{border-top:1px solid var(--line); padding:28px 0; color:var(--muted); font-size:13px}
.footer .row{display:flex; align-items:flex-start; justify-content:space-between; gap:18px; flex-wrap:wrap}
.footer strong{color:var(--text)}

/* Page header */
.pagehead{padding:52px 0 8px}
.pagehead h1{margin:0; font-size: clamp(28px, 4vw, 44px); letter-spacing:-.01em}
.pagehead p{margin:10px 0 0; color:var(--muted); max-width:78ch}

/* Responsive */
@media (max-width: 920px){
  .hero .grid{grid-template-columns: 1fr; align-items:start}
  .hero .stamp{text-align:left}
  .split{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
}
@media (max-width: 760px){
  .nav{display:none}
  .burger{display:inline-flex; align-items:center; justify-content:center}
  .brand img{height:66px}
  .topbar .inner{flex-direction:column; align-items:flex-start}
  .flow{columns:1}
}
