/* ---------------------------------------------------------
   Cerrajería Automotriz García
   Tokens — "panel de diagnóstico": metal cálido (llave) +
   circuito frío (chip), sobre una base azul-carbón profunda.
--------------------------------------------------------- */
:root{
  --ink:      #070B12;
  --navy:     #0E1826;
  --card:     #142033;
  --yellow:   #FFC627;
  --amber:    #D9962A;
  --cyan:     #34E9D8;
  --cyan-dim: rgba(52,233,216,0.14);
  --paper:    #EEF2F6;
  --charcoal: #0E1420;
  --steel:    #566276;
  --mist:     #A9B4C4;
  --line:     rgba(255,255,255,0.09);
  --line-lt:  rgba(14,20,32,0.12);

  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Work Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --wrap: 1160px;
}

*{ box-sizing: border-box; }

/* Preloader */
.preloader{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
}
.preloader-key img{
  width: 96px;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(255,198,39,0.55));
  animation: key-spin 1.1s ease-in-out infinite;
}
@keyframes key-spin{
  0%, 100%{ transform: rotate(-6deg); }
  50%{ transform: rotate(6deg); }
}

/* Cortina (shutter) sobre fotos */
.shutter{
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  pointer-events: none;
}
.shutter__strip{
  flex: 1 0 auto;
  background: var(--ink);
  border-right: 1px solid rgba(255,255,255,0.04);
}
.hero-photo, .sucursal-photo{ position: relative; overflow: hidden; }
.hero-photo img, .sucursal-photo img{ will-change: transform; }

