/* ============================================
   Variables CSS
   ============================================ */
:root {
  /* Colores principales */
  --white: #FFFFFF;
  --blue: #1E40AF;
  --orange: #F97316;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-600: #4B5563;
  --gray-900: #111827;

  /* Fuentes */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Espaciado */
  --container-width: 1200px;
  --section-padding: 80px 0;
}

/* ============================================
   Reset y Base
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background: #111827;
  color: #F9FAFB;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   Header
   ============================================ */
.header {
  background: #1F2937;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

/* Brand Logo Styles */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: #F9FAFB;
}

.logo-ia {
  background: linear-gradient(135deg, #3B82F6 0%, #F97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #D1D5DB;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-link:hover {
  color: #F9FAFB;
  background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--orange) 100%);
  color: var(--white) !important;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
  transition: all 0.3s;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.4);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding: 100px 0;
  background: linear-gradient(135deg, #111827 0%, #1F2937 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #D1D5DB;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
}

.stat-label {
  font-size: 0.875rem;
  color: #9CA3AF;
}

.btn-hero {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue) 0%, var(--orange) 100%);
  color: var(--white);
  padding: 18px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: transform 0.2s, box-shadow 0.3s;
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(30, 64, 175, 0.4);
}

.hero-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Placeholders para imágenes */
.hero-image-placeholder,
.ai-image-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #E0F2FE 0%, #F0F9FF 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--blue);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.placeholder-content {
  text-align: center;
  padding: 40px;
}

.placeholder-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.placeholder-content p {
  color: var(--blue);
  font-weight: 600;
  font-size: 1.125rem;
}

/* ============================================
   Features Section
   ============================================ */
.features {
  padding: var(--section-padding);
  background: #1F2937;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: #D1D5DB;
  font-size: 1.125rem;
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: #111827;
  padding: 40px 30px;
  border-radius: 12px;
  border: 2px solid #374151;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--blue);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: #F9FAFB;
}

.feature-card p {
  color: #D1D5DB;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: #9CA3AF;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: bold;
}

/* ============================================
   AI Section
   ============================================ */
.ai-section {
  padding: var(--section-padding);
  background: linear-gradient(135deg, #111827 0%, #1F2937 100%);
}

.ai-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ai-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.ai-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.ai-description {
  font-size: 1.125rem;
  color: #D1D5DB;
  margin-bottom: 30px;
  line-height: 1.8;
}

.ai-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.0625rem;
}

.ai-feature-item .check {
  width: 24px;
  height: 24px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================
   Registration Section
   ============================================ */
.registro {
  padding: var(--section-padding);
  background: #1F2937;
}

.registro-card {
  max-width: 700px;
  margin: 0 auto;
  background: #111827;
  padding: 60px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 2px solid #374151;
}

.registro-card h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 12px;
}

.registro-subtitle {
  text-align: center;
  color: #D1D5DB;
  margin-bottom: 40px;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 500;
  color: #F9FAFB;
}

.form-group input {
  padding: 12px 16px;
  border: 2px solid #374151;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
  background: #1F2937;
  color: #F9FAFB;
}

.form-group input:focus {
  outline: none;
  border-color: var(--blue);
}

.btn-submit {
  background: linear-gradient(135deg, var(--blue) 0%, var(--orange) 100%);
  color: var(--white);
  padding: 16px;
  border: none;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
  margin-top: 10px;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(30, 64, 175, 0.4);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-note {
  text-align: center;
  font-size: 0.875rem;
  color: #9CA3AF;
  margin-top: 10px;
}

.success-message {
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, #f0fdf4 0%, #f0f9ff 100%);
  border-radius: 12px;
  border: 2px solid #10b981;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: #10b981;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.success-message h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--gray-900);
}

.success-message strong {
  color: var(--blue);
  font-size: 1.25rem;
  font-family: 'Courier New', monospace;
  background: var(--white);
  padding: 4px 12px;
  border-radius: 4px;
}

.success-message .small {
  font-size: 0.875rem;
  color: #9CA3AF;
  margin-top: 8px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: #0F172A;
  padding: 40px 0;
  border-top: 1px solid #374151;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  margin-bottom: 12px;
}

/* Footer Logo - smaller size */
.footer-brand .logo-icon {
  width: 32px;
  height: 32px;
}

.footer-brand .logo-text {
  font-size: 1.25rem;
}

.footer-left p {
  color: #9CA3AF;
  font-size: 0.875rem;
}

.footer-nav {
  display: flex;
  gap: 30px;
}

.footer-nav a {
  color: #9CA3AF;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #F9FAFB;
}

.admin-link {
  opacity: 0.5;
  font-size: 0.875rem !important;
}

.admin-link:hover {
  opacity: 1;
}

/* ============================================
   Hamburger Menu Styles
   ============================================ */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.2s;
  z-index: 1001;
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 3px;
  background: #F9FAFB;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger animation when open */
.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   Responsive - Tablet
   ============================================ */
@media (max-width: 992px) {
  .hero-content,
  .ai-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media (max-width: 768px) {
  /* Show hamburger menu */
  .hamburger-btn {
    display: flex;
  }

  /* Mobile navigation overlay */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
  }

  .nav.active {
    opacity: 1;
    visibility: visible;
  }

  .nav .nav-link {
    font-size: 1.25rem;
    padding: 12px 24px;
  }

  .nav .btn-primary {
    font-size: 1.125rem;
    padding: 16px 32px;
    margin-top: 16px;
  }

  /* Content adjustments */
  .hero-content,
  .ai-content,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .btn-hero {
    font-size: 1rem;
    padding: 14px 28px;
    display: block;
    text-align: center;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 40px;
  }

  .features {
    padding: 60px 0;
  }

  .feature-card {
    padding: 30px 24px;
  }

  .feature-icon {
    font-size: 2.5rem;
  }

  .feature-card h3 {
    font-size: 1.25rem;
  }

  .ai-section {
    padding: 60px 0;
  }

  .ai-text h2 {
    font-size: 1.75rem;
  }

  .ai-description {
    font-size: 1rem;
  }

  .registro {
    padding: 60px 0;
  }

  .registro-card {
    padding: 30px 20px;
    margin: 0 10px;
  }

  .registro-card h2 {
    font-size: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

/* ============================================
   Responsive - Small Mobile
   ============================================ */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat {
    padding: 12px 0;
    border-bottom: 1px solid #374151;
  }

  .stat:last-child {
    border-bottom: none;
  }

  .registro-card {
    padding: 24px 16px;
    border-radius: 12px;
  }

  .btn-submit {
    font-size: 1rem;
    padding: 14px;
  }

  .brand-logo .logo-text {
    font-size: 1.25rem;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }
}