/* =============================================
   VIT-AE.COM — Estilos Principales
   Diseño moderno con gradientes azul/morado
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Variables CSS ── */
:root {
  --primary-400: #818cf8;
  --primary-500: #6366f1;
  --primary-600: #4f46e5;
  --primary-700: #4338ca;
  --secondary-400: #c084fc;
  --secondary-500: #a855f7;
  --secondary-600: #9333ea;
  --accent-400: #22d3ee;
  --accent-500: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --white: #ffffff;
  --gradient-main: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-500) 100%);
  --gradient-hero: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #4c1d95 60%, #5b21b6 100%);
  --gradient-card: linear-gradient(135deg, rgba(99,102,241,0.1) 0%, rgba(168,85,247,0.1) 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
  --shadow-2xl: 0 25px 50px rgba(0,0,0,0.15);
  --shadow-primary: 0 4px 14px rgba(99,102,241,0.35);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition: all 0.2s ease;
  --transition-slow: all 0.4s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 700; color: var(--gray-900); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p { color: var(--gray-600); line-height: 1.7; }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.container-xs { max-width: 520px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.9375rem; border: none;
  transition: var(--transition); cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-main); color: var(--white);
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.45);
}
.btn-secondary {
  background: var(--white); color: var(--primary-600);
  border: 2px solid var(--primary-600);
}
.btn-secondary:hover { background: var(--primary-600); color: var(--white); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--primary-600); box-shadow: var(--shadow-md); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--gray-600); }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-900); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #dc2626; transform: translateY(-2px); }
.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: #059669; transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: 1.0625rem; }
.btn-sm { padding: 8px 16px; font-size: 0.8125rem; }
.btn-icon { padding: 10px; border-radius: var(--radius-md); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-free { background: rgba(16,185,129,0.1); color: var(--success); border: 1px solid rgba(16,185,129,0.3); }
.badge-premium { background: rgba(245,158,11,0.1); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }
.badge-primary { background: rgba(99,102,241,0.1); color: var(--primary-600); border: 1px solid rgba(99,102,241,0.3); }
.badge-new { background: var(--gradient-main); color: var(--white); }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 500; font-size: 0.9375rem; color: var(--gray-700); margin-bottom: 6px; }
.form-label span.required { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--gray-200); border-radius: var(--radius-md);
  font-size: 0.9375rem; color: var(--gray-900);
  background: var(--white); transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary-500); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.form-control::placeholder { color: var(--gray-400); }
.form-control.is-invalid { border-color: var(--danger); }
.form-error { font-size: 0.8125rem; color: var(--danger); margin-top: 4px; display: none; }
.form-error.show { display: block; }
.form-hint { font-size: 0.8125rem; color: var(--gray-400); margin-top: 4px; }
.input-icon-wrap { position: relative; }
.input-icon-wrap .form-control { padding-left: 44px; }
.input-icon-wrap .input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-400); font-size: 1rem; }
.input-icon-wrap .input-icon-right { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-400); cursor: pointer; font-size: 1rem; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary-500); flex-shrink: 0; cursor: pointer; }

/* ── Cards ── */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
  border: 1px solid var(--gray-100);
}
.card-body { padding: 28px; }
.card-header { padding: 20px 28px; border-bottom: 1px solid var(--gray-100); }
.card-footer { padding: 20px 28px; border-top: 1px solid var(--gray-100); background: var(--gray-50); }

