:root {
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --secondary-color: #8b5cf6;
  --accent-color: #06b6d4;
  --bg-light: #ffffff;
  --bg-lighter: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #f1f5f9;
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  --text-dark: #1e293b;
  --text-gray: #475569;
  --text-muted: #64748b;
  --text-light: #050505;
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  --gradient-secondary: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  --gradient-hero: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.5) 100%);
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.875rem;
  --font-size-sm: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.5rem;
  --font-size-xl: 2rem;
  --font-size-2xl: 2.5rem;
  --font-size-3xl: 3.5rem;
  --shadow-sm: 0 2px 8px rgba(37, 99, 235, 0.15);
  --shadow-md: 0 4px 16px rgba(37, 99, 235, 0.2);
  --shadow-lg: 0 8px 32px rgba(37, 99, 235, 0.25);
  --shadow-xl: 0 16px 48px rgba(37, 99, 235, 0.3);
  --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.4);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-lighter);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

h2 {
  font-size: clamp(1.75rem, 4vw, var(--font-size-2xl));
  color: var(--text-dark);
  margin-bottom: var(--spacing-lg);
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  animation: expand-width 0.8s ease-out;
}

h3 {
  font-size: var(--font-size-xl);
  color: var(--primary-color);
}

h4 {
  font-size: var(--font-size-lg);
  color: var(--text-dark);
}

p {
  color: var(--text-gray);
  font-size: var(--font-size-md);
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-base);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-3xl) 0;
  position: relative;
}

.section-dark {
  background: #e0f2fe;
  color: var(--text-dark);
}

.section-darker {
  background: #f0f9ff;
  color: var(--text-dark);
}

.section-light {
  background: var(--bg-light);
  color: var(--text-dark);
}

.section-light h2,
.section-light h3,
.section-light h4 {
  color: var(--text-dark);
}

.section-light p {
  color: var(--text-gray);
}

.text-center {
  text-align: center;
}

/* HEADER  */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-base);
  animation: slide-down 0.5s ease-out;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0.2rem var(--spacing-lg);
}

.logo {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--primary-color);
  transition: all var(--transition-bounce);
}

.header.scrolled .logo {
  color: var(--primary-color);
}

.logo:hover {
  transform: scale(1.05);
}

.logo-img {
  height: 95px;
  width: auto;
  max-width: 250px;
  filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.3));
  animation: float 3s ease-in-out infinite;
  mix-blend-mode: multiply;
}

.nav-menu {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.nav-menu a {
  color: rgb(6, 6, 6);
  font-weight: 500;
  position: relative;
  padding: var(--spacing-xs) 0;
  transition: color var(--transition-base);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.7);
}

.header.scrolled .nav-menu a {
  color: var(--text-dark);
  text-shadow: none;
}

.nav-menu a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
  width: 100%;
}

.home-page .nav-menu a {
  color: #ffffff;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
}

.home-page .nav-menu a:hover,
.home-page .nav-menu a.active {
  color: var(--primary-color);
  text-shadow: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: var(--font-size-lg);
  cursor: pointer;
  transition: transform var(--transition-bounce);
}

.header.scrolled .menu-toggle {
  color: var(--primary-color);
}

.menu-toggle:hover {
  transform: scale(1.2) rotate(90deg);
}

/* HERO SECTION */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: left;
  max-width: 600px;
  padding: var(--spacing-xl);
  margin-left: 0;
}

.hero-content h1 {
  margin-bottom: var(--spacing-lg);
  animation: fade-in-up 0.8s ease-out;
  -webkit-text-fill-color: white !important;
  color: white !important;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9), 0 2px 10px rgba(0, 0, 0, 0.8);
  font-weight: 700;
  background: none !important;
}

.hero-tagline {
  font-size: var(--font-size-md);
  color: white !important;
  margin: 0 0 var(--spacing-xl);
  animation: fade-in-up 0.8s ease-out 0.2s both;
  font-weight: 400;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9), 0 1px 5px rgba(0, 0, 0, 0.7);
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-start;
  flex-wrap: wrap;
  animation: fade-in-up 0.8s ease-out 0.4s both;
}

/*  BUTTONS */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(37, 99, 235, 0.6);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary-color);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

/* GRID  */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

/*CARDS*/
.card {
  background: var(--bg-card);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-bounce);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--primary-color);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-top-color: var(--secondary-color);
}

.card i {
  font-size: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-md);
  display: block;
  animation: bounce-in 0.6s ease-out;
}

.card:hover i {
  animation: pulse-icon 0.6s ease-in-out;
}

.card h4 {
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

.card p {
  color: var(--text-gray);
  font-size: var(--font-size-sm);
}

.card ul {
  list-style: none;
  margin-top: var(--spacing-md);
}

.card ul li {
  color: var(--text-gray);
  padding: var(--spacing-xs) 0;
  padding-left: var(--spacing-lg);
  position: relative;
}

.card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

/*  STATS */
.stats {
  background: var(--gradient-primary);
  padding: var(--spacing-2xl) 0;
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  text-align: center;
}

.stat-item h3 {
  font-size: var(--font-size-3xl);
  color: var(--text-light);
  margin-bottom: var(--spacing-xs);
}

.stat-item p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* TESTIMONIALS */
.testimonial {
  background: var(--bg-card);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary-color);
  transition: all var(--transition-bounce);
}

