/* =========================================================
   LEOS VOLKS — Centro Técnico especialistas VAG
   Design tokens
   ========================================================= */
:root{
  /* Color */
  --bg:            #0b0a09;
  --bg-alt:        #141210;
  --bg-card:       #17140f;
  --line:          #2c2620;
  --line-soft:     rgba(201,150,46,.18);
  --gold:          #c9962e;
  --gold-light:    #e4b94d;
  --gold-dim:      rgba(201,150,46,.55);
  --red:           #9c2b28;
  --red-light:     #c23c34;
  --white:         #f3efe4;
  --white-dim:     rgba(243,239,228,.7);
  --white-faint:   rgba(243,239,228,.45);
  --black-flag:    #060504;

  /* Type */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius-sm: 3px;
  --header-h: 84px;
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body{
  margin: 0;
  background: var(--bg);
  color: var(--white);
  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{ margin: 0; font-family: var(--font-head); font-weight: 500; color: var(--white); }
p{ margin: 0; }
button{ font-family: inherit; cursor: pointer; }

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

.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--black-flag);
  padding: .75rem 1.25rem;
  z-index: 999;
  font-weight: 700;
}
.skip-link:focus{ left: var(--gutter); top: var(--gutter); }

:focus-visible{
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* =========================================================
   Type helpers
   ========================================================= */
.eyebrow{
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--gold);
  margin: 0 0 .9rem;
}
.eyebrow--light{ color: var(--gold-light); }
.eyebrow--inline{ color: var(--gold); margin-right: .5em; }

.section-title{
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.18;
  max-width: 20ch;
}

.section-head{
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
  max-width: 640px;
}

.pull-quote{
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  color: var(--gold-light);
  border-left: 2px solid var(--gold);
  padding-left: 1.1rem;
  margin: 1.75rem 0 0;
}

/* =========================================================
   Signature stripe device (referencia sutil a la bandera alemana)
   ========================================================= */
.flag-stripe{
  display: block;
  width: 64px;
  height: 4px;
  background: linear-gradient(to right, var(--black-flag) 0 33.3%, var(--red) 33.3% 66.6%, var(--gold) 66.6% 100%);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.4rem;
  font-weight: 700;
  font-size: .92rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }

.btn-gold{
  background: var(--gold);
  color: var(--black-flag);
}
.btn-gold:hover{ background: var(--gold-light); }

.btn-lg{ padding: 1rem 1.9rem; font-size: 1rem; }

.btn-whatsapp{
  background: transparent;
  color: var(--white);
  border-color: var(--line);
}
.btn-whatsapp:hover{ border-color: var(--gold); color: var(--gold-light); }
.icon-wsp{ width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11,10,9,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: height .32s cubic-bezier(.4,0,.2,1),
              background-color .32s cubic-bezier(.4,0,.2,1),
              box-shadow .32s cubic-bezier(.4,0,.2,1);
}
.site-header.is-scrolled{
  height: 64px;
  background: rgba(11,10,9,.97);
  box-shadow: 0 6px 24px rgba(0,0,0,.28);
}
.header-inner{
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand{
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0;
}
.brand-logo{
  width: 46px;
  height: 46px;
  object-fit: contain;
  transition: width .25s ease, height .25s ease;
}
.site-header.is-scrolled .brand-logo{ width: 36px; height: 36px; }
.brand-word{ display: flex; flex-direction: column; line-height: 1.1; }
.brand-word-main{
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--white);
}
.brand-word-sub{
  font-size: .66rem;
  letter-spacing: .05em;
  color: var(--gold);
  margin-top: .15rem;
}

