/* ==========================================================================
   Prolink Security — estilos principales
   ========================================================================== */

:root {
  --navy-950: #060b16;
  --navy-900: #0a1220;
  --navy-800: #111c30;
  --navy-700: #1a2842;
  --line-dark: rgba(148, 178, 220, 0.14);

  --accent: #22aad8;
  --accent-strong: #3cbbe6;
  --accent-soft: rgba(29, 158, 201, 0.12);
  --green: #25d366;

  --ink: #e9f0fb;
  --ink-2: #a6b4cc;
  --ink-3: #7d8aa3;
  --paper: #0a1322;
  --paper-2: #070d19;
  --line: rgba(148, 178, 220, 0.14);
  --surface: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));

  --on-dark: #e9f0fb;
  --on-dark-2: #a6b4cc;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(29,158,201,.35);

  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --header-h: 78px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: inherit;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--accent); color: var(--navy-950); padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  text-decoration: none !important; white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--navy-950); box-shadow: 0 8px 24px rgba(29,158,201,.35); }
.btn-primary:hover { background: #3cbbe6; }
.btn-whatsapp { background: var(--green); color: #05230f; box-shadow: 0 8px 24px rgba(37,211,102,.3); }
.btn-whatsapp:hover { background: #3ee07b; }
.btn-ghost { background: transparent; color: var(--on-dark); border-color: rgba(233,240,251,.3); }
.btn-ghost:hover { border-color: var(--on-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 11, 22, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; }
.logo img { width: 48px; height: 48px; filter: drop-shadow(0 0 10px rgba(29,158,201,.45)); }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: .04em; line-height: 1; }
.logo-text span { display: block; font-size: .66rem; font-weight: 500; letter-spacing: .32em; color: var(--accent); margin-top: 4px; }

.main-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; align-items: center; }
.main-nav a {
  display: block; color: var(--on-dark-2); font-weight: 500; font-size: .95rem;
  padding: 8px 14px; border-radius: 999px; text-decoration: none;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.06); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.header-phone { color: var(--on-dark); font-weight: 600; font-size: .92rem; display: flex; gap: 8px; align-items: center; }
.header-phone svg { width: 18px; height: 18px; color: var(--accent); }

.nav-toggle {
  display: none; background: none; border: 0; color: #fff; cursor: pointer;
  width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 1020px) {
  .header-phone { display: none; }
}
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--navy-950);
    border-bottom: 1px solid var(--line-dark); padding: 12px 20px 24px;
    transform: translateY(-120%); transition: transform .25s ease; visibility: hidden;
  }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .header-cta .btn-quote { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(29,158,201,.22), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(29,158,201,.12), transparent 60%),
    var(--navy-950);
  padding: 88px 0 96px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(148,178,220,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,178,220,.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
}
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: 1.15rem; color: var(--on-dark-2); max-width: 580px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--on-dark-2); font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* panel visual del hero */
.hero-panel {
  position: relative; border-radius: var(--radius-lg); padding: 22px;
  background: linear-gradient(160deg, rgba(26,40,66,.9), rgba(10,18,32,.9));
  border: 1px solid var(--line-dark); box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.panel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: .8rem; color: var(--on-dark-2); }
