:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --soft: #eceef3;
  --text: #111216;
  --muted: #686d78;
  --border: rgba(17, 18, 22, 0.10);
  --dark: #0b0c10;
  --dark-soft: #13151c;
  --blue: #2563eb;
  --gradient: var(--blue);
  --shell: 1180px;
  /* sub-identidad Barrera, de la lámina proporcionada por Carlos */
  --br-indigo: #4f46e5;
  --br-indigo-dark: #4338ca;
  --br-indigo-soft: #eef2ff;
  --br-graphite: #0f172a;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.shell {
  width: min(calc(100% - 36px), var(--shell));
  margin: 0 auto;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(246, 247, 249, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-word {
  font-size: 0.93rem;
  font-weight: 820;
  letter-spacing: 0.04em;
}

.brand-symbol {
  position: relative;
  width: 29px;
  height: 27px;
  flex: 0 0 auto;
}

.brand-shape {
  position: absolute;
  display: block;
  background: var(--text);
  transform: skewX(-34deg);
}

.brand-shape-top {
  width: 21px;
  height: 9px;
  top: 2px;
  left: 1px;
}

.brand-shape-bottom {
  width: 15px;
  height: 11px;
  right: 1px;
  bottom: 1px;
  background: var(--gradient);
}

.main-nav {
  display: none;
  gap: 30px;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  font-size: 0.84rem;
  font-weight: 760;
  text-decoration: none;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 116px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.64);
  font-size: 0.72rem;
  font-weight: 700;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient);
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.75rem, 5.4vw, 4.6rem);
  font-weight: 790;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero h1 span {
  color: #747986;
}

.hero-lead {
  max-width: 650px;
  margin: 18px 0 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: #343740;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 22px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 760;
  text-decoration: none;
  color: inherit;
  background: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary,
.button-primary:link,
.button-primary:visited,
.button-primary:hover,
.button-primary:focus,
.button-primary:focus-visible,
.button-primary:active {
  color: white;
}

.button-primary {
  background: var(--gradient);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.20);
}

.button-secondary {
  border: 1px solid var(--border);
  background: var(--surface);
}

.inline-link {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(17, 18, 22, 0.25);
  padding-bottom: 1px;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.glow-one {
  width: 430px;
  height: 430px;
  top: -170px;
  right: 3%;
  background: rgba(37, 99, 235, 0.13);
}

.glow-two {
  width: 360px;
  height: 360px;
  bottom: -180px;
  left: 36%;
  background: rgba(37, 99, 235, 0.07);
}

/* ---------- section shared ---------- */

.product-section,
.company-section {
  padding: 96px 0;
}

.section-heading {
  display: grid;
  gap: 22px;
  margin-bottom: 42px;
}

.section-label {
  display: block;
  margin-bottom: 13px;
  color: var(--blue);
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.section-heading h2,
.company-title h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.section-heading > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.product-section {
  background: var(--surface);
}

/* ---------- Producto 01 · Barrera (capturas reales) ---------- */

.barrera-showcase {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg);
  padding: 36px 32px 40px;
  display: grid;
  gap: 34px;
}

.showcase-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.barrera-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.barrera-mark {
  display: block;
  height: 26px;
  width: auto;
  flex: 0 0 auto;
}

.barrera-wordmark {
  font-size: 1rem;
  font-weight: 800;
  color: var(--br-graphite);
  letter-spacing: -0.01em;
}

.showcase-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--br-indigo-soft);
  color: var(--br-indigo-dark);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.showcase-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--br-indigo);
}

.showcase-primary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
}

.phone-frame {
  position: relative;
  border-radius: 30px;
  border: 7px solid var(--br-graphite);
  background: #000;
  overflow: hidden;
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.20);
}

.phone-frame::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
  z-index: 2;
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.phone-frame--lg {
  width: 250px;
}

.phone-frame--md {
  width: 200px;
}

.showcase-copy h3 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.trust-block,
.privacy-block {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.trust-block h4,
.privacy-block h4 {
  margin: 0 0 5px;
  font-size: 0.84rem;
  font-weight: 700;
}

.trust-block p,
.privacy-block p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.showcase-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 4px;
}

