/* Tema "ciudad eléctrica, hoy".
   Idea: una ciudad donde lo eléctrico ya es lo normal. Torres de vidrio con
   fachadas LED, hubs de carga, chapas verdes de vehículo eléctrico, la línea
   de metro y la prolijidad de una super app. Luz de día, blanco y vidrio,
   un solo verde de energía (el del logo) y tinta casi negra.
   Se carga DESPUÉS de styles.css. Para volver al estilo anterior: quitar el
   <link> a este archivo y la fuente Archivo en index.html, y el bloque .ticker. */

:root {
  --sz-ink: #0E1116;
  --sz-ink-2: #3D4652;
  --sz-ink-3: #66717D;
  --sz-paper: #FFFFFF;
  --sz-mist: #F2F5F7;
  --sz-mist-2: #E6EBEF;
  --sz-line: #D9E0E6;
  --sz-green: #22B45E;        /* verde energía, más intenso que el del logo para texto y líneas */
  --sz-green-led: #43D17C;
  --sz-green-soft: #E7F7EC;
  --sz-blue: #1E8FD0;         /* celeste del logo, solo como acento secundario */
  --sz-night: #0B1118;

  --font-display: 'Archivo', 'Space Grotesk', system-ui, sans-serif;

  --bg: var(--sz-paper);
  --bg-alt: var(--sz-mist);
  --card: var(--sz-paper);
  --muted: var(--sz-ink-3);
  --muted-2: var(--sz-ink-2);
  --accent: var(--sz-green);
}

body { background: var(--sz-paper); color: var(--sz-ink); }
:focus-visible { outline-color: var(--sz-blue); }
h1, h2, h3 { font-family: var(--font-display); font-stretch: 112%; font-weight: 700; }

/* Chapa verde de vehículo eléctrico: degradé blanco a verde con borde fino */
.plate {
  background: linear-gradient(180deg, #F4FBF6 0%, #CDEFD8 55%, #5BC27F 100%);
  border: 1.5px solid var(--sz-ink); border-radius: 5px; color: var(--sz-ink);
}

/* Etiquetas de sección */
.eyebrow, .eyebrow-accent {
  font-family: var(--font-display); font-stretch: 100%; font-weight: 600; font-size: 14px;
  text-transform: none; letter-spacing: 0; color: var(--sz-green);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--sz-green-soft); flex: none; }

