/* Importar fuentes modernas */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

:root {
  /* Colores principales */
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --secondary-color: #06b6d4;
  --accent-color: #8b5cf6;
  --success-color: #10b981;
  
  /* Colores de fondo */
  --bg-primary: #0f0f23;
  --bg-secondary: #1a1a2e;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  
  /* Colores de texto */
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  
  /* Espaciado */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Tipografía */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Sombras */
  --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);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
}

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

/* Fondo estelar mejorado */
.stars { 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  z-index: -1; 
  overflow: hidden; 
}

.star { 
  position: absolute; 
  width: 12px;
  height: 12px;
  background: #87ceeb;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 0 3px rgba(135, 206, 235, 0.4));
  animation: twinkle 6s infinite ease-in-out; 
}

@keyframes twinkle { 
  0%, 100% { 
    opacity: 0.2; 
    transform: scale(0.7); 
    filter: brightness(0.8);
  } 
  50% { 
    opacity: 0.6; 
    transform: scale(1); 
    filter: brightness(1.2);
  } 
}

/* Navegación sticky */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  padding: var(--spacing-sm) 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo en la navegación */
.logo-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  transition: all 0.3s ease;
}

.logo-container:hover {
  transform: scale(1.05);
}

.logo-image {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
  transition: all 0.3s ease;
  border: 2px solid rgba(99, 102, 241, 0.3);
}

.logo-container:hover .logo-image {
  filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.8));
  transform: rotate(5deg);
  border: 2px solid rgba(99, 102, 241, 0.6);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-color);
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* Secciones principales */
header, section { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: var(--spacing-2xl) var(--spacing-md); 
  text-align: center; 
}

header {
  padding-top: 120px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

header h1 { 
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  position: relative;
  text-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
  animation: titleGlow 3s ease-in-out infinite alternate;
  z-index: 2;
}

header h1::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: titleBackgroundGlow 4s ease-in-out infinite;
}

@keyframes titleBackgroundGlow {
  0%, 100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@keyframes titleGlow {
  0% {
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.6));
    transform: scale(1);
  }
  100% {
    filter: drop-shadow(0 0 40px rgba(99, 102, 241, 0.9));
    transform: scale(1.02);
  }
}

header h1:hover {
  animation-play-state: paused;
  filter: drop-shadow(0 0 50px rgba(99, 102, 241, 1));
  transform: scale(1.05);
  transition: all 0.3s ease;
}

/* Carrusel hero */
.hero-carousel-container {
  position: relative;
  margin-bottom: var(--spacing-lg);
  display: inline-block;
  width: 100%;
  max-width: 400px;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 50%;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
}

/* Logo hero creativo */
.hero-logo-container {
  position: relative;
  display: inline-block;
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
}

.hero-logo {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 0 25px rgba(99, 102, 241, 0.7));
  animation: float 4s ease-in-out infinite;
  transition: all 0.3s ease;
  border: 3px solid rgba(99, 102, 241, 0.3);
}

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

.hero-logo:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 35px rgba(99, 102, 241, 1));
  border: 3px solid rgba(99, 102, 241, 0.8);
}

.logo-particles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  pointer-events: none;
}

.logo-particles::before,
.logo-particles::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: orbit 8s linear infinite;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.8);
}

.logo-particles::before {
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
}

.logo-particles::after {
  bottom: 30px;
  right: 30px;
  animation-delay: 4s;
}

@keyframes orbit {
  0% {
    transform: rotate(0deg) translateX(120px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(120px) rotate(-360deg);
  }
}

/* Imágenes del carrusel */
.hero-image-container {
  position: relative;
  display: inline-block;
}

.image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
  z-index: -1;
}

.hero-image {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.7));
  animation: float 4s ease-in-out infinite;
  transition: all 0.3s ease;
  border: 3px solid rgba(139, 92, 246, 0.3);
}

