/* ================================================================
   PROINSTALL AND DIESEL SOLUTIONS — SISTEMA DE DISEÑO
   ================================================================ */

:root {
  --pi-blue:      #159bd5;
  --pi-blue-deep: #0f7cad;
  --pi-blue-soft: rgba(21, 155, 213, .10);
  --pi-sky:       #55c8f4;
  --pi-sky-dk:    #2ba7dd;
  --pi-ink:       #101b32;
  --pi-ink-2:     #0c1830;
  --pi-ink-3:     #081226;

  --white:    #ffffff;
  --paper:    #f4f7f9;
  --steel-50: #f2f6f9;
  --steel-100:#e4ecf1;
  --steel-200:#d2dee6;
  --steel-400:#8496a5;
  --steel-500:#5b6b7a;
  --steel-600:#39485a;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'JetBrains Mono', 'IBM Plex Mono', monospace;

  --container: 1200px;
  --gutter: 24px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 6px rgba(16, 27, 50, .07);
  --shadow:    0 12px 30px rgba(16, 27, 50, .12);
  --shadow-lg: 0 24px 60px rgba(16, 27, 50, .20);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  color: var(--pi-ink); background: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--pi-blue); color: #fff; padding: 12px 18px; font-family: var(--font-mono); font-size: 12px; }
.skip-link:focus { left: 8px; top: 8px; }