.showcase-secondary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.secondary-item {
  display: flex;
  align-items: center;
  gap: 18px;
}

.secondary-item .phone-frame {
  flex: 0 0 auto;
}

.secondary-item-copy h4 {
  margin: 0 0 4px;
  font-size: 0.94rem;
  font-weight: 700;
}

.secondary-item-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  max-width: 26ch;
}

.real-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--br-indigo-dark);
  text-transform: uppercase;
}

.real-tag::before {
  content: "\25cf";
  font-size: 0.5rem;
}

.showcase-gallery {
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.gallery-strip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.gallery-strip-head h4 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.gallery-strip-head span {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-thumb {
  appearance: none;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  font-family: inherit;
}

.gallery-thumb:hover {
  border-color: var(--br-indigo);
}

.gallery-thumb:focus-visible {
  outline: 2px solid var(--br-indigo);
  outline-offset: 2px;
}

.gallery-thumb-crop {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  overflow: hidden;
  flex: 0 0 auto;
  background: #000;
}

.gallery-thumb-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.gallery-thumb-label {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.gallery-thumb-label strong {
  font-size: 0.82rem;
  font-weight: 700;
}

.gallery-thumb-label span {
  font-size: 0.72rem;
  color: var(--muted);
}

.gallery-thumb-expand {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- lightbox ---------- */

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(3px);
}

.lightbox-backdrop[hidden] {
  display: none;
}

.lightbox-card {
  position: relative;
  max-width: 360px;
  width: 100%;
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.lightbox-card .phone-frame {
  width: 100%;
  margin: 0 auto;
}

.lightbox-caption {
  margin: 14px 4px 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}

.lightbox-caption span {
  display: block;
  margin-top: 2px;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--muted);
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--text);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
}

.lightbox-close:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ---------- empresa ---------- */

.company-section {
  color: white;
  background: var(--dark);
}

.company-grid {
  display: grid;
  gap: 45px;
}

.company-title h2 {
  color: white;
  font-size: clamp(3rem, 7vw, 6rem);
}

.company-title h2 span {
  display: block;
  color: #686d79;
}

.company-copy {
  max-width: 600px;
}

.company-lead {
  color: white !important;
  font-size: 1.28rem;
}

.company-copy p {
  color: #9399a6;
}

.company-idea {
  margin: 24px 0;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.company-idea h3 {
  margin: 0 0 10px;
  color: #d4d6db;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.company-idea p {
  margin: 0;
}

.company-principle {
  display: grid;
  gap: 3px;
  margin-top: 18px !important;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.company-principle span {
  color: var(--blue);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.company-principle strong {
  color: #d4d6db;
  font-size: 0.94rem;
  font-weight: 650;
}

.company-links {
  display: flex;
  gap: 22px;
  margin-top: 24px;
}

.company-links a {
  color: white;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- contacto ---------- */

.contact-section {
  padding: 96px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.contact-form {
  display: grid;
  gap: 20px;
  max-width: 560px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-size: 0.86rem;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg);
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.contact-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 4px;
}

.form-note {
  margin: 0;
  max-width: 280px;
  color: var(--muted);
  font-size: 0.82rem;
}

.contact-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

.form-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.86rem;
  font-weight: 600;
}

.form-status[data-state="success"] {
  color: #16a34a;
}

.form-status[data-state="error"] {
  color: #dc2626;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 35px 0;
  color: #8d929e;
  background: #07080a;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-symbol-footer .brand-shape-top {
  background: white;
}

.footer-brand > div {
  display: grid;
  gap: 2px;
}

.footer-brand strong {
  color: white;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

.footer-brand span {
  font-size: 0.72rem;
}

.footer-inner > p {
  margin: 0;
  font-size: 0.78rem;
}

/* ---------- responsive ---------- */

@media (min-width: 720px) {
  .hero-actions {
    flex-direction: row;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  .main-nav {
    display: flex;
  }

  .hero {
    padding: 112px 0 124px;
  }

  .section-heading {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
  }

  .company-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (max-width: 719px) {
  .barrera-showcase {
    padding: 26px 20px 28px;
    gap: 26px;
  }

  .showcase-primary {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 22px;
  }

  .showcase-secondary {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .gallery-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 64px 0 72px;
  }
}