.hero-image:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 35px rgba(139, 92, 246, 1));
  border: 3px solid rgba(139, 92, 246, 0.8);
}

.image-particles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  pointer-events: none;
}

.image-particles::before,
.image-particles::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent-color);
  border-radius: 50%;
  animation: orbit 8s linear infinite;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.8);
}

.image-particles::before {
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
}

.image-particles::after {
  bottom: 30px;
  right: 30px;
  animation-delay: 4s;
}

/* Controles del carrusel */
.carousel-controls {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  z-index: 10;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.2);
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.carousel-btn:hover {
  background: rgba(99, 102, 241, 0.4);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.carousel-dots {
  display: flex;
  gap: var(--spacing-sm);
}

.dot {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary-color);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
}

.dot:hover {
  background: rgba(99, 102, 241, 0.6);
  transform: scale(1.2);
}

header .subtitle { 
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  font-weight: 400;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg) var(--spacing-2xl);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark), var(--accent-color));
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  font-family: var(--font-heading);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 8px 25px rgba(99, 102, 241, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cta-button::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.6s ease;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 15px 40px rgba(99, 102, 241, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, var(--primary-dark), var(--accent-color), var(--secondary-color));
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 
    0 8px 25px rgba(99, 102, 241, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta-button::after {
  content: '→';
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.cta-button:hover::after {
  transform: translateX(5px);
}

/* Títulos de sección */
h2 { 
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  color: var(--text-primary);
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

p { 
  color: var(--text-secondary); 
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
}

/* Grid y tarjetas mejoradas */
.grid { 
  display: grid; 
  gap: var(--spacing-lg); 
  margin-top: var(--spacing-xl);
}

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

.card { 
  background: var(--bg-card);
  padding: var(--spacing-xl);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card:hover::before {
  transform: scaleX(1);
}

/* Enlaces dentro de las tarjetas */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-heading);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 15px rgba(99, 102, 241, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.card-link::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 ease;
}

.card-link:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 
    0 8px 25px rgba(99, 102, 241, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-link:hover::before {
  left: 100%;
}

.card-link:active {
  transform: translateY(0) scale(0.98);
}

.card-link::after {
  content: '→';
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.card-link:hover::after {
  transform: translateX(3px);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  font-size: 1.5rem;
}

/* Footer mejorado */
footer { 
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
  padding: 0;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--spacing-2xl);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-2xl) var(--spacing-md);
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  position: relative;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 1px;
}

.footer-section h5 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

/* Logo del footer */
.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.footer-logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.4));
  border: 2px solid rgba(99, 102, 241, 0.3);
}

.footer-logo h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.footer-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  font-size: 0.95rem;
}

.footer-contact p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-xs);
}

/* Enlaces del footer */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 2px 0;
}

.footer-links a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

