/* INfoY Cursos - Modern Style 2.0 */
:root {
  --primary: #4A6FDC;
  --primary-dark: #3A5DC0;
  --secondary: #FF9066;
  --accent: #00BFA6;
  --dark: #1A202C;
  --gray-dark: #4A5568;
  --gray: #718096;
  --gray-light: #CBD5E0;
  --light: #F7FAFC;
  --border: #E2E8F0;
  --success: #48BB78;
  --danger: #F56565;
  --warning: #ECC94B;

  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
  --shadow: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  --header-height: 70px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-base);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.6;
  font-weight: 400;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

.text-accent {
  color: var(--accent);
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: white;
}

.btn-outline {
  border: 2px solid var(--primary);
  background-color: transparent;
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.btn-outline-secondary {
  border: 2px solid var(--secondary);
  background-color: transparent;
  color: var(--secondary);
}

.btn-outline-secondary:hover {
  background-color: var(--secondary);
  color: white;
}

.btn-accent {
  background-color: var(--accent);
  color: white;
}

.btn-accent:hover {
  background-color: #00a894;
  color: white;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
}

/* Header & Navigation */
.header {
  background-color: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  font-size: 1.75rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--dark);
}

.logo-text {
  color: var(--primary);
}

.logo-accent {
  color: var(--secondary);
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0 0.5rem;
}

.nav-menu a {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  color: var(--gray-dark);
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
  background-color: rgba(74, 111, 220, 0.1);
}

.nav-buttons {
  display: flex;
  align-items: center;
}

.nav-buttons .btn {
  margin-left: 0.75rem;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  padding: 10px;
  margin-left: 1rem;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--dark);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, #4A6FDC 0%, #3A5DC0 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-cta .btn-outline {
  border-color: white;
  color: white;
}

.hero-cta .btn-outline:hover {
  background-color: white;
  color: var(--primary);
}

.hero-image {
  text-align: right;
}

.hero-image img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-shapes .shape {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
}

.shape-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: -50px;
}

.shape-3 {
  width: 150px;
  height: 150px;
  bottom: 100px;
  right: 30%;
}

/* Stats Section */
.stats {
  background-color: white;
  padding: 3rem 0;
  margin-top: -3rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
  z-index: 3;
  box-shadow: var(--shadow);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-card {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card p {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 0;
  font-weight: 500;
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
  font-size: 2rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.section-header.light h2,
.section-header.light p {
  color: white;
}

section.light {
  background-color: var(--primary);
  color: white;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: var(--light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.feature-card {
  background-color: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(74, 111, 220, 0.1);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.feature-card:hover .feature-icon {
  background-color: var(--primary);
}

.feature-icon i {
  font-size: 1.75rem;
  color: var(--primary);
}

.feature-card:hover .feature-icon i {
  color: white;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  position: relative;
  z-index: 2;
}

.feature-card p {
  color: var(--gray);
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--primary);
}

/* Courses Section */
.courses {
  background-color: white;
  padding: 5rem 0;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.course-card {
  background-color: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.course-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 1rem;
  background-color: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  z-index: 10;
}

.course-badge-new {
  background-color: var(--success);
}

.course-badge-special {
  background-color: var(--secondary);
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.course-img {
  height: 200px;
  overflow: hidden;
}

.course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-card:hover .course-img img {
  transform: scale(1.1);
}

.course-content {
  padding: 1.5rem;
}

.course-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.course-level {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray);
  background-color: var(--light);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

.course-rating {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  color: var(--gray);
}

.course-rating i {
  color: #FFB400;
  margin-right: 1px;
}

.course-rating span {
  margin-left: 0.35rem;
  font-weight: 600;
}

.course-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.course-card p {
  color: var(--gray);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.course-meta span {
  font-size: 0.875rem;
  color: var(--gray-dark);
  margin-right: 1.25rem;
  display: flex;
  align-items: center;
}

.course-meta i {
  color: var(--primary);
  margin-right: 0.35rem;
}

/* Platform Features Section */
.platform-features {
  background-color: var(--light);
  padding: 5rem 0;
}

.platform-features-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.platform-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.platform-feature.reversed {
  direction: rtl;
}

.platform-feature-content {
  direction: ltr;
}

.platform-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(74, 111, 220, 0.1);
  margin-bottom: 1.5rem;
}

.platform-feature-icon i {
  font-size: 1.5rem;
  color: var(--primary);
}

.platform-feature h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.platform-feature p {
  margin-bottom: 1.5rem;
  color: var(--gray);
}

.platform-feature-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Testimonials Section */
.testimonials {
  background-color: var(--primary);
  color: white;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.testimonial-slider {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 2rem;
  flex: 1;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-rating {
  margin-bottom: 1rem;
}

.testimonial-rating i {
  color: #FFB400;
  margin-right: 0.25rem;
}

.testimonial-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
  border: 2px solid white;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-info h4 {
  color: white;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.testimonial-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--secondary) 0%, #FF6B35 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  color: white;
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.cta p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta .btn-primary {
  background-color: white;
  color: var(--secondary);
}

.cta .btn-primary:hover {
  background-color: var(--light);
}

.cta-shapes .cta-shape {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.cta-shape-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
}

.cta-shape-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: -50px;
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: white;
  padding-top: 5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-column p {
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-column h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.contact-info {
  list-style: none;
}

.contact-info li {
  display: flex;
  margin-bottom: 1rem;
}

.contact-info i {
  color: var(--primary);
  margin-right: 1rem;
  margin-top: 0.25rem;
}

.contact-info p {
  margin-bottom: 0;
}

.footer-bottom {
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  margin-bottom: 0;
  opacity: 0.7;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer-legal a:hover {
  color: white;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.25rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .features-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .platform-feature {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .platform-feature-image {
    order: -1;
  }
  
  .platform-feature.reversed .platform-feature-image {
    order: -1;
  }
  
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .hero {
    padding: 3rem 0 4rem;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-image {
    text-align: center;
    order: -1;
  }
  
  .courses-grid,
  .testimonial-slider {
    grid-template-columns: 1fr;
  }
  
  .testimonial-slider {
    flex-direction: column;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-legal {
    justify-content: center;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 0;
    background-color: white;
    flex-direction: column;
    overflow: hidden;
    transition: height 0.3s ease;
    box-shadow: var(--shadow);
  }
  
  .nav-menu.active {
    height: 350px;
    overflow-y: auto;
    padding: 1rem 0;
  }
  
  .nav-menu li {
    width: 100%;
    margin: 0;
  }
  
  .nav-menu a {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    text-align: center;
    border-radius: 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  body.menu-open {
    overflow: hidden;
  }
  
  .navbar > div:nth-child(3) .btn:first-child {
    display: none;
  }
}

@media (max-width: 576px) {
  .features-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .nav-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(30px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.slide-up {
  animation: slideUp 0.6s ease forwards;
}