/* Fuentes self-hosted (subset latin, descargadas de Google Fonts) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/inter-500-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/inter-700-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/inter-800-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-500-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-700-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-500-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-700-latin.woff2') format('woff2');
}

/* FaroHub Domotica — sitio publico */

:root {
  --color-navy: #031541;
  --color-hero-grey: #061426;
  --color-navy-deep: #0b1220;
  --color-panel: #101a2b;
  --color-panel-soft: #13213a;
  --color-accent: #38bdf8;
  --color-accent-border: #7dd3fc;
  --color-on-accent: #071120;
  --color-blue: #2474c7;
  --color-bg: #ffffff;
  --color-bg-alt: #eef3f9;
  --color-card: #ffffff;
  --color-border: #d9e2ee;
  --color-text: #1d2a44;
  --color-text-muted: #5a6a82;
  --color-on-dark: #ffffff;
  --color-on-dark-muted: #b7c4d8;
  --color-beacon: #ffb454;
  --color-beacon-soft: #ffd9a0;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --container-max: 1160px;
  --radius: 8px;
  --shadow-card: 0 10px 28px rgba(3, 21, 65, 0.10);
  --shadow-strong: 0 22px 55px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header .container,
.hero .container {
  max-width: none;
  padding-left: clamp(1rem, 2.2vw, 2.25rem);
  padding-right: clamp(1rem, 2.2vw, 2.25rem);
}

.site-header {
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(39, 49, 65, 0.9);
  backdrop-filter: blur(16px);
  border-bottom-color: transparent;
  box-shadow: 0 14px 36px rgba(3, 12, 33, 0.2);
}

.site-header::after {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 2rem);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}

.nav-logo { height: 40px; width: auto; }

.nav-links {
  display: flex;
  gap: 1.7rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  position: relative;
  display: inline-block;
  color: var(--color-on-dark-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-bottom: 0.3rem;
  transition: color 0.15s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--color-on-dark); }

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
}

.language-switcher {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(34px, 1fr));
  align-items: center;
  gap: 0.2rem;
  padding: 0.22rem;
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: var(--radius);
  background: rgba(5, 11, 23, 0.32);
}

.language-option {
  min-width: 34px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--color-on-dark-muted);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.15s ease, color 0.15s ease;
}

.language-option:hover,
.language-option[aria-pressed="true"] {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.btn-compact {
  min-height: 38px;
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
}

.hero {
  min-height: 100svh;
  background:
    linear-gradient(90deg, rgba(5, 11, 23, 0.92) 0%, rgba(5, 11, 23, 0.72) 34%, rgba(5, 11, 23, 0.34) 64%, rgba(5, 11, 23, 0.42) 100%),
    linear-gradient(180deg, rgba(5, 11, 23, 0.16) 0%, rgba(5, 11, 23, 0.26) 70%, rgba(5, 11, 23, 0.76) 100%),
    url("../assets/img/hero-bg.webp?v=20260711-lossy") center / cover no-repeat,
    var(--color-hero-grey);
  color: var(--color-on-dark);
  display: flex;
  align-items: center;
  padding: 6.1rem 0 4rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 24% 48%, rgba(56, 189, 248, 0.16), transparent 34%);
}

.hero-energy-flow {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: screen;
  opacity: 0.48;
}

.energy-lines path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.energy-lines-pulse path {
  stroke: rgba(142, 231, 255, 0.62);
  stroke-width: 4.2;
  stroke-dasharray: 0.1 30;
  stroke-dashoffset: 0;
  filter: url("#energy-glow");
  animation: energy-dots 4.2s linear infinite;
}

.energy-lines-pulse .energy-warm {
  stroke: rgba(255, 210, 124, 0.58);
  animation-duration: 4.8s;
}

.energy-lines-pulse .energy-return {
  animation-direction: reverse;
}

.energy-nodes circle {
  fill: rgba(229, 246, 255, 0.56);
  filter: url("#energy-glow");
  transform-box: fill-box;
  transform-origin: center;
  animation: energy-node 2.6s ease-in-out infinite alternate;
}