/* Redes sociales */
.social-links {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-link:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-link.instagram:hover {
  background: linear-gradient(135deg, #E4405F, #C13584);
  color: white;
  border-color: #E4405F;
}

.social-link.facebook:hover {
  background: linear-gradient(135deg, #1877F2, #42A5F5);
  color: white;
  border-color: #1877F2;
}

.social-link.twitter:hover {
  background: linear-gradient(135deg, #1DA1F2, #0D8BD9);
  color: white;
  border-color: #1DA1F2;
}

.social-link.youtube:hover {
  background: linear-gradient(135deg, #FF0000, #FF4444);
  color: white;
  border-color: #FF0000;
}

/* Formulario de contacto */
.footer-form {
  background: rgba(255, 255, 255, 0.03);
  padding: var(--spacing-md);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.contact-form input,
.contact-form textarea {
  padding: var(--spacing-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.form-submit {
  padding: var(--spacing-sm) var(--spacing-md);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--text-primary);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-submit:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Mensajes del formulario */
.form-message {
  margin-top: var(--spacing-sm);
  padding: var(--spacing-sm);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  animation: slideIn 0.3s ease;
}

.form-message.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Línea divisoria */
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  margin: var(--spacing-xl) 0;
}

/* Footer inferior */
.footer-bottom {
  padding-top: var(--spacing-md);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-legal {
  display: flex;
  gap: var(--spacing-lg);
}

.legal-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.legal-link:hover {
  color: var(--primary-color);
}

/* Animaciones de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

/* Responsive design */
@media (max-width: 1024px) {
  .hero-carousel-container {
    max-width: 350px;
  }
  
  .carousel-wrapper {
    height: 350px;
  }
  
  .hero-logo, .hero-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
  }
  
  .logo-glow, .image-glow {
    width: 300px;
    height: 300px;
  }
  
  .logo-particles, .image-particles {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .logo-text {
    font-size: 1.2rem;
  }
  
  .logo-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
  }
  
  header {
    padding-top: 100px;
  }
  
  .hero-carousel-container {
    max-width: 300px;
  }
  
  .carousel-wrapper {
    height: 300px;
  }
  
  .hero-logo, .hero-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
  }
  
  .logo-glow, .image-glow {
    width: 260px;
    height: 260px;
  }
  
  .logo-particles, .image-particles {
    width: 220px;
    height: 220px;
  }
  
  .carousel-controls {
    bottom: -50px;
  }
  
  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
  
  .cta-button {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
  }
  
  .card-link {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.8rem;
    letter-spacing: 0.2px;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .card {
    padding: var(--spacing-lg);
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-legal {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .logo-text {
    display: none;
  }
  
  .logo-container {
    gap: 0;
  }
  
  .hero-carousel-container {
    max-width: 250px;
  }
  
  .carousel-wrapper {
    height: 250px;
  }
  
  .hero-logo, .hero-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
  }
  
  .logo-glow, .image-glow {
    width: 200px;
    height: 200px;
  }
  
  .logo-particles, .image-particles {
    width: 170px;
    height: 170px;
  }
  
  .logo-particles::before,
  .logo-particles::after,
  .image-particles::before,
  .image-particles::after {
    width: 4px;
    height: 4px;
  }
  
  .carousel-controls {
    bottom: -40px;
  }
  
  .carousel-btn {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }
  
  .cta-button {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
    letter-spacing: 0.3px;
  }
  
  .card-link {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.75rem;
    letter-spacing: 0.1px;
  }
  
  .footer-container {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  .footer-logo {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-xs);
  }
  
  .footer-logo-img {
    width: 40px;
    height: 40px;
  }
  
  .footer-logo h3 {
    font-size: 1.2rem;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  @keyframes orbit {
    0% {
      transform: rotate(0deg) translateX(70px) rotate(0deg);
    }
    100% {
      transform: rotate(360deg) translateX(70px) rotate(-360deg);
    }
  }
}

/* Estilos específicos para página de aplicaciones */

/* Hero simple sin carrusel */
.hero-simple-container {
  position: relative;
  margin-bottom: var(--spacing-lg);
  display: inline-block;
}

.hero-icon-large {
  font-size: 120px;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.6));
  text-shadow: 0 0 40px rgba(99, 102, 241, 0.8);
}

/* Link activo en navegación */
.nav-links a.active {
  color: var(--primary-color);
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
}

/* Intro de sección */
.section-intro {
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Grid de aplicaciones */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  padding: var(--spacing-md) 0;
}

/* Tarjeta de aplicación */
.app-card {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.app-card:hover {
  transform: translateY(-12px);
  background: var(--bg-card-hover);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  border-color: rgba(99, 102, 241, 0.3);
}

.app-card:hover::before {
  transform: scaleX(1);
}

/* Imagen de la aplicación */
.app-card-image {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
}

.app-card-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulseGlow 3s ease-in-out infinite;
  z-index: 0;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.8;
  }
}

.app-card-image img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 20px;
  transition: all 0.4s ease;
  filter: drop-shadow(0 8px 20px rgba(99, 102, 241, 0.4));
  border: 3px solid rgba(99, 102, 241, 0.3);
  position: relative;
  z-index: 1;
  background: var(--bg-card);
}

.app-card:hover .app-card-image img {
  transform: scale(1.15) rotate(3deg);
  filter: drop-shadow(0 12px 30px rgba(99, 102, 241, 0.6));
  border-color: rgba(99, 102, 241, 0.6);
}

/* Overlay de la imagen */
.app-card-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.97), rgba(139, 92, 246, 0.97));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  z-index: 2;
}

.app-card:hover .app-card-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

.app-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.app-launch-btn svg {
  width: 18px;
  height: 18px;
}

.app-launch-btn:hover {
  background: white;
  color: var(--primary-color);
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

/* Contenido de la tarjeta */
.app-card-content {
  padding: var(--spacing-lg);
}

.app-card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
}

.app-card-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  min-height: 60px;
}

/* Botón principal de la aplicación */
.app-main-button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-heading);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 15px rgba(99, 102, 241, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-md);
  width: 100%;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.app-main-button::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 ease;
}