/* ── Tipografía de sección ───────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--pi-blue); margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--pi-blue); }
.eyebrow.on-dark { color: var(--pi-sky); }
.eyebrow.on-dark::before { background: var(--pi-sky); }

.section-title {
  font-family: var(--font-display); font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 700; line-height: .98; text-transform: uppercase; color: var(--pi-ink); margin: 0 0 18px;
}
.section-title .accent { color: var(--pi-blue); }
.section-title.on-dark { color: var(--white); }
.section-title.on-dark .accent { color: var(--pi-sky); }
.section-sub { font-size: 16px; line-height: 1.7; color: var(--steel-500); max-width: 640px; margin: 0; }
.section-sub.on-dark { color: rgba(255,255,255,.75); }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* ── Botones ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase; border: 2px solid transparent;
  border-radius: var(--radius); transition: all .25s ease; white-space: nowrap;
}
.btn-lg { padding: 17px 32px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--pi-blue); color: var(--white); border-color: var(--pi-blue); box-shadow: 0 8px 20px rgba(21,155,213,.25); }
.btn-primary:hover { background: var(--pi-blue-deep); border-color: var(--pi-blue-deep); transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--pi-blue); border-color: var(--white); }
.btn-light:hover { background: var(--pi-sky); border-color: var(--pi-sky); color: var(--pi-ink); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { background: var(--white); color: var(--pi-blue); border-color: var(--white); }

/* ── Topbar ──────────────────────────────────────────────── */
.topbar { background: var(--pi-ink); color: rgba(255,255,255,.75); font-size: 12.5px; font-family: var(--font-mono); border-bottom: 2px solid var(--pi-blue); }
.topbar-inner { max-width: var(--container); margin: 0 auto; padding: 9px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar a, .topbar span { color: rgba(255,255,255,.85); display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.topbar a:hover { color: var(--pi-sky); }
.topbar i { color: var(--pi-blue); }
.topbar-social { display: flex; gap: 14px; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.15); }
.topbar-social a i { color: rgba(255,255,255,.7); font-size: 13px; }
.topbar-social a:hover i { color: var(--pi-sky); }
@media (max-width: 860px) { .topbar { display: none; } }

/* ── Header ──────────────────────────────────────────────── */
.header { background: var(--white); border-bottom: 1px solid var(--steel-100); position: sticky; top: 0; z-index: 100; transition: all .3s ease; }
.header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--pi-blue); }
.header-inner { max-width: var(--container); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 52px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link { position: relative; padding: 10px 14px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--steel-500); transition: color .2s; }
.nav-link::after { content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--pi-blue); transition: width .25s ease; }
.nav-link:hover, .nav-link.active { color: var(--pi-blue); }
.nav-link.active::after, .nav-link:hover::after { width: calc(100% - 28px); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 38px; height: 38px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--pi-ink); }
.nav-close, .nav-backdrop { display: none; }
@media (max-width: 900px) {
  .main-nav {
    position: fixed; top: 0; right: -320px; width: 285px; height: 100vh; background: var(--pi-ink);
    flex-direction: column; align-items: stretch; padding: 76px 24px 24px; gap: 4px;
    transition: right .3s ease; z-index: 110; overflow-y: auto;
  }
  .main-nav.open { right: 0; }
  .main-nav .nav-link { color: rgba(255,255,255,.85); font-size: 14px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav .nav-link.active, .main-nav .nav-link:hover { color: var(--pi-sky); }
  .main-nav .nav-link::after { display: none; }
  .nav-toggle { display: flex; }
  .header-cta .btn { display: none; }
  .nav-close { display: block; position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 26px; line-height: 1; }
  .nav-close:hover { background: var(--pi-blue); }
  /* Debajo de .header (z-index 100): el drawer vive dentro del header. */
  .nav-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(8,18,38,.55); z-index: 95; }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  border-bottom: 4px solid var(--pi-blue); min-height: 560px;
  background:
    linear-gradient(90deg, rgba(8,18,38,.97) 0%, rgba(8,18,38,.94) 36%, rgba(8,18,38,.76) 54%, rgba(8,18,38,.34) 76%, rgba(8,18,38,0) 100%),
    url('https://images.unsplash.com/photo-1599256872237-5dcc0fbe9668?auto=format&fit=crop&w=1800&q=80') no-repeat right center / cover,
    var(--pi-ink);
}
.hero::after { content: ''; position: absolute; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(21,155,213,.22), transparent 70%); top: -140px; right: -90px; filter: blur(80px); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; max-width: var(--container); margin: 0 auto; padding: 86px var(--gutter) 90px; }
.hero-left { max-width: 620px; }
.hero-tagline {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px;
  background: rgba(85,200,244,.10); border: 1px solid rgba(85,200,244,.4); border-radius: 50px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--pi-sky); margin-bottom: 26px;
}
.hero-tagline .blink { width: 8px; height: 8px; background: var(--pi-sky); border-radius: 50%; animation: pulse-dot 1.6s infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(85,200,244,.6); } 50% { opacity: .5; box-shadow: 0 0 0 6px rgba(85,200,244,0); } }
.hero-title { font-family: var(--font-display); font-size: clamp(44px, 6.8vw, 82px); font-weight: 700; line-height: .95; text-transform: uppercase; margin: 0 0 22px; text-shadow: 0 2px 28px rgba(0,0,0,.55); }
.hero-title .word-sky { color: var(--pi-sky); }
.hero-lead { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.88); margin: 0 0 34px; max-width: 520px; text-shadow: 0 1px 14px rgba(0,0,0,.7); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.14); padding-top: 26px; max-width: 680px; }
.hero-stat { padding-right: 18px; border-right: 1px solid rgba(255,255,255,.10); }
.hero-stat:last-child { border-right: none; }
.hero-stat-num { display: block; font-family: var(--font-display); font-size: 42px; font-weight: 700; line-height: 1; color: var(--pi-sky); margin-bottom: 5px; }
.hero-stat-num small { font-size: 20px; font-weight: 700; margin-left: 2px; }
.hero-stat-label { display: block; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: rgba(255,255,255,.58); line-height: 1.4; }
@media (max-width: 900px) {
  .hero { background-position: right -200px center; min-height: 0; }
  .hero-inner { padding: 56px var(--gutter) 64px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 22px 0; max-width: 460px; }
  .hero-stat:nth-child(2) { border-right: none; }
}
@media (max-width: 540px) {
  .hero-actions .btn { width: 100%; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 20px 0; }
  .hero-stat:nth-child(2) { border-right: none; }
}

