html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}

body {
  background: #f5f6fb;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #23232c;
  height: 100vh;
  width: 100vw;
}

/* CONTENEDOR PRINCIPAL */
.container {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, #f5f6fb 55%, #e5e9fb 100%);
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* DIFUMINADOS DE COLORES */
.bg-blur {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.bg-blur-purple {
  width: 20vw; height: 17vw;
  top: -4vw; right: -7vw;
  background: radial-gradient(circle at 60% 40%, #e2d8fd 0%, #b8b4ef 100%);
}
.bg-blur-blue {
  width: 12vw; height: 11vw;
  top: 10vw; right: 3vw;
  background: radial-gradient(circle at 40% 40%, #e6f0fc 0%, #aee2f7 100%);
}
.bg-blur-pink {
  width: 12vw; height: 10vw;
  bottom: -6vw; left: -6vw;
  background: radial-gradient(circle at 40% 60%, #ffe4f0 0%, #f8c8e2 100%);
}

/* HEADER */
header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2vh 3vw 0 3vw;
  z-index: 2;
  min-height: 8vh;
}
.logo {
  font-weight: bold;
  font-size: clamp(1.5rem, 2.6vw, 2.6rem);
  letter-spacing: 1px;
}
.phrase {
  font-weight: 500;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  letter-spacing: 1px;
}
nav a {
  margin: 0 1vw;
  text-decoration: none;
  color: #23232c;
  font-weight: 500;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  transition: color .2s;
}
nav a:hover {
  color: #7a6bff;
}
.lang {
  display: flex;
  align-items: center;
  gap: 0.4vw;
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  font-weight: 500;
}
.flag {
  width: 20px;
  border-radius: 2px;
}

/* MAIN Y HERO */
main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  min-width: 0;
  padding: 0 12vw;
  position: relative;
  z-index: 2;
}
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 0;
  min-width: 0;
  flex: 1 1 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  gap: 2vw; /* Reduce espacio horizontal */
  overflow: hidden;
}
.hero-left {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.star-svg::before {
  content: '';
  display: inline-block;
  width: 18px; height: 18px;
  background: url('https://upload.wikimedia.org/wikipedia/commons/4/4f/Icon_star.svg') no-repeat center/contain;
  vertical-align: middle;
  margin-bottom: 10px;
}
.hero-left h1 {
  font-size: clamp(2.2rem, 4vw, 4.3rem);
  margin: 1vw 0 0.5vw 0;
  line-height: 1.1;
  color: #23232c;
  word-break: break-word;
}
.subtitle {
  font-size: 1.25rem;
  color: #83839a;
}

/* BOTONES */
.hero-buttons {
  display: flex;
  gap: 1.2vw;
  margin-bottom: 2vw;
}
.btn {
  font-size: clamp(1rem, 1.1vw, 1.3rem);
  padding: 1vw 1.5vw;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: background .15s, color .15s;
}
.primary {
  background: #8b7bfa;
  color: white;
}
.primary:hover {
  background: #715cd6;
}
.secondary {
  background: white;
  color: #23232c;
  border: 2px solid #23232c;
}
.secondary:hover {
  background: #f0eeff;
}

/* MOCKUP */
.hero-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  max-width: 560px; /* Más espacio para el mockup */
  height: 100%;
  box-sizing: border-box;
}
.mockup-img {
  width: 98%;
  max-width: 410px;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* RESPONSIVO: Si la pantalla es pequeña, el contenido se adapta */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    gap: 1vh;
    padding: 2vh 4vw 0 4vw;
    min-height: 10vh;
  }
  main {
     padding: 0 3vw;
  }
  .hero {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2vw;
  }
  .hero-right {
    justify-content: center;
    align-items: center;
    max-width: 100vw;
  }
  .mockup-img {
    width: 85vw;
    max-width: 340px;
    max-height: 40vh;
  }
  .hero-left h1 {
    font-size: 6vw;
  }
  .btn {
    font-size: 3vw;
    padding: 2vw 7vw;
  }
}
