/* ===== Automotriz 360 — design tokens (refined dark theme, matched to real logo) ===== */
:root{
  --black: #000000;
  --bg: #0d100a;
  --bg-soft: #141810;
  --panel: #1a2013;
  --panel-2: #212814;
  --line: #2c3420;
  --steel: #a9b09a;
  --steel-dim: #767d67;
  --text: #f4f6ec;
  --text-dim: #bdc4ac;
  --green: #8ed13f;
  --green-deep: #6aa82a;
  --green-tint: #202b0e;
  --chrome: #d7dbcc;
  --white: #ffffff;

  --font-display: 'Oswald', sans-serif;
  --font-body: 'Work Sans', sans-serif;

  --radius: 6px;
  --container: 1180px;
}

*{ box-sizing: border-box; margin:0; padding:0; }
html{ scroll-behavior: smooth; }
body{
  background: var(--bg);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font-family: inherit; cursor:pointer; }

h1,h2,h3{
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--white);
}
h1{ font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.08; font-weight: 700; }
h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; }
h3{ font-size: 1.15rem; color: var(--white); }

section{ padding: 5.5rem 1.5rem; }
.section-head{
  max-width: 620px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head p{ color: var(--text-dim); margin-top: .6rem; font-size: 1.02rem; }

.services, .testimonials{ background: var(--bg); }
.about{ background: var(--bg-soft); }

/* subtle brushed-metal texture on dark panels */
.services, .about, .testimonials, .hero{
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 3px);
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: .85rem 1.7rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .3px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{
  background: linear-gradient(180deg, var(--green) 0%, var(--green-deep) 100%);
  color: #0c0f08;
}
.btn-primary:hover{ background: linear-gradient(180deg, #9de24c 0%, var(--green) 100%); }
.btn-ghost{
  border-color: var(--line);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover{ border-color: var(--green); color: var(--green); }
.btn-whatsapp-big{
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--white);
  width: 100%;
  margin-top: .5rem;
  padding: 1rem;
}
.btn-whatsapp-big:hover{ border-color: var(--green); color: var(--green); }

/* ===== Nav ===== */
.nav{
  position: sticky;
  top:0;
  z-index: 100;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.nav.is-scrolled{ box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
.nav-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: .55rem 1.5rem;
  display:flex;
  align-items:center;
  gap: 1.5rem;
}
.brand{ display:flex; align-items:center; flex-shrink:0; }
.brand-logo{ height: 54px; width:auto; transition: height .25s ease; }
.nav.is-scrolled .brand-logo{ height: 42px; }

.nav-links{
  display:flex;
  gap: 1.8rem;
  margin-left: 1rem;
  flex:1;
}
.nav-links a{
  font-family: var(--font-display);
  font-size: .95rem;
  color: var(--steel);
  letter-spacing: .2px;
  transition: color .15s ease;
  white-space: nowrap;
}
.nav-links a:hover{ color: var(--green); }

.nav-actions{ display:flex; align-items:center; gap: .9rem; flex-shrink:0; }
.lang-toggle{
  display:flex; align-items:center; gap:.35rem;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .4rem .6rem; color: var(--steel-dim); font-size: .85rem; font-family: var(--font-display);
}
.lang-opt{ padding: 0 .1rem; transition: color .15s ease; }
.lang-opt.is-active{ color: var(--green); font-weight: 600; }
.lang-sep{ color: var(--line); }
.nav-call{
  display:flex; align-items:center; justify-content:center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--steel);
  transition: border-color .15s ease, color .15s ease;
}
.nav-call svg{ width: 17px; height:17px; }
.nav-call:hover{ border-color: var(--green); color: var(--green); }
.nav-whatsapp{
  background: var(--green);
  color: #0c0f08;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 500;
  padding: .55rem 1.1rem;
  border-radius: var(--radius);
  white-space: nowrap;
}
.nav-whatsapp:hover{ background: #9de24c; }

.menu-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  padding: .4rem;
}
.menu-toggle span{ width: 24px; height: 2px; background: var(--text); }

/* ===== Hero ===== */
.hero{ padding: 4.5rem 1.5rem 3.5rem; background: var(--black); }
.hero-inner{
  max-width: var(--container);
  margin: 0 auto;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items:center;
}
.hero-copy h1{
  opacity:0; transform: translateY(18px);
  animation: heroRise .7s ease forwards;
}
.hero-sub{
  color: var(--text-dim);
  font-size: 1.08rem;
  max-width: 480px;
  margin-top: 1.1rem;
  opacity:0; transform: translateY(18px);
  animation: heroRise .7s ease .12s forwards;
}
.hero-ctas{
  display:flex; gap: 1rem; flex-wrap:wrap;
  margin-top: 1.8rem;
  opacity:0; transform: translateY(18px);
  animation: heroRise .7s ease .24s forwards;
}
.hero-micro{
  margin-top: 1.1rem;
  font-size: .88rem;
  color: var(--steel-dim);
  opacity:0; transform: translateY(18px);
  animation: heroRise .7s ease .34s forwards;
}
@keyframes heroRise{ to{ opacity:1; transform: translateY(0); } }

.hero-visual{
  position:relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow:hidden;
  clip-path: polygon(6% 0, 100% 0, 100% 100%, 0% 100%);
  border: 1px solid var(--line);
}
.hero-visual img{ width:100%; height:100%; object-fit: cover; }
.hero-visual::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.6) 100%);
}