.site-header{ transition: box-shadow 0.25s ease, padding 0.25s ease; }
.site-header.is-scrolled{ box-shadow: 0 8px 30px rgba(0,0,0,0.5); }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--body);
  color: var(--charcoal);
  background: var(--ink);
  background-image:
    linear-gradient(rgba(52,233,216,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52,233,216,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; }
.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
h1,h2,h3{
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: 0.2px;
}
h2{ font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3{ font-size: 1.2rem; }
p{ line-height: 1.55; color: var(--steel); margin: 0 0 1em; }

.section-tag{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--cyan);
  margin-bottom: 12px;
}
.section-tag::before{
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px 1px rgba(52,233,216,0.7);
}

:focus-visible{
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.3px;
  padding: 13px 24px;
  border-radius: 3px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.btn:hover{ transform: translateY(-1px); }
.btn-yellow{
  background: var(--yellow);
  color: var(--ink);
}
.btn-yellow:hover{ background: var(--amber); box-shadow: 0 0 22px rgba(255,198,39,0.35); }
.btn-outline{
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-cyan{
  background: transparent;
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn-cyan:hover{ background: var(--cyan-dim); box-shadow: 0 0 22px rgba(52,233,216,0.3); }

/* ---------------------------------------------------------
   Header
--------------------------------------------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,11,18,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row{
  display: flex;
  align-items: center;
  gap: 20px;
  height: 124px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--paper);
  margin-right: auto;
}
.brand-mark{
  width: 160px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(255,198,39,0.35));
}
.brand-text{
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}
.brand-text-top{
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.2px;
  color: var(--yellow);
}
.brand-text-bottom{
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--yellow);
}

.main-nav{
  display: flex;
  gap: 28px;
}
.main-nav a{
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}
.main-nav a:hover{ border-color: var(--cyan); color: var(--cyan); }

.header-cta{ padding: 10px 18px; font-size: 0.92rem; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  height: 2px;
  background: var(--paper);
  transition: transform 0.25s ease, opacity 0.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{
  background:
    radial-gradient(720px 420px at 82% -8%, rgba(52,233,216,0.16), transparent 60%),
    var(--navy);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,24,38,0) 65%, var(--ink) 100%);
  pointer-events: none;
}
.hero-grid{
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 36px;
  padding: 68px 24px 96px;
  position: relative;
}
.hero-kicker{
  font-family: var(--mono);
  color: var(--cyan);
  letter-spacing: 0.5px;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.hero-kicker::before{ content: "// "; opacity: 0.6; }
.hero h1{
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  color: var(--paper);
  max-width: 24ch;
  text-transform: uppercase;
}
.hero-lede{
  color: var(--mist);
  max-width: 48ch;
}
.hero-services{
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.hero-services li{
  font-size: 1rem;
  line-height: 1.4;
  color: var(--paper);
  padding-left: 22px;
  position: relative;
}
.hero-services li::before{
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--cyan);
}
.hero-quote{
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--mist);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin: 0;
}
.hero-quote strong{ color: var(--yellow); font-weight: 600; }
.hero-quote a{ color: var(--cyan); }
.hero-actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 26px 0 22px;
}
.hero .btn-outline{ color: var(--paper); }
.hero-phones{
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
  font-size: 1rem;
}
.hero-phones a{ text-decoration: none; color: var(--yellow); }
.hero-phones span{ color: var(--steel); }

.hero-carousel{
  position: relative;
  border-radius: 6px;
}
.hero-carousel-track{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hero-carousel-track .hero-photo{
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(52,233,216,0.15), 0 20px 40px -18px rgba(0,0,0,0.6);
  border-radius: 6px;
}

.hero-carousel-track .hero-photo img{ height: auto; aspect-ratio: 3 / 2; }
.hero-carousel-track .hero-photo--wide{ grid-column: 1 / -1; }
.hero-carousel-track .hero-photo--wide img{ height: 380px; aspect-ratio: auto; object-fit: contain; background: var(--ink); }

/* Sucursal Poniente 30: dos fotos que se alternan cada 5 s (solo CSS) */
.sucursal-photo.fade-imgs,
.hero-carousel-track .hero-photo.fade-imgs{ position: relative; aspect-ratio: 3 / 2; background: var(--ink); }
.sucursal-photo.fade-imgs > img,
.hero-carousel-track .hero-photo.fade-imgs > img{
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; opacity: 0; animation: fotoSwap 10s infinite;
}
.sucursal-photo.fade-imgs > img:nth-of-type(2),
.hero-carousel-track .hero-photo.fade-imgs > img:nth-of-type(2){ animation-delay: 5s; }
@keyframes fotoSwap{
  0%{ opacity: 0; } 8%{ opacity: 1; } 50%{ opacity: 1; } 58%{ opacity: 0; } 100%{ opacity: 0; }
}

.hero-photo{
  margin: 0;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(52,233,216,0.15), 0 30px 60px -20px rgba(0,0,0,0.6);
  border-radius: 6px;
}
.hero-photo img{ width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; display: block; }

/* Marco HUD sobre las fotos */
.hud-corner{
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--cyan);
  opacity: 0.85;
  z-index: 3;
  pointer-events: none;
}
.hud-corner--tl{ top: 10px; left: 10px; border-right: none; border-bottom: none; }
.hud-corner--tr{ top: 10px; right: 10px; border-left: none; border-bottom: none; }
.hud-corner--bl{ bottom: 10px; left: 10px; border-right: none; border-top: none; }
.hud-corner--br{ bottom: 10px; right: 10px; border-left: none; border-top: none; }
.hud-label{
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.5px;
  color: var(--cyan);
  background: rgba(7,11,18,0.6);
  padding: 4px 8px;
  border: 1px solid rgba(52,233,216,0.35);
  border-radius: 2px;
}
.hud-scanline{
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 12px 2px rgba(52,233,216,0.7);
  z-index: 3;
  pointer-events: none;
  animation: scan 3.6s ease-in-out infinite;
}
@keyframes scan{
  0%{ top: 8%; opacity: 0; }
  8%{ opacity: 1; }
  50%{ top: 88%; opacity: 1; }
  58%{ opacity: 0; }
  100%{ top: 8%; opacity: 0; }
}

/* ---------------------------------------------------------
   Barra de datos (confianza)
--------------------------------------------------------- */
.data-bar{
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.data-bar-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.data-item{
  background: var(--ink);
  padding: 22px 20px;
  text-align: center;
}
.data-item .data-value{
  font-family: var(--mono);
  color: var(--cyan);
  font-size: 1.3rem;
  display: block;
  margin-bottom: 4px;
}
.data-item .data-label{
  font-size: 0.82rem;
  color: var(--mist);
}

/* ---------------------------------------------------------
   Servicios
--------------------------------------------------------- */
.servicios{ padding: 84px 0 90px; background: var(--paper); }
.servicios .section-tag{ color: var(--amber); }
.servicios .section-tag::before{ background: var(--amber); box-shadow: 0 0 8px 1px rgba(217,150,42,0.6); }
.servicios h2{ margin-bottom: 34px; color: var(--charcoal); }

.servicios-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line-lt);
  border: 1px solid var(--line-lt);
}
.servicio-card{
  background: #fff;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.servicio-card--wide{
  grid-column: span 3;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: var(--ink);
  color: var(--paper);
}
.servicio-card--wide h3{ color: var(--cyan); }
.servicio-card--wide p{ color: var(--mist); }
.servicio-card--wide svg{ flex-shrink: 0; }
.servicio-card-logo-icon{
  flex-shrink: 0;
  width: 140px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}

.servicio-card svg{
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--amber);
  stroke-width: 2.2;
}
.servicio-card--wide svg{ stroke: var(--cyan); }
.servicio-card h3{ margin-bottom: 2px; color: var(--charcoal); }
.servicio-card p{ margin: 0; font-size: 0.96rem; }

.servicio-card--cta{
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--yellow);
}
.servicio-card--cta h3,
.servicio-card--cta p{ color: var(--ink); }
.servicio-card--cta .btn-yellow{
  background: var(--ink);
  color: var(--yellow);
  align-self: flex-start;
}
.servicio-card--cta .btn-yellow:hover{ background: var(--navy); }

