/* Reset y configuración base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --primary-color: #6366f1;
  --secondary-color: #f59e0b;
  --accent-color: #06b6d4;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 16px 64px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 24px 80px rgba(0, 0, 0, 0.2);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background: -webkit-linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background: -moz-linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  -webkit-font-feature-settings: "kern" 1;
  font-feature-settings: "kern" 1;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Particles Background */
#particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  /* Fallback for older browsers */
  width: 100%;
  box-sizing: border-box;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 15px 0;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-light);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo .logo-text {
  font-family: 'Righteous', cursive;
  font-size: 28px;
  font-weight: 400;
  color: var(--white);
  text-decoration: none;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.navbar.scrolled .logo-text {
  color: var(--text-dark);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  position: relative;
  transition: all 0.3s ease;
}

.navbar.scrolled .nav-link {
  color: var(--text-dark);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--white);
  margin: 3px 0;
  transition: 0.3s;
}

.navbar.scrolled .bar {
  background: var(--text-dark);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  z-index: 2;
}

.hero-text {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

.hero-title {
  font-family: 'Righteous', cursive;
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 400;
  background: linear-gradient(45deg, #ffffff, #f0f8ff, #e6e6fa, #ffffff, #fffacd, #f0ffff);
  background-size: 400% 400%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 0.9;
  animation: gradientShift 6s ease-in-out infinite, textGlow 3s ease-in-out infinite;
  letter-spacing: 4px;
  position: relative;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
}

.hero-title::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.3), rgba(255,255,255,0.1));
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 2s ease-in-out infinite;
  z-index: -1;
}

.hero-title .title-line {
  display: block;
  animation: slideInUp 1s ease-out forwards, letterSpacing 4s ease-in-out infinite;
  opacity: 0;
  transform: translateY(100px);
}

.title-line:nth-child(2) {
  animation-delay: 0.2s;
}

.hero-subtitle {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  font-weight: 300;
  letter-spacing: 2px;
  animation: fadeInUp 1s ease-out 0.4s forwards;
  opacity: 0;
}

.hero-description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  line-height: 1.8;
  animation: fadeInUp 1s ease-out 0.6s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  animation: fadeInUp 1s ease-out 0.8s forwards;
  opacity: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--white);
  color: var(--primary-color);
  box-shadow: var(--shadow-medium);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-primary:hover::before {
  left: 0;
}

.btn-primary:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 400px;
}

.floating-elements {
  position: relative;
  width: 300px;
  height: 300px;
}

.float-element {
  position: absolute;
  font-size: 60px;
  opacity: 0.8;
  animation: float 6s ease-in-out infinite;
}

.element-1 {
  top: 10%;
  left: 20%;
  animation-delay: 0s;
  color: #fbbf24;
}

.element-2 {
  top: 30%;
  right: 10%;
  animation-delay: 1.5s;
  color: #f87171;
}

.element-3 {
  bottom: 30%;
  left: 10%;
  animation-delay: 3s;
  color: #60a5fa;
}

.element-4 {
  bottom: 10%;
  right: 20%;
  animation-delay: 4.5s;
  color: #a78bfa;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  animation: fadeInUp 1s ease-out 1s forwards;
  opacity: 0;
}

.scroll-arrow {
  margin-top: 10px;
  animation: bounce 2s infinite;
}

/* Services Section */
.services {
  padding: 120px 0;
  background: var(--white);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-family: 'Righteous', cursive;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
  font-size: 20px;
  color: var(--white);
  font-weight: 300;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.service-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all 0.4s ease;
  position: relative;
  height: 600px;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-20px) rotateX(5deg);
  box-shadow: var(--shadow-heavy);
}

.card-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
  position: relative;
}

