/* Educational Website Styles for Children 4-5 */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Book System Styles */
.book-container {
  perspective: 1500px;
  width: 100%;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
}

.book {
  width: 800px;
  height: 600px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s;
}

.book-page {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transform-origin: left center;
  transition: transform 0.8s ease-in-out;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  text-align: center;
}

.book-page.cover {
  background: linear-gradient(135deg, #ff9ff3, #54a0ff);
  color: white;
  z-index: 10;
}

.book-page.even {
  transform: rotateY(180deg);
  z-index: 5;
}

.book-page.odd {
  z-index: 8;
}

.book-page.flipped {
  transform: rotateY(-180deg);
}

.book-title {
  font-size: 4rem;
  font-weight: 900;
  color: #2d3436;
  margin-bottom: 2rem;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.book-subtitle {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 3rem;
  text-align: center;
}

.book-content {
  font-size: 1.8rem;
  line-height: 1.8;
  color: #2d3436;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.book-navigation {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
  z-index: 15;
}

.book-nav-btn {
  background: linear-gradient(135deg, #87CEEB, #B0E0E6);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(135, 206, 235, 0.4);
  font-weight: 700;
  font-size: 1.5rem;
  color: #2d3436;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-nav-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(135, 206, 235, 0.5);
  background: linear-gradient(135deg, #B0E0E6, #87CEEB);
}

.book-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Story Book Specific Styles */
.story-book-container {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  position: relative;
  z-index: 1;
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Story Selector Styles */
.story-selector {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
  padding: 1rem;
  background: linear-gradient(135deg, #fff, #f8f9fa);
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(135, 206, 235, 0.3);
}

.story-select-btn {
  background: linear-gradient(135deg, #87CEEB, #B0E0E6);
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 25px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #2d3436;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(135, 206, 235, 0.4);
  position: relative;
  overflow: hidden;
  min-width: 120px;
}

.story-select-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.story-select-btn:hover::before {
  left: 100%;
}

.story-select-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(135, 206, 235, 0.5);
  background: linear-gradient(135deg, #B0E0E6, #87CEEB);
}

.story-select-btn:active {
  transform: translateY(-1px) scale(1.02);
}

/* Enhanced Book Styles */
.book-container {
  background: linear-gradient(135deg, #f0f8ff, #e0f2fe);
  border-radius: 30px;
  padding: 3rem;
  margin: 3rem 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.book-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(135, 206, 235, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.book {
  position: relative;
  z-index: 2;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  overflow: hidden;
}

.book-page {
  background: linear-gradient(135deg, #fff, #f8f9fa);
  border: 2px solid rgba(135, 206, 235, 0.2);
}

.book-page.cover {
  background: linear-gradient(135deg, #ff9ff3, #54a0ff);
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.book-page.cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.book-title {
  font-size: 5rem;
  font-weight: 900;
  color: white;
  text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  z-index: 3;
}

.book-subtitle {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  margin-bottom: 4rem;
  text-align: center;
  position: relative;
  z-index: 3;
}

.book-content {
  font-size: 2rem;
  line-height: 2;
  color: #2d3436;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem auto;
  position: relative;
  z-index: 3;
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(5px);
}

.book-navigation {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3rem;
  z-index: 15;
}

.book-nav-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  border: 2px solid rgba(255, 255, 255, 0.8);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  font-weight: 700;
  font-size: 1.8rem;
  color: #2d3436;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.book-nav-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.9));
}

.book-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Story End Styles */
.story-end {
  font-size: 2.5rem !important;
  font-weight: 900 !important;
  color: #ff6b6b !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2) !important;
  animation: celebration 2s ease-in-out infinite alternate;
  margin: 2rem 0 !important;
}

@keyframes celebration {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(5deg); }
  100% { transform: scale(1.05) rotate(-5deg); }
}

/* Story Particles Animation */
.story-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: hsl(200, 70%, 60%);
  border-radius: 50%;
  animation: float 8s linear infinite;
  pointer-events: none;
}

.story-particle:nth-child(2n) {
  background: hsl(220, 70%, 65%);
  animation-duration: 10s;
}

.story-particle:nth-child(3n) {
  background: hsl(240, 70%, 70%);
  animation-duration: 12s;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Enhanced Page Flip Animation */
.book-page.flipped {
  transform: rotateY(-180deg) scale(0.95);
  box-shadow: -10px 8px 25px rgba(0, 0, 0, 0.3);
}

.book-page:not(.flipped) {
  transform: rotateY(0deg) scale(1);
  box-shadow: 10px 8px 25px rgba(0, 0, 0, 0.2);
}

/* Animation for story buttons */
.story-select-btn {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.story-select-btn:nth-child(1) { animation-delay: 0.1s; }
.story-select-btn:nth-child(2) { animation-delay: 0.2s; }
.story-select-btn:nth-child(3) { animation-delay: 0.3s; }
.story-select-btn:nth-child(4) { animation-delay: 0.4s; }
.story-select-btn:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Book Styles */
@media (max-width: 768px) {
  .book-container {
    padding: 2rem;
    margin: 2rem 0;
  }

  .book {
    width: 100%;
    height: 500px;
  }

  .book-title {
    font-size: 3rem;
    margin-bottom: 2rem;
  }

  .book-subtitle {
    font-size: 2rem;
    margin-bottom: 3rem;
  }

  .book-content {
    font-size: 1.5rem;
    line-height: 1.6;
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .book-navigation {
    bottom: 2rem;
    gap: 2rem;
  }

  .book-nav-btn {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .story-selector {
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .story-select-btn {
    padding: 0.8rem 1rem;
    font-size: 1rem;
    min-width: 100px;
  }

  .story-end {
    font-size: 2rem !important;
  }
}

@media (max-width: 480px) {
  .book {
    height: 400px;
  }

  .book-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }

  .book-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .book-content {
    font-size: 1.2rem;
    line-height: 1.5;
    padding: 1rem;
  }

  .book-navigation {
    gap: 1.5rem;
  }

  .book-nav-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .story-selector {
    flex-direction: column;
    align-items: center;
  }

  .story-select-btn {
    width: 200px;
    margin: 0.2rem 0;
  }
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.story-card {
  background: linear-gradient(135deg, #fff, #f8f9fa);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 3px solid rgba(255, 255, 255, 0.8);
}

.story-card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #f8f9fa, #fff);
}

.story-card h3 {
  font-size: 1.8rem;
  color: #2d3436;
  margin-bottom: 1rem;
  font-weight: 700;
}

.story-card p {
  font-size: 1.2rem;
  color: #636e72;
  margin-bottom: 1.5rem;
}

.story-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

/* Enhanced Text Centering */
.section {
  text-align: center;
}

.section h1,
.section h2,
.section h3,
.section p {
  text-align: center;
}

.story h2,
.story p {
  text-align: center;
}

.story-content {
  text-align: center;
}

.story-content p {
  text-align: center;
  margin: 1rem auto;
}

/* Larger Titles for "Educando con Amor" */
.educando-title {
  font-size: 3.5rem !important;
  font-weight: 900 !important;
  color: #2d3436 !important;
  text-shadow: 4px 4px 8px rgba(135, 206, 235, 0.4) !important;
  margin-bottom: 2rem !important;
  text-align: center !important;
}

/* Page flip animation */
@keyframes pageFlip {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(-90deg); }
  100% { transform: rotateY(-180deg); }
}

.page-flipping {
  animation: pageFlip 0.8s ease-in-out;
}

body {
  font-family: 'Comic Sans MS', sans-serif;
  background: url(img/fondo.jpg) no-repeat center center fixed;
  background-size: cover;
  color: #2d3436;
  line-height: 1.6;
  min-height: 100vh;
}

@keyframes rainbowShift {
  0% { background-position: 0% 50%; }
  25% { background-position: 100% 50%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 0% 50%; }
  100% { background-position: 0% 50%; }
}

/* Typography */
h1, h2, h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #2d3436;
  text-shadow: 2px 2px 4px rgba(135, 206, 235, 0.3);
  font-weight: bold;
}

.section h1 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  font-size: 2rem;
}

p {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #2d3436;
  text-shadow: 1px 1px 2px rgba(135, 206, 235, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.5rem;
  background: linear-gradient(45deg, #87CEEB, #B0E0E6);
  color: #2d3436;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.4rem;
  font-weight: bold;
  transition: all 0.4s ease;
  border: 4px solid rgba(135, 206, 235, 0.5);
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(135, 206, 235, 0.3);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: linear-gradient(45deg, #B0E0E6, #87CEEB);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(135, 206, 235, 0.4);
}

.btn:active {
  transform: translateY(-1px) scale(1.02);
}

/* Navigation */
nav {
  background: linear-gradient(135deg, #87CEEB, #B0E0E6);
  padding: 1rem 2rem;
  border-radius: 0;
  margin: 0;
  box-shadow: 0 2px 10px rgba(135, 206, 235, 0.3);
  backdrop-filter: none;
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: visible;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

nav li {
  position: relative;
}

nav a {
  color: #2d3436;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-weight: bold;
  display: block;
  white-space: nowrap;
}

nav a:hover, nav a.active {
  background: rgba(255, 255, 255, 0.8);
  color: #2d3436;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(135, 206, 235, 0.4);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0;
  transition: all 0.3s ease;
}

.hamburger:hover {
  background: rgba(135, 206, 235, 0.3);
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #2d3436;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border-radius: 15px;
  z-index: 1;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3);
  top: 100%;
  left: 0;
}

.dropdown-content li {
  list-style: none;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.dropdown-content li:last-child {
  border-bottom: none;
}

.dropdown-content a {
  color: #2d3436;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.3s ease;
  border-radius: 0;
}

.dropdown-content a:hover {
  background: linear-gradient(135deg, #87CEEB, #B0E0E6);
  color: white;
  transform: translateX(5px);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background: linear-gradient(135deg, #87CEEB, #B0E0E6);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.section {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Mascot Animation */
.mascot {
  width: 150px;
  height: 150px;
  background: #f9ca24;
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}

.mascot::before {
  content: "😊";
  font-size: 3rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Games Section */
.games-section {
  padding: 3rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
  justify-content: center;
}

.game-card {
  /* Medidas y estilo base de .game-card */
  width: var(--card-width);
  height: var(--card-height);
  border-radius: 30px;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.5s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.6);

  /* Estilo visual de .card */
  background: #b4e1ff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 10px;

  /* Texto */
  font-size: 1.5em;
  font-family: cursive;
  color: rgb(88 199 250 / 0%); /* mismo efecto */
}
.game-card:hover {
  color: rgb(88 199 250 / 100%);
  transition: color 1s;
}
.card:hover:before, .card:hover:after {
  animation: none;
  opacity: 0;
  border-radius: 10px;
}


.game-card::before {
  content: "";
  width: 104%;
  height: 102%;
  border-radius: 8px;
  background-image: linear-gradient(
    var(--rotate)
    , #e1f9ff, #fafafc 43%, #faf6ff);
    position: absolute;
    z-index: -1;
    top: -1%;
    left: -2%;
    animation: spin 2.5s linear infinite;
}

.game-card::after {
  position: absolute;
  content: "";
  top: calc(var(--card-height) / 6);
  left: 0;
  right: 0;
  z-index: -1;
  height: 100%;
  width: 100%;
  margin: 0 auto;
  transform: scale(0.8);
  filter: blur(calc(var(--card-height) / 6));
  background-image: linear-gradient(
    var(--rotate)
    , #e3f9ff, #f8f9ff 43%, #f5eeff);
    opacity: 1;
  transition: opacity .5s;
  animation: spin 2.5s linear infinite;
}

@keyframes spin {
  0% {
    --rotate: 0deg;
  }
  100% {
    --rotate: 360deg;
  }
}
.sticker {
  position: absolute;
  width: 50px;
  height: 50px;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}
.sticker1 {
  top: 10px;
  left: 10px;
  background-image: url('stickers/star.png');
  background-size: contain;
  background-repeat: no-repeat;
}
.sticker2 {
  top: 10px;
  right: 10px;
  background-image: url('stickers/heart.png');
  background-size: contain;
  background-repeat: no-repeat;
}
.sticker3 {
  bottom: 10px;
  left: 10px;
  background-image: url('stickers/smile.png');
  background-size: contain;
  background-repeat: no-repeat;
}
.sticker4 {
  bottom: 10px;
  right: 10px;
  background-image: url('stickers/confetti.png');
  background-size: contain;
  background-repeat: no-repeat;
}

.game-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.game-card:hover::before {
  opacity: 1;
  animation: shine 1.5s ease-in-out;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.game-card:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, #b5d0ff, #a3cef1);
}

.game-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.game-card h3 {
  color: #2d3436;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 700;
  text-shadow: none;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.game-card p {
  color: #2d3436;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  line-height: 1.6;
}

.btn-primary {
  background: linear-gradient(45deg, #87CEEB, #B0E0E6);
  border: none;
  color: #2d3436;
  padding: 1.2rem 2.5rem;
  border-radius: 35px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 6px 20px rgba(135, 206, 235, 0.4);
  text-decoration: none;
  display: block;
  margin: 1.5rem auto 0 auto;
  text-align: center;
  max-width: 180px;
  width: auto;
  box-sizing: border-box;
}

.btn-primary:hover {
  background: linear-gradient(45deg, #B0E0E6, #87CEEB);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(135, 206, 235, 0.5);
}

.btn-secondary {
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.5);
  color: rgb(0, 0, 0);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}



/* Form Elements */
input, button {
  font-size: 1.2rem;
  padding: 0.5rem;
  border-radius: 10px;
  border: 2px solid #ddd;
}

/* Responsive Design */
@media (max-width: 1024px) {
  main {
    padding: 1.5rem;
  }

  .section {
    padding: 1.5rem;
  }

  .games-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }

  nav ul {
    gap: 1rem;
  }

  nav a {
    font-size: 1.3rem;
    padding: 0.7rem 1.2rem;
  }

  .learning-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
  }

  .hero-categories {
    gap: 2rem;
  }

  .category {
    width: 180px;
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  h1, h2, h3 {
    font-size: 2rem;
  }

  p {
    font-size: 1.2rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 1.2rem;
  }

  /* Mobile Navigation */
  nav {
    margin: 0.5rem;
    padding: 1rem;
    position: relative;
    border-radius: 20px;
  }

  .hamburger {
    display: flex;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
  }

  nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    width: 100%;
  }

  nav ul.active {
    max-height: 500px;
  }

  nav li {
    width: 100%;
    text-align: center;
  }

  nav a {
    font-size: 1.1rem;
    padding: 0.8rem 1rem;
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  footer {
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    clip-path: none;
    padding-top: 1.5rem;
    box-shadow: inset 0 10px 15px -10px rgba(0,0,0,0.1);
  }

  /* Dropdown adjustments for mobile */
  .dropdown-content {
    position: static;
    display: none;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: none;
    border-radius: 0;
    border: none;
    margin-top: 0.5rem;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }

  .dropdown-content a {
    padding: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 1rem;
  }

  .dropdown-content a:hover {
    background: linear-gradient(45deg, #ff9ff3, #54a0ff);
    transform: none;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .mascot {
    width: 150px;
    height: 150px;
  }

  .mascot::before {
    font-size: 3rem;
  }

  /* Game-specific responsive styles */
  .word-spaces {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .letter-space {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .letters-pool {
    gap: 0.5rem;
  }

  .letter {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .letter-options {
    gap: 0.5rem;
  }

  .letter-option {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .memory-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    max-width: 300px;
  }

  .memory-card {
    width: 70px;
    height: 70px;
    font-size: 1.5rem;
  }

  .sound-options {
    gap: 0.8rem;
    flex-wrap: wrap;
  }

  .sound-option {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .version-tabs {
    gap: 0.3rem;
    justify-content: center;
  }

  .version-tab {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .learning-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }

  .learning-item {
    padding: 1rem;
  }

  .item-image {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 0.9rem;
  }

  main {
    padding: 1rem;
  }

  .section {
    padding: 1rem;
    margin: 1rem 0;
  }

  h1, h2, h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  p {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 25px;
    max-width: 180px;
    width: 100%;
  }

  .mascot {
    width: 120px;
    height: 120px;
  }

  .mascot::before {
    font-size: 2.5rem;
  }

  /* Game-specific responsive styles for small screens */
  .word-spaces {
    gap: 0.3rem;
  }

  .letter-space {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .letters-pool {
    gap: 0.3rem;
  }

  .letter {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .word-completion {
    font-size: 1.5rem;
  }

  .letter-options {
    gap: 0.3rem;
  }

  /* Added styles for .game-card text responsiveness */
  .game-card h3 {
    font-size: 1.4rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .game-card p {
    font-size: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .letter-option {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  .memory-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    max-width: 200px;
  }

  .memory-card {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }

  #tracing-canvas {
    width: 250px;
    height: 250px;
  }

  .sound-options {
    gap: 0.5rem;
  }

  .sound-option {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .version-tabs {
    gap: 0.2rem;
  }

  .version-tab {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }

  .learning-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .learning-item {
    padding: 0.8rem;
  }

  .item-image {
    font-size: 2.5rem;
  }

  .learning-item h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 360px) {
  main {
    padding: 0.5rem;
  }

  .section {
    padding: 0.8rem;
    margin: 0.5rem 0;
  }

  nav {
    margin: 0.3rem;
    padding: 0.5rem;
  }

  nav a {
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
  }

  .mascot {
    width: 100px;
    height: 100px;
  }

  .mascot::before {
    font-size: 2rem;
  }

  .memory-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem;
    max-width: 180px;
  }

  .memory-card {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }

  #tracing-canvas {
    width: 200px;
    height: 200px;
  }

  .sound-options {
    gap: 0.3rem;
  }

  .sound-option {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    border-radius: 20px;
    max-width: 160px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
.btn:focus, nav a:focus {
  outline: 3px solid #f9ca24;
  outline-offset: 2px;
}

/* Game-specific styles */
.game-section {
  padding: 3rem 0;
  min-height: 80vh;
}

.game-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
  max-width: 800px;
  margin: 0 auto;
}

.game-description {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 2rem;
  color: #2d3436;
  font-weight: bold;
}

.game-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  margin: 2rem 0;
}

/* Fix for consejos para jugar boxes in juegos.html */
.games-info {
  max-width: 320px;
  margin: 20px auto 40px auto;
  background: #f0f8ff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

.games-info h2 {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.games-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.games-info ul li {
  background: #a3c9f1;
  margin: 10px 0;
  padding: 15px;
  border-radius: 15px;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
  color: #222;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.word-spaces {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.letter-space {
  width: 80px;
  height: 80px;
  border: 4px solid #ff9ff3;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: bold;
  background: linear-gradient(135deg, #fff, #f8f9fa);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  position: relative;
  transition: all 0.3s ease;
}

.letter-space:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.letter-space::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff9ff3, #54a0ff, #5f27cd, #00d2d3);
  border-radius: 17px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.letter-space:hover::before {
  opacity: 1;
}

.letters-pool {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 20px;
  border: 3px dashed #ff9ff3;
  min-height: 120px;
}

.letter {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #ff6b6b, #ff9ff3);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  cursor: grab;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.letter::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.letter:hover::before {
  left: 100%;
}

.letter:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.letter:active {
  cursor: grabbing;
  transform: scale(0.95);
}

.word-completion {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #2d3436;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  background: linear-gradient(135deg, #fff, #f8f9fa);
  padding: 1.5rem 3rem;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 3px solid #ff9ff3;
}

.missing-letter {
  color: #ff6b6b;
  cursor: pointer;
  background: linear-gradient(135deg, #ffeaa7, #fab1a0);
  padding: 0.5rem 1rem;
  border-radius: 15px;
  border: 2px solid #ff7675;
  font-weight: bold;
  font-size: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.correct-letter {
  color: #2d3436;
  background: linear-gradient(135deg, #a8e6cf, #dcedc8);
  padding: 0.5rem 1rem;
  border-radius: 15px;
  border: 2px solid #4ecdc4;
  font-weight: bold;
  font-size: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  animation: correctPulse 0.5s ease;
}

@keyframes correctPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.missing-letter:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.letter-options {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.letter-option {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #4ecdc4, #26a69a);
  border: none;
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.letter-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.letter-option:hover::before {
  left: 100%;
}

.letter-option:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 20px;
  border: 3px dashed #ff9ff3;
}

.memory-card {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #4ecdc4, #26a69a);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.3);
}

.memory-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.memory-card:hover::before {
  left: 100%;
}

.memory-card:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.memory-card.flipped {
  background: linear-gradient(135deg, #fff, #f8f9fa);
  color: #2d3436;
  border: 3px solid #ff9ff3;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.tracing-area {
  text-align: center;
  margin: 2rem 0;
}

#tracing-canvas {
  border: 3px solid #4ecdc4;
  border-radius: 10px;
  background: white;
}

.sound-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.sound-option {
  width: 60px;
  height: 60px;
  background: #f9ca24;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: background 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.sound-option:hover {
  background: #f39c12;
}

/* Learning page styles */
.learning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  overflow-x: auto;
  max-width: 100%;
  justify-items: center;
}

.learning-item {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.item-image {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.learning-item h3 {
  color: #333;
  margin-bottom: 1rem;
}

/* Story styles */
.story-content {
  margin-bottom: 2rem;
  line-height: 1.8;
}

.story-content p {
  margin-bottom: 1rem;
}

/* Book-like Stories Container */
.stories-container {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 20px;
  padding: 3rem;
  margin: 2rem 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  border: 3px solid rgba(135, 206, 235, 0.3);
}

.stories-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(135, 206, 235, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.stories-container .story {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, #fff, #f8f9fa);
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(135, 206, 235, 0.2);
  transition: all 0.3s ease;
}

.stories-container .story:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #f8f9fa, #fff);
}

.stories-container .story h2 {
  font-size: 2.5rem;
  font-weight: 900;
  color: #2d3436;
  margin-bottom: 1.5rem;
  text-shadow: 3px 3px 6px rgba(135, 206, 235, 0.3);
  text-align: center;
  position: relative;
}

.stories-container .story h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #ff9ff3, #54a0ff);
  border-radius: 2px;
}

.stories-container .story p {
  font-size: 1.6rem;
  line-height: 1.8;
  color: #2d3436;
  margin-bottom: 1rem;
  text-align: justify;
  text-shadow: 1px 1px 2px rgba(135, 206, 235, 0.1);
}

.stories-container .story button {
  background: linear-gradient(135deg, #87CEEB, #B0E0E6);
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #2d3436;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(135, 206, 235, 0.4);
  position: relative;
  overflow: hidden;
  display: block;
  margin: 1.5rem auto 0;
  min-width: 150px;
}

.stories-container .story button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.stories-container .story button:hover::before {
  left: 100%;
}

.stories-container .story button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(135, 206, 235, 0.5);
  background: linear-gradient(135deg, #B0E0E6, #87CEEB);
}

.stories-container .story button:active {
  transform: translateY(-1px) scale(1.02);
}

/* Button group styles */
.button-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.stop-btn {
  background: #e74c3c;
}

.stop-btn:hover {
  background: #c0392b;
}

/* Subscription Banner */
.subscription-banner {
  background: linear-gradient(45deg, #ff6b6b, #ff9ff3);
  color: white;
  text-align: center;
  padding: 1rem 2rem;
  font-size: 1.4rem;
  font-weight: bold;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.subscription-banner a {
  color: #fff;
  text-decoration: underline;
  font-weight: bold;
}

.close-banner {
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 0.2rem;
  line-height: 1;
  padding: 0;
  user-select: none;
}

/* Hero Categories */
.hero-categories {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}
.category {
  background: linear-gradient(135deg, #ff9ff3, #54a0ff);
  border-radius: 30px;
  padding: 2rem;
  width: 200px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.category:hover {
  transform: translateY(-10px) scale(1.05);
}
.category img {
  width: 100px;
  height: 100px;
  margin-bottom: 1rem;
}
.category h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.category p {
  font-size: 1.2rem;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Grade Buttons */
.grade-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
.grade-btn {
  background: #ff4d4d;
  color: white;
  border: none;
  border-radius: 30px;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 77, 77, 0.6);
  transition: background 0.3s ease, transform 0.3s ease;
}
.grade-btn:hover {
  background: #ff1a1a;
  transform: translateY(-5px) scale(1.05);
}

/* Game versions styles */
.game-versions {
  margin-top: 1rem;
}
.version-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.version-tab {
  padding: 0.5rem 1rem;
  background: #4ecdc4;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}
.version-tab:hover {
  background: #26a69a;
}
.version-tab.active {
  background: #ff6b6b;
}

/* Footer Styles */
footer {
  position: relative;
  background: linear-gradient(135deg, #87CEEB, #B0E0E6);
  padding: 2rem 0;
  text-align: center;
  box-shadow: 0 -8px 20px rgba(135, 206, 235, 0.6);
  font-family: 'Comic Sans MS', cursive, sans-serif;
  color: #2d3436;
  font-size: 1.4rem;
  font-weight: bold;
  user-select: none;
  overflow: hidden;
  z-index: 1;
  filter: drop-shadow(0 -4px 6px rgba(0,0,0,0.1));
}

footer .bubbles {
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: 120px;
  overflow: hidden;
  filter: url('#goo');
  z-index: 0;
}

footer .bubbles span {
  position: absolute;
  bottom: 0;
  width: 20px;
  height: 20px;
  background: #ff6b6b;
  border-radius: 50%;
  animation: bubbleUp 6s linear infinite;
  opacity: 0.7;
}

footer .bubbles span:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 5s;
  width: 25px;
  height: 25px;
}

footer .bubbles span:nth-child(2) {
  left: 20%;
  animation-delay: 1s;
  animation-duration: 6s;
}

footer .bubbles span:nth-child(3) {
  left: 30%;
  animation-delay: 2s;
  animation-duration: 4s;
  width: 30px;
  height: 30px;
}

footer .bubbles span:nth-child(4) {
  left: 40%;
  animation-delay: 3s;
  animation-duration: 5s;
}

footer .bubbles span:nth-child(5) {
  left: 50%;
  animation-delay: 4s;
  animation-duration: 6s;
  width: 25px;
  height: 25px;
}

footer .bubbles span:nth-child(6) {
  left: 60%;
  animation-delay: 5s;
  animation-duration: 4s;
}

footer .bubbles span:nth-child(7) {
  left: 70%;
  animation-delay: 6s;
  animation-duration: 5s;
  width: 30px;
  height: 30px;
}

footer .bubbles span:nth-child(8) {
  left: 80%;
  animation-delay: 7s;
  animation-duration: 6s;
}

footer .bubbles span:nth-child(9) {
  left: 90%;
  animation-delay: 8s;
  animation-duration: 4s;
  width: 25px;
  height: 25px;
}

@keyframes bubbleUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.7;
  }
  100% {
    transform: translateY(-150px) scale(1.2);
    opacity: 0;
  }
}

nav {
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 8px 20px rgba(135, 206, 235, 0.6);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

nav .bubbles {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 120px;
  overflow: hidden;
  filter: url('#goo');
  z-index: 0;
}

nav .bubbles span {
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
  background: #54a0ff;
  border-radius: 50%;
  animation: bubbleDown 6s linear infinite;
  opacity: 0.7;
}

nav .bubbles span:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 5s;
  width: 25px;
  height: 25px;
}

nav .bubbles span:nth-child(2) {
  left: 20%;
  animation-delay: 1s;
  animation-duration: 6s;
}

nav .bubbles span:nth-child(3) {
  left: 30%;
  animation-delay: 2s;
  animation-duration: 4s;
  width: 30px;
  height: 30px;
}

nav .bubbles span:nth-child(4) {
  left: 40%;
  animation-delay: 3s;
  animation-duration: 5s;
}

nav .bubbles span:nth-child(5) {
  left: 50%;
  animation-delay: 4s;
  animation-duration: 6s;
  width: 25px;
  height: 25px;
}

nav .bubbles span:nth-child(6) {
  left: 60%;
  animation-delay: 5s;
  animation-duration: 4s;
}

nav .bubbles span:nth-child(7) {
  left: 70%;
  animation-delay: 6s;
  animation-duration: 5s;
  width: 30px;
  height: 30px;
}

nav .bubbles span:nth-child(8) {
  left: 80%;
  animation-delay: 7s;
  animation-duration: 6s;
}

nav .bubbles span:nth-child(9) {
  left: 90%;
  animation-delay: 8s;
  animation-duration: 4s;
  width: 25px;
  height: 25px;
}

@keyframes bubbleDown {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.7;
  }
  100% {
    transform: translateY(150px) scale(1.2);
    opacity: 0;
  }
}

footer p {
  margin: 0;
  padding: 0 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

footer a {
  color: #2d3436;
  text-decoration: underline;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #54a0ff;
}

/* Presentation Slide Styles */
.presentation {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, #E6F3FF, #F0F8FF, #E0F2FE);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  max-width: 100%;
  margin: 0;
  padding: 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 3;
}

.slide-title {
  font-size: 3rem;
  font-weight: 900;
  color: #2d3436;
  margin-bottom: 1rem;
  text-shadow: 3px 3px 6px rgba(135, 206, 235, 0.4);
}

.slide-subtitle {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(135, 206, 235, 0.3);
}

.content-section {
  margin: 2rem 0;
  font-weight: 600;
}

.highlight-box {
  background: linear-gradient(135deg, #87CEEB, #B0E0E6);
  padding: 2rem;
  border-radius: 20px;
  margin: 2rem 0;
  box-shadow: 0 8px 25px rgba(135, 206, 235, 0.4);
  font-weight: 700;
  color: #2d3436;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.quiz-option {
  background: linear-gradient(135deg, #a3cef1, #b5d0ff);
  padding: 1.5rem;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  font-weight: 600;
  text-align: center;
  border: 3px solid rgba(255,255,255,0.6);
}

.quiz-option:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.vocabulary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.vocab-item {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  font-weight: 600;
}

.vocab-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.vocab-word {
  font-size: 1.8rem;
  font-weight: 800;
  color: #2d3436;
  margin-bottom: 1rem;
}

.vocab-image {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.vocab-description {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2d3436;
}

.slide-navigation {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 4;
}

.slide-nav-btn {
  background: linear-gradient(135deg, #87CEEB, #B0E0E6);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(135, 206, 235, 0.4);
  font-weight: 700;
  font-size: 1.2rem;
  color: #2d3436;
}

.slide-nav-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(135, 206, 235, 0.5);
}

.slide-indicator {
  position: fixed;
  top: 2rem;
  right: 2rem;
  display: flex;
  gap: 0.5rem;
  z-index: 4;
}

.slide-indicator span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(135, 206, 235, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide-indicator span.active {
  background: #87CEEB;
  transform: scale(1.3);
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: rgba(135, 206, 235, 0.3);
  z-index: 5;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #87CEEB, #B0E0E6);
  transition: width 0.3s ease;
}

.interactive-element {
  transition: all 0.3s ease;
  cursor: pointer;
}

.interactive-element:hover {
  transform: scale(1.05);
}

.feedback-message {
  padding: 1rem 2rem;
  border-radius: 15px;
  margin: 1rem 0;
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
}

.feedback-message.correct {
  background: linear-gradient(135deg, #a8e6cf, #dcedc8);
  color: #2d3436;
  border: 2px solid #4ecdc4;
}

.feedback-message.incorrect {
  background: linear-gradient(135deg, #ffeaa7, #fab1a0);
  color: #2d3436;
  border: 2px solid #ff7675;
}

/* Particles Effect */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(135, 206, 235, 0.6);
  border-radius: 50%;
  animation: float 10s linear infinite;
}

.particle:nth-child(2n) {
  background: rgba(176, 224, 230, 0.6);
  animation-duration: 8s;
}

.particle:nth-child(3n) {
  background: rgba(163, 206, 241, 0.6);
  animation-duration: 12s;
}

.particle:nth-child(4n) {
  background: rgba(181, 208, 255, 0.6);
  animation-duration: 9s;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Desktop Responsiveness Improvements */
@media (min-width: 1200px) {
  .slide-content {
    max-width: 1400px;
    padding: 3rem;
  }

  .slide-title {
    font-size: 4rem;
  }

  .slide-subtitle {
    font-size: 2.5rem;
  }

  nav ul {
    gap: 2rem;
  }

  nav a {
    font-size: 1.6rem;
    padding: 0.8rem 1.5rem;
  }

  .quiz-options {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .vocabulary-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }

  .vocab-item {
    padding: 2.5rem;
  }

  .vocab-word {
    font-size: 2rem;
  }

  .vocab-image {
    width: 120px;
    height: 120px;
  }

  .games-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
  }

  .game-card {
    padding: 3rem;
  }

  .learning-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }

  .learning-item {
    padding: 2rem;
  }

  .item-image {
    font-size: 5rem;
  }

  .hero-categories {
    gap: 4rem;
  }

  .category {
    width: 250px;
    padding: 2.5rem;
  }

  .category img {
    width: 120px;
    height: 120px;
  }

  .category h2 {
    font-size: 2rem;
  }

  .category p {
    font-size: 1.4rem;
  }
}

/* Enhanced Visual Effects */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.interactive-element:hover {
  animation: pulse 0.6s ease;
}

.quiz-option:hover {
  background: linear-gradient(135deg, #b5d0ff, #a3cef1);
}

.vocab-item:hover {
  background: rgba(255, 255, 255, 1);
}

/* Improved Spacing and Layout Consistency */
main {
  padding: 3rem 3rem;
}

.section {
  padding: 3rem;
  margin: 3rem 0;
}

.btn {
  padding: 1.5rem 3rem;
  font-size: 1.8rem;
}

h1, h2, h3 {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
}

p {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

/* Refined Responsive Breakpoints */
@media (max-width: 1024px) {
  .slide-content {
    padding: 2rem;
  }

  .slide-title {
    font-size: 2.5rem;
  }

  .slide-subtitle {
    font-size: 1.8rem;
  }

  .quiz-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .vocabulary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Floating Scroll to Top Button */
.scroll-to-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #87CEEB, #B0E0E6);
  border: none;
  border-radius: 50%;
  color: #2d3436;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(135, 206, 235, 0.4);
  z-index: 1000;
  display: none; /* Initially hidden */
}

.scroll-to-top-btn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 20px rgba(135, 206, 235, 0.5);
  background: linear-gradient(135deg, #B0E0E6, #87CEEB);
}

.scroll-to-top-btn:active {
  transform: translateY(-1px) scale(1.05);
}

/* Show button when scrolled down */
.scroll-to-top-btn.show {
  display: block;
}

/* Responsive adjustments for the floating button */
@media (max-width: 768px) {
  .scroll-to-top-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    bottom: 15px;
    right: 15px;
  }
}

@media (max-width: 480px) {
  .scroll-to-top-btn {
    width: 45px;
    height: 45px;
    font-size: 1rem;
    bottom: 10px;
    right: 10px;
  }
}

@media (max-width: 768px) {
  .slide-content {
    padding: 1.5rem;
  }

  .slide-title {
    font-size: 2rem;
  }

  .slide-subtitle {
    font-size: 1.5rem;
  }

  .quiz-options {
    grid-template-columns: 1fr;
  }

  .vocabulary-grid {
    grid-template-columns: 1fr;
  }

  .slide-navigation {
    bottom: 1rem;
  }

  .slide-indicator {
    top: 1rem;
    right: 1rem;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 25px;
    max-width: 180px;
    width: 100%;
  }
}

@media (max-width: 360px) {
  .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    border-radius: 20px;
    max-width: 160px;
  }
}
.stories-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

/* Título */
.stories-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #3b2e7e;
}

.stories-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

/* Grid de cuentos */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* Cajas de cuentos */
.story-box {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.story-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.25);
    background: #fdfcff;
}

/* Icono del cuento */
.story-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Título y descripción */
.story-title {
    font-size: 1.4rem;
    margin: 10px 0;
    color: #2c2c54;
}

.story-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}

/* Flecha de abrir */
.story-arrow {
    font-weight: bold;
    color: #6a5acd;
    font-size: 0.95rem;
    margin-top: 10px;
    transition: color 0.2s ease;
}

.story-box:hover .story-arrow {
    color: #ff8c42;
}

/* Contenido del cuento */
.story-content {
    margin-top: 40px;
    padding: 25px;
    border-radius: 15px;
    background: #fff7e6;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Botones de navegación */
.story-navigation {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.story-nav-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    background: #6a5acd;
    color: white;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
}

.story-nav-btn:hover {
    background: #483d8b;
    transform: scale(1.05);
}

/* Título Principal Decorativo - Educando con Amor */
.titulo-principal-decorado {
  font-size: 3.5rem !important;
  font-weight: 900 !important;
  background: linear-gradient(135deg, #5d0f0f, #000000, #ccff00, #B0E0E6, #4ecdc4) !important;
  background-size: 300% 300% !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  text-shadow: none !important;
  position: relative !important;
  margin-bottom: 2rem !important;
  text-align: center !important;
  animation: rainbowShift 4s ease-in-out infinite alternate !important;
  letter-spacing: 2px !important;
  text-transform: none !important;
  line-height: 1.2 !important;
}

/* Efectos decorativos adicionales */
.titulo-principal-decorado::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg, #ff9ff3, #54a0ff, #87CEEB, #B0E0E6);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.3;
  filter: blur(15px);
  animation: pulse 3s ease-in-out infinite;
}

/* Sombra decorativa */
.titulo-principal-decorado::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 4px;
  background: linear-gradient(90deg, #ff9ff3, #54a0ff, #87CEEB);
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(135, 206, 235, 0.5);
}

/* Animación de brillo */
@keyframes rainbowShift {
  0% {
    background-position: 0% 50%;
    filter: hue-rotate(0deg) brightness(1);
  }
  25% {
    background-position: 100% 50%;
    filter: hue-rotate(10deg) brightness(1.1);
  }
  50% {
    background-position: 100% 50%;
    filter: hue-rotate(0deg) brightness(1.2);
  }
  75% {
    background-position: 0% 50%;
    filter: hue-rotate(-10deg) brightness(1.1);
  }
  100% {
    background-position: 0% 50%;
    filter: hue-rotate(0deg) brightness(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.5;
  }
}

/* Partículas decorativas alrededor del título */
.titulo-principal-decorado {
  position: relative;
}

.titulo-principal-decorado .particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #ff9ff3, #54a0ff);
  border-radius: 50%;
  pointer-events: none;
  animation: float 6s linear infinite;
}

.titulo-principal-decorado .particle:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.titulo-principal-decorado .particle:nth-child(2) {
  top: 20%;
  right: 15%;
  animation-delay: 1s;
  background: radial-gradient(circle, #87CEEB, #B0E0E6);
}

.titulo-principal-decorado .particle:nth-child(3) {
  bottom: 15%;
  left: 20%;
  animation-delay: 2s;
  background: radial-gradient(circle, #4ecdc4, #26a69a);
}

.titulo-principal-decorado .particle:nth-child(4) {
  bottom: 25%;
  right: 10%;
  animation-delay: 3s;
  background: radial-gradient(circle, #ff6b6b, #f39c12);
}

.titulo-principal-decorado .particle:nth-child(5) {
  top: 50%;
  left: 5%;
  animation-delay: 4s;
  background: radial-gradient(circle, #f9ca24, #ff9ff3);
}

.titulo-principal-decorado .particle:nth-child(6) {
  top: 60%;
  right: 5%;
  animation-delay: 5s;
  background: radial-gradient(circle, #54a0ff, #87CEEB);
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-20px) rotate(360deg);
    opacity: 0;
  }
}

/* Responsive para el título decorativo */
@media (max-width: 768px) {
  .titulo-principal-decorado {
    font-size: 2.5rem !important;
    letter-spacing: 1px !important;
  }

  .titulo-principal-decorado::before {
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
  }
}

@media (max-width: 480px) {
  .titulo-principal-decorado {
    font-size: 2rem !important;
    letter-spacing: 0.5px !important;
  }

  .titulo-principal-decorado::after {
    height: 3px;
  }
}
/* Botón flotante de ir al inicio */
.scroll-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #3b6f36; /* verde oscuro */
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    display: none; /* Oculto por defecto */
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.scroll-to-top-btn:hover {
    background: #d0da4e; /* amarillo verdoso */
    color: #000;
    transform: scale(1.1);
}
/* Botón flotante que lleva a index.html */
.go-home-btn {
    position: fixed;
    bottom: 80px; /* un poco más arriba que el scroll-to-top */
    right: 20px;
    background: #d0da4e; /* amarillo verdoso */
    color: #000;
    border: none;

    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.go-home-btn:hover {
    background: #3b6f36; /* verde oscuro */
    color: white;
    transform: scale(1.1);
}

