@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --primary: #C20F2F;
  --primary-dark: #680F1F;
  --text-primary: #ffffff;
  --text-secondary: #383838;
  --accent:#FDD370;
  --bg-dark: #0a0a0a;
  --bg-card: rgba(255, 255, 255, 0.1);
  --border-color: rgba(255, 255, 255, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    overflow-y: hidden;
    line-height: 1.6;
    background-image: url(../Content/images/Fondos/Fondo.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment:fixed;
}

.hero-image{
  width: 360px;
}

.imagen-bienvenida{
  display: block;
  width: 400px;
  height: 516px;
  background-image: url(../Content/images/ImagenNube.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 6rem;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.8);
  background:#fff;
  border-radius: 10px;
  margin: 3em auto 1em auto;
  width: 90%;
  padding: .5em 3em;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  text-indent: -9999999999px;
  width:210px;
  height:80px;
  background-image:url(../Content/images/MSOne.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

#sidebar {
    display: none;
}

#content {
    padding-top: 10px;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
  color: var(--primary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-dark);
}

.auth-buttons {
  display: flex;
  gap: 1rem;
}

.auth-buttons button {
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.login {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.login:hover {
  background: rgba(255, 255, 255, 0.1);
}

.signup {
  background: var(--primary);
  color: var(--text-primary);
}

.signup:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.more-products{
  border: 1px solid var(--primary)!important;
  color: var(--primary);
}

.more-products:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.hero {
    padding: 0 8rem 6rem 6rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
  max-width: 650px;
  z-index: 2;
}

.hero h1 {
  font-size: 5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #282d37 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
    font-size: 1.5em;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 580px;
    line-height: 24px;
}

.cta-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 4rem;
}

.cta-button {
  padding: 1.2rem 2.5rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-button-secondary {
  padding: 1.2rem 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-button:hover,
.cta-button-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.1);
}

.cssbuttons-io {
  position: relative;
  font-family: inherit;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.05em;
  border-radius: 0.8em;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  overflow: hidden;
  color:var(--primary);
}

.cssbuttons-io span {
  position: relative;
  z-index: 10;
  transition: color 0.4s;
  display: inline-flex;
  align-items: center;
  padding: 0.8em 1.2em 0.8em 1.05em;
}

.cssbuttons-io:hover{
  color:#fff;
}

.cssbuttons-io::before,
.cssbuttons-io::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cssbuttons-io::before {
  content: "";
  background: var(--accent);
  width: 120%;
  left: -10%;
  transform: skew(30deg);
  transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
}

.cssbuttons-io:hover::before {
  transform: translate3d(100%, 0, 0);
}

.cssbuttons-io:active {
  transform: scale(0.95);
}

.stats-container {
  display: flex;
  gap: 4rem;
  margin-top: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
}

.hero-graphics {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  height: 100%;
  z-index: 1;
}

.gradient-orb {
  position: absolute;
  width: 800px;
  height: 800px;
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.15) 0%,
    rgba(99, 102, 241, 0.1) 25%,
    rgba(99, 102, 241, 0) 70%
  );
  border-radius: 50%;
  filter: blur(40px);
}

.floating-cards {
  position: relative;
  width: 100%;
  height: 100%;
}

.card {
  position: absolute;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card-1 {
  width: 300px;
  height: 200px;
  top: 20%;
  right: 20%;
  --rotation: -15deg;
  transform: rotate(var(--rotation));
  animation: float 6s ease-in-out infinite;
}

.card-2 {
  width: 250px;
  height: 150px;
  top: 40%;
  right: 40%;
  --rotation: 10deg;
  transform: rotate(var(--rotation));
  animation: float 8s ease-in-out infinite;
}

.card-3 {
  width: 200px;
  height: 120px;
  top: 60%;
  right: 30%;
  --rotation: -5deg;
  transform: rotate(var(--rotation));
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(var(--rotation));
  }
  50% {
    transform: translateY(-20px) rotate(var(--rotation));
  }
}

@media (max-width: 1200px) {
  .hero h1 {
    font-size: 4rem;
  }

  .hero-graphics {
    opacity: 0.5;
  }
}

@media (max-width: 992px) {
  nav {
    padding: 1.5rem 3rem;
  }

  .hero {
    padding: 8rem 3rem 6rem;
  }

  .hero h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1.5rem 2rem;
    margin: 0;
    width: 100%;
    flex-direction: column;
    border-radius: 0;
    box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.1);
  }

  .nav-links {
    display: none;
  }

  .auth-buttons{
    flex-direction: column;
  }

  .auth-buttons button {
    padding: .5em 1em;
  }

  .hero {
    padding: 6em 2em 2em 2em;
    text-align: center;
    flex-direction: column;
    align-items: center;
    position: unset;
    justify-content: flex-start;
    min-height: 74vh;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.1rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image{
    display:none;
  }

  .cta-group {
    justify-content: center;
  }

  .stats-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .stat-item {
    align-items: center;
  }

  .hero-graphics {
    display: none;
  }

  .imagen-bienvenida{
    width: 100%;
    height: 240px;
    background-position: top;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .cta-group {
    flex-direction: column;
  }

  .auth-buttons {
    gap: 0.5rem;
  }

  .auth-buttons button {
    padding: 0.8rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .cta-group {
    flex-direction: column;
  }

  .auth-buttons {
    gap: 0.5rem;
  }

  .auth-buttons button {
    padding: 0.8rem 1rem;
  }
}

@media (min-width: 1440px){
  nav{
    width: 70%;
  }
}