.app-main-button:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 8px 25px rgba(99, 102, 241, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.app-main-button:hover::before {
  left: 100%;
}

.app-main-button:active {
  transform: translateY(-1px);
}

.app-main-button svg {
  transition: transform 0.3s ease;
}

.app-main-button:hover svg {
  transform: scale(1.1);
}

/* Tecnologías */
.app-card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.tech-badge {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.tech-badge:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

/* Footer de la tarjeta */
.app-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.app-card-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.app-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.app-card-link:hover {
  gap: var(--spacing-sm);
  color: var(--secondary-color);
}

.app-card-link svg {
  transition: transform 0.3s ease;
}

.app-card-link:hover svg {
  transform: translateX(3px);
}

/* Estados de carga y error */
.loading-container,
.error-container {
  text-align: center;
  padding: var(--spacing-2xl);
  color: var(--text-secondary);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto var(--spacing-md);
  border: 4px solid rgba(99, 102, 241, 0.2);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-container {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 15px;
  color: #ef4444;
  font-weight: 500;
}

.no-apps {
  text-align: center;
  padding: var(--spacing-2xl);
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.no-apps p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Sección CTA */
.cta-section {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  padding: var(--spacing-2xl) var(--spacing-md);
  border-radius: 30px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  margin-top: var(--spacing-2xl);
  text-align: center;
}

.cta-section h2 {
  margin-bottom: var(--spacing-md);
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto var(--spacing-lg);
  font-size: 1.1rem;
}

/* Responsive para aplicaciones */
@media (max-width: 768px) {
  .apps-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .app-card-image {
    height: 160px;
    padding: var(--spacing-md);
  }
  
  .app-card-image::before {
    width: 150px;
    height: 150px;
  }
  
  .app-card-image img {
    width: 120px;
    height: 120px;
  }
  
  .app-card-overlay {
    width: 120px;
    height: 120px;
  }
  
  .app-card-description {
    min-height: auto;
  }
  
  .app-main-button {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.9rem;
  }
  
  .hero-icon-large {
    font-size: 80px;
  }
  
  .cta-section {
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .app-card-image {
    height: 140px;
    padding: var(--spacing-sm);
  }
  
  .app-card-image::before {
    width: 120px;
    height: 120px;
  }
  
  .app-card-image img {
    width: 100px;
    height: 100px;
  }
  
  .app-card-overlay {
    width: 100px;
    height: 100px;
  }
  
  .app-launch-btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.75rem;
    gap: 4px;
  }
  
  .app-launch-btn svg {
    width: 14px;
    height: 14px;
  }
  
  .app-card-footer {
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: flex-start;
  }
  
  .app-main-button {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.85rem;
    letter-spacing: 0.3px;
  }
  
  .hero-icon-large {
    font-size: 60px;
  }
}