/* Gradientes específicos para cada tarjeta */
.music-card .card-image {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.art-card .card-image {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #4facfe 100%);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite 1s;
}

.psychology-card .card-image {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #43e97b 100%);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite 2s;
}

.service-card:hover .card-image {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  color: var(--white);
  z-index: 2;
}

.card-icon {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease 0.1s;
}

.music-card .card-icon {
  color: #10b981;
}

.art-card .card-icon {
  color: #f59e0b;
}

.psychology-card .card-icon {
  color: #3b82f6;
}

.service-card:hover .card-icon {
  opacity: 1;
  transform: translateY(0);
}

/* Profile Image Styles */
.card-profile-image {
  width: 120px;
  height: 120px;
  position: absolute;
  top: 20px;
  right: 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  z-index: 10;
}

.card-profile-image:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-profile-image:hover .profile-image {
  transform: scale(1.1);
}

.card-title {
  font-family: 'Righteous', cursive;
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease 0.2s;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.service-card:hover .card-title {
  opacity: 1;
  transform: translateY(0);
}

.card-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease 0.3s;
}

.service-card:hover .card-description {
  opacity: 1;
  transform: translateY(0);
}

.card-features {
  list-style: none;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease 0.4s;
}

.service-card:hover .card-features {
  opacity: 1;
  transform: translateY(0);
}

.card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
}

.card-features i {
  color: #10b981;
  font-size: 12px;
}

.card-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.service-card:hover .card-button {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.card-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* About Section */
.about-section {
  padding: 120px 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.about-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 20px 20px 0 0;
}

.about-description {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 25px;
  text-align: justify;
  position: relative;
  z-index: 1;
}

.about-description:last-of-type {
  margin-bottom: 35px;
}

.about-quote {
  margin-top: 40px;
  padding: 30px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-radius: 15px;
  border-left: 4px solid var(--primary-color);
  position: relative;
}

.about-quote blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-dark);
  margin: 0 0 15px 0;
  position: relative;
}

.about-quote blockquote::before {
  content: '"';
  font-size: 60px;
  color: var(--primary-color);
  position: absolute;
  top: -20px;
  left: -10px;
  font-family: 'Playfair Display', serif;
  opacity: 0.3;
}

.about-quote cite {
  font-size: 16px;
  color: var(--primary-color);
  font-weight: 600;
  font-style: normal;
  display: block;
  text-align: right;
}

/* Responsive adjustments for about section */
@media (max-width: 768px) {
  .about-section {
    padding: 80px 0;
  }
  
  .about-text {
    padding: 30px 20px;
    margin: 0 10px;
  }
  
  .about-description {
    font-size: 16px;
    line-height: 1.7;
  }
  
  .about-quote {
    padding: 25px 20px;
    margin-top: 30px;
  }
  
  .about-quote blockquote {
    font-size: 18px;
  }
  
  .about-quote blockquote::before {
    font-size: 50px;
    top: -15px;
    left: -5px;
  }
}

@media (max-width: 480px) {
  .about-text {
    padding: 25px 15px;
  }
  
  .about-description {
    font-size: 15px;
  }
  
  .about-quote {
    padding: 20px 15px;
  }
  
  .about-quote blockquote {
    font-size: 16px;
  }
}

/* Detail Sections */
.detail-section {
  padding: 120px 0;
  position: relative;
}

/* Efectos dinámicos para las secciones */

/* Efectos para la sección de Música */
.music-section {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.music-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="music-waves" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M0 50 Q5 40 10 50 T20 50" stroke="rgba(255,255,255,0.1)" fill="none" stroke-width="2"/></pattern></defs><rect width="100" height="100" fill="url(%23music-waves)"/></svg>');
  animation: musicWave 3s ease-in-out infinite;
  pointer-events: none;
}

.music-section::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: musicPulse 4s ease-in-out infinite;
  pointer-events: none;
}

/* Efectos para la sección de Pintura */
.art-section {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.art-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="brush-strokes" x="0" y="0" width="30" height="30" patternUnits="userSpaceOnUse"><path d="M0 20 Q10 10 20 20 Q30 30 40 20" stroke="rgba(255,255,255,0.08)" fill="none" stroke-width="3" stroke-linecap="round"/></pattern></defs><rect width="100" height="100" fill="url(%23brush-strokes)"/></svg>');
  animation: brushStroke 5s ease-in-out infinite;
  pointer-events: none;
}

.art-section::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 150px;
  height: 150px;
  background: conic-gradient(from 0deg, rgba(255,255,255,0.1), rgba(255,193,7,0.2), rgba(255,255,255,0.1));
  border-radius: 50%;
  animation: colorWheel 6s linear infinite;
  pointer-events: none;
}

