/* Bauxa — bauxa.app marketing site. Modernist design system. */

:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-accent: #ec3013;
  --color-accent-600: #dd2b0f;
  --color-accent-700: #ae1800;
  --gutter: 56px;
  --gutter-tablet: 32px;
  --gutter-phone: 20px;
}

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}

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

a {
  color: var(--color-accent-700);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-accent);
}

::selection {
  background: rgba(236, 48, 19, 0.3);
}

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

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.kicker {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-accent-700);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  padding: 16px 22px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: var(--color-accent-600);
  color: var(--color-bg);
}

.btn-secondary {
  border: 1px solid rgba(32, 30, 29, 0.4);
  background: transparent;
  color: var(--color-text);
}

.btn-secondary:hover {
  background: rgba(32, 30, 29, 0.07);
}

.btn-ink {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn-ink:hover {
  background: #3a3635;
}

/* === Header === */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  border-bottom: 2px solid rgba(32, 30, 29, 0.4);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--color-text);
}

.wordmark span.text {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.wordmark span.dot {
  width: 7px;
  height: 7px;
  background: var(--color-accent);
  display: block;
  margin-bottom: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav a {
  color: var(--color-text);
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--color-accent-700);
}

.main-nav .btn-primary {
  padding: 11px 18px;
  font-size: 14px;
  text-transform: none;
  letter-spacing: normal;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 4px;
  cursor: pointer;
  color: var(--color-text);
}

/* === Hero === */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  border-bottom: 2px solid rgba(32, 30, 29, 0.4);
}

.hero-content {
  padding: 72px var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 2px solid rgba(32, 30, 29, 0.4);
}

.hero-content .kicker {
  margin-bottom: 22px;
}

.hero-content h1 {
  font-size: 78px;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 26px;
}

.hero-lede {
  font-size: 19px;
  line-height: 1.6;
  max-width: 46ch;
  color: rgba(32, 30, 29, 0.75);
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: rgba(32, 30, 29, 0.6);
  font-weight: 600;
  flex-wrap: wrap;
}

.hero-media {
  padding: 56px 0 0 56px;
  background: var(--color-surface);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media img {
  width: 300px;
  border: 2px solid var(--color-text);
  border-bottom: 0;
}

/* === Stats bar === */
.stats-bar {
  border-bottom: 2px solid rgba(32, 30, 29, 0.4);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats-bar > div {
  padding: 28px var(--gutter-tablet);
  border-right: 1px solid rgba(32, 30, 29, 0.25);
}

.stats-bar > div:first-child {
  padding-left: var(--gutter);
}

.stats-bar > div:last-child {
  border-right: 0;
}

.stat-value {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(32, 30, 29, 0.6);
}

/* === Sections generic === */
section {
  border-bottom: 2px solid rgba(32, 30, 29, 0.4);
}

.section-inner {
  padding: 72px var(--gutter) 0;
}

.section-title {
  font-size: 48px;
  letter-spacing: -0.025em;
  margin: 14px 0 20px;
  max-width: 22ch;
}

.section-lede {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(32, 30, 29, 0.75);
  max-width: 62ch;
  margin: 0 0 44px;
}

/* === Producto === */
.producto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(32, 30, 29, 0.4);
  border-top: 2px solid rgba(32, 30, 29, 0.4);
}

.producto-col {
  background: var(--color-bg);
  padding: 40px;
}

.producto-eyebrow {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--color-accent-700);
  margin-bottom: 14px;
}

.producto-col h3 {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.producto-col p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(32, 30, 29, 0.75);
}

.producto-shot {
  margin: 56px var(--gutter) 0;
  border-top: 2px solid rgba(32, 30, 29, 0.4);
  padding-top: 40px;
}

.producto-shot img {
  width: 100%;
  border: 2px solid var(--color-text);
}

.producto-shot-caption {
  font-size: 13px;
  color: rgba(32, 30, 29, 0.6);
  margin: 12px 0 48px;
}

/* === Funciones === */
.funciones-grid {
  margin: 0 var(--gutter) 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(32, 30, 29, 0.4);
  border: 2px solid rgba(32, 30, 29, 0.4);
}

.funcion-card {
  background: var(--color-bg);
  padding: 32px;
}

.funcion-card.is-inverted {
  background: var(--color-text);
  color: var(--color-bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.funcion-eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(32, 30, 29, 0.5);
  margin-bottom: 16px;
}

.is-inverted .funcion-eyebrow {
  color: rgba(243, 242, 242, 0.5);
}

.funcion-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.funcion-card p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(32, 30, 29, 0.72);
}

.is-inverted p {
  color: rgba(243, 242, 242, 0.72);
}

.funcion-card .btn-primary {
  padding: 13px 18px;
  font-size: 14px;
  margin-top: 28px;
  align-self: flex-start;
}

.funcion-soon {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(32, 30, 29, 0.6);
}

.tag-soon {
  display: inline-block;
  border: 1px solid var(--color-accent-700);
  color: var(--color-accent-700);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  margin-right: 6px;
}