.testimonial:hover {
  transform: translateX(10px);
  border-left-color: var(--secondary-color);
  box-shadow: var(--shadow-lg);
}

.testimonial p {
  font-style: italic;
  margin-bottom: var(--spacing-md);
}

.testimonial-author strong {
  color: var(--text-dark);
  display: block;
}

.testimonial-author span {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
}

/* FORMS  */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--text-dark);
  font-weight: 600;
}

.form-group .required {
  color: #ef4444;
}

input,
textarea,
select {
  width: 100%;
  padding: var(--spacing-md);
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  background: var(--bg-light);
  color: var(--text-dark);
  transition: all var(--transition-base);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.success-message {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-top: var(--spacing-md);
  animation: slide-in-right 0.5s ease-out;
}

/* CONTACT CARDS  */
.contact-card {
  background: var(--bg-card);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-lg);
  border-left: 4px solid var(--primary-color);
  transition: all var(--transition-bounce);
}

.contact-card:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-lg);
}

.contact-card h4 {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.contact-card h4 i {
  color: var(--primary-color);
}

.contact-card a {
  color: var(--primary-color);
  font-weight: 600;
}

.contact-card a:hover {
  color: var(--primary-light);
}

/*  FOOTER  */
.footer {
  background: #e0f2fe;
  padding: var(--spacing-3xl) 0 var(--spacing-lg);
  border-top: 4px solid var(--primary-color);
  color: var(--text-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.footer h4 {
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
}

.footer p {
  color: var(--text-gray);
  font-size: var(--font-size-sm);
}

.footer a {
  display: block;
  color: var(--text-gray);
  margin-bottom: var(--spacing-xs);
  transition: all var(--transition-base);
}

.footer a:hover {
  color: var(--primary-color);
  padding-left: var(--spacing-xs);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  transition: all var(--transition-bounce);
  padding: 0;
}

.social-links a:hover {
  background: var(--gradient-primary);
  transform: translateY(-5px) rotate(360deg);
  box-shadow: var(--shadow-glow);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: var(--font-size-xs);
}

/* WHATSAPP BUTTON  */
.whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all var(--transition-bounce);
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp:hover {
  transform: scale(1.15) rotate(15deg);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

/* SCROLL ANIMATIONS */
.fade-in-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-scroll.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
}

.fade-in-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.zoom-in {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.zoom-in.animate-on-scroll {
  opacity: 0;
  transform: scale(0.9);
}

.zoom-in.visible {
  opacity: 1;
  transform: scale(1);
}

/*  ANIMATIONS */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce-in {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }

  70% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes pulse-icon {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

@keyframes pulse-whatsapp {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes expand-width {
  from {
    width: 0;
  }

  to {
    width: 60px;
  }
}

@keyframes gradient-shift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.fade-in {
  opacity: 0;
  animation: fade-in-up 0.8s ease-out forwards;
}

/*  RESPONSIVE */
@media (max-width: 768px) {
  .header {
    padding: 0;
  }

  .navbar {
    padding: 0.5rem 1rem;
  }

  .logo-img {
    height: 75px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 80px 2rem 2rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu a {
    color: var(--text-dark) !important;
    text-shadow: none !important;
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
    width: 100%;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    position: relative;
  }

  .nav-menu a:hover {
    background: #f1f5f9;
    color: var(--primary-color) !important;
    padding-left: 1.5rem;
  }

  .nav-menu a.active {
    background: var(--primary-color);
    color: white !important;
    font-weight: 600;
  }

  .nav-menu a::before {
    display: none;
  }

  .menu-toggle {
    display: block;
    color: var(--primary-color);
    font-size: 1.75rem;
    z-index: 1001;
    padding: 0.25rem;
  }

  .header.scrolled .menu-toggle {
    color: var(--primary-color);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .hero {
    min-height: 500px;
  }

  .hero-content {
    padding: var(--spacing-md);
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 1.75rem !important;
  }

  .hero-tagline {
    font-size: 1rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  h3 {
    font-size: 1.25rem !important;
  }

  h4 {
    font-size: 1.1rem !important;
  }

  .card {
    padding: var(--spacing-lg);
  }

  .section {
    padding: var(--spacing-2xl) 0;
  }

  .footer-grid {
    gap: var(--spacing-lg);
  }
}

@media (max-width: 480px) {
  .container {
    width: 95%;
    padding: 0 0.75rem;
  }

  .section {
    padding: var(--spacing-xl) 0;
  }

  .logo-img {
    height: 60px;
  }

  .nav-menu {
    width: 100%;
    padding: 80px 1rem 1rem;
  }

  .nav-menu a {
    font-size: 1rem;
    padding: 0.875rem 1rem;
  }

  .hero-content h1 {
    font-size: 1.5rem !important;
  }

  .hero-tagline {
    font-size: 0.95rem !important;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .card {
    padding: var(--spacing-md);
  }

  h2 {
    font-size: 1.35rem !important;
  }

  p {
    font-size: 0.95rem;
  }
}

/*  UTILITY CLASSES  */
.mt-4 {
  margin-top: var(--spacing-xl);
}

.mb-3 {
  margin-bottom: var(--spacing-lg);
}

.mb-4 {
  margin-bottom: var(--spacing-xl);
}

.pt-5 {
  padding-top: var(--spacing-3xl);
}