:root {
  --primary: hsl(252, 80%, 55%);
  --primary-hover: hsl(252, 80%, 45%);
  --secondary: hsl(280, 80%, 65%);
  --bg-color: hsl(220, 20%, 97%);
  --text-dark: hsl(220, 30%, 20%);
  --text-light: hsl(220, 10%, 40%);
  --white: hsl(0, 0%, 100%);
  --card-bg: rgba(255, 255, 255, 0.8);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-color);
  background-image: radial-gradient(circle at 10% 20%, rgba(200, 150, 255, 0.05) 0%, transparent 20%),
                    radial-gradient(circle at 90% 80%, rgba(100, 150, 255, 0.05) 0%, transparent 20%);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--text-dark); /* Color oscuro/azul del footer */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 0;
}

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

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  object-fit: contain;
}

.logo-container h1 {
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--secondary); /* Color llamativo para el hover line */
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 30px;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--primary-hover);
  color: var(--white);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 100px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-text {
  max-width: 550px;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

.hero-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s ease;
}

.hero-image:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 35px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 20px rgba(100, 100, 255, 0.2);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(100, 100, 255, 0.3);
}

/* Sections */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Grid layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Cards */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(31, 38, 135, 0.1);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.card p {
  color: var(--text-light);
}

/* Demo/Pricing */
.demo-card {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border-radius: 24px;
  padding: 50px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(100, 100, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.demo-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: rotate 15s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.demo-card > * {
  position: relative;
  z-index: 1;
}

.demo-card h3 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 25px;
}

.demo-features {
  text-align: left;
  margin: 0 auto 40px auto;
  max-width: fit-content;
}

.demo-features p {
  margin-bottom: 15px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-price {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 30px;
}

.demo-card .btn {
  background: var(--white);
  color: var(--primary);
}

.demo-card .btn:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Login Preview Demo */
.login-preview {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  max-width: 400px;
  margin: 0 auto;
  border: 1px solid rgba(0,0,0,0.05);
}

.login-title {
  color: #2F64E3; /* azul brillante */
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 5px;
}

.login-subtitle {
  color: #6c757d;
  text-align: center;
  font-size: 1rem;
  margin-bottom: 30px;
}

.login-form .input-group {
  margin-bottom: 20px;
}

.login-form .input-group label {
  display: block;
  font-weight: 600;
  color: #3f4756;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.login-form .input-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  font-size: 1rem;
  color: #212529;
  background: #fdfdfd;
  outline: none;
}

.login-form .checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  color: #495057;
  font-size: 0.9rem;
}

.btn-login {
  width: 100%;
  padding: 14px;
  background: #3B7CF6;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(59, 124, 246, 0.3);
}

.btn-register {
  width: 100%;
  padding: 14px;
  background: #28a745; /* verde */
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.forgot-password {
  color: #3B7CF6;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.forgot-password:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 60px 0 30px 0;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-logo img {
  height: 40px;
}

.footer-logo h2 {
  color: var(--white);
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

/* Responsive */
.menu-icon {
  display: none;
}

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text {
    margin: 0 auto;
  }
  
  .hero-image {
    transform: none;
  }
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }
  
  #menu-toggle:checked ~ #navbar {
    display: flex;
  }
  
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--text-dark);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .demo-card {
    padding: 30px 20px;
  }
}
