/* Estilos compartidos por las landings de productos (products/*.html).
   La cabecera, el pie y los botones replican los de index.html, que
   lleva su CSS embebido; si cambian alli, actualizar tambien aqui. */
:root {
  --bg: #040b12;
  --surface: #08141f;
  --surface-2: #0a1824;
  --line: #163448;
  --text: #f5f7fb;
  --muted: #c4ccd5;
  --subtle: #8394a6;
  --cyan: #09c6ff;
  --radius: 15px;
  --container: 1140px;
  --shadow: 0 18px 55px rgba(0,0,0,.28);
  /* Cada landing redefine el acento del producto en <body style>. */
  --brand: var(--cyan);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 4%, rgba(0, 127, 255, .12), transparent 26%),
    linear-gradient(180deg, #040a11 0%, #04101a 58%, #06121d 100%);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1,h2,h3,p { margin-top: 0; }
.container { width: min(var(--container), calc(100% - 56px)); margin-inline: auto; }

/* ---------- Cabecera ---------- */
.header { height: 102px; display: flex; align-items: center; position: relative; z-index: 10; }
.nav { display: grid; grid-template-columns: 250px 1fr auto; align-items: center; gap: 24px; }
.brand img { width: 206px; height: auto; }
.navlinks { display: flex; justify-content: center; gap: 40px; font-size: 13px; }
.navlinks a { color: #f4f7fb; opacity: .92; position: relative; }
.navlinks a.active { color: var(--cyan); }
.nav-dd { position: relative; }
.nav-dd > a { display: inline-flex; align-items: center; gap: 6px; }
.nav-dd > a::after {
  content: ""; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); opacity: .75;
}
.dd-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translate(-50%, 6px);
  min-width: 250px; padding: 18px 8px 8px;
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 20;
}
.dd-menu::before {
  content: ""; position: absolute; inset: 10px 0 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); z-index: -1;
}
.nav-dd:hover .dd-menu, .nav-dd:focus-within .dd-menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.navlinks .dd-menu a {
  display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center;
  padding: 9px 10px; border-radius: 9px; opacity: 1;
}
.navlinks .dd-menu a:hover, .navlinks .dd-menu a:focus-visible { background: var(--surface-2); }
.navlinks .dd-menu a[aria-current="page"] strong { color: var(--cyan); }
.dd-menu img { width: 34px; height: 34px; border-radius: 9px; object-fit: contain; background: #050e17; }
.dd-menu strong { display: block; font-size: 13px; font-weight: 600; }
.dd-menu small { display: block; font-size: 11px; color: var(--subtle); margin-top: 1px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 50px; padding: 0 25px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  border: 1px solid rgba(69,190,255,.68); color: white;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(90deg, #08baf9 0%, #087dff 100%);
  border-color: transparent; box-shadow: 0 8px 28px rgba(0,128,255,.2);
}
.btn-outline { background: rgba(5,15,24,.45); }
.arrow { font-size: 21px; line-height: 1; }
.btn:focus-visible, .navlinks a:focus-visible, footer a:focus-visible, .back:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px;
}

/* ---------- Hero del producto ---------- */
.back { display: inline-block; color: var(--subtle); font-size: 12px; margin-bottom: 18px; }
.back:hover { color: var(--cyan); }
.p-hero {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center;
  padding: 18px 0 56px;
}
.p-id { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.p-id img {
  width: 58px; height: 58px; border-radius: 15px; object-fit: contain;
  background: #050e17; border: 1px solid var(--line); padding: 6px;
}
.p-id span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.p-hero h1 {
  font-size: clamp(40px, 4.6vw, 58px); letter-spacing: -.045em; line-height: 1.02;
  margin-bottom: 18px; font-weight: 800;
}
.accent { color: var(--brand); }
.p-hero .lead { font-size: 17px; color: #e3e9ef; max-width: 520px; margin-bottom: 26px; }
.p-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.p-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 0; list-style: none; }
.p-chips li {
  font-size: 11.5px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px; background: rgba(8,20,31,.6);
}
.p-hero-art img { border-radius: var(--radius); box-shadow: var(--shadow); }
.p-hero-art.framed img { border: 1px solid var(--line); }

/* ---------- Secciones ---------- */
.p-section { padding: 52px 0; border-top: 1px solid var(--line); }
.section-kicker {
  color: var(--brand); font-size: 12px; font-weight: 600;
  letter-spacing: .19em; text-transform: uppercase; margin-bottom: 12px;
}
.p-section h2 { font-size: 34px; letter-spacing: -.035em; line-height: 1.1; margin-bottom: 12px; }
.p-section .intro { color: #d4dde5; font-size: 15px; max-width: 640px; margin-bottom: 30px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature {
  border: 1px solid #153e55; border-radius: 10px; padding: 20px;
  background: linear-gradient(180deg, rgba(7,21,32,.94), rgba(4,14,23,.94));
}
.feature svg { width: 26px; height: 26px; stroke: var(--brand); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.feature h3 { font-size: 15px; margin-bottom: 6px; }
.feature p { font-size: 13px; color: #cfd8e1; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.split-card {
  border: 1px solid #153e55; border-radius: var(--radius); padding: 26px;
  background: linear-gradient(180deg, rgba(7,21,32,.94), rgba(4,14,23,.94));
}
.split-card .label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.split-card h3 { font-size: 20px; margin: 8px 0 10px; letter-spacing: -.02em; }
.split-card p { font-size: 13.5px; color: #d4dde5; }
.split-card ul { margin: 0; padding-left: 18px; font-size: 13px; color: #cfd8e1; }
.split-card li { margin-bottom: 6px; }

/* Galeria de capturas: moviles en fila, escritorio en cuadricula. */
.phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.phones figure, .screens figure { margin: 0; }
.phones img {
  border-radius: 22px; border: 1px solid var(--line);
  box-shadow: var(--shadow); background: #fff;
}
figcaption { font-size: 12px; color: var(--subtle); margin-top: 10px; text-align: center; }
.screens { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.screens .wide { grid-column: 1 / -1; }
.browser {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
}
.browser::before {
  content: ""; display: block; height: 26px;
  background:
    radial-gradient(circle at 14px 13px, #3a4a5a 4px, transparent 4.5px),
    radial-gradient(circle at 28px 13px, #3a4a5a 4px, transparent 4.5px),
    radial-gradient(circle at 42px 13px, #3a4a5a 4px, transparent 4.5px),
    #0b1926;
  border-bottom: 1px solid var(--line);
}
.browser img { width: 100%; }
.sub-h { font-size: 15px; margin: 34px 0 16px; color: var(--muted); font-weight: 600; }
.sub-h:first-of-type { margin-top: 0; }

/* Banda de cierre */
.p-cta {
  margin: 10px 0 56px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  background: radial-gradient(circle at 8% 50%, rgba(0,122,217,.16), transparent 40%),
              linear-gradient(180deg, rgba(7,21,32,.94), rgba(4,14,23,.94));
}
.p-cta h2 { font-size: 26px; letter-spacing: -.03em; margin: 0 0 6px; }
.p-cta p { margin: 0; color: #d4dde5; font-size: 14px; }

/* ---------- Pie ---------- */
footer { padding: 30px 0 18px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .9fr 1.15fr; gap: 46px; align-items: start; padding-bottom: 25px; }
.footer-logo { width: 215px; }
footer h4 { font-size: 12px; margin: 2px 0 11px; }
footer a, footer p { font-size: 11px; color: #d9e0e7; margin: 0 0 7px; }
.footer-links { display: flex; flex-direction: column; }
.contact-row { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: center; margin: 0 0 7px; }
.contact-row svg { width: 15px; height: 15px; stroke: var(--cyan); fill: none; stroke-width: 1.6; }
.footer-tagline { color: #aebac5; margin-top: 14px; }
.footer-bottom { border-top: 1px solid #173142; padding-top: 15px; color: #8394a6; font-size: 10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
  .btn:hover { transform: none; }
}
@media (max-width: 960px) {
  .nav { grid-template-columns: 210px 1fr auto; }
  .navlinks { gap: 20px; }
  .p-hero { grid-template-columns: 1fr; gap: 32px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .phones { grid-template-columns: repeat(2, 1fr); max-width: 560px; margin-inline: auto; }
}
@media (max-width: 720px) {
  .container { width: min(100% - 32px, var(--container)); }
  .header { height: auto; padding: 16px 0; }
  .nav { grid-template-columns: 1fr auto; }
  .navlinks { display: none; }
  .brand img { width: 180px; }
  .p-hero .lead { font-size: 15px; }
  .features, .split, .screens { grid-template-columns: 1fr; }
  .p-section h2 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Quien crea el producto (HSI y The Living Portal, 2026-11-13). */
.built-by .intro a { color: var(--cyan); }
.built-by .intro a:hover { text-decoration: underline; }
.built-by .intro + .intro { margin-top: -18px; }
