/* CalculAI - Estilos Principales */
/* Versión: 1.0.0 | Dominio: rinintelligence.com */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary: #10b981;
  --secondary-dark: #059669;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --bg: #ffffff;
  --text: #1f2937;
  --text-light: #6b7280;
  --gray-light: #f3f4f6;
  --gray-medium: #e5e7eb;
  --gray-dark: #6b7280;
  --danger: #ef4444;
  --success: #10b981;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.08), 0 10px 10px rgba(0,0,0,0.03);
  --radius: 10px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p { color: var(--text-light); line-height: 1.75; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

/* ===================== UTILITIES ===================== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(37,99,235,0.1);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  min-height: 48px;
  white-space: nowrap;
  font-family: var(--font);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 15px rgba(37,99,235,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,99,235,0.45);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-success {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: #fff;
  box-shadow: 0 4px 15px rgba(16,185,129,0.3);
}
.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16,185,129,0.4);
  color: #fff;
}
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.1rem; }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.875rem; }
.btn:active { transform: translateY(0); }

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-medium);
  transition: all var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.nav-logo img { height: 36px; }
.nav-logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 30%, #f0fdf4 70%, #fafafa 100%);
  padding-top: 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,0.07) 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
  border-radius: 50%;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text h1 { margin-bottom: 1.25rem; }
.hero-text h1 span { color: var(--primary); }
.hero-text p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  max-width: 520px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-medium);
}
.hero-stat-item { text-align: center; }
.hero-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
}
.hero-visual {
  position: relative;
}
.dashboard-mockup {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--gray-medium);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.dashboard-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dash-dot.red { background: #ef4444; }
.dash-dot.yellow { background: #f59e0b; }
.dash-dot.green { background: #10b981; }
.dashboard-title {
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  margin-left: 0.5rem;
}
.dashboard-body { padding: 1.25rem; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.dash-kpi {
  background: var(--gray-light);
  border-radius: 8px;
  padding: 0.75rem;
}
.dash-kpi-val { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.dash-kpi-lbl { font-size: 0.65rem; color: var(--text-light); font-weight: 500; }
.dash-chart {
  background: var(--gray-light);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  height: 100px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
.bar {
  flex: 1;
  background: linear-gradient(to top, var(--primary), var(--primary-light));
  border-radius: 4px 4px 0 0;
  opacity: 0.8;
}
.dash-table { font-size: 0.7rem; }
.dash-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--gray-medium);
  color: var(--text-light);
}
.dash-row:last-child { border: none; }
.dash-row .amount { color: var(--secondary); font-weight: 600; }
.floating-badge {
  position: absolute;
  background: #fff;
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  animation: float 4s ease-in-out infinite;
}
.floating-badge.ai { top: -20px; right: -20px; color: var(--secondary); animation-delay: -2s; }
.floating-badge.save { bottom: 30px; left: -30px; color: var(--accent); animation-delay: -1s; }
.floating-badge .icon { font-size: 1rem; }

/* ===================== FEATURES ===================== */
.features { background: var(--bg); }
.section-header { margin-bottom: 4rem; }
.section-header p {
  max-width: 600px;
  margin: 0.75rem auto 0;
  font-size: 1.1rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--gray-medium);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(16,185,129,0.08));
}
.feature-card h3 { font-size: 1rem; margin-bottom: 0.6rem; }
.feature-card p { font-size: 0.875rem; }

