﻿@layer base;

:root{
  --bg: #070b14;
  --bg2: #0b1220;
  --card: rgba(255,255,255,.055);
  --text: #eef2ff;
  --muted: rgba(238,242,255,.72);
  --border: rgba(255,255,255,.14);
  --shadow: 0 18px 55px rgba(0,0,0,.45);

  --primary: #7a0019; /* bordo */
  --primary2: #d73a49;
  --accent-green: #7a0019;
  --accent-orange: #fb923c;
  --accent-blue: #3b82f6;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(at 0% 0%, rgba(122,0,25,0.18) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(215,58,73,0.12) 0px, transparent 50%);
  color:var(--text);
}

a{color:inherit; text-decoration:none}
img{max-width:100%; height:auto; display:block}
.container{width:min(1120px, 92vw); margin:0 auto}

/* Header */
.header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(7,11,20,.65);
  border-bottom:1px solid var(--border);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand__logo{
  border-radius:0;
  border:none;
  width:120px;
  height:120px;
  object-fit:contain;
  transform:none;
  filter:none;
}
.brand__logoWrap{display:flex; align-items:center; justify-content:center}

@media (max-width: 768px){
  .brand__logo{width:72px; height:72px}
}
.brand__stack{display:flex; flex-direction:column; gap:0; line-height:1}
.brand__mark{font-weight:900; font-size:1.1rem; letter-spacing:-0.02em}
.brand__name{color:var(--muted); font-size:0.85rem; font-weight:600; text-transform:uppercase; letter-spacing:0.05em}

.nav{display:flex; gap:24px; align-items:center}
.nav a{color:var(--muted); font-weight:600; font-size:0.95rem; transition:color .2s, text-shadow .2s}
.nav a:hover{color:var(--text); text-shadow: 0 0 14px rgba(122,0,25,0.22)}
.nav__cta{
  background: rgba(255,255,255,0.05);
  padding:8px 16px;
  border-radius:99px;
  border:1px solid var(--border);
}
.nav__cta:hover{border-color: rgba(122,0,25,0.55); box-shadow: 0 0 0 4px rgba(122,0,25,0.12)}
.navToggle{display:none} /* Simplificado desktop first */

/* Split Hero */
.splitHero{
  padding: 60px 0;
  text-align:center;
}
.splitHero__content{
  max-width: 700px;
  margin: 0 auto 50px;
}
.splitHero__content h1{
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 10px 0 20px;
}
.lead{font-size:1.2rem; color:var(--muted)}
.eyebrow{color:var(--primary); font-weight:700; text-transform:uppercase; letter-spacing:0.1em; font-size:0.8rem}

.splitHero__options{
  display:grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 1200px);
  margin: 0 auto;
  gap: 20px;
  padding: 0 20px;
}
.splitCard{
  position: relative;
  height: 400px;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  border: 1px solid var(--border);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  
}
.splitCard:hover{
  transform: translateY(-6px);
  border-color: rgba(122,0,25,0.55);
  box-shadow: 0 28px 70px rgba(0,0,0,.55), 0 0 0 4px rgba(122,0,25,0.10);
}

.splitCard__bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .5s ease;
  z-index: 0;
}
.splitCard:hover .splitCard__bg{transform: scale(1.05)}

/* Overlays */
.splitCard::after{
  content:''; position:absolute; inset:0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  z-index: 1;
}
.splitCard--gastro .splitCard__bg{filter: saturate(0.8) brightness(0.7)}
.splitCard--logistics .splitCard__bg{filter: saturate(0.8) brightness(0.7)}