/* ── Banda de beneficios ─────────────────────────────────── */
.benefits-strip { background: var(--pi-sky); padding: 24px 0; }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.benefit-item { display: flex; align-items: center; gap: 14px; border-right: 1px solid rgba(16,27,50,.18); padding-right: 26px; }
.benefit-item:last-child { border-right: none; padding-right: 0; }
.benefit-icon { width: 42px; height: 42px; background: var(--pi-ink); color: var(--pi-sky); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.benefit-text strong { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--pi-ink); text-transform: uppercase; line-height: 1; margin-bottom: 3px; }
.benefit-text small { display: block; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; color: var(--pi-ink); opacity: .72; }
@media (max-width: 900px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } .benefit-item:nth-child(2) { border-right: none; } }
@media (max-width: 520px) { .benefits-grid { grid-template-columns: 1fr; } .benefit-item { border-right: none; padding-right: 0; } }

/* ── Secciones ───────────────────────────────────────────── */
.section { padding: 88px 0; position: relative; }
.section-light { background: var(--white); }
.section-paper { background: var(--paper); }
.section-dark { background: linear-gradient(180deg, var(--pi-ink) 0%, var(--pi-ink-3) 100%); color: var(--white); border-top: 4px solid var(--pi-blue); }
@media (max-width: 700px) { .section { padding: 62px 0; } }

/* ── Servicios ───────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  position: relative; background: var(--white); border: 1px solid var(--steel-100);
  border-radius: var(--radius-lg); padding: 30px 26px; display: flex; flex-direction: column;
  transition: all .3s ease; overflow: hidden;
}
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 0; height: 4px; background: var(--pi-blue); transition: width .35s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { width: 100%; }
.service-icon { width: 58px; height: 58px; background: var(--pi-blue-soft); color: var(--pi-blue); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; transition: all .3s ease; }
.service-card:hover .service-icon { background: var(--pi-blue); color: var(--white); }
.service-card h3 { font-family: var(--font-display); font-size: 25px; font-weight: 700; text-transform: uppercase; margin: 0 0 10px; color: var(--pi-ink); }
.service-card p { font-size: 14.5px; color: var(--steel-500); margin: 0 0 18px; line-height: 1.6; flex: 1; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.service-tag { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; background: var(--steel-50); color: var(--steel-500); border-radius: 30px; border: 1px solid var(--steel-100); }
.service-link { margin-top: auto; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--pi-blue); display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; }
.service-link i { transition: transform .25s ease; font-size: 9px; }
.service-link:hover i { transform: translateX(4px); }
@media (max-width: 1050px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* ── Tarjetas de marca con foto de motor ─────────────────── */
.brand-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.brand-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--pi-ink); aspect-ratio: 4/3; display: block; transition: transform .3s ease, box-shadow .3s ease;
}
.brand-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; transition: transform .5s ease, opacity .3s ease; }
.brand-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,18,38,.94) 8%, rgba(8,18,38,.25) 60%, rgba(8,18,38,.45) 100%); }
.brand-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.brand-card:hover img { transform: scale(1.06); opacity: .78; }
.brand-card-body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 20px 22px; }
.brand-card-body strong { display: block; font-family: var(--font-display); font-size: 27px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--white); line-height: 1; margin-bottom: 6px; }
.brand-card-body span { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--pi-sky); line-height: 1.5; }
@media (max-width: 980px) { .brand-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .brand-cards { grid-template-columns: 1fr; } }