/* Efectos para la sección de Psicología */
.psychology-section {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.psychology-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="brain-waves" x="0" y="0" width="25" height="25" patternUnits="userSpaceOnUse"><path d="M0 50 Q6 40 12 50 Q18 60 25 50" stroke="rgba(255,255,255,0.06)" fill="none" stroke-width="2"/></pattern></defs><rect width="100" height="100" fill="url(%23brain-waves)"/></svg>');
  animation: brainWave 4s ease-in-out infinite;
  pointer-events: none;
}

.psychology-section::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 15%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  border-radius: 50%;
  animation: thoughtBubble 7s ease-in-out infinite;
  pointer-events: none;
}

/* Animaciones para los efectos */

@keyframes musicWave {
  0%, 100% { transform: translateX(0); opacity: 0.3; }
  50% { transform: translateX(10px); opacity: 0.6; }
}

@keyframes musicPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
}

@keyframes brushStroke {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.4; }
  50% { transform: rotate(5deg) scale(1.1); opacity: 0.7; }
}

@keyframes colorWheel {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes brainWave {
  0%, 100% { transform: translateY(0); opacity: 0.2; }
  50% { transform: translateY(-5px); opacity: 0.5; }
}

@keyframes thoughtBubble {
  0%, 100% { transform: scale(1) translateY(0); opacity: 0.4; }
  25% { transform: scale(1.1) translateY(-10px); opacity: 0.7; }
  50% { transform: scale(0.9) translateY(5px); opacity: 0.3; }
  75% { transform: scale(1.05) translateY(-5px); opacity: 0.6; }
}

/* Efectos adicionales para elementos dentro de las secciones */
.music-section .feature-item {
  animation: musicVibrate 2s ease-in-out infinite;
  animation-delay: calc(var(--item-index, 0) * 0.2s);
}

.art-section .feature-item {
  animation: paintSplash 3s ease-in-out infinite;
  animation-delay: calc(var(--item-index, 0) * 0.3s);
}

.psychology-section .feature-item {
  animation: mindFloat 4s ease-in-out infinite;
  animation-delay: calc(var(--item-index, 0) * 0.4s);
}

@keyframes musicVibrate {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(2px); }
  75% { transform: translateX(-2px); }
}

@keyframes paintSplash {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.05) rotate(2deg); }
}

@keyframes mindFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Efectos de hover mejorados para las secciones */
.music-section:hover::before {
  animation-duration: 1.5s;
}

.art-section:hover::after {
  animation-duration: 3s;
}

.psychology-section:hover::before {
  animation-duration: 2s;
}

/* Responsive para los efectos */
@media (max-width: 768px) {
  .music-section::after,
  .art-section::after,
  .psychology-section::after {
    width: 100px;
    height: 100px;
  }
  
  .music-section .feature-item,
  .art-section .feature-item,
  .psychology-section .feature-item {
    animation: none;
  }
}

@media (max-width: 480px) {
  .music-section::before,
  .art-section::before,
  .psychology-section::before {
    opacity: 0.3;
  }
  
  .music-section::after,
  .art-section::after,
  .psychology-section::after {
    width: 80px;
    height: 80px;
  }
}

.section-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.section-content.reverse {
  direction: rtl;
}

.section-content.reverse > * {
  direction: ltr;
}

.content-text h2 {
  font-family: 'Righteous', cursive;
  font-size: 3.5rem;
  font-weight: 400;
  margin-bottom: 30px;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.section-description {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 40px;
  opacity: 0.9;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 16px;
  font-weight: 500;
}

.feature-item i {
  font-size: 24px;
  opacity: 0.8;
}

.content-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Spotify Player Styles */
.spotify-player {
  margin-top: 40px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.spotify-player:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.15);
}

.player-title {
  color: var(--white);
  font-family: 'Righteous', cursive;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.spotify-player iframe {
  border-radius: 12px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.spotify-player iframe:hover {
  transform: scale(1.02);
}

.visual-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
  transition: transform 0.4s ease;
  width: 100%;
  max-width: 500px;
  height: 500px;
  display: block;
  position: relative;
}

.visual-card:hover {
  transform: scale(1.05) rotateY(5deg);
}

.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 24px;
}

.section-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 24px;
  transition: transform 0.4s ease, opacity 0.3s ease;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 300px;
  opacity: 0;
  will-change: opacity, transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.section-image.preloaded {
  opacity: 1;
}

.section-image:not([src]), 
.section-image[src=""],
.section-image[src*="error"],
.section-image.error {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
}