/* === Comparativa === */
.comparativa-table-wrap {
  margin: 0 var(--gutter) 24px;
  overflow-x: auto;
}

.comparativa-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid rgba(32, 30, 29, 0.4);
  font-size: 14px;
}

.comparativa-table th,
.comparativa-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(32, 30, 29, 0.25);
  white-space: nowrap;
}

.comparativa-table thead th {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(32, 30, 29, 0.6);
  border-bottom: 2px solid rgba(32, 30, 29, 0.4);
}

.comparativa-table tbody th {
  text-align: left;
  font-weight: 600;
  white-space: normal;
  min-width: 220px;
}

.comparativa-table .comparativa-bauxa {
  background: rgba(236, 48, 19, 0.08);
  font-weight: 800;
  color: var(--color-accent-700);
}

.comparativa-table td.yes {
  color: #1f4a3d;
  font-weight: 800;
}

.comparativa-table td.no {
  color: rgba(32, 30, 29, 0.35);
}

.comparativa-note {
  margin: 0 var(--gutter) 56px;
  font-size: 13px;
  color: rgba(32, 30, 29, 0.55);
  max-width: 70ch;
}

/* === Marca === */
.marca-shot img {
  margin: 0 var(--gutter);
  width: calc(100% - 2 * var(--gutter));
  border: 2px solid var(--color-text);
}

.marca-caption {
  margin: 12px var(--gutter) 72px;
  font-size: 13px;
  color: rgba(32, 30, 29, 0.6);
}

/* === Precio === */
.precio {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.precio-copy {
  padding: 72px var(--gutter);
  border-right: 2px solid rgba(32, 30, 29, 0.4);
}

.precio-copy .section-title {
  max-width: 16ch;
}

.precio-copy p {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(32, 30, 29, 0.75);
  max-width: 48ch;
  margin-bottom: 20px;
}

.precio-pilot {
  padding: 72px var(--gutter);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.precio-pilot-eyebrow {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--color-accent-700);
  margin-bottom: 20px;
}

.precio-pilot-value {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 16px;
}

.precio-pilot p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(32, 30, 29, 0.75);
  max-width: 40ch;
  margin-bottom: 28px;
}

/* === Demo === */
.demo {
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 80px var(--gutter);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: end;
}

.demo .wordmark .text {
  color: var(--color-bg);
  font-size: 44px;
}

.demo .wordmark .dot {
  width: 10px;
  height: 10px;
  background: var(--color-bg);
  margin-bottom: 4px;
}

.demo-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 28px;
}

.demo h2 {
  font-size: 56px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
  max-width: 18ch;
}

.demo-lede {
  font-size: 18px;
  line-height: 1.6;
  max-width: 44ch;
  color: rgba(243, 242, 242, 0.85);
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-form input {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 16px 18px;
  font-size: 15px;
  font-family: inherit;
  border: 0;
  width: 100%;
}

.demo-form input::placeholder {
  color: rgba(32, 30, 29, 0.45);
}

.demo-form .honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.demo-form button {
  padding: 17px 22px;
}

.demo-message {
  font-size: 14px;
  font-weight: 600;
  min-height: 1.4em;
}

.demo-message.is-success {
  color: var(--color-text);
}

.demo-message.is-error {
  color: var(--color-text);
  text-decoration: underline;
}

/* === Footer === */
.site-footer {
  background: var(--color-text);
  color: rgba(243, 242, 242, 0.7);
  padding: 48px var(--gutter);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 40px;
  font-size: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.footer-brand .text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--color-bg);
}

.footer-brand .dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  display: block;
  margin-bottom: 2px;
}

.footer-address {
  line-height: 1.8;
}

.footer-col {
  line-height: 1.9;
}

.footer-col-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243, 242, 242, 0.45);
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(243, 242, 242, 0.85);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--color-bg);
}

/* === Responsive === */
@media (max-width: 1000px) {
  :root {
    --gutter: var(--gutter-tablet);
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-content {
    border-right: 0;
    border-bottom: 2px solid rgba(32, 30, 29, 0.4);
  }

  .hero-content h1 {
    font-size: 56px;
  }

  .hero-media {
    padding: 32px 0 0 32px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar > div:nth-child(2) {
    border-right: 0;
  }

  .producto-grid,
  .funciones-grid,
  .precio {
    grid-template-columns: 1fr;
  }

  .precio-copy {
    border-right: 0;
    border-bottom: 2px solid rgba(32, 30, 29, 0.4);
  }

  .demo {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .demo h2 {
    font-size: 40px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: var(--gutter-phone);
  }

  .main-nav {
    display: none;
  }

  .main-nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 2px solid rgba(32, 30, 29, 0.4);
    z-index: 20;
  }

  .main-nav.is-open a {
    padding: 16px var(--gutter-phone);
    width: 100%;
    border-bottom: 1px solid rgba(32, 30, 29, 0.15);
  }

  .site-header {
    position: relative;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .hero-media img {
    width: 100%;
  }

  .section-title {
    font-size: 32px;
  }

  .demo h2 {
    font-size: 30px;
  }

  .precio-pilot-value {
    font-size: 40px;
  }
}