/* ── Alerts ── */
.alert { padding: 14px 18px; border-radius: var(--radius-md); font-size: 0.9375rem; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #065f46; }
.alert-danger { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #991b1b; }
.alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: #92400e; }
.alert-info { background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.3); color: var(--primary-700); }
.alert { display: none; }
.alert.show { display: flex; }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-100);
  padding: 0; height: 68px;
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.5rem; }
.nav-logo .logo-icon {
  width: 38px; height: 38px; border-radius: var(--radius-md);
  background: var(--gradient-main); display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem; font-weight: 900;
}
.nav-logo .logo-text { background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.nav-links a { padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 500; font-size: 0.9375rem; color: var(--gray-600); transition: var(--transition); }
.nav-links a:hover { background: var(--gray-100); color: var(--gray-900); }
.nav-links a.active { color: var(--primary-600); background: rgba(99,102,241,0.08); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; color: var(--gray-700); font-size: 1.4rem; padding: 6px; }

/* ── Section Styles ── */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--primary-600); margin-bottom: 12px;
}
.section-header .eyebrow::before, .section-header .eyebrow::after {
  content: ''; height: 2px; width: 24px; background: var(--gradient-main); border-radius: 2px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.0625rem; max-width: 580px; margin: 0 auto; }
.section-divider { height: 1px; background: var(--gray-100); margin: 8px 0; }

/* ── Gradient Text ── */
.gradient-text { background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Tag / Chip ── */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--radius-full); background: var(--gray-100); color: var(--gray-700); font-size: 0.875rem; font-weight: 500; }
.chip i { font-size: 0.75rem; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(15,23,42,0.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; visibility: hidden;
  transition: var(--transition-slow);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: var(--white); border-radius: var(--radius-xl);
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-2xl); transform: scale(0.95) translateY(10px);
  transition: var(--transition-slow);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-header { padding: 28px 28px 0; display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { margin-bottom: 0; }
.modal-close { background: var(--gray-100); border: none; width: 32px; height: 32px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; color: var(--gray-600); cursor: pointer; transition: var(--transition); }
.modal-close:hover { background: var(--gray-200); color: var(--gray-900); }
.modal-body { padding: 24px 28px; }
.modal-footer { padding: 0 28px 28px; display: flex; gap: 12px; justify-content: flex-end; }

/* ── Toast ── */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl); padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  font-size: 0.9375rem; font-weight: 500; min-width: 280px; max-width: 360px;
  transform: translateX(110%); transition: var(--transition-slow);
  border-left: 4px solid var(--primary-500);
}
.toast.show { transform: translateX(0); }
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast i { font-size: 1.125rem; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.warning i { color: var(--warning); }
.toast-close { margin-left: auto; background: none; border: none; color: var(--gray-400); cursor: pointer; padding: 2px; }

/* ── Divider ── */
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.divider span { color: var(--gray-400); font-size: 0.875rem; white-space: nowrap; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }

/* ── Progress Bar ── */
.progress { height: 6px; background: var(--gray-100); border-radius: var(--radius-full); overflow: hidden; }
.progress-bar { height: 100%; background: var(--gradient-main); border-radius: var(--radius-full); transition: width 0.6s ease; }

/* ── Skeleton Loading ── */
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skeleton { background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }

/* ── Animations ── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse-glow { 0%,100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.4); } 50% { box-shadow: 0 0 0 12px rgba(99,102,241,0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes gradient-move { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.animate-fade-in { animation: fadeIn 0.6s ease; }
.animate-fade-up { animation: fadeInUp 0.6s ease; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* ── Utilities ── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary-600); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--gray-400); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.relative { position: relative; }

/* ── Grid ── */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Footer ── */
.footer { background: var(--gray-900); color: var(--gray-300); padding: 64px 0 32px; }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer a { color: var(--gray-400); transition: var(--transition); font-size: 0.9375rem; }
.footer a:hover { color: var(--white); }
.footer-logo { font-size: 1.75rem; font-weight: 800; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 12px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--gray-800); display: flex; align-items: center; justify-content: center; color: var(--gray-400); transition: var(--transition); }
.footer-social a:hover { background: var(--primary-600); color: white; }
.footer-bottom { border-top: 1px solid var(--gray-800); padding-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-bottom p { margin: 0; font-size: 0.875rem; color: var(--gray-500); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: white; padding: 16px; border-bottom: 1px solid var(--gray-100); box-shadow: var(--shadow-lg); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .modal { max-width: 100%; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn-lg { padding: 14px 24px; font-size: 1rem; }
}
