/* ============================================
   HOME PAGE STYLES
   public/css/home.css
   ============================================ */

/* ============================================
   GLOBAL STYLES
   ============================================ */

:root {
  --primary-color: #FF1F66;
  --primary-dark: #E01857;
  --secondary-color: #FF592A;
  --text-dark: #333333;
  --text-light: #666666;
  --border-color: #e5e5e5;
  --bg-light: #f8f9fa;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  position: relative;
  background: linear-gradient(135deg, #FF1F66 0%, #FF3251 20%, #FF592A 40%, #E63946 60%, #FF4458 80%, #FF1F66 100%);
  background-size: 400% 400%;
  animation: gradientFlow 25s ease infinite;
  padding: 25px 0px 140px 0px;
  overflow: hidden;
  z-index: 1;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
}

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

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.gradient-text {
  background: linear-gradient(135deg, #FFD700 0%, #FFF9C4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 32px;
  opacity: 0.95;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
  animation: fadeInUp 0.6s ease 0.6s both;
}

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

.stat-number {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.8s both;
}

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

.btn-hero.btn-primary {
  background: white;
  color: var(--primary-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-hero.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.btn-hero.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
  backdrop-filter: blur(10px);
}

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

/* Hero Image */
.hero-image {
  position: relative;
  animation: fadeInRight 0.8s ease;
}

.hero-image img {
  /*width: 50%;*/
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

.floating-card {
  position: absolute;
  background: white;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-dark);
  animation: float 3s ease-in-out infinite;
}

.floating-card i {
  font-size: 20px;
  color: var(--primary-color);
}

.floating-card.card-1 {
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.floating-card.card-2 {
  top: 80%;
  right: 0%;
  animation-delay: 1s;
}

.floating-card.card-3 {
  bottom: 29%;
  left: 5%;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

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

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

/* Wave Separator */
.wave-separator {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
}

.wave-separator svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================
   SECTION COMMON STYLES
   ============================================ */

section {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 31, 102, 0.1);
  color: var(--primary-color);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-description {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   COURSES SECTION
   ============================================ */

.courses-section {
  background: #ffffff;
  position: relative;
  z-index: 2;
}

.course-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.course-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

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

.course-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-offer {
  background: #FF1F66;
  color: white;
}

.badge-featured {
  background: #FFD700;
  color: #333;
}

.course-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 12px;
}

.course-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.course-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.course-title a:hover {
  color: var(--primary-color);
}

.course-description {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
  flex: 1;
}

.course-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-light);
}

.meta-item i {
  color: var(--primary-color);
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.course-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.price-current {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.btn-course {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-course:hover {
  background: var(--primary-dark);
  transform: translateX(4px);
  color: white;
}

/* ============================================
   INSTRUCTORS SECTION
   ============================================ */

.instructors-section {
  background: var(--bg-light);
}

.instructor-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  text-align: center;
  height: 100%;
}

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

.instructor-photo {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, #FF1F66 0%, #FF592A 100%);
}

.instructor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.instructor-card:hover .instructor-photo img {
  transform: scale(1.05);
}
/* Social Links en Hero */
.hero-social-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-link-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link-hero:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
  border-color: transparent;
  text-decoration: none;
}

.social-link-hero i {
  transition: transform 0.3s ease;
}

.social-link-hero:hover i {
  transform: scale(1.15);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-social-links {
    justify-content: flex-start;
  }
  
  .social-link-hero {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}
.social-link {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: scale(1.1);
  background: var(--primary-color);
  color: white;
  
}

.instructor-info {
  padding: 24px;
}

.instructor-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.instructor-title {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.instructor-specialty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 31, 102, 0.1);
  color: var(--primary-color);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.instructor-bio {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.instructor-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.instructor-stats .stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-light);
}

.instructor-stats .stat i {
  color: var(--primary-color);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  background: white;
  padding: 60px 0;
}

.cta-box {
  background: linear-gradient(135deg, #FF1F66 0%, #FF592A 100%);
  border-radius: 20px;
  padding: 60px 40px;
  box-shadow: 0 20px 60px rgba(255, 31, 102, 0.3);
}

.cta-title {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.cta-description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: white;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  color: var(--primary-color);
}

/* ============================================
   VIEW ALL BUTTON
   ============================================ */

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.btn-view-all:hover {
  background: var(--primary-dark);
  transform: translateX(4px);
  color: white;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
  .hero-section {
    padding: 60px 0 80px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .stat-number {
    font-size: 28px;
  }

  .hero-image {
    margin-top: 40px;
  }

  .floating-card {
    display: none;
  }

  section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .cta-box {
    padding: 40px 30px;
    text-align: center;
  }

  .cta-title {
    font-size: 24px;
  }

  .btn-cta {
    margin-top: 20px;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-hero {
    width: 100%;
    justify-content: center;
  }

  .section-title {
    font-size: 24px;
  }

  .section-description {
    font-size: 16px;
  }
}