/* Inspirado en la estética Tilda / qlikpartners.ru: blanco, verde #007e3a, azul #0b3879 */

:root {
  --green: #007e3a;
  --green-hover: #006d3b;
  --blue: #0b3879;
  --text: #000000;
  --text-soft: #333333;
  --muted: #666666;
  --border: #e0e0e0;
  --gray-bg: #f5f5f5;
  --max: 1200px;
  --radius-card: 16px;
  --radius-pill: 90px;
  --radius-btn: 8px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "TildaSans", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
  background: #ffffff;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ——— Top bar ——— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand span {
  color: var(--green);
}

.brand:hover {
  text-decoration: none;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}

nav a {
  color: var(--text-soft);
  font-size: 16px;
  font-weight: 500;
}

nav a:hover {
  color: var(--green);
  text-decoration: none;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.lang-switch button {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border: none;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.lang-switch button.active {
  background: var(--green);
  color: #fff;
}

.lang-switch button:not(.active):hover {
  background: var(--gray-bg);
  color: var(--text);
}

.btn-nav-cta {
  display: inline-block;
  padding: 12px 24px;
  background: var(--green);
  color: #fff !important;
  font-weight: 600;
  border-radius: var(--radius-pill);
  font-size: 15px;
  white-space: nowrap;
}

.btn-nav-cta:hover {
  background: var(--green-hover);
  text-decoration: none;
}

/* ——— Hero (dos columnas + imagen como en t1127) ——— */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 20px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero .hero__actions {
    justify-content: center;
  }
}

.hero h1 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.12;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--text);
}

.hero .lead {
  color: var(--text-soft);
  font-size: 18px;
  margin: 0 0 28px;
  max-width: 520px;
}

@media (max-width: 900px) {
  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__visual {
  position: relative;
}

.hero__visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: var(--green);
  color: #fff !important;
  font-weight: 600;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 17px;
}

.btn-primary:hover {
  background: var(--green-hover);
  text-decoration: none;
}

.btn-product {
  display: inline-block;
  text-align: center;
  padding: 12px 20px;
  background: var(--blue);
  color: #fff !important;
  font-weight: 600;
  border-radius: 24px;
  font-size: 16px;
  width: 100%;
}

.btn-product:hover {
  background: var(--green-hover);
  text-decoration: none;
}

/* ——— Banda Qlik Sense + imagen Frame ——— */
.sense-strip {
  background: #ffffff;
  padding: 0 20px 48px;
}

.sense-strip-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.sense-strip h2 {
  text-align: center;
  font-size: 28px;
  margin: 0 0 8px;
}

.sense-strip .sub {
  text-align: center;
  color: var(--muted);
  margin: 0 0 28px;
  font-size: 17px;
}

.sense-strip img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  border-radius: var(--radius-card);
  display: block;
}

/* ——— Secciones ——— */
.section {
  padding: 56px 20px;
}

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

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: 32px;
  margin: 0 0 12px;
  font-weight: 700;
}

.section-head .descr {
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
}

/* ——— Ventajas con icono check ——— */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.benefit-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.benefit-card h3 {
  font-size: 20px;
  margin: 0 0 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.benefit-card h3 img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 3px;
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* ——— Catálogo productos (tarjetas con imagen) ——— */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.product {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.product__img {
  aspect-ratio: 4 / 3;
  background: var(--gray-bg);
  overflow: hidden;
}

.product__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product h3 {
  font-size: 17px;
  line-height: 1.35;
  margin: 0;
  font-weight: 600;
}

.product .desc {
  color: var(--muted);
  font-size: 15px;
  flex: 1;
}

.price {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}

.price small {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 4px;
}

/* ——— Bloques imagen + texto (ejemplos Qlik) ——— */
.media-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

.media-block:last-child {
  border-bottom: none;
}

.media-block:nth-child(even) {
  flex-direction: row-reverse;
}

.media-block__img {
  flex: 1 1 340px;
  min-width: 280px;
}

.media-block__img img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: block;
}

.media-block__text {
  flex: 1 1 320px;
  min-width: 280px;
}

.media-block__text h3 {
  font-size: 24px;
  margin: 0 0 12px;
}

.media-block__text p {
  color: var(--muted);
  margin: 0 0 12px;
  font-size: 17px;
}

.feature-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: 16px;
}

.feature-list li {
  margin-bottom: 6px;
}

.img-caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.4;
}

.muted {
  color: var(--muted);
  font-size: 16px;
}

.faq-item {
  margin-bottom: 24px;
}

.faq-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

/* ——— Footer ——— */
footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 40px 20px;
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-inner .brand {
  color: #fff;
}

.footer-disclaimer {
  font-size: 13px;
  color: #999;
  max-width: 900px;
  line-height: 1.5;
  margin-top: 16px;
}

/* ——— i18n visibility ——— */
[data-i18n] {
  display: none;
}

html[lang="es"] [data-i18n="es"] {
  display: block;
}

html[lang="es"] [data-i18n="es"].inline,
html[lang="es"] span[data-i18n="es"] {
  display: inline;
}

html[lang="en"] [data-i18n="en"] {
  display: block;
}

html[lang="en"] [data-i18n="en"].inline,
html[lang="en"] span[data-i18n="en"] {
  display: inline;
}

nav a.nav-en {
  display: none;
}

html[lang="en"] nav a.nav-en {
  display: inline !important;
}

html[lang="en"] nav a.nav-es {
  display: none !important;
}