/* Botones */
.btn { font-family: var(--font-display); font-stretch: 108%; font-weight: 600; transition: transform .15s, background-color .15s; }
.btn-primary { background: var(--sz-ink); color: #FFFFFF; gap: 10px; }
.btn-primary::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sz-green-led); box-shadow: 0 0 0 3px rgba(67, 209, 124, .25); }
.btn-primary:hover { opacity: 1; background: #232A33; }
.btn-secondary { background: #FFFFFF; color: var(--sz-ink); border-color: var(--sz-line); }
.btn-secondary:hover { opacity: 1; border-color: var(--sz-ink); }
.btn-dark { background: var(--sz-ink); }
.btn:active { transform: translateY(1px); }

/* Header: vidrio blanco, fijo arriba */
.site-header {
  background: rgba(255, 255, 255, .86); color: var(--sz-ink);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--sz-line); position: sticky; top: 0; z-index: 50;
}
.brand-logo { border: 1px solid var(--sz-line); }
/* Nombre y subtítulo del mismo ancho: el nombre queda dentro del renglón de abajo (medido con Archivo) */
.brand-name { font-stretch: 100%; font-weight: 800; font-size: 25.5px; letter-spacing: 0; }
.brand-sub { color: var(--sz-green); font-family: var(--font-display); font-weight: 600; letter-spacing: .04em; }
.nav { color: var(--sz-ink-2); font-weight: 500; }
.nav a:not(.btn):hover { opacity: 1; color: var(--sz-ink); }
.nav-toggle { color: var(--sz-ink); border-color: var(--sz-line); }
[id] { scroll-margin-top: 100px; }

/* Hero: de día, claro */
.hero { background: linear-gradient(180deg, #F2F7FA 0%, #FFFFFF 100%); color: var(--sz-ink); }
.hero h1 { font-stretch: 118%; font-weight: 800; letter-spacing: -.025em; line-height: .98; font-size: clamp(40px, 5.6vw, 68px); }
.lead { color: var(--sz-ink-2); }
.checks { color: var(--sz-ink-2); font-weight: 500; }
.checks svg { color: var(--sz-green); }

.art-frame {
  border: 0; border-radius: 28px; background: #E8EEF2;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 30px 60px -20px rgba(14, 17, 22, .28), 0 0 0 1px rgba(14, 17, 22, .06);
}
.led-bar { transform-box: fill-box; transform-origin: bottom; animation: led 2.4s ease-in-out infinite alternate; }
@keyframes led { 0% { transform: scaleY(.25); opacity: .55; } 100% { transform: scaleY(1); opacity: 1; } }
.canopy-glow { filter: drop-shadow(0 0 4px #43D17C); }
.chg-led { animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* Tarjeta de estado: widget de super app */
.status-card {
  top: 18px; left: 18px; right: auto; bottom: auto; min-width: 210px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 18px; box-shadow: 0 12px 30px -8px rgba(14, 17, 22, .3); padding: 14px 16px; gap: 8px;
}
.status-label { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--sz-ink-3); font-size: 12px; }
.status-title { font-stretch: 112%; font-weight: 800; font-size: 20px; display: flex; align-items: center; gap: 8px; }
.status-title::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--sz-green-led); box-shadow: 0 0 0 4px rgba(67, 209, 124, .22); animation: blink 1.6s ease-in-out infinite; }
.status-bar { background: var(--sz-mist-2); height: 6px; }
.status-bar span { background: linear-gradient(90deg, var(--sz-green), var(--sz-green-led)); position: relative; overflow: hidden; }
.status-bar span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: barrido 1.8s linear infinite; transform: translateX(-100%); }
@keyframes barrido { to { transform: translateX(100%); } }
.status-note { color: var(--sz-ink-3); font-size: 12px; }

/* Franja LED que corre, como en las fachadas */
.ticker { background: var(--sz-night); color: var(--sz-green-led); overflow: hidden; border-block: 1px solid #1C2733; }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker span {
  display: inline-flex; align-items: center; gap: 26px; padding: 14px 13px 14px 13px;
  font-family: var(--font-display); font-stretch: 125%; font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  text-shadow: 0 0 10px rgba(67, 209, 124, .55); white-space: nowrap;
}
.ticker span::after { content: ""; width: 6px; height: 6px; border-radius: 1px; background: #FFFFFF; opacity: .5; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Secciones */
.section { background: var(--sz-paper); }
.section-alt { background: var(--sz-mist); }
.section-ink { background: var(--sz-paper); color: var(--sz-ink); }
#soluciones { background: var(--sz-mist); }
.section-deep { background: var(--sz-night); color: #FFFFFF; }
.head h2, .contact-copy h2 { font-stretch: 115%; font-weight: 800; letter-spacing: -.02em; line-height: 1.02; }
.muted { color: var(--sz-ink-3); }

/* Tarjetas de experiencia con chapa verde numerada */
.card { border: 1px solid var(--sz-line); border-radius: 22px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(14, 17, 22, .25); }
.card-num {
  align-self: flex-start; font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 13px; letter-spacing: .08em;
  padding: 3px 9px; color: var(--sz-ink);
  background: linear-gradient(180deg, #F4FBF6 0%, #CDEFD8 55%, #5BC27F 100%);
  border: 1.5px solid var(--sz-ink); border-radius: 5px;
}
.card-num::before { content: "QPS·"; }
.card h3 { font-stretch: 108%; }

/* Servicios: íconos de app */
.service { background: #FFFFFF; border: 1px solid var(--sz-line); border-radius: 22px; transition: transform .2s, box-shadow .2s; }
.service:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(14, 17, 22, .25); }
.service-icon {
  width: 52px; height: 52px; border-radius: 15px; color: #FFFFFF;
  background: linear-gradient(145deg, #3DCB76, #16A04F); box-shadow: 0 8px 18px -6px rgba(34, 180, 94, .6);
}
.service h3 { font-stretch: 108%; }
.service p { color: var(--sz-ink-3); }

/* Soluciones */
.tabs { background: var(--sz-mist); padding: 5px; border-radius: 999px; align-self: flex-start; gap: 4px; }
.tabs [role="tab"] { border: 0; color: var(--sz-ink-2); font-family: var(--font-display); font-stretch: 108%; }
.tabs [role="tab"][aria-selected="true"] { background: #FFFFFF; color: var(--sz-ink); box-shadow: 0 2px 8px rgba(14, 17, 22, .12); }
.panel { border: 1px solid var(--sz-line); background: #FFFFFF; }
.points li { background: var(--sz-mist); border-radius: 14px; }
.points li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322B45E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E");
}

/* Cómo trabajamos: los pasos como estaciones de una línea de metro */
.steps { gap: 0; position: relative; }
.step { border-top: 0; padding: 0 20px 0 0; position: relative; gap: 12px; }
.step::before { /* tramo de vía */
  content: ""; position: absolute; top: 19px; left: 0; right: 0; height: 6px; background: var(--sz-green); border-radius: 0;
}
.step:first-child::before { left: 20px; border-radius: 3px 0 0 3px; }
.step:last-child::before { right: auto; width: 20px; }
.step-num {
  position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  background: #FFFFFF; border: 6px solid var(--sz-green); color: var(--sz-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-stretch: 112%; font-size: 17px; font-weight: 800; line-height: 1;
  margin-bottom: 8px;
}
.step h3 { font-stretch: 108%; }
.step p { color: var(--sz-ink-3); }

/* Contacto: la ciudad de noche */
.section-deep {
  background:
    linear-gradient(180deg, rgba(11, 17, 24, .0), rgba(11, 17, 24, 1) 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 14px),
    var(--sz-night);
}
.section-deep .eyebrow, .section-deep .eyebrow-accent { color: var(--sz-green-led); }
.section-deep .eyebrow::before { box-shadow: 0 0 0 4px rgba(67, 209, 124, .2); }
.accent-link { color: var(--sz-green-led); }
.form { background: #121A23; border-color: #223040; border-radius: 26px; }
.form input, .form select, .form textarea { background: #0B1118; border-color: #2A3847; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { border-color: var(--sz-green-led); }
.form .btn-primary { background: var(--sz-green-led); color: var(--sz-ink); }
.form .btn-primary::before { background: var(--sz-ink); box-shadow: none; }
.form .btn-primary:hover { background: #5BDD8F; }
.form-status.is-ok { color: var(--sz-green-led); }

/* Footer */
.site-footer { background: var(--sz-night); border-top-color: #1C2733; }

@media (max-width: 1120px) {
  .nav a:not(.btn) { border-bottom-color: var(--sz-line); }
}
@media (max-width: 640px) {
  .brand-name { font-size: 15.5px; }
  .steps { gap: 28px; }
  .step { padding: 0 0 0 64px; min-height: 44px; }
  .step::before { top: 0; bottom: -28px; left: 19px; right: auto; width: 6px; height: auto; border-radius: 0; }
  .step:first-child::before { left: 19px; top: 20px; }
  .step:last-child::before { bottom: auto; height: 20px; width: 6px; }
  .step-num { position: absolute; left: 0; top: 0; }
  .status-card { top: 12px; left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .led-bar, .chg-led, .status-title::before, .status-bar span::after, .ticker-track { animation: none; }
  .card, .service { transition: none; }
}
