/* === MARCA CAPOTE — Manual de marca aplicado ===
   Paleta monocromática. Sin color de acento.
   Colores semánticos (verde/rojo) SOLO como dots de estado y texto de señal,
   NUNCA como fondo ni decoración.
   ================================================================== */
:root {
  /* Paleta monocromática */
  --ink: #0A0A0A;
  --muted: #51525A;
  --bg: #FFFFFF;
  --surface: #FAFAFA;
  --line: #E4E4E6;
  --accent: #0A0A0A;
  --accent-hover: #272729;
  --accent-ink: #FFFFFF;

  /* Tipografía */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* Fallback de Antarctican Mono — reemplazar si se consigue el archivo de fuente */
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  /* Escala tipográfica */
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;
  --text-5xl: 3.5rem;

  /* Pesos */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Espaciado */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Radios */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(20, 24, 31, 0.06);
  --shadow-md: 0 4px 12px rgba(20, 24, 31, 0.08);
  --shadow-lg: 0 8px 24px rgba(20, 24, 31, 0.1);
  --shadow-xl: 0 12px 40px rgba(20, 24, 31, 0.12);

  /* Transiciones */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 200ms;

  /* Layout */
  --header-h: 64px;
  --max-w: 1120px;
}
/* === FIN BLOQUE MARCA === */


/* -------------------------------------------------------
   RESET & BASE
   ------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-lg));
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Focus visible global */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}


/* -------------------------------------------------------
   UTILIDADES
   ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.section {
  padding-block: var(--space-4xl);
}

.section--surface {
  background: var(--surface);
}

.section__eyebrow {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.section__title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--muted);
  max-width: 600px;
  line-height: 1.5;
}

.section__header {
  margin-bottom: var(--space-3xl);
}

.section__header--center {
  text-align: center;
}

.section__header--center .section__subtitle {
  margin-inline: auto;
}


/* -------------------------------------------------------
   BOTONES
   ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1;
  border-radius: var(--radius-md);
  transition: background var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              transform var(--duration) var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

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

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn--outline:hover {
  box-shadow: inset 0 0 0 1.5px var(--muted);
}

.btn--lg {
  padding: 0.875rem 2rem;
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
}

.btn__arrow {
  transition: transform var(--duration) var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}


/* -------------------------------------------------------
   HEADER
   ------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.header--scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.header__logo-desc {
  font-size: 9px;
  font-weight: var(--weight-normal);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: var(--space-sm);
}

.header__nav {
  display: none;
  align-items: center;
  gap: var(--space-xl);
}

.header__link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--muted);
  transition: color var(--duration) var(--ease);
  position: relative;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--duration) var(--ease);
}

.header__link:hover {
  color: var(--ink);
}

.header__link:hover::after {
  transform: scaleX(1);
}

.header__cta {
  display: none;
}

.header__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
}

.header__toggle-icon {
  position: relative;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: background var(--duration) var(--ease);
}

.header__toggle-icon::before,
.header__toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--duration) var(--ease);
}

.header__toggle-icon::before {
  top: -6px;
}

.header__toggle-icon::after {
  top: 6px;
}

/* Toggle open state */
.header__toggle[aria-expanded="true"] .header__toggle-icon {
  background: transparent;
}

.header__toggle[aria-expanded="true"] .header__toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.header__toggle[aria-expanded="true"] .header__toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 99;
  padding: var(--space-xl) var(--space-lg);
  flex-direction: column;
  gap: var(--space-sm);
  overflow-y: auto;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav__link {
  display: block;
  padding: var(--space-md) 0;
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.mobile-nav__cta {
  margin-top: var(--space-lg);
}


/* -------------------------------------------------------
   HERO
   ------------------------------------------------------- */
.hero {
  padding-top: calc(var(--header-h) + var(--space-4xl));
  padding-bottom: var(--space-4xl);
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.375rem 0.875rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--muted);
  margin-bottom: var(--space-xl);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-lg);
  max-width: 780px;
  margin-inline: auto;
}

.hero__title em {
  font-style: normal;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--muted);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}


/* -------------------------------------------------------
   PROBLEMA
   ------------------------------------------------------- */
.problem__content {
  max-width: 680px;
}

.problem__text {
  font-size: var(--text-lg);
  color: var(--muted);
  line-height: 1.7;
}

.problem__text strong {
  color: var(--ink);
  font-weight: var(--weight-semibold);
}


/* -------------------------------------------------------
   PILARES (Cómo funciona)
   ------------------------------------------------------- */