/* ===================== BENEFITS ===================== */
.benefits {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #1e3a8a 100%);
  color: #fff;
}
.benefits .section-header p { color: rgba(255,255,255,0.75); }
.benefits h2 { color: #fff; }
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}
.benefit-item:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-3px);
}
.benefit-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.benefit-text h3 { color: #fff; margin-bottom: 0.5rem; font-size: 1.1rem; }
.benefit-text p { color: rgba(255,255,255,0.75); font-size: 0.925rem; }

/* ===================== PRICING ===================== */
.pricing { background: var(--gray-light); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}
.pricing-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 2px solid var(--gray-medium);
  transition: all var(--transition);
  position: relative;
}
.pricing-card.popular {
  border-color: var(--primary);
  transform: scale(1.03);
  box-shadow: var(--shadow-xl);
}
.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pricing-card:hover:not(.popular) {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
}
.plan-name { font-size: 0.9rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em; }
.plan-price { margin: 1rem 0; }
.plan-amount { font-size: 2.25rem; font-weight: 800; color: var(--text); }
.plan-currency { font-size: 1rem; font-weight: 600; color: var(--text-light); vertical-align: top; margin-top: 0.5rem; display: inline-block; }
.plan-period { font-size: 0.85rem; color: var(--text-light); }
.plan-description { font-size: 0.9rem; color: var(--text-light); margin-bottom: 1.5rem; }
.plan-features { list-style: none; margin-bottom: 2rem; }
.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid var(--gray-medium);
}
.plan-features li:last-child { border: none; }
.plan-features li .check { color: var(--secondary); font-weight: 700; }
.plan-features li .cross { color: var(--gray-dark); }

/* ===================== TESTIMONIALS ===================== */
.testimonials { background: var(--bg); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.testimonial-card {
  background: #fff;
  border: 1px solid var(--gray-medium);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.1;
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.stars { color: var(--accent); margin-bottom: 1rem; font-size: 0.9rem; }
.testimonial-text { font-size: 0.95rem; color: var(--text); margin-bottom: 1.5rem; line-height: 1.7; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}
.author-name { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.author-role { font-size: 0.8rem; color: var(--text-light); }

/* ===================== FAQ ===================== */
.faq { background: var(--gray-light); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border: 1px solid var(--gray-medium);
  overflow: hidden;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  transition: background var(--transition);
  gap: 1rem;
}
.faq-question:hover { background: var(--gray-light); }
.faq-icon {
  font-size: 1.25rem;
  color: var(--primary);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 1.5rem 1.25rem; }

/* ===================== CTA BANNER ===================== */
.cta-section {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  top: -150px;
  right: 10%;
  border-radius: 50%;
}
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-section .btn-primary {
  background: #fff;
  color: var(--secondary-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.cta-section .btn-primary:hover {
  background: #f0fdf4;
  color: var(--secondary-dark);
}

/* ===================== FOOTER ===================== */
footer {
  background: #111827;
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { font-size: 0.9rem; margin: 1rem 0; max-width: 300px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-bottom: 0.5rem;
}
.footer-logo-text { font-size: 1.3rem; font-weight: 800; color: #fff; }
.footer-socials { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.social-link {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  transition: all var(--transition);
}
.social-link:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 1.25rem; font-weight: 600; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,0.5); font-size: 0.8rem; }
.footer-legal a:hover { color: #fff; }

/* ===================== FORMS ===================== */
.form-page {
  min-height: 100vh;
  padding: 100px 0 4rem;
  background: var(--gray-light);
}
.form-container {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-xl);
}
.form-header { text-align: center; margin-bottom: 2.5rem; }
.form-header h1 { font-size: 2rem; margin-bottom: 0.75rem; }
.form-header p { color: var(--text-light); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }
label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
label .required { color: var(--danger); }
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-medium);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  transition: all var(--transition);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
input.error, select.error, textarea.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}
.error-msg { font-size: 0.8rem; color: var(--danger); display: none; }
.error-msg.show { display: block; }
textarea { min-height: 120px; resize: vertical; }
.checkbox-group { display: flex; align-items: flex-start; gap: 0.75rem; }
.checkbox-group input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; cursor: pointer; accent-color: var(--primary); flex-shrink: 0; }
.checkbox-group label { font-size: 0.875rem; font-weight: 400; cursor: pointer; }
.conditional-field { display: none; }
.conditional-field.show { display: flex; }
.form-submit { margin-top: 2rem; text-align: center; }
.form-submit .btn { width: 100%; max-width: 360px; font-size: 1.05rem; }
.form-note { font-size: 0.8rem; color: var(--text-light); margin-top: 1rem; text-align: center; }

/* ===================== THANKS PAGE ===================== */
.thanks-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe, #f0fdf4);
  padding: 2rem;
}
.thanks-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 4rem;
  text-align: center;
  max-width: 600px;
  box-shadow: var(--shadow-xl);
}
.thanks-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  50% { box-shadow: 0 0 0 20px rgba(16,185,129,0); }
}
.thanks-card h1 { font-size: 2rem; margin-bottom: 1rem; }
.thanks-steps { margin: 2rem 0; text-align: left; }
.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--gray-light);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.step-text h4 { font-size: 0.9rem; margin-bottom: 0.2rem; }
.step-text p { font-size: 0.825rem; }

