/* ===== VARIABLES CSS ===== */
:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --secondary-color: #ec4899;
  --accent-color: #06b6d4;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --dark-color: #1f2937;
  --light-color: #f8fafc;
  --white: #ffffff;
  --text-primary: #1f2937;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Montserrat', sans-serif;
  --font-display: 'Playfair Display', serif;
  
  --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) 0%, var(--secondary-color) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
  --gradient-dark: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

/* ===== RESET Y BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-primary);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* ===== COMPONENTES UTILITARIOS ===== */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: white;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.btn-primary:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover:before {
  left: 100%;
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

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

.btn-outline-white {
  border: 2px solid white;
  color: white;
  background: transparent;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

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

.btn-xl {
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 700;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(31, 41, 55, 0.95);
  color: white;
  padding: 1rem 0;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

/* ===== NAVEGACIÓN ===== */
.navbar {
  background: rgba(31, 41, 55, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(31, 41, 55, 0.98);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: white !important;
  display: flex;
  align-items: center;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  margin: 0 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: white !important;
}

.navbar-nav .nav-link:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover:after {
  width: 100%;
}

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

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background: url('images/bg.jpg') center/cover;
  opacity: 0.1;
  z-index: 1;
  transform: translateZ(0);
}

.geometric-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  bottom: 10%;
  left: 10%;
  animation-delay: 2s;
}

.shape-3 {
  width: 100px;
  height: 100px;
  top: 50%;
  left: 50%;
  animation-delay: 4s;
}

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

.hero-section .container {
  position: relative;
  z-index: 3;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  margin-bottom: 3rem;
}

.video-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.hero-stats {
  color: white;
}

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

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.hero-image-container {
  position: relative;
}

.floating-image {
  animation: floatImage 3s ease-in-out infinite;
}

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

.floating-card {
  position: absolute;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  animation: float 4s ease-in-out infinite;
}

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

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

.card-2 {
  top: 60%;
  left: -10%;
  animation-delay: 2s;
}

.card-3 {
  bottom: 10%;
  right: 10%;
  animation-delay: 3s;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
  40% { transform: translateY(-10px) rotate(45deg); }
  60% { transform: translateY(-5px) rotate(45deg); }
}

/* ===== CURSO DESTACADO ===== */
.bg-gradient-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 5rem 0;
}

.course-badge .badge {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

.course-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.feature-item i {
  font-size: 1.2rem;
}

.price-section {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
  text-align: center;
}

.price-old {
  font-size: 1.2rem;
  color: var(--text-secondary);
  text-decoration: line-through;
  margin-bottom: 0.5rem;
}

.price-current {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.price-period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.price-offer {
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
}

.course-buttons {
  margin-top: 2rem;
}

/* ===== TESTIMONIOS ===== */
.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.stars {
  color: #fbbf24;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

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

.author-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.author-role {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== GALERÍA DE TRABAJOS ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  cursor: pointer;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.portfolio-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(236, 72, 153, 0.9));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h5 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.portfolio-overlay p {
  margin-bottom: 1rem;
  opacity: 0.9;
}

/* ===== INFOGRAFÍA ===== */
.infographic-section {
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.infographic-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.5;
}

.infographic-container {
  position: relative;
  z-index: 2;
}

.infographic-item {
  text-align: center;
  color: white;
  padding: 2rem 1rem;
}

.infographic-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  box-shadow: var(--shadow-lg);
}

.infographic-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  display: inline-block;
}

.percentage, .plus {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-left: 0.2rem;
}

.infographic-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
}

.infographic-text {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.5;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--gradient-secondary);
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-section:before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(200%) translateY(200%) rotate(45deg); }
}

.cta-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-features .feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.pulse-btn {
  animation: pulse 2s infinite;
  position: relative;
  z-index: 2;
}

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

/* ===== FOOTER ===== */
.footer {
  background: var(--gradient-dark);
  position: relative;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-brand h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0;
}

.footer-description {
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

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

.social-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.contact-info p {
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.contact-info i {
  color: var(--primary-color);
  width: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .infographic-number {
    font-size: 2.5rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-buttons .btn {
    display: block;
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-features {
    margin-bottom: 2rem;
  }
  
  .floating-card {
    position: static;
    margin: 1rem 0;
    justify-content: center;
  }
  
  .card-1, .card-2, .card-3 {
    position: static;
    animation: none;
  }

  .hero-section-about, .hero-section{
    padding-top: 120px;
    padding-bottom: 60px;
  }
  .stat-number{
    font-size: 1.5rem;
  }
}

/* ===== ANIMACIONES ADICIONALES ===== */
.counter {
  animation: countUp 2s ease-out forwards;
}

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

/* ===== SCROLLBAR PERSONALIZADO ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===== LOADING ANIMATIONS ===== */
.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

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

.slide-in-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out forwards;
}

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


.navbar-brand img{
    max-width: 200px;
    width: 200px;
    object-fit: contain;
}

html{
    overflow-x: hidden;
}
footer .text-end .text-muted{
  color: #fff!important;
}

        .legal-header {
            background: var(--gradient-dark);
            color: white;
            padding: 120px 0 80px;
            text-align: center;
        }

        .legal-title {
            font-family: var(--font-display);
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 1rem;
        }

        .legal-subtitle {
            font-size: 1.2rem;
            opacity: 0.9;
            margin-bottom: 1rem;
        }

        .legal-update {
            font-size: 0.9rem;
            opacity: 0.7;
            font-style: italic;
        }

        .legal-content {
            background: #f8f9fa;
        }

        .legal-document {
            background: white;
            padding: 3rem;
            border-radius: 15px;
            box-shadow: var(--shadow-md);
            line-height: 1.8;
        }

        .legal-document h2 {
            color: var(--primary-color);
            font-weight: 600;
            margin-top: 2.5rem;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--primary-color);
        }

        .legal-document h2:first-child {
            margin-top: 0;
        }

        .legal-document h3 {
            color: var(--text-primary);
            font-weight: 600;
            margin-top: 1.5rem;
            margin-bottom: 1rem;
        }

        .legal-document ul, .legal-document ol {
            margin-bottom: 1.5rem;
        }

        .legal-document li {
            margin-bottom: 0.5rem;
        }

        .legal-document a {
            color: var(--primary-color);
            text-decoration: none;
        }

        .legal-document a:hover {
            text-decoration: underline;
        }

        .contact-legal {
            background: #f8f9fa;
            padding: 1.5rem;
            border-radius: 10px;
            border-left: 4px solid var(--primary-color);
            margin: 1.5rem 0;
        }

        .acceptance-notice {
            background: var(--gradient-primary);
            color: white;
            padding: 2rem;
            border-radius: 15px;
            margin-top: 3rem;
            text-align: center;
        }

        .acceptance-notice h3 {
            color: white;
            margin-bottom: 1rem;
        }

        @media (max-width: 768px) {
            .legal-title {
                font-size: 2rem;
            }
            
            .legal-document {
                padding: 2rem 1.5rem;
            }
        }