/* KiuboApp Landing - Fuentes de marca */
@font-face {
  font-family: 'Konstanz';
  font-weight: 900;
  font-style: normal;
  src: url('fonts/Konstanz-Black.otf') format('opentype');
}

@font-face {
  font-family: 'Konstanz';
  font-weight: 700;
  font-style: normal;
  src: url('fonts/Konstanz-Bold.otf') format('opentype');
}

@font-face {
  font-family: 'Futura Next';
  font-weight: 700;
  font-style: normal;
  src: url('fonts/FuturaNext-Bold.otf') format('opentype');
}

/* Helvetica Regular desde .ttc (primer face = Regular) */
@font-face {
  font-family: 'Helvetica';
  font-weight: 400;
  font-style: normal;
  src: url('fonts/Helvetica.ttc') format('truetype');
  font-display: swap;
}

/* Variables & base */
:root {
  --purple-deep: #3d2463;
  --purple-mid: #5c3d8a;
  --purple-text: #4a2c6d;
  --teal: #2d9d8a;
  --teal-dark: #1e7a6b;
  --teal-light: #3dbda8;
  --white: #fff;
  --black: #1a1a1a;
  --gray-bg: #f5f3f7;
  --gray-pattern: #e8e4ef;
  --font-heading: 'Konstanz', system-ui, sans-serif;
  --font: 'Futura Next', system-ui, sans-serif;
  --font-regular: 'Helvetica', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
  width: 100%;
  min-width: 0;
}

h1, h2, h3 {
  font-family: var(--font-heading);
}

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

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

/* Header */
.header {
  background: rgb(86, 0, 199);
  padding: 1rem 1.5rem;
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
}

/* Barra completa: proporción del SVG ~1209×61 */
.logo--header {
  display: block;
  width: 100%;
  aspect-ratio: 1208.81 / 60.91;
  max-height: 64px;
  overflow: hidden;
}

.logo--header .logo__img,
.logo--header .logo__svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: left center;
}


.logo__img {
  max-height: 44px;
  width: auto;
  max-width: min(200px, 100%);
  object-fit: contain;
  display: block;
}

.logo__text {
  font-family: var(--font-heading);
}

.logo__icon {
  width: 32px;
  height: 32px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='%23fff'%3E%3Cellipse cx='10' cy='16' rx='6' ry='8'/%3E%3Cpath d='M16 14c2 0 4 1.5 5 4l4 2-2 4-5-1c-1 2-3 3-5 3-2 0-4-1-5-3l-5 1-2-4 4-2c1-2.5 3-4 5-4z'/%3E%3Cellipse cx='9' cy='14' rx='1.5' ry='2' fill='%233d2463'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Hero */
.hero {
  background: rgb(86, 0, 199);
  color: var(--white);
  padding: calc(3rem + 40px) 1.5rem 4rem;
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

.hero__content {
  display: flex;
  flex-direction: column;
}

.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 20px;
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 6.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero__description {
  margin: 0 0 0.5rem;
  font-family: var(--font-regular);
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 100%;
}

.hero__description strong {
  font-family: var(--font-heading);
  font-weight: 700;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 70px;
}

.hero__visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero__placeholder {
  position: relative;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 9/16;
  background: var(--black);
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.3);
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  background: var(--black);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn--store {
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
  border-radius: 14px;
  min-width: 260px;
  box-sizing: border-box;
}

.btn--store .btn__icon {
  width: 28px;
  height: 28px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.btn__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Problem section */
.problem {
  position: relative;
  width: 100%;
  min-width: 0;
  background-color: #fff;
  background-image: url("images/background-light.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 4rem 1.5rem 0;
}

/* Barra menta/teal: ancho completo sin usar 100vw (evita overflow y fondo blanco) */
.problem::after {
  content: "";
  display: block;
  margin-left: -1.5rem;
  width: calc(100% + 3rem);
  height: 28px;
  background: rgb(48, 223, 199);
  margin-top: 4rem;
  box-sizing: content-box;
}

.problem__inner {
  max-width: 1200px;
  margin: 0 auto;
  min-width: 0;
}

.problem__row {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem;
  align-items: start;
  min-width: 0;
}

.problem__visual {
  order: 1;
  margin-top: 1.5rem;
}

.problem__placeholder {
  position: relative;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 9 / 16;
  background: var(--black);
  border-radius: 16px;
  overflow: hidden;
}

.problem__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.problem__content {
  order: 2;
  text-align: center;
  margin-top: 1.5rem;
}

.problem__title {
  margin: 0 0 1.5rem;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: rgb(86, 0, 199);
  text-align: center;
  width: 100%;
}

.problem__sub {
  margin: 0 0 0.35rem;
  font-family: var(--font-regular);
  font-size: 1.35rem;
  font-weight: 400;
  color: rgb(86, 0, 199);
  line-height: 1.5;
}

.problem__sub:last-of-type {
  margin-bottom: 1.5rem;
}

.problem__tags {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 200px));
  gap: 0.5rem 1rem;
  justify-content: center;
  margin: 0 auto;
  max-width: 640px;
  min-width: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-regular);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--black);
  background: transparent;
  border: 1.5px solid rgba(86, 0, 199, 0.45);
  border-radius: 999px;
  box-sizing: border-box;
  text-align: left;
}