/* ===================== ADMIN ===================== */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111827, #1e3a8a);
  padding: 2rem;
}
.login-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo span { font-size: 2rem; font-weight: 800; color: var(--primary); }
.login-logo p { font-size: 0.85rem; color: var(--text-light); }
.alert {
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fee2e2; }
.alert-success { background: #f0fdf4; color: #059669; border: 1px solid #dcfce7; }
.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px;
  min-width: 260px;
  background: #111827;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.sidebar-logo {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-logo span { font-size: 1.3rem; font-weight: 800; color: var(--primary-light); }
.sidebar-logo small { display: block; font-size: 0.7rem; color: rgba(255,255,255,0.4); margin-top: 2px; }
.sidebar-nav { flex: 1; padding: 1.25rem 0; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
  cursor: pointer;
}
.nav-item:hover, .nav-item.active {
  color: #fff;
  background: rgba(255,255,255,0.06);
  border-right: 3px solid var(--primary);
}
.nav-item i { width: 18px; text-align: center; }
.sidebar-footer { padding: 1.25rem 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); }
.admin-content { flex: 1; overflow-y: auto; background: var(--gray-light); }
.admin-header {
  background: #fff;
  border-bottom: 1px solid var(--gray-medium);
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}
.admin-header h1 { font-size: 1.25rem; }
.admin-main { padding: 2rem; }
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.kpi-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--gray-medium);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all var(--transition);
}
.kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.kpi-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.kpi-icon.blue { background: rgba(37,99,235,0.1); color: var(--primary); }
.kpi-icon.green { background: rgba(16,185,129,0.1); color: var(--secondary); }
.kpi-icon.amber { background: rgba(245,158,11,0.1); color: var(--accent); }
.kpi-icon.purple { background: rgba(139,92,246,0.1); color: #7c3aed; }
.kpi-icon.red { background: rgba(239,68,68,0.1); color: var(--danger); }
.kpi-icon.teal { background: rgba(20,184,166,0.1); color: #0d9488; }
.kpi-val { font-size: 1.85rem; font-weight: 800; color: var(--text); line-height: 1; }
.kpi-lbl { font-size: 0.8rem; color: var(--text-light); margin-top: 0.25rem; }
.kpi-trend { font-size: 0.75rem; font-weight: 600; margin-top: 0.25rem; }
.kpi-trend.up { color: var(--secondary); }
.kpi-trend.down { color: var(--danger); }
.admin-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-medium);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.admin-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-medium);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-card-header h3 { font-size: 1rem; }
.admin-card-body { padding: 1.5rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--gray-light);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--gray-medium);
}
.data-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--gray-medium); color: var(--text); }
.data-table tr:last-child td { border: none; }
.data-table tr:hover td { background: #fafafa; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.status-badge.contactado { background: #f0fdf4; color: #059669; }
.status-badge.pendiente { background: #fffbeb; color: #d97706; }
.filters-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.filters-bar input, .filters-bar select {
  max-width: 200px;
  padding: 0.6rem 0.9rem;
  font-size: 0.875rem;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-medium);
  font-size: 0.875rem;
  color: var(--text-light);
}
.page-btns { display: flex; gap: 0.5rem; }
.page-btn {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--gray-medium);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text);
  transition: all var(--transition);
}
.page-btn:hover, .page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===================== MODAL ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  padding: 1rem;
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: all var(--transition);
}
.modal-overlay.show .modal { transform: scale(1) translateY(0); }
.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-medium);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-light);
  padding: 0.25rem;
  border-radius: 4px;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--text); }