.energy-nodes circle:nth-child(2n) {
  animation-delay: 0.65s;
}

.energy-nodes circle:nth-child(3n) {
  animation-delay: 1.1s;
}

@keyframes energy-dots {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -108; }
}

@keyframes energy-node {
  from {
    opacity: 0.35;
    transform: scale(0.82);
  }
  to {
    opacity: 0.95;
    transform: scale(1.12);
  }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.hero-copy {
  max-width: min(980px, 100%);
  margin-left: 0;
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-beacon-soft);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 1.15rem;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-beacon);
  box-shadow: 0 0 0 3px rgba(255, 180, 84, 0.22);
  animation: beacon-blink 2.4s ease-in-out infinite;
}

@keyframes beacon-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow::before,
  .energy-lines-pulse path,
  .energy-nodes circle { animation: none; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6.4vw, 5.35rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: 0;
  margin-bottom: 1.25rem;
  max-width: min(980px, 72vw);
}

.hero-title .accent { color: var(--color-accent); }

.hero-subtitle {
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  color: var(--color-on-dark-muted);
  max-width: 660px;
  margin-bottom: 1rem;
}

.hero-conversion {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.45rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
  border: 1px solid var(--color-accent-border);
  box-shadow: 0 12px 26px rgba(56, 189, 248, 0.24);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(56, 189, 248, 0.34);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-on-dark);
}

.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.phone {
  background: #050b17;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 28px;
  padding: 10px;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.phone img {
  border-radius: 20px;
  width: 100%;
  height: auto;
  background: #050b17;
}

.phone figcaption {
  color: var(--color-on-dark-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  padding: 0.7rem 0 0.25rem;
}

.phone-main {
  width: min(286px, 72vw);
  transform: translateX(76px) rotate(-2deg);
  position: relative;
  z-index: 3;
}

.status-card {
  width: min(430px, 100%);
  margin-bottom: 1.15rem;
  background: rgba(10, 19, 34, 0.68);
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-left: 2px solid var(--color-beacon);
  border-radius: var(--radius);
  padding: 0.78rem 0.9rem;
  box-shadow: 0 16px 34px rgba(3, 12, 33, 0.24);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
}

.status-card span,
.status-card small {
  display: block;
  color: var(--color-on-dark-muted);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-card strong {
  display: block;
  color: var(--color-on-dark);
  font-size: 0.86rem;
  font-weight: 700;
  margin: 0.18rem 0 0.22rem;
  line-height: 1.3;
}

.section {
  padding: 5rem 0;
  scroll-margin-top: 72px;
}

.section-alt { background: var(--color-bg-alt); }

.section-dark {
  background: var(--color-navy-deep);
  color: var(--color-on-dark);
}

/* .section h2 (más abajo) empata especificidad; el selector doble evita perder la cascada */
.section.section-dark h2 { color: var(--color-on-dark); }
.section-dark .section-kicker { color: var(--color-accent); }
.section-dark .section-lead { color: var(--color-on-dark-muted); }

.section-kicker {
  display: block;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 0.65rem;
}

.section h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.45rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.12;
  margin-bottom: 1rem;
  max-width: 760px;
}

.section-lead {
  color: var(--color-text-muted);
  max-width: 740px;
  margin-bottom: 2.4rem;
  font-size: 1.04rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 3rem;
  align-items: start;
}

.split-center { align-items: center; }

.feature-list {
  display: grid;
  gap: 1rem;
}

.feature-item {
  border-left: 4px solid var(--color-accent);
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-card);
}

.feature-item strong {
  color: var(--color-navy);
  font-size: 1.02rem;
}

.feature-item p {
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: start;
}

.showcase .phone {
  border-radius: 22px;
  padding: 8px;
  box-shadow: 0 18px 42px rgba(3, 21, 65, 0.18);
}

.showcase .phone img { border-radius: 16px; }

.showcase .phone figcaption {
  color: var(--color-text-muted);
  background: var(--color-card);
  margin: 0 -8px -8px;
  padding: 0.65rem 0.4rem 0.75rem;
  border-top: 1px solid rgba(217, 226, 238, 0.15);
}

.app-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(1.25rem, 3vw, 2.2rem);
  align-items: center;
  margin-top: 2rem;
}