/* ---------------------------------------------------------
   Tecnología
--------------------------------------------------------- */
.tecnologia{
  background: var(--navy);
  padding: 84px 0 90px;
  border-top: 1px solid var(--line);
  position: relative;
}
.tecnologia h2{ color: var(--paper); }
.tecnologia > .wrap > p:not(.section-tag){ max-width: 60ch; color: var(--mist); margin-bottom: 40px; }
.tecnologia .section-tag{ margin-bottom: 18px; }

.tech-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tech-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.tech-card:hover{ border-color: rgba(52,233,216,0.4); transform: translateY(-2px); }
.tech-card svg{
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.8;
  margin-bottom: 14px;
}
.tech-card h3{ color: var(--paper); font-size: 1.05rem; }
.tech-card p{ font-size: 0.92rem; margin: 0; }

.urgencia-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.urgencia-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.urgencia-card:hover{ border-color: rgba(52,233,216,0.4); transform: translateY(-2px); }
.urgencia-icon{
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2.2;
  margin-bottom: 2px;
}
.urgencia-card--highlight .urgencia-icon{ stroke: var(--yellow); }
.urgencia-card p{ margin: 0; color: var(--paper); font-size: 1.02rem; font-weight: 600; line-height: 1.35; }
.urgencia-card--highlight{ background: var(--ink); border-color: rgba(255,198,39,0.4); }
.urgencia-card--highlight p{ color: var(--yellow); }

.marcas{
  margin-top: 44px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}
.marcas-label{
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--mist);
  margin-bottom: 16px;
}
.marcas-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.marca-badge{
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--paper);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.02);
}
.marca-badge--logo{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 4px 16px rgba(0,0,0,0.25);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.marca-badge--logo:hover{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-2px);
}
.marca-badge--logo img{
  height: 52px;
  width: auto;
  max-width: 140px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}