.section-image:not([src])::after, 
.section-image[src=""]::after,
.section-image[src*="error"]::after,
.section-image.error::after {
  content: "Imagen no disponible";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.visual-card:hover .section-image {
  transform: scale(1.05);
  filter: brightness(1.1) contrast(1.1);
}

/* Gradientes para las tarjetas visuales */
.visual-gradient {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.music-visual .visual-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

.art-visual .visual-gradient {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #4facfe 100%);
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite 1s;
}

.psychology-visual .visual-gradient {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #43e97b 100%);
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite 2s;
}

.visual-card:hover .visual-gradient {
  filter: brightness(1.1) contrast(1.1);
}

/* Visual Gallery Styles */
.visual-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  width: 100%;
}

.visual-gallery .visual-card {
  height: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.visual-gallery .visual-card:hover {
  transform: scale(1.03) rotateY(5deg);
  box-shadow: var(--shadow-heavy);
}

.visual-gallery .visual-card img {
  height: 100%;
  border-radius: 16px;
}

/* Contact Section */
.contact {
  padding: 120px 0;
  background: var(--text-dark);
  color: var(--white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 60px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 18px;
}

.contact-item i {
  font-size: 24px;
  color: var(--accent-color);
  width: 30px;
}

.social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
  padding: 0 10px;
}

.social-text {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--text-light);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--white);
  font-size: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.social-link:hover {
  background: var(--accent-color);
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-medium);
}

.whatsapp-link:hover {
  background: #25D366 !important;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 16px 64px rgba(37, 211, 102, 0.3);
}

/* Footer */
.footer {
  background: #111827;
  color: var(--text-light);
  padding: 40px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Animations */
@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
  }
  66% {
    transform: translateY(10px) rotate(240deg);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
    filter: hue-rotate(0deg);
  }
  25% {
    background-position: 100% 50%;
    filter: hue-rotate(90deg);
  }
  50% {
    background-position: 100% 50%;
    filter: hue-rotate(180deg);
  }
  75% {
    background-position: 0% 50%;
    filter: hue-rotate(270deg);
  }
  100% {
    background-position: 0% 50%;
    filter: hue-rotate(360deg);
  }
}

