/* Variables del sistema de diseño */
:root {
  /* Color System - Indigo/Purple Theme */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: rgba(99, 102, 241, 0.15);
  --primary-glow: rgba(99, 102, 241, 0.5);
  --secondary: #0ea5e9;
  --secondary-dark: #0284c7;
  --dark: #0a0a0d;
  --dark-light: #141419;
  --dark-medium: #1c1c24;
  --dark-elevated: #22222c;
  --text: #f9fafb;
  --text-secondary: rgba(249, 250, 251, 0.7);
  --text-muted: rgba(249, 250, 251, 0.5);
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --border: rgba(99, 102, 241, 0.2);
  --border-dark: rgba(99, 102, 241, 0.05);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.25);
  --shadow-primary: 0 0 20px rgba(99, 102, 241, 0.3);
  --shadow-primary-lg: 0 0 40px rgba(99, 102, 241, 0.2);

  /* Transitions */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--dark);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  line-height: 1.5;
  font-size: 16px;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background-image: url("images/computer.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Fondo con efecto de gradiente y grid */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      to bottom,
      rgba(10, 10, 13, 0.9),
      rgba(10, 10, 13, 0.7)
    ),
    linear-gradient(to right, rgba(99, 102, 241, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  z-index: -1;
}

.bg-grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(99, 102, 241, 0.1),
    transparent 70%
  );
  z-index: -1;
}

/* Asegurar que el contenido esté por encima de la capa */
body > * {
  position: relative;
  z-index: 1;
}

/* Main content */
.main {
  flex: 1 0 auto; /* Esto permite que el main crezca pero no se encoja */
  display: flex;
  flex-direction: column;
  padding: 0;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 80px; /* Espacio para el footer */
}

/* Hero section */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  margin-bottom: var(--space-3xl);
  padding: 0 var(--space-md);
  margin-top: 50px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hero-title {
  font-family: "Chakra Petch", sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.hero-title-highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-title-highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--primary-light);
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: var(--space-lg);
}

.hero-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -30px;
  transform: translateY(100px);
}

.hero-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
}

.hero-image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: var(--primary);
  filter: blur(60px);
  opacity: 0.3;
  z-index: 0;
  border-radius: 50%;
}

.hero-image-frame {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  z-index: 2;
  opacity: 0.5;
}

.hero-image-frame::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  width: 30px;
  height: 30px;
  border-top: 2px solid var(--primary);
  border-left: 2px solid var(--primary);
}

.hero-image-frame::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  border-bottom: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
}

/* Login container */
.login-container {
  background: rgba(28, 28, 36, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-md);
  padding: var(--space-xl);
  text-align: center;
  position: relative;
}

.login-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

.login-container:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-primary-lg);
}

.login-title {
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-lg);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Google login button */
#google-login-btn {
  background: var(--primary);
  border: none;
  border-radius: var(--radius-md);
  color: var(--dark);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  transition: var(--transition-normal);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  width: 100%;
  box-shadow: var(--shadow-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#google-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.4);
  background: var(--primary-dark);
}

#google-login-btn img {
  margin-right: 12px;
  width: 20px;
  height: 20px;
}

/* Button shine effect */
#google-login-btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg);
  transition: all 0.5s ease-in-out;
  z-index: -1;
  opacity: 0;
}

#google-login-btn:hover::after {
  left: 100%;
  top: 100%;
  opacity: 1;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  border-top-color: var(--dark);
  animation: spin 0.8s linear infinite;
  margin-right: 10px;
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading .spinner {
  display: inline-block;
}

.loading .btn-text {
  display: none;
}

/* Features section */
.features-section {
  margin-top: var(--space-3xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--space-md);
}

.section-title {
  font-family: "Chakra Petch", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-xl);
  text-align: center;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  width: 100%;
}

.feature-card {
  background: rgba(28, 28, 36, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border);
  box-shadow: var(--shadow-primary);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.feature-icon svg {
  width: 30px;
  height: 30px;
  color: var(--primary);
}

.feature-title {
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.feature-description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Footer styles */
footer {
  flex-shrink: 0; /* Evita que el footer se encoja */
  width: 100%;
  /* background-color: #222 !important; */
  background-color: rgba(10, 10, 13, 0.98) !important;
  padding: 20px 0;
  margin-top: auto; /* Empuja el footer al fondo */
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero-content {
    order: 1;
    text-align: center;
    align-items: center;
  }

  .hero-image-container {
    order: 0;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    margin-top: 120px !important;
  }
}

@media (max-width: 768px) {
  .hero-title {
    margin-top: 120px !important;
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .login-container {
    padding: var(--space-lg);
  }

  .login-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

.hero-logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.hero-logo {
  width: 340px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

.hero-logo-absolute {
  position: absolute;
  top: -80px;
  right: 20px;
  z-index: 10;
}

.navbar-logo {
  margin-top: 50px !important;
  width: 350px;
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  padding-top: 20px;
}

@media (max-width: 768px) {
  .hero-logo {
    width: 150px;
  }

  .navbar-logo {
    width: 150px;
  }
}