/* ---------------------------------------------------------
   Cómo funciona
--------------------------------------------------------- */
.proceso{
  background: var(--paper);
  padding: 84px 0 90px;
}
.proceso .section-tag{ color: var(--amber); }
.proceso .section-tag::before{ background: var(--amber); box-shadow: 0 0 8px 1px rgba(217,150,42,0.6); }
.proceso h2{ color: var(--charcoal); margin-bottom: 40px; }

.proceso-steps{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.proceso-steps::before{
  content: "";
  position: absolute;
  top: 21px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.paso{
  position: relative;
  z-index: 1;
  padding: 0 18px;
}
.paso-num{
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 2px solid var(--amber);
}
.paso h3{ color: var(--charcoal); font-size: 1.05rem; }
.paso p{ font-size: 0.92rem; }

/* ---------------------------------------------------------
   Sucursales
--------------------------------------------------------- */
.sucursales{
  background: var(--ink);
  color: var(--paper);
  padding: 84px 0 90px;
  border-top: 1px solid var(--line);
}
.sucursales h2{ color: var(--paper); margin-bottom: 28px; }

.loc-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}
.loc-tag{
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 10px 22px 10px 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.loc-tag:hover{ transform: translateY(-1px); border-color: rgba(52,233,216,0.4); }
.loc-tag-icon{
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--mist);
  stroke-width: 1.8;
  transition: stroke 0.2s ease;
}
.loc-tag-text{
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.loc-tag-text strong{
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--paper);
}
.loc-tag-text em{
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.74rem;
  letter-spacing: 0.4px;
  color: var(--steel);
}
.loc-tag.is-active{
  background: var(--cyan-dim);
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(52,233,216,0.18);
}
.loc-tag.is-active .loc-tag-icon{ stroke: var(--cyan); }
.loc-tag.is-active .loc-tag-text em{ color: var(--cyan); }

.sucursales-carousel{
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.carousel-track{
  flex: 1 1 auto;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 8px;
}
.carousel-track::-webkit-scrollbar{ display: none; }
.carousel-slide{
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.carousel-arrow{
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--paper);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.carousel-arrow svg{ width: 20px; height: 20px; fill: none; stroke: currentColor; }
.carousel-arrow:hover{ border-color: var(--cyan); color: var(--cyan); transform: translateY(-1px); }

.carousel-dots{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.carousel-dot{
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dot.is-active{
  background: var(--cyan);
  transform: scale(1.3);
  box-shadow: 0 0 8px 1px rgba(52,233,216,0.6);
}

.sucursal-grid{
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 32px;
  align-items: start;
  padding: 4px;
}
.sucursal-photo{
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.sucursal-photo img{ width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 5px; display: block; }

.sucursal-info h3{ color: var(--paper); font-size: 1.55rem; margin-bottom: 0.35em; }
.sucursal-address{ color: var(--mist); }
.sucursal-actions{
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.sucursal-info .btn-outline{ color: var(--paper); }

.map-embed{
  border: 1px solid var(--line);
  border-radius: 6px;
  line-height: 0;
  overflow: hidden;
}
.map-embed iframe{
  width: 100%;
  height: 230px;
  border: 0;
  filter: grayscale(0.4) invert(0.92) contrast(0.9);
}

.kiosko-note{
  margin: 56px 0 0;
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
}
.kiosko-note img{
  width: 130px;
  height: 90px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 4px;
}
.kiosko-note span{ color: var(--mist); font-size: 0.98rem; line-height: 1.5; }
.kiosko-note strong{ color: var(--cyan); }

/* ---------------------------------------------------------
   FAQ
--------------------------------------------------------- */
.faq{
  background: var(--navy);
  padding: 84px 0 90px;
  border-top: 1px solid var(--line);
}
.faq h2{ color: var(--paper); margin-bottom: 34px; }
.faq-list{
  max-width: 760px;
}
.faq-item{
  border-bottom: 1px solid var(--line);
}
.faq-q{
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.05rem;
  padding: 20px 32px 20px 0;
  cursor: pointer;
  position: relative;
}
.faq-q::after{
  content: "+";
  position: absolute;
  right: 4px;
  top: 18px;
  color: var(--cyan);
  font-size: 1.4rem;
  font-family: var(--mono);
  transition: transform 0.2s ease;
}
.faq-item.is-open .faq-q::after{ content: "\2013"; }
.faq-a{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-item.is-open .faq-a{ max-height: 240px; }
.faq-a p{ padding-bottom: 20px; margin: 0; color: var(--mist); max-width: 62ch; }

/* ---------------------------------------------------------
   CTA final
--------------------------------------------------------- */
.cta-final{
  background: var(--yellow);
  padding: 56px 0;
}
.cta-final-grid{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-final h2{ color: var(--ink); margin-bottom: 6px; }
.cta-final p{ color: #3A3010; margin: 0; }
.cta-final-actions{ display: flex; gap: 12px; flex-wrap: wrap; }
.cta-final .btn-yellow{
  background: var(--ink);
  color: var(--yellow);
}
.cta-final .btn-yellow:hover{ background: var(--navy); }

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
.site-footer{
  background: var(--ink);
  color: var(--mist);
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.footer-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand{ display: flex; flex-direction: column; gap: 2px; }
.footer-brand .brand-text{ color: var(--paper); font-size: 0.98rem; }
.footer-brand .brand-text strong{ color: var(--cyan); }
.footer-tag{ font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.5px; }
.footer-links{ display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a{ text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover{ color: var(--cyan); }

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media (max-width: 980px){
  .tech-grid{ grid-template-columns: repeat(2, 1fr); }
  .urgencia-grid{ grid-template-columns: repeat(2, 1fr); }
  .data-bar-grid{ grid-template-columns: repeat(2, 1fr); }
  .proceso-steps{ grid-template-columns: repeat(2, 1fr); gap: 30px 0; }
  .proceso-steps::before{ display: none; }
}

@media (max-width: 860px){
  .hero-grid{ grid-template-columns: 1fr; padding-top: 44px; }
  .hero-carousel-wrap{ order: -1; }

  .servicios-grid{ grid-template-columns: 1fr 1fr; }
  .servicio-card--wide{ grid-column: span 2; }

  .sucursal-grid{ grid-template-columns: 1fr; }
  .sucursal-photo img{ height: auto; aspect-ratio: 3 / 2; }
  .sucursal-info h3{ font-size: 1.3rem; }

  .sucursales-carousel{ gap: 8px; }
  .carousel-arrow{ width: 38px; height: 38px; }
  .carousel-arrow svg{ width: 16px; height: 16px; }

  .hero-carousel-track{ grid-template-columns: 1fr; }

  .kiosko-note{ flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px){
  .header-row{ height: 96px; }
  .brand{ gap: 12px; }
  .brand-mark{ width: 100px; }
  .brand-text-top{ font-size: 1.24rem; }
  .brand-text-bottom{ font-size: 0.74rem; letter-spacing: 0.9px; }

  .main-nav{
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    padding: 10px 24px 20px;
    display: none;
    border-bottom: 1px solid var(--line);
  }
  .main-nav.is-open{ display: flex; }
  .nav-toggle{ display: flex; }
  .header-cta{ display: none; }

  .servicios-grid{ grid-template-columns: 1fr; }
  .servicio-card--wide{ grid-column: span 1; flex-direction: column; }
  .servicio-card--cta{ flex-direction: column; align-items: flex-start; }

  .tech-grid{ grid-template-columns: 1fr; }
  .urgencia-grid{ grid-template-columns: 1fr; }
  .data-bar-grid{ grid-template-columns: 1fr 1fr; }
  .proceso-steps{ grid-template-columns: 1fr; }

  .cta-final-grid{ flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .btn{ transition: none; }
  .hud-scanline{ animation: none; display: none; }
}
