
body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(to bottom, #f0f4ff 0%, #ffffff 100%);
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.6;
  background-attachment: fixed;
}

/* ENCABEZADO */
header {
  background-color: #2f557f;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 10px;
  gap: 10px;
}

header img {
  height: 60px;
}

h1#main-title {
  font-size: 2rem;
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

p#subtitle {
  font-size: 1.1rem;
  margin: 0;
}

.language-buttons {
  margin-top: 10px;
}

.language-buttons button {
  background-color: white;
  color: #2f557f;
  border: none;
  padding: 8px 14px;
  margin: 0 5px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.language-buttons button:hover {
  background-color: #ffa92d;
}

/* ESTRUCTURA DE CADA MES */
.month-card {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.month-card:nth-child(1) { animation-delay: 0.2s; }
.month-card:nth-child(2) { animation-delay: 0.4s; }
.month-card:nth-child(3) { animation-delay: 0.6s; }
.month-card:nth-child(4) { animation-delay: 0.8s; }
.month-card:nth-child(5) { animation-delay: 1s; }
.month-card:nth-child(6) { animation-delay: 1.2s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.month-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 30px;
  align-items: center;
  padding: 10px;
}

.month-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  padding-left: 20px;
}

.month-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 5px;
  color: #2f557f;
}

.month-theme {
  font-size: 1rem;
  color: #333;
  margin-bottom: 15px;
}

/* BOTONES DE RECURSOS */
.resource-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 10px;
}

.resource-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #2f557f; /* azul oscuro institucional */
  color: white;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  margin-right: 10px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.resource-links a:hover {
  background-color: #ffa92d;
  transform: translateY(-2px);
}

.resource-links img {
  width: 20px;
  height: 20px;
}

/* VIDEO RESPONSIVE */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin-top: 15px;
}

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

/* MEDIA QUERIES PARA RESPONSIVE */
@media screen and (max-width: 768px) {
  .month-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .month-info,
  .video-wrapper {
    width: 100%;
    text-align: center;
    padding-left: 0;
  }

  .resource-links {
    justify-content: center;
  }

  .resource-links a {
    margin-bottom: 10px;
  }
}

footer {
  background-color: #2f557f;
  color: white;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
}

.footer-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-text {
  margin: 0;
  line-height: 1.6;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: #ffffff;
  margin: 0 10px;
  text-decoration: underline;
  font-weight: 500;
}

.footer-links a:hover {
  color: #c0dfff;
}

.language-buttons button {
  background: none;
  border: none;
  cursor: pointer;
  margin: 0 5px;
  padding: 5px;
  transition: transform 0.2s ease;
}

.language-buttons img {
  width: 32px;
  height: auto;
  cursor: pointer;
  margin: 0 5px;
}

.language-buttons button:hover {
  transform: scale(1.1);
}

#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  font-size: 24px;
  background-color: #2f557f;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 10px 16px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

#scrollTopBtn:hover {
  background-color: #004ea2;
}

.month-card[data-month="enero"] {
  border-left: 12px solid #FF6F61;
}
.month-card[data-month="febrero"] {
  border-left: 12px solid #6B5B95;
}
.month-card[data-month="marzo"] {
  border-left: 12px solid #88B04B;
}
.month-card[data-month="abril"] {
  border-left: 12px solid #F7CAC9;
}
.month-card[data-month="mayo"] {
  border-left: 12px solid #92A8D1;
}
.month-card[data-month="junio"] {
  border-left: 12px solid #955251;
}

/* === Tipografía amigable para niños y jóvenes === */
body {
  font-family: 'Roboto', sans-serif;
}

#main-title, .month-title {
  font-family: 'Roboto', cursive;
}

.language-buttons button,
footer {
  font-family: 'Roboto', sans-serif;
}


/* Título del mes */
.month-title {
  font-size: 3rem; /* Más grande */
  font-family: 'Roboto', cursive;
  color: #2E5B2B; /* Verde bosque, estilo explorador */
  margin-bottom: 0.3rem;
}

/* Tema del mes (texto debajo del título) */
.month-theme {
  font-size: 1.3rem;
  font-family: 'Roboto', sans-serif;
  color: #3E3E3E;
  background-color: #E6F4EA; /* Suave fondo verde claro */
  padding: 0.3rem 0.6rem;
  border-left: 5px solid #4CAF50; /* Barra verde tipo explorador */
  border-radius: 4px;
}


.accordion-button {
  background-color: #2f557f;  /* color actualizado */
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 12px 16px;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: background-color 0.3s;
  border-radius: 8px; /* bordes redondeados */
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); /* sombra sutil */
  margin-bottom: 10px; /* separación entre botones */
  position: relative;
}

.accordion-button::after {
  content: "+";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  font-weight: bold;
  color: white;
  pointer-events: none;
}

.accordion-button.active::after {
  content: "−";
}

.accordion-icon {
  float: right;
  transition: transform 0.3s;
}

.accordion-button:hover {
  background-color: #ffa92d;
}

.accordion-content {
  display: none;
  padding: 0 10px;
  animation: fadeIn 0.3s ease-in-out;
}

.accordion-button:first-of-type {
  margin-top: 15px;
}


.content-wrapper {
  margin-top: 10px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.program-logo-footer {
  max-width: 180px;
  height: auto;
  margin: 10px auto 0;
  display: block;
}

.teacher-section {
  background-color: #f0f8ff;
  padding: 2rem 1rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.section-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #004080;
}

.activities-download .download-button {
  background-color: #2f557f;
  color: white;
  text-decoration: none;
  padding: 0.7rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.activities-download .download-button:hover {
  background-color: #0056b3;
}

.month-card.modulo9 {
  border: 3px solid #2f557f;
  box-shadow: 0 0 12px rgba(47, 85, 127, 0.3);
}
.month-card.modulo1 {
  border-left: 12px solid #FF6F61;
}
.month-card.modulo2 {
  border-left: 12px solid #6B5B95;
}
.month-card.modulo3 {
  border-left: 12px solid #88B04B;
}
.month-card.modulo4 {
  border-left: 12px solid #F7CAC9;
}
.month-card.modulo5 {
  border-left: 12px solid #92A8D1;
}
.month-card.modulo6 {
  border-left: 12px solid #955251;
}
.month-card.modulo7 {
  border-left: 12px solid #009688;
}
.month-card.modulo8 {
  border-left: 12px solid #3F51B5;
}
.month-card.modulo9 {
  border-left: 12px solid #4CAF50;
}
.month-card {
  transition: border-left 0.3s ease;
}
.month-card.modulo10 {
  border-left: 8px solid #9C27B0; /* Púrpura para distinguirlo */
  box-shadow: 0 0 10px rgba(156, 39, 176, 0.2);
}