.app-panel-main {
  width: min(360px, 100%);
  justify-self: center;
  border-radius: 26px;
  padding: 9px;
  box-shadow: 0 24px 60px rgba(3, 21, 65, 0.22);
}

.app-panel-main img { border-radius: 18px; }

.app-panel-main figcaption {
  padding-top: 0.85rem;
  color: var(--color-text-muted);
}

.app-panel-copy {
  display: grid;
  gap: 1.1rem;
  min-width: 0;
}

.app-panel-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.app-panel-points div {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-card);
}

.app-panel-points strong {
  display: block;
  color: var(--color-navy);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.app-panel-points p {
  color: var(--color-text-muted);
  font-size: 0.94rem;
}

.panel-shot {
  background: var(--color-panel);
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: var(--radius);
  padding: 0.7rem;
  box-shadow: 0 18px 42px rgba(3, 21, 65, 0.18);
}

.panel-shot img {
  width: 100%;
  border-radius: 6px;
}

.panel-shot figcaption {
  color: var(--color-on-dark-muted);
  padding-top: 0.65rem;
}

.app-module-strip {
  margin-top: 1.4rem;
}

.app-module-strip .phone {
  border-radius: 18px;
  padding: 7px;
}

.app-module-strip .phone img {
  border-radius: 12px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.software-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-height: 138px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow-card);
}

.software-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.software-card h3 {
  color: var(--color-navy);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.software-card p {
  color: var(--color-text-muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.glossary-term {
  display: inline;
  padding: 0 0.08em;
  border: 0;
  border-bottom: 1px dotted currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: help;
  text-decoration: none;
  text-underline-offset: 0.16em;
}

.glossary-term:hover,
.glossary-term[aria-expanded="true"] {
  color: var(--color-blue);
  border-bottom-style: solid;
}

.section-dark .glossary-term:hover,
.section-dark .glossary-term[aria-expanded="true"],
.hero .glossary-term:hover,
.hero .glossary-term[aria-expanded="true"] {
  color: var(--color-accent);
}

.glossary-bubble {
  position: absolute;
  z-index: 300;
  width: min(280px, calc(100vw - 24px));
  padding: 0.82rem 0.9rem;
  border: 1px solid rgba(125, 211, 252, 0.38);
  border-radius: var(--radius);
  background: rgba(5, 11, 23, 0.96);
  color: var(--color-on-dark);
  box-shadow: 0 18px 44px rgba(3, 12, 33, 0.32);
  backdrop-filter: blur(14px);
  line-height: 1.45;
}

.glossary-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 10px;
  height: 10px;
  background: rgba(5, 11, 23, 0.96);
  border: solid rgba(125, 211, 252, 0.38);
  transform: translateX(-50%) rotate(45deg);
}

.glossary-bubble[data-placement="top"]::after {
  bottom: -6px;
  border-width: 0 1px 1px 0;
}

.glossary-bubble[data-placement="bottom"]::after {
  top: -6px;
  border-width: 1px 0 0 1px;
}

.glossary-bubble strong {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.glossary-bubble span {
  display: block;
  color: var(--color-on-dark-muted);
  font-size: 0.88rem;
}

.grid { display: grid; gap: 1.2rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.45rem;
  box-shadow: var(--shadow-card);
}

a.card {
  display: block;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

a.card:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent);
  box-shadow: 0 15px 34px rgba(3, 21, 65, 0.15);
}

.card-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 0.8rem;
}

.card-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

a.card:hover .card-dot {
  background: var(--color-beacon);
  box-shadow: 0 0 0 3px rgba(255, 180, 84, 0.26), 0 0 14px rgba(255, 180, 84, 0.55);
}

.card h3,
.timeline-item h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.card p,
.timeline-item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.phone-single {
  width: min(330px, 100%);
  justify-self: center;
}

.chat {
  max-width: 600px;
  display: grid;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.chat-msg {
  padding: 0.72rem 1rem;
  border-radius: var(--radius);
  font-size: 0.96rem;
  max-width: 86%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
}

.chat-user {
  justify-self: end;
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.chat-bot {
  justify-self: start;
  background: var(--color-panel);
  border: 1px solid #243349;
  color: var(--color-on-dark);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.timeline-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}

.timeline-item span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: var(--color-navy);
  color: var(--color-accent);
  border-radius: 50%;
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.checklist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
  max-width: 940px;
}

.checklist li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--color-text-muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16);
}

