/* AI Tomate — landing */
:root {
  --midnight: #1a1f2c;
  --midnight-elevated: #222836;
  --midnight-card: rgba(34, 40, 54, 0.55);
  --tomato: #e23d28;
  --tomato-hover: #f04d3a;
  --tomato-glow: rgba(226, 61, 40, 0.35);
  --silver: #f1f4f9;
  --silver-muted: rgba(241, 244, 249, 0.72);
  --sand: #fdf8f2;
  --sand-dark: #e8e0d6;
  --border-glass: rgba(255, 255, 255, 0.08);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  background: var(--midnight);
  color: var(--silver);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

/* Logos: no forzar ancho al 100% del contenedor flex */
img.brand-isotype-header,
img.brand-logo-img,
img.card-isotype {
  max-width: none;
}

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

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(26, 31, 44, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-glass);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

/* Header: isotipo nítido + wordmark (evita PNG vertical miniaturizado) */
.brand--header {
  min-width: 0;
  gap: 0.65rem;
}

.brand-mark-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  line-height: 0;
  background: #f5f2eb;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.brand-isotype-header {
  width: 40px;
  height: 40px;
  object-fit: contain;
  object-position: center;
}

.brand-wordmark {
  font-size: clamp(1.15rem, 3.5vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--silver);
  white-space: nowrap;
}

.brand-wordmark-ai {
  color: var(--tomato);
  font-weight: 800;
}

@media (max-width: 380px) {
  .brand-wordmark {
    font-size: 1.05rem;
  }

  .brand-mark-wrap {
    width: 44px;
    height: 44px;
  }

  .brand-isotype-header {
    width: 36px;
    height: 36px;
  }
}

/* Footer: logotipo completo, caja ajustada al PNG (sin franjas raras) */
.brand-logo-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px 14px;
  line-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 4px 20px rgba(0, 0, 0, 0.2);
}

.brand-logo-shell--footer {
  padding: 14px 20px 16px;
  border-radius: 16px;
}

.brand-logo-img--footer {
  display: block;
  height: auto;
  max-height: 88px;
  width: min(260px, 72vw);
  object-fit: contain;
  object-position: center center;
}

@media (min-width: 640px) {
  .brand-logo-img--footer {
    max-height: 100px;
    width: min(280px, 50vw);
  }
}

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9rem;
  color: var(--silver-muted);
}

.nav a:hover {
  color: var(--silver);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    background 0.2s ease;
}

.btn-primary {
  background: var(--tomato);
  color: #fff;
  box-shadow: 0 0 0 0 var(--tomato-glow);
}

.btn-primary:hover {
  background: var(--tomato-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px var(--tomato-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--silver);
  border: 1px solid var(--border-glass);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

/* ——— Hero ——— */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 8vw, 5rem);
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--silver);
}

.hero .lead {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  color: var(--silver-muted);
  max-width: 36ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* WhatsApp mock */
.chat-mock {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: linear-gradient(165deg, var(--midnight-elevated) 0%, #1a1f2c 100%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  max-width: 380px;
  margin-inline: auto;
}

.chat-mock-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-glass);
}

.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.chat-title {
  font-size: 0.85rem;
  font-weight: 600;
}

.chat-sub {
  font-size: 0.7rem;
  color: var(--silver-muted);
}

.chat-body {
  padding: 1.1rem 1rem 1.25rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.bubble {
  max-width: 88%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.bubble-in {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--silver);
}

.bubble-out {
  align-self: flex-end;
  background: #054a2f;
  color: #e7ffef;
}

.bubble-meta {
  font-size: 0.65rem;
  color: var(--silver-muted);
  margin-top: 0.35rem;
}

.badge-auto {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(226, 61, 40, 0.15);
  color: #ffb4a8;
  border: 1px solid rgba(226, 61, 40, 0.35);
}

/* ——— Sections common ——— */
.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-intro {
  margin: 0 0 2rem;
  color: var(--silver-muted);
  max-width: 52ch;
  font-size: 1rem;
}

/* PAS / Pain */
.section-pain {
  background: var(--midnight-elevated);
  border-block: 1px solid var(--border-glass);
}

.pain-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .pain-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pain-card {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(26, 31, 44, 0.6);
  border: 1px solid var(--border-glass);
}

.pain-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--silver);
}

.pain-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--silver-muted);
}

.pain-bridge {
  margin-top: 2rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--silver);
}

.pain-bridge span {
  color: var(--tomato);
}

/* Bento modules */
.section-modules {
  background: var(--midnight);
}

.bento {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
  }
}

.glass-card {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--midnight-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.glass-card:hover {
  border-color: rgba(226, 61, 40, 0.25);
  transform: translateY(-2px);
}

.card-brand {
  margin-bottom: 1rem;
}

.card-isotype-frame {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border-radius: 16px;
  background: #f5f2eb;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.card-isotype {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 640px) {
  .card-isotype-frame {
    width: 84px;
    height: 84px;
    padding: 6px;
  }
}

.glass-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.glass-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--silver-muted);
  line-height: 1.5;
}

/* Tech authority */
.section-tech {
  background: linear-gradient(180deg, var(--midnight) 0%, var(--midnight-elevated) 100%);
}

.tech-row {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .tech-row {
    grid-template-columns: 1fr 1fr;
  }
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-pill {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--silver-muted);
}

.tech-pill strong {
  color: var(--silver);
  font-weight: 700;
}

.tech-copy p {
  margin: 0 0 1rem;
  color: var(--silver-muted);
  font-size: 0.95rem;
}

.tech-copy p:last-child {
  margin-bottom: 0;
}

.tech-copy strong {
  color: var(--silver);
}

/* Warm sand — cercanía */
.section-warm {
  background: var(--sand);
  color: #2c2f38;
}

.section-warm .section-title,
.section-warm .section-intro {
  color: #2c2f38;
}

.section-warm .section-intro {
  opacity: 0.85;
}

.quote-block {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--sand-dark);
  box-shadow: 0 12px 40px rgba(44, 47, 56, 0.08);
  text-align: center;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.55;
}

.quote-block cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 600;
  color: #e23d28;
  letter-spacing: 0.02em;
}

/* Footer / lead */
.site-footer {
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  background: var(--midnight);
  border-top: 1px solid var(--border-glass);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.lead-box {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--midnight-elevated);
  border: 1px solid var(--border-glass);
}

.lead-box h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lead-box p {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--silver-muted);
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 480px) {
  .lead-form {
    flex-direction: row;
  }
}

.lead-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.2);
  color: var(--silver);
  font-family: var(--font);
  font-size: 0.9rem;
}

.lead-form input::placeholder {
  color: rgba(241, 244, 249, 0.45);
}

.lead-form input:focus {
  outline: none;
  border-color: rgba(226, 61, 40, 0.5);
  box-shadow: 0 0 0 3px rgba(226, 61, 40, 0.12);
}

.form-hint {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--silver-muted);
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--silver-muted);
}

.footer-meta .brand {
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-links a:hover {
  color: var(--tomato-hover);
}

.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  padding: 0.85rem 1.25rem;
  background: var(--midnight-elevated);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  font-size: 0.875rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
  z-index: 200;
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