/* ── Quiénes somos ───────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-grid > * { min-width: 0; }
.about-content p { color: var(--steel-500); line-height: 1.75; margin: 0 0 16px; }
.about-content .lead { font-size: 18px; font-weight: 500; color: var(--pi-ink); }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; padding-top: 32px; border-top: 2px dashed var(--steel-200); }
.about-stat strong { display: block; font-family: var(--font-display); font-size: 46px; font-weight: 700; line-height: 1; color: var(--pi-blue); margin-bottom: 4px; }
.about-stat span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--steel-500); }
.about-visual { position: relative; }
.about-visual img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-badge { position: absolute; bottom: 18px; right: 18px; background: var(--pi-blue); color: var(--white); padding: 12px 18px; border-radius: 8px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; box-shadow: var(--shadow); }
.about-badge strong { display: block; font-family: var(--font-display); font-size: 26px; line-height: 1; margin-bottom: 2px; }
@media (max-width: 950px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 520px) { .about-stat strong { font-size: 34px; } .about-stat span { font-size: 9px; } }

/* ── Proceso ─────────────────────────────────────────────── */
.process-track { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; margin-top: 50px; }
.process-track::before { content: ''; position: absolute; top: 34px; left: 0; right: 0; height: 2px; background-image: repeating-linear-gradient(90deg, var(--pi-blue) 0 12px, transparent 12px 22px); }
.process-step { text-align: center; padding: 0 16px; position: relative; }
.process-step-num { width: 68px; height: 68px; background: var(--white); color: var(--pi-blue); border: 3px solid var(--pi-blue); border-radius: 50%; font-family: var(--font-display); font-size: 28px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; position: relative; z-index: 2; transition: all .3s ease; }
.process-step:hover .process-step-num { background: var(--pi-blue); color: var(--white); }
.process-step h4 { font-family: var(--font-display); font-size: 20px; font-weight: 700; text-transform: uppercase; margin: 0 0 6px; }
.process-step p { font-size: 13px; color: var(--steel-500); margin: 0; line-height: 1.6; }
@media (max-width: 820px) { .process-track { grid-template-columns: repeat(2, 1fr); gap: 36px 0; } .process-track::before { display: none; } }
@media (max-width: 460px) { .process-track { grid-template-columns: 1fr; } }

/* ── Trabajos ────────────────────────────────────────────── */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card { background: var(--white); border: 1px solid var(--steel-100); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: all .3s ease; }
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.case-photo { aspect-ratio: 16/10; overflow: hidden; background: var(--steel-100); }
.case-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.case-card:hover .case-photo img { transform: scale(1.05); }
.case-body { padding: 26px 24px; display: flex; flex-direction: column; flex: 1; }
.case-tag { align-self: flex-start; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--pi-blue); background: var(--pi-blue-soft); padding: 4px 10px; border-radius: 30px; margin-bottom: 14px; }
.case-card h4 { font-family: var(--font-display); font-size: 24px; font-weight: 700; text-transform: uppercase; margin: 0 0 10px; }
.case-card p { font-size: 14px; color: var(--steel-500); line-height: 1.6; margin: 0; }
@media (max-width: 950px) { .cases-grid { grid-template-columns: 1fr; } }

/* ── Banda CTA ───────────────────────────────────────────── */
.cta-band { background: linear-gradient(135deg, var(--pi-blue) 0%, var(--pi-blue-deep) 100%); padding: 62px 0; color: var(--white); position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(85,200,244,.35), transparent 70%); top: -150px; right: -100px; filter: blur(50px); }
.cta-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.cta-band h3 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); font-weight: 700; text-transform: uppercase; margin: 0 0 6px; line-height: 1; }
.cta-band p { margin: 0; color: rgba(255,255,255,.88); max-width: 560px; font-size: 15px; line-height: 1.6; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 540px) { .cta-actions { width: 100%; } .cta-actions .btn { width: 100%; } }

