/* =========================================
   ESCUELA CANTO SIN FRONTERAS - STYLES
   ========================================= */

/* =========================================
   1. VARIABLES & THEME
   ========================================= */

:root {
  /* Tema Claro (Default) */
  --primary: #2f54ac;
  --primary-light: #4a71c5;
  --primary-dark: #3a5aa3;
  --secondary: #0f172a;
  --accent: #f1f5f9;
  --bg: #ffffff;
  --surface: #f8fafc;
  --text: #131330;
  --text2: #f1f5f9ee;
  --text-muted: #445588;
  --success: #22c55e;
  
  /* Gradientes */
  --gradient-1: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  --gradient-2: linear-gradient(180deg, #2f54ac 30%, #4a71c5 100%);
  --gradient-3: linear-gradient(15deg, #2a4a93ee 10%, #476cc2 100%);
  --gradient-4: linear-gradient(245deg, #f1f5f9dd 10%, #9db2f4bb 100%);
  --gradient-5: linear-gradient(185deg, #eeeeff 10%, #99bbfe 100%);
  
  /* Colores para animación de gradiente del hero */
  --gradient-anim-color-1: #476cc2;
  --gradient-anim-color-2: #5d82d4;
  --gradient-anim-color-3: #6b8fd6;
  --gradient-anim-color-4: #8b7cc2;
  --gradient-anim-color-5: #a868b0;
  --gradient-anim-color-6: #baa9db;
  --gradient-anim-color-7: #dd7676;
  --gradient-anim-color-8: #476cc2;
  
  /* Sombras */
  --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow2: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}

/* Tema Oscuro */
[data-theme="dark"] {
  --primary: #2f54ac;
  --primary-light: #5af;
  --primary-dark: #5af;
  --secondary: #f8fafc;
  --accent: #1e293b;
  --bg: #0f172a;
  --surface: #1e293b;
  --text: #f8fafc;
  --text2: #f1f5f9ee;
  --text-muted: #5af;
  --success: #34d399;
  
  --gradient-1: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  --gradient-2: linear-gradient(180deg, #49f 0%, #5cf 100%);
  --gradient-3: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  --gradient-4: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  --gradient-5: linear-gradient(185deg, #445577 0%, #223355 100%);
  
  --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.4);
}

/* =========================================
   2. RESET & GLOBAL STYLES
   ========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.3;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.1s both;
}

h2 {
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  line-height: 1.3;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.1s both;
}

h3 {
  font-family: "Inter", sans-serif;
}

p {
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  line-height: clamp(1.8rem, 7vw, 2.2rem);
  color: var(--text-muted);
}

b {
  color: var(--primary);
}

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

@keyframes ripple {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(1px) scale(1.05);
  }
}

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

/* =========================================
   3. NAVIGATION
   ========================================= */

nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 5%;
 
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #2d52aa 30%, #486ec3 100%);
}



.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Inter", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text2);
}

.logo-img {
  height: 30px;
  width: auto;
  filter: invert(1) opacity(80%);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  color: #def;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #def;
  transition: width 0.3s ease;
}

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

/* Theme Toggle Button */
.theme-selector {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.theme-toggle {
  background: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  border: none;
}

.theme-toggle:hover {
 filter:brightness(80%);
}

.theme-toggle .icon-moon,
.theme-toggle .icon-sun {
  width: 20px;
  height: 20px;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

/* =========================================
   4. HERO SECTION
   ========================================= */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 5% 4rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 1200px;
  text-align: center;
  z-index: 1;
  justify-items: center;
}

.hero-logo {
  max-width: 180px;
  width: clamp(7.9rem, 15vw, 12rem);
  height: auto;
  margin-bottom: 1.8rem;
  animation: fadeInUp 0.8s ease both;
}

.hero h1 {
  max-width: 12ch;
}

.hero h1 span.animated-gradient {
  background: linear-gradient(
    270deg,
    var(--gradient-anim-color-1),
    var(--gradient-anim-color-2),
    var(--gradient-anim-color-3),
    var(--gradient-anim-color-4),
    var(--gradient-anim-color-5),
    var(--gradient-anim-color-6),
    var(--gradient-anim-color-7),
    var(--gradient-anim-color-8)
  );
  background-size: 400% 400%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-color: transparent;
  animation: gradient-shift 8s ease infinite;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 2rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

/* =========================================
   5. BUTTONS
   ========================================= */

.btn {
  padding: 1rem 2rem;
  border-radius: 7px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
  font-size: 1.2rem;
  text-align: center;
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  justify-content: center;
}

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

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 40%;
  height: 100%;
  background: linear-gradient(70deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease-in;
}

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

.btn-secondary {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  border: 2px solid var(--primary-light);
  box-shadow: var(--shadow);
}

.btn-secondary::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1%;
  background: var(--gradient-2);
  transition: .5s ease-in-out;
  z-index: 0;
  
}

.btn-secondary span {
  position: relative;
  z-index: 1;
}

.btn-secondary:hover::before {
  
  height: 100%;
}

.btn-secondary:hover {
color:#fefefe;
  border-color: var(--primary);
  transform: translateY(-3px);
}

.btn-secondary:active {
  transform: translateY(-1px);
}

.btn-secondary:active::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ripple 0.6s ease-out;
}

/* =========================================
   6. SECTIONS GENERAL
   ========================================= */

.section {
  padding: 4rem 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-top:8rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 0 1rem;
}

.section-header p {
  color: var(--text-muted);
}

/* =========================================
   7. AUDIO PLAYER SECTION
   ========================================= */



.container {
  width: min(calc(100% - 2rem), 1200px);
  margin: 0 auto;
  background: var(--gradient-4);
  border-radius: 7px;
  padding:4rem 1rem;
}

.voice-switch-wrap {
  display: flex;
  justify-content: center;
  width: min(100%, 920px);
  margin: 0 auto 2rem;
}

.voice-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0.7rem;
  width: 100%;
  max-width: 300px;
  border: 1px solid var(--primary);
  border-radius: 8px;
}

[data-theme="dark"] .voice-switch {
  border-color: var(--primary-light);
}

.voice-option {
  font-family: "Inter", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  opacity: 0.5;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.voice-option.active {
  opacity: 1;
}

.voice-option.woman {
  color: var(--primary);
}

[data-theme="dark"] .voice-option,
[data-theme="dark"] .voice-option.woman {
  color: #5af;
}

.switch-track {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  width: 62px;
  height: 34px;
  padding: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  cursor: pointer;
  border: none;
}

.switch-knob {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  transform: translateX(0);
}

.switch-track.is-female .switch-knob {
  transform: translateX(28px);
}

/* Routine List */
.routine-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.routine-list h3 {
  font-family: "Inter", sans-serif;
  font-size: clamp(0.7rem, 4vw, 1.1rem);
  color: var(--text);
}

.routine {
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
}

.routine-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.routine-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.video-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
  color: var(--primary-light);
  transition: color 0.3s ease;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.video-icon:hover {
  color: var(--primary);
}

/* Video Popup */
.video-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.video-popup-content {
  position: relative;
  width: 100%;
  max-width: 800px;
  background: var(--surface);
  border-radius: 7px;
  padding: 5px;
  background: var(--gradient-1);
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.close-popup:hover {
  background: rgba(0, 0, 0, 0.1);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =========================================
   8. AUDIO PLAYER COMPONENT
   ========================================= */

.card {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow2);
}

.audio-mock {
  margin-top: 1rem;
  width: 100%;
  display: block;
}

.audio-body {
  display: block;
  width: 100%;
}

.controls-row {
  display: grid;
  grid-template-columns: 40px 1fr 72px;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.play-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
  color: white;
  flex-shrink: 0;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.play-button:hover {
  background: var(--primary-dark);
}

.icon-pause {
  display: none;
  width: 20px !important;
  height: 20px !important;
}

.play-button.is-playing .icon-play {
  display: none;
}

.play-button.is-playing .icon-pause {
  display: block;
}

.progress {
  width: 100%;
  height: 6px;
  background: var(--gradient-4);
  border-radius: 3px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.2s ease;
}

.progress-filled {
  width: 0%;
}

/* Speed Select Personalizado */
.speed-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  width: 45px;
  text-align: center;
  justify-self: end;
  cursor: pointer;
  transition: all 0.2s ease;
  background-image: none;
}

.speed-select:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.speed-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Ocultar flecha nativa en WebKit */
.speed-select::-webkit-calendar-picker-indicator {
  display: none;
}

/* Estilos para opciones del dropdown */
.speed-select option {
  background: var(--surface);
  color: var(--text);
  padding: 0.5rem;
  font-size: 0.9rem;
}

/* =========================================
   9. RESOURCES SECTION
   ========================================= */

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0;

}

.resource-card {
  background: var(--gradient-5);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  color: var(--primary-dark);
  text-align: center;
  justify-items: center;
}

.resource-card.featured {
  background: var(--gradient-3);
  color: white;
}

.resource-card.featured p,
.resource-card.featured .price {
  color: rgba(255, 255, 255, 0.9);
}

.resource-icon {
  width: 100%;
  height: 250px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.vg-app .resource-icon {
  width: 100%;
  height: 250px;
}

.resource-icon video,
.resource-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.resource-card h3 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: clamp(2.7rem, 4vw, 3.2rem);
  max-width: 10ch;
  margin: 2.5rem auto;
  font-family: "Inter", sans-serif;
}

.resource-card p {
  color: var(--text);
  margin: 0 3rem 2rem 3rem;
  font-size: clamp(1.2rem, 5vw, 1.3rem);
  line-height: clamp(1.8rem, 5vw, 1.3rem);
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  font-family: "Inter", sans-serif;
}

.badge,
.popular-badge {
  position: absolute;
  top: 40px;
  left: 40px;
  transform: translate(-50%, -50%) rotate(-45deg);
  transform-origin: center;
  padding: 0.5rem 2rem;
  border-radius: 4px;
  width: 150px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: #221100cc;
  background: var(--success);
  letter-spacing: 0.1rem;
}

.featured .badge {
  color: #221100cc;
  background: linear-gradient(35deg, orange 0%, #fefeae 100%);
}

.vg-btn {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.mt-1, .mt-2, .mt-3 {
  font-size: 1rem;
  padding: 0.8rem 1rem;
  margin: 1rem 0;
  justify-self: center;
  align-self: center;
}

.mt-2{
  font-size: 1.2rem;
  padding:1rem 2rem;
  letter-spacing: 1px;
  font-weight: 700;
  text-transform: uppercase;
  border: 2px solid var(--primary-dark);
}

/* =========================================
   10. ABOUT SECTION
   ========================================= */

#sobre-mi {
  background: none;
 
}

.about-container {
  display: grid;
  grid-template-columns: 0.5fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 2rem 1rem;
  margin: 0;
  background: var(--gradient-4);
    border-radius: 7px;

}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 7px;
  box-shadow: var(--shadow);
  margin-bottom: -8px;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--text);
}

.about-content p {
  color: var(--text);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  line-height: 1.8;
  padding: 0 1rem;
}

.about-content b {
  color: var(--primary-dark);
  padding: 0 5px;
}

.stats {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: clamp(1rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--primary-dark);
  font-family: "Inter", sans-serif;
  transition: transform 0.3s ease;
}

.stat-number.counted {
  animation: pulse 0.5s ease;
}

.stat-label {
  color: var(--primary-dark);
  font-size: 0.9rem;
}

/* =========================================
   11. PRICING SECTION
   ========================================= */

#clases h2 {
  animation: float 4s ease-in-out infinite;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  perspective: 1000px;
}

.pricing-card {
  background: transparent;
  border-radius: 12px;
  text-align: center;
  position: relative;
  height: 400px;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.pricing-card:hover .card-inner {
  transform: rotateY(180deg);
}

.pop {
  background: none;
}

.pop .card-inner {
  box-shadow: 0 0px 20px -2px #111111aa;
  border-radius: 12px;
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-front {
  padding: 2.5rem;
  transform: rotateY(0deg);
  background: var(--gradient-4);
  border-radius: 12px;
  height: 100%;
  overflow: hidden;
}

.card-back {
  transform: rotateY(180deg);
  background: var(--gradient-4);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  justify-content: center;
  overflow: hidden;
}

.pop .card-front,
.pop .card-back {
  background: var(--gradient-1);
  color: white;
}

.card-back ul {
  list-style: none;
  text-align: left;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.card-back li {
  padding: 0.75rem 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-back li::before {
  content: "✓";
  color: var(--primary-dark);
  font-weight: 700;
}

.pop .card-back li::before {
  color: orange;
}

.popular-badge {
  color: #a20;
  background: linear-gradient(35deg, orange 0%, #fefeae 100%) !important;
  top: 50px;
  left: 50px;
  width: 250px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card-front h3 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  max-width: 10ch;
  text-align: center;
  align-self: center;
  justify-self: center;
  margin-bottom: 0.5rem;
}

.card-front .price-tag {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  font-family: "Inter", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  line-height: 3rem;
  margin: 1.5rem 0;
}

.card-front .price-tag span {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 400;
  line-height: 1rem;
}

[data-theme="dark"] .price-tag {
  color: #5af;
}

[data-theme="dark"] .price-tag span {
  color: #5af;
}

.card-front p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

.featured .price-tag span {
  color: var(--accent);
  font-weight: 400;
}

/* =========================================
   12. CONTACT SECTION
   ========================================= */

.contact-section {
  background: var(--bg);
  padding: 0 1rem;
  text-align: center;
  margin: 0 auto;
}

.contact-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  
}

.contact-section p {
  
  margin-bottom: 2rem;
  font-size: 1.2rem;
  max-width: 40ch;
  margin: 2rem auto;
}



.btn-cont {
 font-size:1.4rem;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.contact-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 24, 0.6);
  backdrop-filter: blur(4px);
}

.contact-modal-dialog {
  position: relative;
  width: min(100%, 560px);
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  z-index: 1;
}

.contact-modal-dialog h3 {
  font-size: 1.7rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.contact-modal-dialog p{
  font-size: 1rem;
  padding:0;
  margin-bottom: 1rem;
}

.contact-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  width: 40px;
  height: 40px;
}

.contact-form {
  display: grid;
  gap: 0.7rem;
}

.contact-form label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  padding: 0.75rem;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 84, 172, 0.18);
}

.contact-form-status {
  margin: 0;
  min-height: 1.4rem;
  font-size: 0.95rem;
  line-height: 1.3rem;
}

.contact-form-status.error {
  color: #b91c1c;
}

.contact-form-status.success {
  color: #15803d;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.pop h3,
.pop .price-tag,
.pop p,
.pop li,
.pop .price-tag span {
  color: white;
}

.separador{
  border-bottom:2px solid var(--surface);
  height: 2rem;
  width: 70%;
  margin:2rem auto;
  
}

/* =========================================
   13. FOOTER
   ========================================= */

footer {
  text-align: center;
  padding: 5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(0deg, #2d52aa 30%, #486ec3 100%);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: transparent;
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cdf;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: white;
  transform: translateY(-3px);
}

.social-icon {
  width: 35px;
  height: 35px;
  fill: currentColor;
}

.social-links a svg.social-icon circle {
  fill: #333347;
}

footer p {
  color: #cdf;
}

.mt-05 {
  margin-top: 0.5rem;
}

.text-sm {
  font-size: 0.9rem;
}

/* =========================================
   14. ANIMATIONS & REVEAL
   ========================================= */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Sparkle Effect */
.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  animation: sparkle 0.8s ease forwards;
}

@keyframes sparkle {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0);
  }
}

/* =========================================
   15. PIANO WIDGET
   ========================================= */

.piano-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

.piano-widget .piano-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--gradient-3);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.piano-widget .piano-toggle:hover {
  background: var(--gradient-1);
  transform: scale(1.05);
}