.checklist strong { color: var(--color-navy); }

.faq {
  display: grid;
  gap: 0.85rem;
  max-width: 820px;
  margin-top: 2.25rem;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 3rem 1.05rem 1.25rem;
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-navy);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-accent);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "\2212";
  transform: translateY(-50%) rotate(180deg);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.faq-item > p {
  padding: 0 1.25rem 1.15rem;
  color: var(--color-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .faq-item summary::after { transition: none; }
}

.contact-band {
  background: linear-gradient(180deg, #ffffff, #f6f9fc);
}

.contact-form {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 540px;
  justify-self: end;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-card);
  color: var(--color-text);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--color-text-muted); }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-accent);
  border-color: transparent;
}

.contact-form button {
  border: 0;
  cursor: pointer;
  font-family: var(--font-sans);
}

.whatsapp-fab {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 200;
  background: #25d366;
  color: #ffffff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.26);
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
}

a:focus-visible,
button:focus-visible,
.glossary-term:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.site-footer {
  background: var(--color-navy);
  color: var(--color-on-dark-muted);
  padding: 3rem 0 2rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  color: var(--color-on-dark);
  margin-bottom: 0.7rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-grid ul { list-style: none; }
.footer-grid a { color: var(--color-on-dark-muted); text-decoration: none; }
.footer-grid a:hover { color: var(--color-accent); }

.footer-logo {
  height: 52px;
  width: auto;
  margin-bottom: 0.9rem;
}

.footer-legal {
  border-top: 1px solid rgba(159, 177, 201, 0.25);
  padding-top: 1.2rem;
  text-align: center;
}

.developer-credit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.85rem;
  color: var(--color-on-dark-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.developer-credit img {
  flex: 0 0 auto;
  border-radius: 7px;
}

@media (max-width: 980px) {
  .site-header .container {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .nav {
    gap: 0.8rem;
  }

  .nav-logo { height: 34px; }

  .nav-links {
    gap: clamp(0.65rem, 1.4vw, 1.05rem);
  }

  .nav-links a {
    font-size: clamp(0.58rem, 1.25vw, 0.68rem);
    letter-spacing: 0.06em;
  }

  .nav-cta { gap: 0.5rem; }

  .language-switcher {
    grid-template-columns: repeat(2, 30px);
    padding: 0.18rem;
  }

  .language-option {
    min-width: 30px;
    height: 28px;
    font-size: 0.66rem;
  }

  .btn-compact {
    min-height: 34px;
    padding: 0.48rem 0.78rem;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .hero {
    min-height: 100svh;
    padding: 5.8rem 0 3.3rem;
  }

  .hero-copy {
    max-width: min(480px, 58vw);
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(2.3rem, 5.4vw, 3.35rem);
  }

  .hero-subtitle {
    max-width: 450px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 2.3rem;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(5, 11, 23, 0.72), transparent 72%);
  }

  .app-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .app-panel-main { width: min(330px, 100%); }
  .showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .software-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-form { justify-self: start; }
}

@media (max-width: 900px) {
  .nav {
    justify-content: space-between;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 5.4rem;
  }
}

@media (max-width: 680px) {
  .nav {
    flex-direction: row;
    gap: 0.55rem;
    align-items: center;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .nav-brand { justify-content: flex-start; }
  .nav-logo { height: 30px; }

  .nav-links {
    display: none;
  }

  .nav-cta {
    width: auto;
    justify-content: flex-end;
    gap: 0.4rem;
  }
  .language-switcher { flex: 0 0 auto; }
  .nav-cta .btn {
    flex: 0 1 auto;
    width: auto;
    min-height: 34px;
    padding: 0.5rem 0.7rem;
    font-size: 0.72rem;
  }
  .hero {
    min-height: auto;
    padding: 5.9rem 0 2.6rem;
  }
  .hero-copy {
    max-width: min(100%, 340px);
    width: 100%;
  }
  .hero-title {
    max-width: 100%;
    font-size: clamp(1.85rem, 7.8vw, 2.25rem);
    overflow-wrap: anywhere;
  }
  .hero-title .accent {
    display: inline-block;
    max-width: 13ch;
  }

  .hero-subtitle {
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
    overflow-wrap: anywhere;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 260px);
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 42px;
    padding: 0.66rem 0.9rem;
    font-size: 0.92rem;
  }

  .btn { width: 100%; }
  .status-card {
    max-width: 100%;
    margin-bottom: 1rem;
    overflow-wrap: anywhere;
  }

  .section { padding: 3.8rem 0; }
  .app-panel-points,
  .showcase,
  .software-grid,
  .grid-3,
  .timeline,
  .checklist,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .phone-single { width: min(300px, 100%); }
  .chat-msg { max-width: 94%; }
  .whatsapp-fab { width: 52px; height: 52px; }
}

@media (max-width: 900px) and (max-height: 500px) {
  .site-header .container,
  .hero .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }

  .nav-logo { height: 28px; }

  .nav-cta .btn {
    min-height: 32px;
    padding: 0.42rem 0.7rem;
  }

  .language-option {
    height: 26px;
  }

  .hero {
    min-height: 100svh;
    padding: 3.85rem 0 0.9rem;
  }

  .hero-copy {
    max-width: min(760px, 100%);
  }

  .eyebrow {
    font-size: 0.58rem;
    margin-bottom: 0.42rem;
  }

  .hero-title {
    max-width: 420px;
    font-size: 1.95rem;
    margin-bottom: 0.42rem;
  }

  .hero-title .accent {
    display: inline;
    max-width: none;
  }

  .hero-subtitle {
    max-width: 520px;
    font-size: 0.82rem;
    line-height: 1.38;
    margin-bottom: 0.58rem;
  }

  .hero-conversion {
    flex-direction: row;
    align-items: flex-end;
    gap: 0.75rem;
  }

  .status-card {
    width: 350px;
    margin-bottom: 0;
    padding: 0.46rem 0.62rem;
  }

  .status-card span,
  .status-card small {
    font-size: 0.48rem;
  }

  .status-card strong {
    font-size: 0.68rem;
    margin: 0.12rem 0 0.14rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 152px 110px;
    gap: 0.55rem;
  }

  .hero-actions .btn {
    width: auto;
    min-height: 34px;
    padding: 0.46rem 0.62rem;
    font-size: 0.8rem;
  }
}

/* Formulario de contacto: honeypot y estado de envío */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  margin: 12px 0 0;
  font-size: 0.95rem;
  font-weight: 500;
}
.form-status[data-kind="ok"] { color: #22c55e; }
.form-status[data-kind="error"] { color: #f87171; }
.form-status[data-kind="pending"] { opacity: 0.8; }

/* Skip link: oculto hasta recibir foco */
.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--color-navy);
  color: #fff;
  font-weight: 700;
  transition: top 0.15s ease;
}
.skip-link:focus-visible { top: 12px; }
main:focus { outline: none; }

/* Campos con label visible */
.form-field { display: grid; gap: 6px; }
.form-field > span { font-size: 0.85rem; font-weight: 600; }