/* ── Preguntas frecuentes ────────────────────────────────── */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--steel-100); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; transition: all .25s; }
.faq-item.open { border-color: var(--pi-blue); box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; padding: 19px 22px; text-align: left; font-size: 16px; font-weight: 600; color: var(--pi-ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q::after { content: '+'; font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--pi-blue); line-height: 1; }
.faq-item.open .faq-q::after { content: '–'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner { padding: 0 22px 20px; color: var(--steel-500); line-height: 1.75; }

/* ── Nota editorial ──────────────────────────────────────── */
.editorial-note {
  display: flex; gap: 14px; align-items: flex-start; max-width: 820px; margin: 0 auto 36px;
  padding: 16px 20px; background: var(--pi-blue-soft); border-left: 4px solid var(--pi-blue);
  border-radius: 4px; font-size: 14px; line-height: 1.6; color: var(--steel-600);
}
.editorial-note i { color: var(--pi-blue); margin-top: 3px; }
.editorial-note strong { color: var(--pi-ink); }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--pi-ink-3); color: rgba(255,255,255,.7); padding: 64px 0 0; position: relative; overflow: hidden; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--pi-blue) 0 50%, var(--pi-sky) 50% 100%); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 48px; margin-bottom: 48px; }
/* El logotipo del footer va en blanco sobre el azul, sin caja detrás. */
.footer .brand { margin-bottom: 20px; }
.footer .brand-logo { height: 54px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 330px; margin: 0 0 22px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.07); color: rgba(255,255,255,.75); display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all .25s; }
.footer-social a:hover { background: var(--pi-blue); color: var(--white); transform: translateY(-3px); }
.footer-col h5 { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: var(--pi-sky); margin: 0 0 20px; padding-bottom: 13px; border-bottom: 1px solid rgba(255,255,255,.10); }
.footer-col ul li { margin-bottom: 10px; font-size: 14px; }
.footer-col ul li a { color: rgba(255,255,255,.65); transition: color .2s, padding-left .2s; display: inline-block; }
.footer-col ul li a:hover { color: var(--pi-sky); padding-left: 4px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 13px; font-size: 13.5px; line-height: 1.55; }
.footer-contact i { color: var(--pi-blue); margin-top: 4px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,.85); }
.footer-contact a:hover { color: var(--pi-sky); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.1px; text-transform: uppercase; color: rgba(255,255,255,.4); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ── Flotantes ───────────────────────────────────────────── */
.wa-float { position: fixed; bottom: 24px; right: 24px; width: 58px; height: 58px; background: #25D366; color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 27px; box-shadow: 0 10px 30px rgba(37,211,102,.4); z-index: 90; transition: transform .25s; }
.wa-float:hover { transform: scale(1.08); }
.wa-pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: wa-ring 2s infinite; pointer-events: none; }
@keyframes wa-ring { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.back-top { position: fixed; bottom: 24px; left: 24px; width: 46px; height: 46px; background: var(--white); color: var(--pi-ink); border: 2px solid var(--pi-ink); border-radius: 50%; font-size: 15px; box-shadow: var(--shadow-sm); opacity: 0; pointer-events: none; transform: translateY(20px); transition: all .25s; z-index: 89; }
.back-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover { background: var(--pi-blue); color: var(--white); border-color: var(--pi-blue); }

/* ── Reveal (mejora progresiva) ──────────────────────────── */
.reveal-ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal-ready .reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ── Encabezado de subpágina ─────────────────────────────── */
.page-hero { position: relative; background: linear-gradient(180deg, var(--pi-ink-2) 0%, var(--pi-ink) 100%); color: var(--white); padding: 72px 0 60px; overflow: hidden; border-bottom: 4px solid var(--pi-blue); }
.page-hero::after { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(21,155,213,.32), transparent 70%); top: -100px; right: -90px; filter: blur(50px); pointer-events: none; }
.page-hero-inner { position: relative; z-index: 2; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.breadcrumbs { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 22px; }
.breadcrumbs a { color: var(--pi-sky); }
.breadcrumbs i { font-size: 8px; color: rgba(255,255,255,.4); }
.breadcrumbs span { color: var(--white); }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(40px, 6vw, 74px); font-weight: 700; line-height: .97; text-transform: uppercase; margin: 0 0 14px; color: var(--white); }
.page-hero h1 .accent { color: var(--pi-sky); }
.page-hero p.lead { max-width: 680px; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.80); margin: 0; }

/* ── Bloques de servicio (página servicios) ──────────────── */
.service-block { padding: 76px 0; }
.service-block.alt { background: var(--paper); }
.service-block-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.service-block-grid.flipped .service-block-media { order: -1; }
.service-block-num { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--pi-blue); margin-bottom: 12px; display: block; }
.service-block h2 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); font-weight: 700; text-transform: uppercase; margin: 0 0 16px; }
.service-block p { color: var(--steel-500); line-height: 1.75; margin: 0 0 16px; }
.service-block-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin: 0; }
.service-block-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.check-list li { position: relative; padding: 7px 0 7px 26px; font-size: 14.5px; color: var(--steel-600); }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--pi-blue); font-weight: 700; }
@media (max-width: 900px) {
  .service-block { padding: 52px 0; }
  .service-block-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-block-grid.flipped .service-block-media { order: 0; }
}