.live { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; letter-spacing: .08em; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff4d5e; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.cams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cam {
  position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden;
  background:
    linear-gradient(135deg, rgba(29,158,201,.10), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 2px, transparent 2px 4px),
    var(--navy-800);
  border: 1px solid var(--line-dark);
}
.cam svg { position: absolute; inset: 0; margin: auto; width: 42%; height: 42%; color: rgba(166,180,204,.35); }
.cam span { position: absolute; left: 8px; top: 6px; font-size: .68rem; color: var(--on-dark-2); letter-spacing: .06em; }
.cam.alert { border-color: rgba(29,158,201,.6); }
.cam.alert::after {
  content: ""; position: absolute; left: 30%; top: 26%; width: 34%; height: 50%;
  border: 2px solid var(--accent); border-radius: 4px;
}
.panel-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.panel-stats div { background: rgba(255,255,255,.03); border: 1px solid var(--line-dark); border-radius: 10px; padding: 10px 12px; }
.panel-stats b { display: block; color: #fff; font-family: var(--font-head); font-size: 1rem; }
.panel-stats small { color: var(--on-dark-2); font-size: .72rem; }
.ok { color: #3ee07b !important; }

@media (max-width: 960px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Encabezado de página interna ---------- */
.page-hero {
  color: var(--on-dark); padding: 72px 0 64px; position: relative; overflow: hidden;
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(29,158,201,.2), transparent 60%),
    var(--navy-950);
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); max-width: 820px; }
.page-hero p { color: var(--on-dark-2); font-size: 1.12rem; max-width: 680px; }
.page-hero .hero-actions { margin: 28px 0 0; }
.breadcrumb { font-size: .85rem; color: var(--on-dark-2); margin-bottom: 18px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumb a { color: var(--on-dark-2); }
.breadcrumb a:hover { color: #fff; }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-2); }
.section-dark { color: var(--on-dark); background: radial-gradient(800px 400px at 0% 0%, rgba(29,158,201,.14), transparent 60%), radial-gradient(700px 400px at 100% 100%, rgba(29,158,201,.10), transparent 60%), var(--navy-900); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
.section-dark .section-head p { color: var(--on-dark-2); }
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 12px; display: block; }
.section-dark .kicker { color: var(--accent); }

@media (max-width: 720px) { .section { padding: 68px 0; } }

/* ---------- Tarjetas de servicio ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  color: var(--ink); text-decoration: none !important;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(29,158,201,.5); }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-strong); margin-bottom: 20px;
}
.card-icon svg { width: 28px; height: 28px; }
.card p { color: var(--ink-2); font-size: .98rem; }
.card ul { padding: 0; margin: 0 0 20px; list-style: none; font-size: .94rem; color: var(--ink-2); }
.card ul li { padding-left: 22px; position: relative; margin-bottom: 6px; }
.card ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.card-link { margin-top: auto; font-weight: 600; font-family: var(--font-head); color: var(--accent-strong); display: inline-flex; gap: 6px; align-items: center; font-size: .95rem; }
.card-link svg { width: 18px; height: 18px; transition: transform .2s; }
a.card:hover .card-link svg { transform: translateX(4px); }
.card-tag { position: absolute; top: 22px; right: 22px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Franja de sectores ---------- */
.sectors { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.sector {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 500; color: var(--ink);
}
.sector svg { width: 20px; height: 20px; color: var(--accent-strong); }

/* ---------- Beneficios / por qué ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { display: flex; gap: 18px; padding: 26px; border-radius: var(--radius); background: rgba(255,255,255,.03); border: 1px solid var(--line-dark); }
.feature .card-icon { flex: none; margin: 0; background: rgba(29,158,201,.12); color: var(--accent); }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--on-dark-2); margin: 0; font-size: .97rem; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; color: var(--accent);
  display: block; margin-bottom: 14px; line-height: 1;
}
.step p { color: var(--ink-2); font-size: .95rem; margin: 0; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Bloque dividido (texto + lista) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split-media {
  border-radius: var(--radius-lg); padding: 30px; background: var(--navy-900); color: var(--on-dark);
  border: 1px solid var(--line-dark); position: relative; overflow: hidden;
}
.split-media h3 { color: #fff; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.checklist { list-style: none; padding: 0; margin: 0 0 24px; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.checklist li svg { position: absolute; left: 0; top: 3px; width: 22px; height: 22px; color: var(--accent-strong); }
.split-media .checklist li svg { color: var(--accent); }
.checklist strong { display: block; font-family: var(--font-head); }
.checklist span { color: var(--ink-2); font-size: .96rem; }
.split-media .checklist span { color: var(--on-dark-2); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--accent-strong); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 14px; margin: 0; }

/* ---------- CTA final ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 56px;
  color: var(--on-dark);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(29,158,201,.35), transparent 60%),
    var(--navy-900);
  display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: var(--on-dark-2); margin: 0; font-size: 1.08rem; }
.cta-band .hero-actions { margin: 0; flex-direction: column; }
@media (max-width: 860px) {
  .cta-band { grid-template-columns: 1fr; padding: 40px 28px; }
  .cta-band .hero-actions { flex-direction: row; }
}

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card { background: var(--navy-800); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.6rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 26px 20px; } }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field label .req { color: var(--accent-strong); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper-2);
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--navy-900); }
.form-note { font-size: .85rem; color: var(--ink-3); margin: 14px 0 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.form-error { color: #ff7a86; font-size: .9rem; margin-top: 12px; display: none; }
.form-error.show { display: block; }

.info-card { background: var(--navy-900); color: var(--on-dark); border-radius: var(--radius-lg); padding: 32px; }
.info-card h2 { color: #fff; font-size: 1.4rem; }
.info-list { list-style: none; padding: 0; margin: 0 0 24px; }
.info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.info-list li:last-child { border-bottom: 0; }
.info-list svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 3px; }
.info-list small { display: block; color: var(--on-dark-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.info-list a, .info-list span { color: #fff; font-weight: 500; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark); aspect-ratio: 4 / 3; background: var(--navy-800); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-2); padding: 72px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.site-footer h3 { color: #fff; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--on-dark-2); }
.site-footer a:hover { color: #fff; }
.footer-brand p { margin: 16px 0 20px; max-width: 320px; }
.social { display: flex; gap: 10px; }
.social a {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--line-dark); color: var(--on-dark);
}
.social a:hover { border-color: var(--accent); color: var(--accent); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #fff; box-shadow: 0 12px 30px rgba(37,211,102,.45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.lead { font-size: 1.12rem; color: var(--ink-2); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Logo completo en el footer */
.footer-logo { display: inline-block; }
.footer-logo img { width: 230px; height: auto; }

/* ==========================================================================
   Estilo oscuro tecnológico — fotos
   ========================================================================== */
.field select option { background: var(--navy-900); color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.section-alt { border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }

/* Foto de portada */
.hero-media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 4.4;
  border: 1px solid rgba(29,158,201,.35);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 60px rgba(29,158,201,.18);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,11,22,.15) 0%, rgba(6,11,22,0) 35%, rgba(6,11,22,.85) 100%),
              linear-gradient(90deg, rgba(29,158,201,.18), transparent 50%);
}
.hero-media::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; top: 0; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(60,187,230,.9), transparent);
  box-shadow: 0 0 18px rgba(60,187,230,.8);
  animation: scan 5s linear infinite;
}
@keyframes scan { from { top: 0; } to { top: 100%; } }
.corner { position: absolute; width: 26px; height: 26px; z-index: 2; border-color: var(--accent); border-style: solid; }
.corner.tl { top: 14px; left: 14px; border-width: 2px 0 0 2px; }
.corner.tr { top: 14px; right: 14px; border-width: 2px 2px 0 0; }
.corner.bl { bottom: 14px; left: 14px; border-width: 0 0 2px 2px; }
.corner.br { bottom: 14px; right: 14px; border-width: 0 2px 2px 0; }
.hero-badge {
  position: absolute; top: 22px; left: 50px; z-index: 3; display: flex; gap: 12px; align-items: center;
  padding: 8px 14px; border-radius: 999px; font-size: .78rem; color: var(--on-dark-2);
  background: rgba(6,11,22,.7); border: 1px solid var(--line-dark); backdrop-filter: blur(8px);
}
.hero-chips { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 3; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero-chips div {
  background: rgba(6,11,22,.72); border: 1px solid var(--line-dark); border-radius: 12px; padding: 10px 12px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-chips b { display: block; color: #fff; font-family: var(--font-head); font-size: .98rem; }
.hero-chips small { color: var(--on-dark-2); font-size: .72rem; }
@media (max-width: 960px) { .hero-media { aspect-ratio: 16 / 11; } }
@media (max-width: 480px) { .hero-chips b { font-size: .85rem; } .hero-badge { left: 44px; } }

/* Foto en tarjetas de servicio */
.card-media { position: relative; margin: -30px -28px 0; aspect-ratio: 16 / 9; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; filter: saturate(.85); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,19,34,.05), rgba(10,19,34,.9)); }
a.card:hover .card-media img { transform: scale(1.06); }
.card-media + .card-icon { position: relative; z-index: 1; margin-top: -27px; background: var(--navy-900); border: 1px solid rgba(29,158,201,.45); }
.card-media ~ .card-tag, .card .card-tag { z-index: 2; }
.card-tag { background: rgba(6,11,22,.7); padding: 4px 10px; border-radius: 999px; color: var(--on-dark-2); }

/* Encabezado interno con foto */
.page-hero.has-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(90deg, rgba(6,11,22,.97) 0%, rgba(6,11,22,.88) 45%, rgba(6,11,22,.55) 100%), var(--bg);
  background-size: cover; background-position: center;
}
.page-hero .wrap { position: relative; }
.page-hero.has-bg { padding: 96px 0 88px; }

/* Tarjeta "Proyecto integral" centrada en la última fila */
.card-center { grid-column: 2 / 3; }
@media (max-width: 980px) {
  .card-center { grid-column: 1 / -1; justify-self: center; width: calc(50% - 11px); }
}
@media (max-width: 640px) {
  .card-center { width: 100%; }
}