.pillars__grid {
  display: grid;
  gap: var(--space-lg);
}

.pillar {
  padding: var(--space-2xl);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

.pillar:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.pillar__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  color: var(--accent);
}

.pillar__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-sm);
}

.pillar__text {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.6;
}


/* -------------------------------------------------------
   CARACTERÍSTICAS
   ------------------------------------------------------- */
.features__grid {
  display: grid;
  gap: var(--space-lg);
}

.feature {
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid transparent;
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.feature:hover {
  border-color: var(--line);
  box-shadow: var(--shadow-md);
}

.feature__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.feature__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-sm);
}

.feature__text {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.6;
}


/* -------------------------------------------------------
   CASOS
   ------------------------------------------------------- */
.cases__grid {
  display: grid;
  gap: var(--space-lg);
}

.case-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-2xl);
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

.case-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.case-card__logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: var(--radius-md);
  color: var(--ink);
}

.case-card__name {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-xs);
}

.case-card__meta {
  display: block;
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.case-card__text {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.6;
}


/* -------------------------------------------------------
   DEMOS
   ------------------------------------------------------- */
.demos__grid {
  display: grid;
  gap: var(--space-lg);
}

.demo-card {
  position: relative;
  padding: var(--space-3xl) var(--space-2xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
  transition: box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

.demo-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-xl);
}

.demo-card__eyebrow {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-md);
}

.demo-card__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-sm);
}

.demo-card__text {
  font-size: var(--text-base);
  color: var(--muted);
  margin-bottom: var(--space-xl);
  max-width: 420px;
  line-height: 1.6;
}


/* -------------------------------------------------------
   PARA QUIÉN
   ------------------------------------------------------- */
.audience__list {
  display: grid;
  gap: var(--space-lg);
}

.audience__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-xl) var(--space-2xl);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

.audience__item:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.audience__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: var(--radius-md);
  color: var(--accent);
}

.audience__item-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-xs);
}

.audience__item-text {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.6;
}


/* -------------------------------------------------------
   CONTACTO
   ------------------------------------------------------- */
.contact {
  max-width: 520px;
}

.contact__header {
  margin-bottom: var(--space-2xl);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.contact__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--ink);
}

.contact__input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.contact__input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08);
}

.contact__input::placeholder {
  color: var(--muted);
}

.contact__textarea {
  resize: vertical;
  min-height: 100px;
}

.contact__submit {
  align-self: flex-start;
}

.contact__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact__status {
  font-size: var(--text-sm);
  line-height: 1.5;
}

.contact__status--ok {
  color: #1f8a5b;
}

.contact__status--err {
  color: #c0392b;
}

.contact__alt {
  margin-top: var(--space-2xl);
  font-size: var(--text-sm);
  color: var(--muted);
}

.contact__wa-link {
  color: var(--ink);
  font-weight: var(--weight-semibold);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: var(--space-xs);
}

.contact__wa-link:hover {
  color: var(--muted);
}


/* -------------------------------------------------------
   FOOTER
   ------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: var(--space-2xl);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.footer__brand {
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.footer__brand-desc {
  font-size: 9px;
  font-weight: var(--weight-normal);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: var(--space-sm);
}

.footer__text {
  font-size: var(--text-sm);
  color: var(--muted);
}

.footer__link {
  color: var(--ink);
  text-decoration: underline;
  transition: color var(--duration) var(--ease);
}

.footer__link:hover {
  color: var(--muted);
}

.footer__separator {
  color: var(--line);
  margin-inline: var(--space-xs);
}


/* -------------------------------------------------------
   RESPONSIVE — TABLET (640px+)
   ------------------------------------------------------- */
@media (min-width: 640px) {
  .pillars__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .section__title {
    font-size: var(--text-3xl);
  }

  .hero__title {
    font-size: var(--text-4xl);
  }
}


/* -------------------------------------------------------
   RESPONSIVE — DESKTOP (960px+)
   ------------------------------------------------------- */
@media (min-width: 960px) {
  .header__nav {
    display: flex;
  }

  .header__cta {
    display: inline-flex;
  }

  .header__toggle {
    display: none;
  }

  .hero {
    padding-top: calc(var(--header-h) + var(--space-5xl));
    padding-bottom: var(--space-5xl);
  }

  .hero__title {
    font-size: var(--text-5xl);
  }

  .pillars__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section__title {
    font-size: var(--text-4xl);
  }

  .cta-final__title {
    font-size: var(--text-4xl);
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}