/* ── Motores y precios ───────────────────────────────────── */
.engine-brands { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; }
.engine-brand {
  background: var(--white); border: 1px solid var(--steel-100); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s ease;
}
.engine-brand:hover { box-shadow: var(--shadow); }
.engine-photo { position: relative; aspect-ratio: 21/8; overflow: hidden; background: var(--pi-ink); margin: 0; }
.engine-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.engine-photo figcaption {
  position: absolute; inset: auto 0 0 0; padding: 18px 22px;
  background: linear-gradient(0deg, rgba(8,18,38,.95), transparent);
  font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: var(--white); line-height: 1;
}
.engine-rows { padding: 8px 22px 22px; }
.engine-rows li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--steel-200); }
.engine-rows li:last-child { border-bottom: none; }
.engine-rows .engine-name { flex: 1; min-width: 0; }
.engine-rows .engine-name strong { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 700; text-transform: uppercase; color: var(--pi-ink); line-height: 1.1; }
.engine-rows .engine-name span { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--steel-400); margin-top: 3px; }
.engine-price { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--pi-blue); white-space: nowrap; }
.engine-price.set { font-family: var(--font-display); font-size: 22px; letter-spacing: 0; color: var(--pi-ink); }
.engine-cta { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--pi-ink); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 15px; transition: background .2s; }
.engine-cta:hover { background: var(--pi-blue); }
@media (max-width: 900px) { .engine-brands { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .engine-rows .engine-name strong { font-size: 19px; } .engine-price { font-size: 9.5px; } }

/* ── Contacto ────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 36px; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-info-card { background: linear-gradient(160deg, var(--pi-ink) 0%, var(--pi-ink-3) 100%); color: var(--white); padding: 42px 36px; border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.contact-info-card::before { content: ''; position: absolute; top: 0; right: 0; width: 240px; height: 240px; background: radial-gradient(circle, rgba(21,155,213,.35), transparent 70%); border-radius: 50%; filter: blur(50px); pointer-events: none; }
.contact-info-card > * { position: relative; z-index: 2; }
.contact-info-card h3 { font-family: var(--font-display); font-size: 36px; font-weight: 700; text-transform: uppercase; margin: 0 0 12px; color: var(--white); line-height: 1; }
.contact-info-card > p { color: rgba(255,255,255,.75); line-height: 1.7; margin-bottom: 28px; font-size: 15px; }
.contact-info-list { margin: 0 0 28px; display: flex; flex-direction: column; gap: 18px; }
.contact-info-list li { display: flex; gap: 15px; align-items: flex-start; }
.contact-info-list li > div:last-child { flex: 1; min-width: 0; }
.contact-info-icon { width: 42px; height: 42px; min-width: 42px; background: var(--pi-blue); color: var(--white); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex: 0 0 42px; }
.contact-info-list strong { display: block; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--pi-sky); margin-bottom: 3px; }
.contact-info-list span { display: block; color: rgba(255,255,255,.85); font-size: 14.5px; line-height: 1.55; }
.contact-info-list a { color: rgba(255,255,255,.85); }
.contact-info-list a:hover { color: var(--pi-sky); }
.contact-social { display: flex; gap: 10px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.10); }
.contact-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.07); color: var(--white); display: flex; align-items: center; justify-content: center; transition: all .2s; }
.contact-social a:hover { background: var(--pi-blue); transform: translateY(-3px); }

.contact-form-card { background: var(--white); padding: 40px 36px; border-radius: var(--radius-lg); border: 1px solid var(--steel-100); }
.contact-form-card h3 { font-family: var(--font-display); font-size: 32px; font-weight: 700; text-transform: uppercase; margin: 0 0 22px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row > * { min-width: 0; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--steel-500); }
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: var(--font-body); font-size: 15px; padding: 13px 15px;
  width: 100%; min-width: 0; max-width: 100%;
  border: 2px solid var(--steel-100); border-radius: var(--radius);
  background: var(--paper); color: var(--pi-ink); transition: all .2s; letter-spacing: 0; text-transform: none;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--pi-blue); background: var(--white); }
.contact-form textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 11px; color: var(--steel-400); text-align: center; margin: 0; font-family: var(--font-mono); }
.form-status { margin: 0; font-family: var(--font-mono); font-size: 12px; color: var(--pi-blue); min-height: 18px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } .contact-form-card { padding: 30px 22px; } .contact-info-card { padding: 32px 24px; } }
