

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

.clases-container {
  max-width: 1200px;
  margin: 0 auto 50px auto;
  padding: 60px 20px 150px 20px;
  background: linear-gradient(135deg, #ffeef8 0%, #e3f2fd 50%, #fff9e6 100%);
  min-height: auto;
  position: relative;
}

/* Decoración de globos flotantes */
.clases-container::before {
  content: '🎈';
  position: fixed;
  font-size: 3em;
  opacity: 0.25;
  animation: floatBalloon1 12s ease-in-out infinite;
  z-index: 0;
  top: 10%;
  left: 5%;
}

.clases-container::after {
  content: '🎈';
  position: fixed;
  font-size: 2.5em;
  opacity: 0.2;
  animation: floatBalloon2 15s ease-in-out infinite;
  z-index: 0;
  top: 30%;
  right: 8%;
}

/* Globos adicionales */
.clases-titulo::before {
  content: '🎈';
  position: fixed;
  font-size: 4em;
  opacity: 0.15;
  animation: floatBalloon3 18s ease-in-out infinite;
  z-index: 0;
  top: 60%;
  left: 10%;
  filter: hue-rotate(120deg);
}

.clases-titulo::after {
  content: '🎈';
  position: fixed;
  font-size: 3.5em;
  opacity: 0.2;
  animation: floatBalloon4 10s ease-in-out infinite;
  z-index: 0;
  top: 75%;
  right: 15%;
  filter: hue-rotate(240deg);
}

.clases-subtitulo::before {
  content: '🎈';
  position: fixed;
  font-size: 2.8em;
  opacity: 0.18;
  animation: floatBalloon5 16s ease-in-out infinite;
  z-index: 0;
  top: 45%;
  right: 5%;
  filter: hue-rotate(60deg);
}

.clases-subtitulo::after {
  content: '🎈';
  position: fixed;
  font-size: 3.2em;
  opacity: 0.22;
  animation: floatBalloon6 13s ease-in-out infinite;
  z-index: 0;
  top: 20%;
  left: 85%;
  filter: hue-rotate(180deg);
}

@keyframes floatBalloon {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg);
    opacity: 0.2;
  }
  25% { 
    transform: translateY(-30px) rotate(5deg);
    opacity: 0.3;
  }
  50% { 
    transform: translateY(-60px) rotate(-5deg);
    opacity: 0.2;
  }
  75% { 
    transform: translateY(-30px) rotate(3deg);
    opacity: 0.3;
  }
}

@keyframes floatBalloon1 {
  0%, 100% { 
    transform: translateY(0px) translateX(0px) rotate(0deg);
    opacity: 0.25;
  }
  25% { 
    transform: translateY(-40px) translateX(15px) rotate(8deg);
    opacity: 0.3;
  }
  50% { 
    transform: translateY(-80px) translateX(-10px) rotate(-8deg);
    opacity: 0.2;
  }
  75% { 
    transform: translateY(-40px) translateX(20px) rotate(5deg);
    opacity: 0.28;
  }
}

@keyframes floatBalloon2 {
  0%, 100% { 
    transform: translateY(0px) translateX(0px) rotate(0deg);
    opacity: 0.2;
  }
  30% { 
    transform: translateY(-50px) translateX(-20px) rotate(-10deg);
    opacity: 0.28;
  }
  60% { 
    transform: translateY(-100px) translateX(15px) rotate(10deg);
    opacity: 0.18;
  }
  80% { 
    transform: translateY(-30px) translateX(-10px) rotate(-5deg);
    opacity: 0.25;
  }
}

@keyframes floatBalloon3 {
  0%, 100% { 
    transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    opacity: 0.15;
  }
  35% { 
    transform: translateY(-60px) translateX(25px) rotate(12deg) scale(1.1);
    opacity: 0.22;
  }
  70% { 
    transform: translateY(-120px) translateX(-15px) rotate(-12deg) scale(0.95);
    opacity: 0.12;
  }
}

@keyframes floatBalloon4 {
  0%, 100% { 
    transform: translateY(0px) translateX(0px) rotate(0deg);
    opacity: 0.2;
  }
  40% { 
    transform: translateY(-70px) translateX(-30px) rotate(-15deg);
    opacity: 0.3;
  }
  80% { 
    transform: translateY(-35px) translateX(20px) rotate(8deg);
    opacity: 0.25;
  }
}

@keyframes floatBalloon5 {
  0%, 100% { 
    transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    opacity: 0.18;
  }
  50% { 
    transform: translateY(-90px) translateX(10px) rotate(6deg) scale(1.15);
    opacity: 0.28;
  }
}

@keyframes floatBalloon6 {
  0%, 100% { 
    transform: translateY(0px) translateX(0px) rotate(0deg);
    opacity: 0.22;
  }
  33% { 
    transform: translateY(-55px) translateX(-25px) rotate(-9deg);
    opacity: 0.3;
  }
  66% { 
    transform: translateY(-110px) translateX(18px) rotate(9deg);
    opacity: 0.18;
  }
}

