/* ESTILOS PREMIUM PARA CURSOS - CLASESMAT */

/* Variables CSS */
:root {
  --primary-color: #1e3a8a;
  --secondary-color: #0ea5e9;
  --accent-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --success-color: #22c55e;
  --dark-color: #1f2937;
  --light-color: #f8fafc;
  --white: #ffffff;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), #059669);
  --gradient-warning: linear-gradient(135deg, var(--warning-color), #d97706);
}

/* Reset y Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HERO SECTION */
.courses-hero {
  min-height: 100vh;
  background: var(--gradient-primary);
  position: relative;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.math-animations {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.1;
}

.floating-formula {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 1.2rem;
  font-weight: 600;
  animation: float-formula 20s infinite linear;
  white-space: nowrap;
}

.floating-formula:nth-child(1) {
  top: 20%;
  left: -20%;
  animation-delay: 0s;
}

.floating-formula:nth-child(2) {
  top: 40%;
  right: -30%;
  animation-delay: -5s;
}

.floating-formula:nth-child(3) {
  top: 60%;
  left: -25%;
  animation-delay: -10s;
}

.floating-formula:nth-child(4) {
  top: 80%;
  right: -20%;
  animation-delay: -15s;
}

@keyframes float-formula {
  0% {
    transform: translateX(-100px) translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateX(calc(100vw + 100px)) translateY(-20px) rotate(1deg);
  }
  100% {
    transform: translateX(calc(100vw + 200px)) translateY(0px) rotate(0deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.courses-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 32px;
  opacity: 0.9;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.specialty-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.specialty-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.specialty-item i {
  font-size: 1.5rem;
  color: var(--warning-color);
}

.target-careers {
  margin-bottom: 32px;
}

.target-careers h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  opacity: 0.9;
}

.careers-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.career-tag {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.career-tag:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-hero.primary {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.btn-hero.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-hero.secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-hero.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

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

/* FILTROS */
.courses-filters {
  padding: 60px 0;
  background: var(--light-color);
}

.filter-header {
  text-align: center;
  margin-bottom: 40px;
}

.filter-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.filter-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.search-bar {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.search-bar input {
  width: 100%;
  padding: 12px 16px 12px 45px;
  border: 2px solid var(--border-color);
  border-radius: 25px;
  font-size: 16px;
  background: var(--white);
  transition: all 0.3s ease;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.search-bar i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

/* SECCIONES DE CURSOS */
.courses-section {
  padding: 80px 0;
}

.courses-section:nth-child(even) {
  background: var(--light-color);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.section-title p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 32px;
}

/* TARJETAS DE CURSOS */
.course-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid var(--border-color);
}

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

.course-card.featured {
  border: 2px solid var(--accent-color);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
}

.course-header {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.course-image {
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.math-visual,
.code-preview {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--white);
  font-family: 'Fira Code', 'Courier New', monospace;
  position: relative;
}

.formula-overlay {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.formula-overlay span {
  font-size: 1.1rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.code-preview pre {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  padding: 16px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.4;
  overflow: hidden;
  max-width: 100%;
}

.code-preview code {
  color: var(--white);
}

.course-level,
.course-duration {
  position: absolute;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(5px);
}

.course-level {
  top: 12px;
  left: 12px;
}

.course-duration {
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.course-badge {
  position: absolute;
  top: -8px;
  right: 16px;
  padding: 6px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  z-index: 10;
}

.course-badge.bestseller { background: var(--gradient-warning); }
.course-badge.featured { background: var(--gradient-accent); }
.course-badge.trending { background: linear-gradient(135deg, #ec4899, #db2777); }
.course-badge.framework { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.course-badge.fundamental { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.course-badge.enterprise { background: linear-gradient(135deg, #1f2937, #374151); }
.course-badge.ai { background: linear-gradient(135deg, #f59e0b, #d97706); }
.course-badge.quality { background: linear-gradient(135deg, #059669, #047857); }

/* CONTENIDO DE CURSOS */
.course-content {
  padding: 24px;
}

.course-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
  line-height: 1.3;
}

.course-content > p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* CURRICULUM */
.course-curriculum {
  margin-bottom: 24px;
}

.curriculum-section {
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  background: var(--light-color);
}

.curriculum-section h4 {
  background: var(--white);
  color: var(--primary-color);
  padding: 12px 16px;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--border-color);
}

.curriculum-section h4:hover {
  background: var(--light-color);
}

.topics-grid {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.topic-item {
  background: var(--white);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  text-align: center;
}

.topic-item:hover {
  background: var(--secondary-color);
  color: var(--white);
  transform: scale(1.02);
}

/* HERRAMIENTAS Y APLICACIONES */
.course-tools,
.course-applications {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--light-color);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.course-tools h4,
.course-applications h4 {
  color: var(--primary-color);
  font-size: 1rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--white);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.tool-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tool-item i {
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.tool-item span {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.applications-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.app-item i {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.app-item strong {
  color: var(--primary-color);
}

/* PROYECTO SHOWCASE */
.project-showcase {
  margin-bottom: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-radius: 12px;
  border: 1px solid #bae6fd;
}

.project-showcase h4 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.project-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #bae6fd;
  font-size: 13px;
}

.feature-item i {
  color: var(--secondary-color);
}

/* FOOTER DE CURSO */
.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.course-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stars {
  display: flex;
  gap: 2px;
}

.stars i {
  color: #fbbf24;
  font-size: 14px;
}

.rating-text {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.course-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-original {
  text-decoration: line-through;
  color: var(--text-secondary);
  font-size: 14px;
}

.price-current {
  color: var(--accent-color);
  font-size: 1.25rem;
  font-weight: 700;
}

.course-price-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.course-price-action .price {
  color: var(--accent-color);
  font-size: 1.5rem;
  font-weight: 700;
}

/* ACCIONES DE CURSO */
.course-actions {
  display: flex;
  gap: 12px;
}

.btn-course {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

.btn-course.primary {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-course.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

/* SECCIONES ESPECÍFICAS */
.python-section {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.r-section {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.java-section {
  background: linear-gradient(135deg, #fed7d7, #fbb6b6);
}

.ml-section {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}

/* TESTIMONIOS */
.testimonials-section {
  padding: 80px 0;
  background: var(--primary-color);
  color: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.quote-icon {
  color: var(--warning-color);
  font-size: 2rem;
  margin-bottom: 16px;
}

.testimonial-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

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

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.author-info strong {
  display: block;
  font-weight: 600;
}

.author-info span {
  font-size: 14px;
  opacity: 0.8;
}

.testimonial-rating {
  margin-top: 16px;
  text-align: right;
}

/* CTA SECTION */
.cta-section {
  padding: 80px 0;
  background: var(--gradient-primary);
  color: var(--white);
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 32px;
  opacity: 0.9;
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.cta-features .feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-features .feature-item i {
  font-size: 2rem;
  color: var(--warning-color);
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

.btn-cta.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-cta.secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-cta.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0.8;
}

.guarantee i {
  color: var(--accent-color);
}

/* FOOTER */
.footer {
  background: var(--dark-color);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--warning-color);
}

.footer-section p {
  color: #d1d5db;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--warning-color);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #d1d5db;
}

.contact-info i {
  color: var(--secondary-color);
  width: 16px;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: #9ca3af;
  margin: 0;
}

/* WHATSAPP FLOTANTE */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--gradient-accent);
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .courses-hero {
    min-height: 80vh;
    padding: 60px 0;
  }
  
  .courses-hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .specialties-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-hero {
    width: 100%;
    max-width: 300px;
  }
  
  .filter-tabs {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-btn {
    width: 100%;
    max-width: 250px;
  }
  
  .courses-grid {
    grid-template-columns: 1fr;
  }
  
  .course-header {
    height: 180px;
  }
  
  .code-preview pre {
    font-size: 10px;
    padding: 12px;
  }
  
  .topics-grid {
    grid-template-columns: 1fr;
  }
  
  .course-actions {
    flex-direction: column;
  }
  
  .course-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .cta-features {
    flex-direction: column;
    gap: 16px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-cta {
    width: 100%;
    max-width: 300px;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .course-content {
    padding: 20px;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .floating-formula {
    font-size: 1rem;
  }
  
  .course-card {
    margin: 0 5px;
  }
}