/* ===== Trust strip ===== */
.trust-strip{
  max-width: var(--container);
  margin: 0 auto;
  padding: 2.4rem 1.5rem;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--black);
}
.trust-item{ display:flex; gap: .9rem; align-items:flex-start; }
.trust-item svg{ width: 26px; height:26px; color: var(--green); flex-shrink:0; margin-top:2px; }
.trust-item strong{ display:block; font-family: var(--font-display); font-size: .98rem; font-weight:500; color: var(--white); }
.trust-item span{ display:block; font-size: .85rem; color: var(--steel-dim); margin-top:.2rem; }

/* ===== Services ===== */
.services-grid{
  max-width: var(--container);
  margin: 0 auto;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.service-card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  will-change: transform;
}
.service-card:hover{ border-color: var(--green-deep); box-shadow: 0 14px 30px rgba(0,0,0,0.35); }
.service-card svg{ width: 30px; height: 30px; color: var(--green); margin-bottom: 1rem; }
.service-card h3{ margin-bottom: .4rem; font-size: 1.05rem; }
.service-card p{ color: var(--text-dim); font-size: .92rem; }
.service-card--featured{
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(155deg, var(--panel-2) 0%, var(--panel) 100%);
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.service-card--featured svg{ width: 42px; height:42px; }
.service-card--featured h3{ font-size: 1.4rem; }
.service-card--featured p{ font-size: 1rem; }

/* ===== Insurance (signature bold section) ===== */
.insurance{
  position: relative;
  background-size: cover;
  background-position: center;
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
  margin: 2rem 0;
  overflow: hidden;
}
.insurance-overlay{
  position:absolute; inset:0;
  background: linear-gradient(115deg, rgba(0,0,0,0.94) 0%, rgba(10,26,0,0.86) 55%, rgba(0,0,0,0.92) 100%);
}
.insurance-inner{
  position:relative;
  z-index:1;
  max-width: var(--container);
  margin: 0 auto;
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 2.5rem;
  align-items:center;
}
.insurance h2{ max-width: 480px; }
.insurance p{ color: var(--text-dim); margin-top: .8rem; max-width: 460px; }
.chip-row{ display:flex; flex-wrap:wrap; gap: .6rem; margin-top: 1.6rem; }
.chip{
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: .4rem 1rem;
  font-size: .88rem;
  color: var(--steel);
  background: rgba(255,255,255,0.04);
}
.chip-more{ color: var(--green); border-color: rgba(142,209,63,0.4); }
.insurance-badges{ display:flex; flex-direction:column; gap: 1.1rem; }
.badge-item{ display:flex; align-items:center; gap: .8rem; }
.badge-item svg{ width:24px; height:24px; color: var(--green); flex-shrink:0; }
.badge-item span{ font-family: var(--font-display); font-size: .95rem; color: var(--white); }

/* ===== Before / After ===== */
.ba-slider{
  position:relative;
  max-width: 700px;
  margin: 0 auto;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid var(--line);
  cursor: ew-resize;
  user-select:none;
  box-shadow: 0 18px 44px rgba(0,0,0,0.45);
}
.ba-img{ position:absolute; inset:0; width:100%; height:100%; object-fit: cover; }
.ba-clip{
  position:absolute; inset:0;
  width: 50%;
  overflow:hidden;
}
.ba-clip.is-animating, .ba-handle.is-animating{ transition: width .5s ease, left .5s ease; }
.ba-clip .ba-img{ width: 700px; max-width:none; height:100%; }
.ba-handle{
  position:absolute; top:0; bottom:0; left:50%;
  width:3px; background: var(--green);
  transform: translateX(-50%);
  display:flex; align-items:center; justify-content:center;
}
.ba-handle::before{
  content:"";
  position:absolute; width:44px; height:44px; border-radius:50%;
  background: var(--green); left:50%; top:50%; transform: translate(-50%,-50%);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.ba-handle svg{ position:relative; width:20px; height:20px; color:#0c0f08; z-index:2; }
.ba-tag{
  position:absolute; top: 14px;
  background: rgba(0,0,0,0.7);
  border: 1px solid var(--line);
  padding: .3rem .8rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .82rem;
  color: var(--white);
  pointer-events:none;
}
.ba-tag-before{ left:14px; }
.ba-tag-after{ right:14px; }
.ba-hint{
  text-align:center;
  color: var(--steel-dim);
  font-size: .85rem;
  margin-top: 1rem;
}

/* ===== About ===== */
.about{
  max-width: var(--container);
  margin: 0 auto;
  display:grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 3rem;
  align-items:center;
}
.about-media img{ border-radius: var(--radius); border: 1px solid var(--line); }
.about-copy p{ color: var(--text-dim); margin-top: 1rem; }
.pillars{ display:flex; flex-direction:column; gap: 1.3rem; margin-top: 2rem; }
.pillar{ display:flex; gap: 1rem; align-items:flex-start; }
.pillar svg{ width:24px; height:24px; color: var(--green); flex-shrink:0; margin-top:2px; }
.pillar strong{ display:block; font-family: var(--font-display); font-weight:500; color: var(--white); }
.pillar p{ margin-top:.2rem; font-size: .92rem; color: var(--text-dim); }

/* ===== Testimonials ===== */
.testi-row{
  max-width: var(--container);
  margin: 0 auto;
  display:flex;
  gap: 1.2rem;
  overflow-x:auto;
  scroll-snap-type: x mandatory;
  padding-bottom: .5rem;
}
.testi-card{
  scroll-snap-align: start;
  flex: 0 0 clamp(260px, 80vw, 320px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.testi-quote{ width:26px; height:26px; color: var(--green-deep); opacity:.5; margin-bottom: .8rem; }
.testi-card p{ color: var(--text-dim); font-size: .95rem; }
.testi-author{ margin-top: 1.2rem; }
.testi-author strong{ display:block; font-family: var(--font-display); font-weight:500; color: var(--white); }
.testi-author span{ font-size: .82rem; color: var(--steel-dim); }

/* ===== Contact ===== */
.contact{ background: var(--bg-soft); }
.contact-grid{
  max-width: var(--container);
  margin: 0 auto;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2.5rem;
}
.contact-form{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  display:grid;
  gap: 1.1rem;
}
.contact-form label{ display:flex; flex-direction:column; gap:.4rem; font-size:.88rem; color: var(--steel); }
.contact-form input, .contact-form select, .contact-form textarea{
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .7rem .8rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus{
  outline: none; border-color: var(--green);
}
.contact-form button{ margin-top: .5rem; }

.contact-info{ display:flex; flex-direction:column; gap: 1.6rem; }
.info-block{ display:flex; gap: .9rem; }
.info-block svg{ width:22px; height:22px; color: var(--green); flex-shrink:0; margin-top:2px; }
.info-block strong{ display:block; font-family: var(--font-display); font-weight:500; color: var(--white); margin-bottom: .3rem; }
.info-block p{ color: var(--text-dim); font-size: .92rem; }
.info-block a{ color: var(--green); font-size: .88rem; display:inline-block; margin-top:.3rem; }
.info-block a:hover{ text-decoration: underline; }

/* ===== Footer ===== */
.footer{ border-top: 1px solid var(--line); background: var(--black); padding: 3rem 1.5rem 2rem; }
.footer-inner{ max-width: var(--container); margin: 0 auto; text-align:center; }
.footer-logo{ height: 48px; width:auto; margin: 0 auto 1rem; }
.footer-tag{ font-family: var(--font-display); color: var(--steel); font-size: .95rem; }
.footer-links{ display:flex; justify-content:center; gap: 1.6rem; margin: 1.6rem 0; flex-wrap:wrap; }
.footer-links a{ color: var(--text-dim); font-size: .88rem; }
.footer-links a:hover{ color: var(--green); }
.footer-social{ display:inline-flex; align-items:center; gap:.5rem; color: var(--steel); font-size: .85rem; transition: color .15s ease; }
.footer-social svg{ width:20px; height:20px; }
.footer-social:hover{ color: var(--green); }
.footer-copy{ font-size: .78rem; color: var(--steel-dim); margin-top: 1rem; }

/* ===== WhatsApp floating button ===== */
.whatsapp-float{
  position: fixed;
  bottom: 22px; right: 22px;
  width: 56px; height:56px;
  background: var(--green);
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  z-index: 90;
  transition: transform .15s ease;
}
.whatsapp-float svg{ width:28px; height:28px; color:#0c0f08; }
.whatsapp-float:hover{ transform: scale(1.08); }

/* ===== Scroll-in motion (content is ALWAYS visible by default; this only adds movement on top, never hides anything if JS fails to fire) ===== */
@keyframes riseIn{
  from{ opacity: .001; transform: translateY(22px); }
  to{ opacity: 1; transform: translateY(0); }
}
.animate-in{
  animation: riseIn .7s ease both;
}

@media (prefers-reduced-motion: reduce){
  .animate-in{ animation:none !important; }
  .hero-copy h1, .hero-sub, .hero-ctas, .hero-micro{ animation:none !important; opacity:1 !important; transform:none !important; }
  *{ scroll-behavior:auto !important; }
}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .nav-links{ display:none; }
  .menu-toggle{ display:flex; }
  .nav.is-open .nav-links{
    display:flex; flex-direction:column;
    position:absolute; top:100%; left:0; right:0;
    background: var(--black); border-bottom: 1px solid var(--line);
    padding: 1.2rem 1.5rem; gap: 1rem;
  }
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-visual{ order:-1; aspect-ratio: 16/9; }
  .trust-strip{ grid-template-columns: 1fr 1fr; }
  .services-grid{ grid-template-columns: 1fr 1fr; }
  .service-card--featured{ grid-column: span 2; grid-row: span 1; }
  .insurance-inner{ grid-template-columns: 1fr; }
  .about{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  .trust-strip{ grid-template-columns: 1fr; }
  .services-grid{ grid-template-columns: 1fr; }
  .service-card--featured{ grid-column: span 1; }
  .nav-whatsapp{ display:none; }
}