.clases-titulo {
  text-align: center;
  font-size: 3.5em;
  background: linear-gradient(45deg, #ff1493, #ff69b4, #87ceeb, #ffd700);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(255, 20, 147, 0.3);
  animation: gradientShift 5s ease infinite, float 3s ease-in-out infinite;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

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

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

.clases-subtitulo {
  text-align: center;
  font-size: 1.3em;
  color: #555;
  margin-bottom: 60px;
  font-style: italic;
  font-weight: 300;
  position: relative;
  z-index: 1;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.categorias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
  padding: 20px 0 50px 0;
  position: relative;
  z-index: 1;
}

/* Estilo de cada tarjeta de categoría */
.categoria-card {
  text-decoration: none;
  background: white;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  cursor: pointer;
  border: 3px solid transparent;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.categoria-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.15), rgba(0, 191, 255, 0.15));
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.categoria-card::after {
  content: '✨';
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 2em;
  opacity: 0;
  transform: scale(0) rotate(-180deg);
  transition: all 0.5s ease;
  z-index: 3;
}

/* Hover solo en dispositivos con puntero real (mouse) */
@media (hover: hover) and (pointer: fine) {
  .categoria-card:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: 0 20px 50px rgba(255, 20, 147, 0.4);
    border-color: currentColor;
  }

  .categoria-card:hover::before {
    opacity: 1;
  }

  .categoria-card:hover::after {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.categoria-card:nth-child(1) {
  border-top: 6px solid #ff69b4;
  color: #ff69b4;
}

.categoria-card:nth-child(2) {
  border-top: 6px solid #87ceeb;
  color: #87ceeb;
}

.categoria-card:nth-child(3) {
  border-top: 6px solid #ffd700;
  color: #ffd700;
}

.categoria-card:nth-child(4) {
  border-top: 6px solid #98fb98;
  color: #98fb98;
}

.categoria-card > img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: all 0.5s ease;
  filter: brightness(1.05) saturate(1.1);
}

@media (hover: hover) and (pointer: fine) {
  .categoria-card:hover > img {
    transform: scale(1.15) rotate(3deg);
    filter: brightness(1.2) saturate(1.3);
  }
}

/* Carrusel vertical */
.carrusel {
  position: relative;
  width: 100%;
  height: 350px;
  min-height: 350px;
  max-height: 350px;
  overflow: hidden;
  flex-shrink: 0;
}

.carrusel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carrusel-slide {
  width: 100%;
  height: 350px;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  filter: brightness(1.05) saturate(1.1);
  background: #f8f8f8;
}

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

@media (hover: hover) and (pointer: fine) {
  .categoria-card:hover .carrusel-slide.active {
    filter: brightness(1.2) saturate(1.3);
  }
}

.carrusel-dots {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
}

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

.carrusel-dot.active {
  background: white;
  transform: scale(1.3);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.categoria-info {
  padding: 30px;
  position: relative;
  z-index: 2;
  background: white;
}

.categoria-info h3 {
  font-size: 1.7em;
  color: #333;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
  .categoria-card:hover .categoria-info h3 {
    color: #ff1493;
    transform: translateX(5px);
  }
}

.categoria-info p {
  color: #666;
  line-height: 1.8;
  font-size: 1em;
  transition: color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .categoria-card:hover .categoria-info p {
    color: #333;
  }
}

/* Animación de entrada */
.categoria-card {
  animation: slideUp 0.8s ease-out forwards;
  opacity: 0;
}

.categoria-card:nth-child(1) { animation-delay: 0.1s; }
.categoria-card:nth-child(2) { animation-delay: 0.25s; }
.categoria-card:nth-child(3) { animation-delay: 0.4s; }
.categoria-card:nth-child(4) { animation-delay: 0.55s; }

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Badge decorativo */
.categoria-card {
  position: relative;
}

.categoria-card:nth-child(1)::before {
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.2), rgba(255, 20, 147, 0.2));
}

.categoria-card:nth-child(2)::before {
  background: linear-gradient(135deg, rgba(135, 206, 235, 0.2), rgba(0, 191, 255, 0.2));
}

.categoria-card:nth-child(3)::before {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
}

.categoria-card:nth-child(4)::before {
  background: linear-gradient(135deg, rgba(152, 251, 152, 0.2), rgba(50, 205, 50, 0.2));
}

/* Globos decorativos adicionales */







































































@media (max-width: 768px) {}  filter: hue-rotate(270deg);  animation-delay: 3s;  animation: floatBalloon5 16s ease-in-out infinite;  font-size: 3.2em;  left: 70%;  top: 85%;.globo-5 {}  filter: hue-rotate(45deg);  animation-delay: 1s;  animation: floatBalloon4 13s ease-in-out infinite;  font-size: 4em;  left: 60%;  top: 35%;.globo-4 {}  filter: hue-rotate(310deg);  animation-delay: 4s;  animation: floatBalloon3 15s ease-in-out infinite;  font-size: 2.5em;  left: 25%;  top: 70%;.globo-3 {}  filter: hue-rotate(200deg);  animation-delay: 2s;  animation: floatBalloon2 17s ease-in-out infinite;  font-size: 3.5em;  left: 80%;  top: 50%;.globo-2 {}  filter: hue-rotate(90deg);  animation: floatBalloon1 14s ease-in-out infinite;  left: 20%;  top: 15%;.globo-1 {}  opacity: 0.2;  font-size: 3em;  position: absolute;.globo {}  z-index: 0;  pointer-events: none;  left: 0;  top: 0;  height: 100%;  width: 100%;  position: fixed;.globos-decorativos {/* Feedback táctil en lugar de hover */
@media (hover: none) {
  .categoria-card:active {
    transform: scale(0.98);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.25);
    border-color: currentColor;
  }
}

@media (max-width: 768px) {
  .clases-titulo {
    font-size: 2.2em;
  }
  
  .clases-subtitulo {
    font-size: 1.1em;
    padding: 0 10px;
  }
  
  .categorias-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .categoria-card {
    max-width: 400px;
    margin: 0 auto;
  }
  
  /* Ocultar algunos globos en móviles para mejor rendimiento */
  .clases-titulo::before,
  .clases-titulo::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .clases-container {
    padding: 40px 15px;
  }
  
  .clases-titulo {
    font-size: 1.8em;
  }
  
  .categoria-info {
    padding: 20px;
  }
}