.main-nav ul{
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}
.main-nav a{
  font-size: .92rem;
  font-weight: 600;
  color: var(--white-dim);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.main-nav a:hover{ color: var(--white); }
.main-nav a:hover::after{ transform: scaleX(1); }

.header-actions{ display: flex; align-items: center; gap: 1rem; }
.btn-whatsapp--header span{ display: inline; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.nav-toggle span{
  display: block;
  height: 2px;
  margin-inline: 9px;
  background: var(--white);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media{
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-media img{
  width: 100%;
  height: 122%;
  position: relative;
  top: -11%;
  object-fit: cover;
  object-position: center 60%;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce){
  .hero-media img{ transform: none !important; }
}
.hero-overlay{
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(6,5,4,.94) 0%, rgba(6,5,4,.72) 32%, rgba(6,5,4,.42) 62%, rgba(6,5,4,.55) 100%);
}
.hero-stripe{
  position: absolute;
  left: 0; top: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--black-flag) 0 33.3%, var(--red) 33.3% 66.6%, var(--gold) 66.6% 100%);
}

.hero-content{
  position: relative;
  padding: calc(var(--header-h) + 2rem) var(--gutter) clamp(3rem, 8vw, 5.5rem);
  max-width: 760px;
}
.hero-title{
  font-size: clamp(2.3rem, 6vw, 4.1rem);
  line-height: 1.06;
  color: var(--white);
  margin: 0 0 1.1rem;
}
.hero-lead{
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--white-dim);
  max-width: 52ch;
  margin-bottom: 2rem;
}
.hero-actions{
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.hero-secondary-link{
  font-weight: 700;
  font-size: .92rem;
  color: var(--white);
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 2px;
  transition: border-color .2s ease, color .2s ease;
}
.hero-secondary-link:hover{ color: var(--gold-light); border-color: var(--gold-light); }

/* =========================================================
   Sections generic
   ========================================================= */
.section{
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.section--alt{
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

/* =========================================================
   Servicios
   ========================================================= */
.services-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card{
  position: relative;
  background: var(--bg);
  padding: 2rem 1.75rem;
  border-top: 2px solid transparent;
  transition: border-color .25s ease, background-color .25s ease,
              transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s ease;
}
.service-card:hover{
  border-top-color: var(--gold);
  background: var(--bg-card);
  transform: translateY(-5px);
  box-shadow: 0 16px 28px -12px rgba(201,150,46,.32);
  z-index: 1;
}
.service-icon{
  display: inline-flex;
  width: 30px;
  height: 30px;
  color: var(--gold);
  margin-bottom: 1.1rem;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.service-icon svg{ width: 100%; height: 100%; }
.service-card:hover .service-icon{ transform: scale(1.14) rotate(-6deg); }
@media (prefers-reduced-motion: reduce){
  .service-card, .service-icon{ transition: none; }
  .service-card:hover{ transform: none; }
  .service-card:hover .service-icon{ transform: none; }
}
.service-card h3{
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: .6rem;
  color: var(--white);
}
.service-card p{
  font-size: .92rem;
  color: var(--white-dim);
  line-height: 1.55;
}

/* =========================================================
   Por qué elegirnos — columnas editoriales
   ========================================================= */
.pillars{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.pillar{
  padding: 1.75rem clamp(1rem, 3vw, 2.25rem);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.pillar:nth-child(odd){ border-left: none; }
.pillar:nth-child(-n+2){ border-top: none; }
.pillar h3{
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: .55rem;
  color: var(--gold-light);
}
.pillar p{
  font-size: .93rem;
  color: var(--white-dim);
}

/* =========================================================
   Nosotros
   ========================================================= */
.nosotros-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.nosotros-media img{
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.nosotros-copy p{
  color: var(--white-dim);
  margin-bottom: 1.1rem;
  max-width: 60ch;
}
.nosotros-copy .section-title{ margin-bottom: 1.25rem; }

.stats-row{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 4vw, 2.75rem);
  margin: 2.25rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.stat{ margin: 0; }
.stat-number{
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 500;
  color: var(--gold-light);
  line-height: 1;
  margin: 0 0 .4rem;
}
.stat-label{
  margin: 0;
  font-size: .78rem;
  color: var(--white-faint);
  line-height: 1.35;
  max-width: 14ch;
}

/* =========================================================
   Marcas
   ========================================================= */
.section--marcas{ padding-block: 0; padding-top: clamp(3.5rem, 8vw, 6.5rem); }
.marcas-banner{
  width: 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: clamp(2rem, 5vw, 3rem);
}
.marcas-banner img{ width: 100%; height: auto; }
.marcas-caption{
  padding-block: 1.5rem;
  font-size: .95rem;
  color: var(--white-dim);
}

/* =========================================================
   Galería + Lightbox
   ========================================================= */
.gallery-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.gallery-item{
  padding: 0;
  border: 1px solid var(--line);
  background: none;
  overflow: hidden;
  position: relative;
}
.gallery-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.gallery-item:hover img{ transform: scale(1.07); }
@media (prefers-reduced-motion: reduce){
  .gallery-item img{ transition: none; }
  .gallery-item:hover img{ transform: none; }
}
.gallery-item::after{
  content: "";
  position: absolute; inset: 0;
  border: 1px solid transparent;
  transition: border-color .2s ease;
}
.gallery-item:hover::after{ border-color: var(--gold); }

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6,5,4,.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox[hidden]{ display: none; }
.lightbox img{
  max-width: 100%;
  max-height: 86vh;
  border: 1px solid var(--line);
}
.lightbox-close, .lightbox-nav{
  position: absolute;
  background: none;
  border: 1px solid var(--line);
  color: var(--white);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s ease, color .2s ease;
}
.lightbox-close:hover, .lightbox-nav:hover{ border-color: var(--gold); color: var(--gold-light); }
.lightbox-close{ top: 1.5rem; right: 1.5rem; }
.lightbox-prev{ left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next{ right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* =========================================================
   Testimonios
   ========================================================= */
.testimonials-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.testimonial-card{
  margin: 0;
  padding: 1.9rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  position: relative;
}
.testimonial-card blockquote{
  margin: 0 0 1rem;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--white);
  line-height: 1.5;
}
.testimonial-card figcaption{
  font-size: .82rem;
  color: var(--gold);
  font-weight: 700;
}

/* =========================================================
   Separador banner
   ========================================================= */
.split-banner{
  position: relative;
  width: 100%;
  height: clamp(180px, 30vw, 320px);
  overflow: hidden;
}
.split-banner img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.split-banner-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,5,4,.55), rgba(6,5,4,.75));
}

/* =========================================================
   Contacto
   ========================================================= */
.contacto-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.contacto-info p{ color: var(--white-dim); max-width: 52ch; margin-bottom: 1.5rem; }
.contacto-cta{ margin-bottom: 1.5rem; }
.contacto-email{ margin: 0 0 2.25rem; font-size: .95rem; }
.contacto-email a{
  color: var(--gold-light);
  font-weight: 600;
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 1px;
  transition: color .2s ease, border-color .2s ease;
}
.contacto-email a:hover{ color: var(--white); border-color: var(--white); }
.contacto-hours h3{
  font-size: .95rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: .85rem;
}
.contacto-hours dl{ margin: 0; }
.contacto-hours dl div{
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-top: 1px solid var(--line);
  font-size: .92rem;
}
.contacto-hours dt{ color: var(--white-dim); font-weight: 500; }
.contacto-hours dd{ margin: 0; color: var(--white); font-weight: 600; }

.contacto-address{
  margin: 1.75rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  color: var(--white-dim);
  line-height: 1.6;
}

.contacto-map{
  min-height: 320px;
  border: 1px solid var(--line);
  filter: grayscale(.35) contrast(1.05);
}
.contacto-map iframe{ width: 100%; height: 100%; min-height: 320px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  border-top: 1px solid var(--line);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--bg-alt);
}
.footer-grid{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 2rem;
}
.footer-brand{ display: flex; align-items: center; gap: 1rem; }
.footer-brand img{ width: 52px; height: 52px; object-fit: contain; }
.footer-brand-name{
  font-family: var(--font-head);
  font-size: 1.1rem;
  letter-spacing: .03em;
  color: var(--white);
}
.footer-brand-tag{
  font-size: .8rem;
  color: var(--white-faint);
  margin-top: .2rem;
}
.footer-social{ display: flex; gap: .9rem; }
.footer-social a{
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--white-dim);
  transition: border-color .2s ease, color .2s ease;
}
.footer-social a:hover{ border-color: var(--gold); color: var(--gold-light); }
.footer-social svg{ width: 18px; height: 18px; }

.footer-bottom{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--white-faint);
}
.footer-phrase{ font-style: italic; color: var(--gold-dim); }

/* =========================================================
   WhatsApp flotante
   ========================================================= */
.whatsapp-float{
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 150;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black-flag);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.45);
  transition: transform .15s ease, background-color .15s ease;
}
.whatsapp-float::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--gold);
  animation: wsp-pulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes wsp-pulse{
  0%   { transform: scale(1);    opacity: .55; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
@media (prefers-reduced-motion: reduce){
  .whatsapp-float::before{ animation: none; opacity: 0; }
}
.whatsapp-float:hover{ transform: scale(1.06); background: var(--gold-light); }
.whatsapp-float svg{ width: 27px; height: 27px; fill: currentColor; }

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; }
}