.modal-body { padding: 1.5rem; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.detail-item label { font-size: 0.75rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; }
.detail-item p { font-size: 0.9rem; color: var(--text); margin-top: 0.2rem; }

/* ===================== NOTIFICATIONS ===================== */
.toast-container { position: fixed; top: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.75rem; }
.toast {
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 280px;
  animation: slideIn 0.3s ease;
  border-left: 4px solid var(--success);
}
.toast.error { border-left-color: var(--danger); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===================== LOADER ===================== */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.loader-overlay.show { opacity: 1; visibility: visible; }
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--gray-medium);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================== SCROLL ANIMATIONS ===================== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left { opacity: 0; transform: translateX(-24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right { opacity: 0; transform: translateX(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1280px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pricing-card.popular { transform: none; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { display: none; }
}
@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .nav-links, .nav-actions .btn { display: none; }
  .hamburger { display: flex; }
  .nav-menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    gap: 0;
  }
  .nav-menu-open .nav-links li { border-bottom: 1px solid var(--gray-medium); }
  .nav-menu-open .nav-links a { display: block; padding: 0.85rem 0; font-size: 1rem; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .kpi-grid { grid-template-columns: 1fr; }
  .form-container { padding: 2rem 1.25rem; }
  .thanks-card { padding: 2.5rem 1.5rem; }
  .detail-grid { grid-template-columns: 1fr; }
  .filters-bar { flex-direction: column; }
  .filters-bar input, .filters-bar select { max-width: 100%; }
}
@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .btn-lg { padding: 0.9rem 1.75rem; font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

/* ===================== VIDEO HERO ===================== */
.video-hero {
  background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 1.5rem 50px;
  position: relative;
  overflow: hidden;
}
.video-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(37,99,235,0.18) 0%, transparent 65%),
              radial-gradient(ellipse at 20% 80%, rgba(16,185,129,0.12) 0%, transparent 55%);
  pointer-events: none;
}
.video-hero-inner {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.video-hero-text {
  text-align: center;
}
.video-hero-text h2 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  margin: 0.4rem 0 0.5rem;
}

/* Player wrapper */
.video-player-wrap {
  width: 100%;
}
.video-player-box {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08);
  aspect-ratio: 16 / 9;
}
.video-player-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay (click to play with sound) */
.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 5;
}
.video-overlay:hover { background: rgba(0,0,0,0.3); }
.video-overlay.hidden { display: none; }
.video-play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37,99,235,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}
.video-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(37,99,235,0.65);
}
.video-overlay-hint {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.02em;
}

/* Custom controls bar */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem 0.85rem;
  z-index: 6;
  opacity: 0;
  transition: opacity 0.3s;
}
.video-player-box:hover .video-controls { opacity: 1; }
.vc-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
  min-width: 28px;
  text-align: center;
}
.vc-btn:hover { color: #fff; background: rgba(255,255,255,0.12); }
.vc-progress-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.vc-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 4px;
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}
.vc-time {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* Scroll hint */
.scroll-hint {
  text-align: center;
  margin-top: 0.5rem;
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* Muted badge */
.muted-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.6);
  color: rgba(255,255,255,0.85);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 7;
  backdrop-filter: blur(4px);
  transition: opacity 0.3s;
}
.muted-badge.hide { opacity: 0; pointer-events: none; }

/* Responsive */
@media (max-width: 768px) {
  .video-hero { padding: 80px 1rem 2rem; min-height: auto; }
  .video-play-btn { width: 64px; height: 64px; font-size: 1.4rem; }
  .video-controls { padding: 1rem 0.85rem 0.6rem; gap: 0.5rem; }
  .vc-time { display: none; }
}
@media (max-width: 640px) {
  .video-player-box { border-radius: 10px; }
}

/* ===================== LOGO IMAGE ===================== */
.navbar-logo-img {
  height: 44px;
  width: 44px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}
.footer-logo-img {
  height: 38px;
  width: 38px;
  object-fit: contain;
  display: block;
}
.nav-logo img {
  height: 44px !important;
  width: 44px !important;
  object-fit: contain;
}
