/* =================== RESET BÁSICO =================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =================== TIPOGRAFÍA GENERAL =================== */
body {
  font-family: 'Open Sans', sans-serif;
  background-color: #f0fdf4;
  color: #333;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =================== ENCABEZADO =================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  background-color: #fff;
  color: #008000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  flex-wrap: nowrap;
}

.logo-izquierdo,
.logo-derecho {
  height: 60px;
  width: auto;
  flex-shrink: 0;
}

.logo-izquierdo img,
.logo-derecho img {
  height: 100%;
  width: auto;
  display: block;
}

.titulo-principal {
  flex-grow: 1;
  text-align: center;
  padding: 0 15px;
}

.titulo-principal h1 {
  font-size: 1.5rem;
  color: #008000;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.titulo-principal h2 {
  font-size: 0.95rem;
  color: #444;
  font-weight: 500;
  margin-top: 3px;
  margin-bottom: 0;
  font-family: 'Open Sans', sans-serif;
  line-height: 1.2;
}

/* =================== MENÚ =================== */
nav {
  background: #008000;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80px;
  height: auto;
  position: relative;
  overflow: visible;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0, 128, 0, 0.3);
  padding: 8px 0;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  align-items: center;
}

nav ul li {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

nav ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  transition: background 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  line-height: 1.6;
  min-height: 48px;
}

nav ul li a:hover,
nav ul li a.activo {
  background: #006400;
}

/* =================== BOTÓN MENÚ HAMBURGUESA =================== */
.menu-toggle {
  display: none;
  position: relative;
  background: transparent;
  color: white;
  border: none;
  font-size: 28px;
  cursor: pointer;
  padding: 6px 10px;
  text-align: center;
  line-height: 1;
}

.menu-toggle:hover {
  color: #e6e6e6;
}

/* =================== CONTENIDO =================== */
.contenido {
  max-width: 900px;
  margin: 60px auto;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 128, 0, 0.1);
  padding: 50px 60px;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #333;
  border-top: 5px solid #00a000;
}

.contenido h2 {
  color: #008000;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  margin-bottom: 20px;
  text-align: left;
}

.contenido p {
  color: #444;
  margin-bottom: 18px;
  text-align: justify;
  font-family: 'Open Sans', sans-serif;
}

.contenido ul {
  list-style: none;
  padding-left: 0;
}

.contenido ul li {
  background: #f0fdf4;
  border-left: 5px solid #008000;
  padding: 12px 16px;
  margin: 10px 0;
  border-radius: 8px;
  font-size: 1.05rem;
}

.contenido section {
  margin-bottom: 50px;
}

/* =================== MASCOTA =================== */
.mascota-container {
  position: fixed;
  bottom: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
}

.mascota {
  width: 120px;
  cursor: pointer;
  transition: transform 0.3s ease;
  animation: aparecer 1s ease;
}

.mascota.hablando {
  animation: balanceo 0.6s ease-in-out infinite;
}

.globo-texto {
  display: none;
  background: #f1faee;
  border: 2px solid #008000;
  border-radius: 15px;
  padding: 10px 15px;
  font-size: 14px;
  color: #333;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  font-family: 'Open Sans', sans-serif;
  margin-bottom: 10px;
  text-align: center;
  max-width: 220px;
  position: relative;
}

.globo-texto::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px;
  border-style: solid;
  border-color: #008000 transparent transparent transparent;
}

/* =================== FOOTER =================== */
footer {
  text-align: center;
  padding: 20px;
  background-color: #008000;
  color: white;
  margin-top: auto;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
}

/* =================== ANIMACIONES =================== */
@keyframes balanceo {
  0% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(-3deg); }
  50% { transform: translateY(0) rotate(0deg); }
  75% { transform: translateY(-5px) rotate(3deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes aparecer {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* =================== RESPONSIVE =================== */
/* Tablets */
@media (max-width: 992px) {
  header {
    flex-direction: column;
    text-align: center;
    padding: 8px 15px;
  }

  .logo-izquierdo, .logo-derecho {
    height: 55px;
  }

  .titulo-principal h1 {
    font-size: 1.3rem;
  }

  nav {
    overflow: hidden;
    width: 100%;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
  }

  nav ul li a {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}
  /* MENÚ RESPONSIVE AJUSTADO */
 /* =================== MENÚ RESPONSIVE PARA CELULARES =================== */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: center;
  }

  .logo-izquierdo, .logo-derecho {
    height: 50px;
  }

  .titulo-principal h1 {
    font-size: 1.1rem;
  }

  .titulo-principal {
    padding: 0 10px;
  }

  nav {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

    /* ======= MENÚ MÓVIL ======= */
  .menu-toggle {
    display: block;
    margin: 10px auto;
    background: #008000;
    color: white;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
  }

  .menu-toggle:hover {
    background: #006400;
  }

  nav {
    flex-direction: column;
    align-items: center;
    height: auto;
    min-height: 70px;
    padding: 0;
    overflow: hidden;
    width: 100%;
  }

  nav ul {
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #008000;
    width: 100%;
    margin: 0;
    padding: 0;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
  }

  nav ul.active {
    display: flex;
    max-height: 1000px;
    opacity: 1;
  }

  nav ul li {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  nav ul li:first-child a {
    border-top: none;
  }

  nav ul li a {
    padding: 18px 20px;
    width: 100%;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
    transition: background 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
  }

  nav ul li a:hover,
  nav ul li a.activo {
    background: #006400;
  }
}

/* ======= SECCIÓN DE JUEGOS GORRIÓN ======= */
.juegos-gorrion {
  text-align: center;
  padding: 50px 20px;
  background-color: #f0fdf4;
}

.juegos-gorrion h2 {
  color: #008000;
  font-size: 2rem;
  margin-bottom: 10px;
}

.juegos-gorrion p {
  color: #333;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.tarjetas-juegos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.tarjeta {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  width: 300px;
  padding: 20px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.tarjeta img {
  width: 150px;
  height: 150px;
  margin-bottom: 15px;
}

.tarjeta h3 {
  color: #0b5d0b;
  margin-bottom: 10px;
}

.tarjeta p {
  color: #555;
  font-size: 0.95rem;
}

/* Responsivo */
@media (max-width: 768px) {
  .tarjetas-juegos {
    flex-direction: column;
    align-items: center;
  }
}
@import "mobile.css";