.tag__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgb(48, 223, 199);
  flex-shrink: 0;
}

/* Features - 3 columns */
.features {
  padding: 2rem 1.5rem;
  background: var(--white);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
}

.feature-card {
  overflow: hidden;
  border-radius: 14px;
  background: var(--gray-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  min-height: 320px;
}

.feature-card__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 2 / 3;
  min-height: 320px;
}

/* CTA */
.cta {
  padding: 3rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--gray-pattern);
  background: var(--white);
}

.cta__phrase-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 -1.5rem 1.5rem;
  width: calc(100% + 3rem);
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.cta__line {
  flex: 1;
  height: 2px;
  background: #8d43e3;
  min-width: 0;
}

.cta__phrase {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: rgb(86, 0, 199);
  min-width: 0;
  text-align: center;
}

.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Botones CTA: "Disponible en" arriba, nombre de tienda abajo y más grande */
.btn--cta {
  flex-direction: row;
  padding: 0.9rem 1.4rem 0.9rem 1.2rem;
}

.btn--cta .btn__icon {
  width: 32px;
  height: 32px;
}

.btn--cta .btn__labels {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  line-height: 1.2;
}

.btn--cta .btn__small {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.95;
}

.btn--cta .btn__store {
  font-size: 1.15rem;
  font-weight: 700;
}

/* Footer */
.footer {
  background: rgb(86, 0, 199);
  background-image: url("images/backgorund-2.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 2rem 1.5rem;
}

.footer__inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo--footer .logo__img {
  max-height: 120px;
  max-width: 280px;
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__link {
  display: inline-flex;
  color: var(--white);
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.footer__link:hover {
  opacity: 1;
}

.footer__link svg {
  width: 36px;
  height: 36px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero__inner,
  .problem__row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    text-align: center;
    align-items: center;
  }

  .hero__description {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__buttons {
    justify-content: center;
    align-items: center;
  }

  .hero__visual {
    order: -1;
    justify-content: center;
  }

  .hero__placeholder {
    margin-left: auto;
    margin-right: auto;
  }

  .problem__visual {
    order: 2;
  }

  .problem__content {
    order: 1;
    text-align: center;
  }

  .problem__tags {
    grid-template-columns: repeat(2, minmax(140px, 180px));
    justify-content: center;
    max-width: 100%;
  }

  .problem__placeholder {
    margin: 0 auto;
  }

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

@media (max-width: 600px) {
  .hero {
    padding: 2rem 1rem 3rem;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .cta__phrase {
    font-size: 1.35rem;
    line-height: 1.3;
  }

  .cta__phrase-wrap {
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
    padding: 0 1rem;
  }

  .cta__buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta__buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .footer__inner {
    flex-direction: column;
  }
}