/* =========================================================
   Breakpoints
   ========================================================= */
@media (min-width: 640px){
  .testimonials-grid{ grid-template-columns: repeat(2, 1fr); }
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 860px){
  .nosotros-grid{ grid-template-columns: 1fr 1fr; }
  .nosotros-media{ order: 2; }
  .contacto-grid{ grid-template-columns: 1.05fr 1fr; }
  .contacto-map{ min-height: 420px; }
  .contacto-map iframe{ min-height: 420px; }
}

@media (min-width: 900px){
  .pillars{ grid-template-columns: repeat(4, 1fr); }
  .pillar{ border-top: none; border-left: 1px solid var(--line); padding-top: 0; }
  .pillar:first-child{ border-left: none; }
  .gallery-grid{ grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 899px){
  .main-nav{
    position: fixed;
    inset: 64px 0 auto 0;
    background: rgba(11,10,9,.98);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem var(--gutter) 2rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .main-nav.is-open{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav ul{ flex-direction: column; gap: 1.1rem; }
  .main-nav a{ font-size: 1.05rem; }
  .nav-toggle{ display: flex; }
  .btn-whatsapp--header span{ display: none; }
  .btn-whatsapp--header{ padding: .7rem; }
}

@media (min-width: 900px){
  .nav-toggle{ display: none; }
}