.splitCard__content{
  position: relative;
  z-index: 2;
  text-align: left;
}
.splitCard h2{font-size: 2rem; margin: 0 0 10px; font-weight: 800}
.splitCard p{font-size: 1.1rem; color: rgba(255,255,255,0.8); margin: 0 0 20px}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 24px; border-radius:12px; font-weight:600;
  transition:all .2s; border:1px solid transparent;
  cursor:pointer;
}
.btn--small{padding: 8px 16px; font-size: 0.9rem}
.btn--primary{background: var(--primary); color: #fff; border:1px solid rgba(255,255,255,0.12)}
.btn--primary{box-shadow: 0 14px 34px rgba(122,0,25,0.35)}
.btn--primary:hover{background: #8f001d; transform:scale(1.03)}
.btn--ghost{background:transparent; border-color:var(--border); color:var(--text)}
.btn--ghost:hover{border-color: rgba(255,255,255,0.3)}

/* Repartidores page CTA buttons */
.cta-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 24px;
  border-radius:12px;
  font-weight:700;
  text-decoration:none;
  transition:all .2s;
  border:1px solid rgba(255,255,255,0.12);
}
.cta-button:hover{transform: translateY(-2px); box-shadow: 0 16px 40px rgba(122,0,25,0.28)}

/* Sections */
.section{padding: 80px 0}
.section--alt{background: rgba(255,255,255,0.02); border-block: 1px solid var(--border)}
.sectionHead{margin-bottom: 40px}
.sectionHead h2{font-size: 2.5rem; margin: 10px 0}

/* Grids */
.grid{display:grid; gap:40px}
.grid--2{grid-template-columns: 1fr 1fr}

/* Vertical Features */
.checkList{list-style:none; padding:0; margin: 20px 0}
.checkList li{margin-bottom: 12px; display:flex; gap:10px; color:var(--muted)}
.checkList li::before{content:''; color:var(--primary); font-weight:bold}

.badge{
  display:inline-block; font-size:0.75rem; font-weight:700; text-transform:uppercase; letter-spacing:0.05em;
  padding: 4px 10px; border-radius:99px; border:1px solid;
}
.badge--orange{color: var(--accent-orange); border-color: rgba(251,146,60,0.3); background: rgba(251,146,60,0.1)}
.badge--blue{color: var(--accent-blue); border-color: rgba(59,130,246,0.3); background: rgba(59,130,246,0.1)}

/* System Stack */
.systemStack{
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
}
.systemStack__title{margin:0 0 20px; font-size:1.1rem; color:var(--muted); text-transform:uppercase; letter-spacing:0.05em}
.systemCard{
  display:flex; gap:16px; margin-bottom: 20px;
  background: rgba(0,0,0,0.2);
  padding: 16px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
}
.systemCard:last-child{margin-bottom:0}
.systemCard__icon{font-size: 1.5rem}
.systemCard strong{display:block; color:#fff}
.systemCard p{margin:4px 0 0; font-size:0.9rem; color:var(--muted)}

/* Logos */
.logoGrid{display:grid; grid-template-columns: repeat(4, 1fr); gap:20px}
.logoCard{background:white; border-radius:12px; display:flex; align-items:center; justify-content:center; padding:20px; height:80px}
.logoCard img{max-height:30px; filter:grayscale(1); opacity:0.7}

/* Footer & Utils */
.marginTop{margin-top:30px}
.btnRow{display:flex; gap:10px; margin-top:20px}
.finalCta{
  background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
}
.footer{padding:40px 0; border-top:1px solid var(--border); color:var(--muted); font-size:0.9rem}

/* Mobile */
@media (max-width: 768px){
  .splitHero__options{grid-template-columns: 1fr}
  .grid--2{grid-template-columns: 1fr}
  .nav{display:none} /* Oculto simple por ahora */
  .logoGrid{grid-template-columns: repeat(2, 1fr)}
  .splitCard{height: 300px}
}

/* Nav Active State */
.nav a.active {
    color: var(--text);
    position: relative;
}
.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}


/* Keep brand logo clean (no glows, no borders) */
.brand:hover .brand__logo{transform:none}

/* Motion / reveal (safe defaults) */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

@keyframes onboxFadeUp{
  from{ opacity:0; transform: translateY(12px); }
  to{ opacity:1; transform: translateY(0); }
}
@keyframes onboxLogoPop{
  from{ opacity:0; transform: translateY(-6px); }
  to{ opacity:1; transform: translateY(0); }
}

.js body.page-loaded .brand__logoWrap{
  animation: onboxLogoPop .65s cubic-bezier(.2,.8,.2,1) both;
}
.js body.page-loaded .splitHero__content{
  animation: onboxFadeUp .75s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: .08s;
}

@media (prefers-reduced-motion: reduce){
  .reveal{opacity:1; transform:none; transition:none}
  .js body.page-loaded .brand__logoWrap,
  .js body.page-loaded .splitHero__content{animation:none}
}