.piano-widget .piano-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  display:flex;
  flex-direction: column;
}

.piano-widget .piano-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.piano-widget .piano-modal-backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.piano-widget .piano-modal-dialog {
  position: relative;
  width: min(100%, 600px);
  max-width: 90vw;
  max-height: 90vh;
  background: var(--gradient-3);
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transform: translateY(10px);
  transition: transform 0.2s ease;
}

[data-theme="dark"] .piano-widget .piano-modal-dialog {
  background: #1e293b;
}

.piano-widget .piano-modal[aria-hidden="false"] .piano-modal-dialog {
  transform: translateY(0);
}

.piano-widget .piano-modal-header {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: transparent;
  border: none;
}

.piano-widget .header-controls {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: stretch;
  justify-items: stretch;
  width: 100%;
}

.piano-widget .octave-inline {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.octave-inline span {
  color: #ccceee;
}

.piano-widget .octave-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: var(--gradient-5);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: all 0.2s ease;
  box-shadow: var(--shadow2);
}

.piano-widget .octave-btn:hover {
  background: linear-gradient(135deg, #1111 0%, #4441 100%);
  color: var(--text-muted);
  border: none;
}

.piano-widget .sound-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 32px;
  position: relative;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.piano-widget .toggle-switch {
  position: relative;
  width: 62px;
  height: 34px;
  border-radius: 50px;
  background: var(--accent);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.piano-widget .toggle-track {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
  pointer-events: none;
}

.piano-widget .toggle-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.piano-widget .toggle-thumb {
  position: absolute;
  top: 2px;
  left: 1px;
  width: 30px;
  height: 30px;
  background: var(--gradient-5);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-sizing: border-box;
}

.piano-widget .toggle-thumb svg {
  width: 16px;
  height: 16px;
  color: transparent;
  display: none;
}

.piano-widget .toggle-switch.mode-piano .toggle-thumb {
  left: calc(100% - 31px);
}

.piano-widget .toggle-switch.mode-synth .toggle-thumb {
  left: 2px;
}

.piano-widget .piano-modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: var(--gradient-5);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: all 0.2s ease;
}

.piano-widget .piano-modal-close:hover {
  background: linear-gradient(135deg, #1111 0%, #4441 100%);
  color: var(--text-muted);
}

.piano-widget .piano-modal-body {
  padding: 1rem;
  overflow-y: auto;
  max-height: calc(90vh - 100px);
}

.piano-widget .piano-keys {
  position: relative;
  height: 180px;
  width: 100%;
  user-select: none;
  border-radius: 7px;
}

.piano-widget .piano-key {
  position: absolute;
  top: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 500;
  transition: background-color 0.1s ease;
  box-sizing: border-box;
  border-radius: 7px;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.piano-widget .piano-key.white {
  background: linear-gradient(to bottom, #ffffff 0%, #f5f5f5 100%);
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 4px 4px;
  color: #eeec;
  text-shadow: 0px 0px 0px #333a;
  font-family: inter;
  font-weight: 700;
  font-size: 1rem;
  z-index: 1;
  height: 100%;
  border-radius: 3px 3px 7px 7px;
}

.piano-widget .piano-key.black {
  background: linear-gradient(to bottom, #222 0%, #000 100%);
  border: 1px solid #000;
  border-radius: 0 0 3px 3px;
  color: transparent;
  z-index: 2;
  height: 60%;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.piano-widget .piano-key.white:hover {
  background: linear-gradient(to bottom, #f0f0f0 0%, #e0e0e0 100%);
}

.piano-widget .piano-key.black:hover {
  background: linear-gradient(to bottom, #333 0%, #111 100%);
}

.piano-widget .piano-key:active {
  background: linear-gradient(to bottom, #ddd 0%, #ccc 100%);
}

.piano-widget .piano-key.black:active {
  background: linear-gradient(to bottom, #444 0%, #222 100%);
}

/* Piano Dark Mode */
[data-theme="dark"] .piano-widget .piano-modal-dialog {
  background: #1e293b;
}

[data-theme="dark"] .piano-widget .piano-key.white {
  background: linear-gradient(to bottom, #e2e8f0 0%, #cbd5e1 100%);
  color: #1e293b;
}

[data-theme="dark"] .piano-widget .piano-key.black {
  background: linear-gradient(to bottom, #334155 0%, #0f172a 100%);
}

[data-theme="dark"] .piano-widget .piano-key.white:hover {
  background: linear-gradient(to bottom, #cbd5e1 0%, #94a3b8 100%);
}

[data-theme="dark"] .piano-widget .piano-key.black:hover {
  background: linear-gradient(to bottom, #475569 0%, #1e293b 100%);
}

/* =========================================
   16. UTILITY CLASSES
   ========================================= */

.flex-center-gap-1 {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.btn-full-width {
  width: 100%;
}

.text-sm {
  font-size: 0.9rem;
}

/* =========================================
   17. RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .section{
    padding-top:2rem;
  }
  #entrenamiento{
    padding-top:8rem;
    transform:translate(0, -8rem);
  }
  .about-container {
    grid-template-columns: 1fr;
  }

 

  .contact-modal-dialog {
    padding: 1.1rem;
  }

  .contact-modal-dialog h3 {
    font-size: 1.4rem;
  }

  .piano-widget .piano-modal-dialog {
    max-height: 80vh;
  }

  .piano-widget .piano-modal-header {
    padding: 0.75rem;
  }

  .piano-widget .piano-modal-body {
    padding: 0.75rem;
  }

  .piano-widget .piano-keys {
    height: 160px;
  }

  .piano-widget .piano-key {
    font-size: 0.7rem;
    padding-bottom: 8px;
  }

  .container {
    width: min(calc(100% - 1rem), 1200px);
  }

  .voice-switch-wrap {
    margin-bottom: 1.5rem;
  }

  .card {
    padding: 0.75rem;
  }

  .voice-switch {
    max-width: 100%;
  }

  .controls-row {
    grid-template-columns: 40px 1fr 72px;
    gap: 0.5rem;
  }

  .progress {
    min-width: 100px;
  }

  /* Speed select en móvil (mantener estilos) */
  .speed-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 0.35rem 0.6rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    width: 65px;
    text-align: center;
    justify-self: end;
    cursor: pointer;
    transition: all 0.2s ease;
    background-image: none;
  }

  .speed-select:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
  }

  .speed-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
  }

  .speed-select::-webkit-calendar-picker-indicator {
    display: none;
  }

  .speed-select option {
    background: var(--surface);
    color: var(--text);
    padding: 0.5rem;
    font-size: 0.9rem;
  }

  .speed-select:focus option {
    background: var(--surface);
    color: var(--text);
  }
}