@keyframes textGlow {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 60px rgba(255, 255, 255, 0.3));
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes letterSpacing {
  0%, 100% {
    letter-spacing: 4px;
  }
  50% {
    letter-spacing: 6px;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  
  .section-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .visual-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .spotify-player {
    padding: 25px;
  }
  
  .player-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-light);
    padding: 20px 0;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    margin: 15px 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .card-profile-image {
    width: 100px;
    height: 100px;
    top: 15px;
    right: 15px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .visual-gallery {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .visual-gallery .visual-card {
    height: 250px;
  }
  
  .visual-card {
    height: 400px;
  }
  
  .section-image {
    border-radius: 20px;
    opacity: 1; /* Forzar visibilidad en móvil */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  
  .spotify-player {
    margin-top: 30px;
    padding: 20px;
  }
  
  .player-title {
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  .social-links {
    gap: 12px;
    padding: 0 5px;
  }
  
  .social-link {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  
  .social-text {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .service-card {
    height: 500px;
  }
  
  .card-content {
    padding: 30px;
  }
  
  .card-profile-image {
    width: 80px;
    height: 80px;
    top: 10px;
    right: 10px;
  }
  
  .social-links {
    gap: 10px;
    padding: 0;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .social-text {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }
  
  .visual-card {
    height: 300px;
  }
  
  .section-image {
    border-radius: 16px;
    opacity: 1; /* Forzar visibilidad en móvil */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
}

/* Scroll animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.fade-in-up.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Tilt effect */
[data-tilt] {
  transform-style: preserve-3d;
} 

/* Gallery Carousel Styles */
.gallery-carousel {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 40px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  box-sizing: border-box;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  box-sizing: border-box;
  touch-action: pan-y pinch-zoom;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  -webkit-transform: translateX(100%);
  -moz-transform: translateX(100%);
  -ms-transform: translateX(100%);
  -o-transform: translateX(100%);
  transform: translateX(100%);
  -webkit-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  -moz-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  -o-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
  will-change: transform, opacity;
}

.carousel-item.active {
  opacity: 1;
  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  -o-transform: translateX(0);
  transform: translateX(0);
}

.carousel-item.prev {
  -webkit-transform: translateX(-100%);
  -moz-transform: translateX(-100%);
  -ms-transform: translateX(-100%);
  -o-transform: translateX(-100%);
  transform: translateX(-100%);
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-sizing: border-box;
  max-width: 100%;
  max-height: 100%;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0);
}

/* Carousel Controls */
.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
  z-index: 10;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  box-shadow: var(--shadow-light);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.carousel-btn:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: var(--shadow-medium);
}

.carousel-btn:active {
  transform: scale(0.95);
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-width: 12px;
  min-height: 12px;
}

.carousel-indicator.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

.carousel-indicator:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .gallery-carousel {
    max-width: 100%;
    margin: 0 auto 30px;
    border-radius: 15px;
    overflow: visible;
  }
  
  .carousel-container {
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
  }
  
  .carousel-controls {
    padding: 0 15px;
  }
  
  .carousel-btn {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.95);
  }
  
  .carousel-indicators {
    gap: 8px;
    margin-top: 15px;
  }
  
  .carousel-indicator {
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
  }
  
  .carousel-image {
    border-radius: 15px;
  }
}

@media (max-width: 480px) {
  .gallery-carousel {
    margin: 0 auto 20px;
    border-radius: 12px;
  }
  
  .carousel-container {
    height: 280px;
    border-radius: 12px;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .carousel-controls {
    padding: 0 10px;
  }
  
  .carousel-indicators {
    gap: 6px;
    margin-top: 12px;
  }
  
  .carousel-indicator {
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
  }
  
  .carousel-image {
    border-radius: 12px;
  }
}

@media (max-width: 360px) {
  .carousel-container {
    height: 250px;
  }
  
  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .carousel-controls {
    padding: 0 8px;
  }
  
  .carousel-indicators {
    gap: 5px;
    margin-top: 10px;
  }
  
  .carousel-indicator {
    width: 7px;
    height: 7px;
    min-width: 7px;
    min-height: 7px;
  }
}

/* Animation for carousel transitions */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.carousel-item.active {
  animation: fadeIn 0.4s ease-out;
}

/* Loading state */
.carousel-loading {
  position: relative;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.carousel-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .carousel-btn {
    min-width: 44px;
    min-height: 44px;
  }
  
  .carousel-indicator {
    min-width: 44px;
    min-height: 44px;
  }
  
  .carousel-controls {
    padding: 0 10px;
  }
}

/* Mobile-specific carousel optimizations */
.mobile-carousel {
  touch-action: pan-y pinch-zoom;
}

.mobile-carousel .carousel-container {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.mobile-carousel .carousel-btn {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mobile-carousel .carousel-indicator {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.mobile-carousel .carousel-indicator.active {
  background: var(--primary-color);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Prevent text selection during swipes */
.mobile-carousel {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* Smooth transitions for mobile */
@media (max-width: 768px) {
  .carousel-item {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .carousel-btn:active {
    transform: scale(0.9);
    transition: transform 0.1s ease;
  }
  
  .carousel-indicator:active {
    transform: scale(0.8);
    transition: transform 0.1s ease;
  }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  .carousel-container {
    height: 250px;
  }
  
  .carousel-controls {
    padding: 0 8px;
  }
  
  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
} 

/* TikTok Player Styles */
.tiktok-player {
  margin: 30px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.tiktok-player:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.player-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 15px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* TikTok Embed Rounding */
.tiktok-embed {
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.3s ease !important;
}

.tiktok-embed:hover {
  transform: scale(1.02) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2) !important;
}

/* Ensure the iframe inside TikTok embed is also rounded */
.tiktok-embed iframe {
  border-radius: 20px !important;
  overflow: hidden !important;
}

/* Responsive TikTok styles */
@media (max-width: 768px) {
  .tiktok-player {
    margin: 20px 0;
    padding: 15px;
    border-radius: 15px;
  }
  
  .player-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }
  
  .tiktok-embed {
    border-radius: 15px !important;
  }
  
  .tiktok-embed iframe {
    border-radius: 15px !important;
  }
}

@media (max-width: 480px) {
  .tiktok-player {
    margin: 15px 0;
    padding: 12px;
    border-radius: 12px;
  }
  
  .player-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .tiktok-embed {
    border-radius: 12px !important;
  }
  
  .tiktok-embed iframe {
    border-radius: 12px !important;
  }
} 