:root {
  --color-primary: #003366;
  --color-secondary: #e6f0fa;
  --color-text: #333333;
  --color-background: #ffffff;
  --color-border: #cccccc;
  --color-hover: #005fa3;
  --color-shadow: rgba(0, 0, 0, 0.05);
  --footer-background: #0c1b2e;
  --footer-highlight: #66ccff;
}

body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  background-color: var(--color-background);
  color: var(--color-text);
}

h1, h2 {
  font-family: 'Merriweather', serif;
  color: white;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

#toggle-menu {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--color-primary);
  position: absolute;
  top: 20px;
  left: 20px;
  cursor: pointer;
  z-index: 1000;
}

header {
  background-image: url('header-background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 80px 20px 40px;
  text-align: center;
  position: relative;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 0;
}

header * {
  position: relative;
  z-index: 1;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li a {
  text-decoration: none;
  font-weight: bold;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
  background-color: var(--color-hover);
  color: #ffffff;
}

.contenido-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 30px;
  padding: 20px;
  align-items: flex-start;
  background-color: #f5f8fc;
}

.columna-menu {
  flex: 0 0 280px;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
  transition: left 0.3s ease;
}

.menu {
  margin-bottom: 25px;
}

.menu button {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  background-color: var(--color-secondary);
  border: none;
  cursor: pointer;
  text-align: left;
  border-radius: 6px;
  margin-bottom: 5px;
  color: var(--color-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.menu button:hover {
  background-color: #d0e4f5;
}

.menu button.active {
  color: var(--color-hover);
}

.menu button i {
  margin-right: 8px;
  min-width: 20px;
  text-align: center;
}

.submenu {
  display: none;
  list-style: none;
  padding-left: 20px;
  margin: 10px 0;
}

.submenu.show {
  display: block;
}

.submenu li {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #444;
}

.submenu li a {
  text-decoration: none;
  color: var(--color-primary);
  transition: color 0.3s ease;
}

.submenu li a:hover {
  color: var(--color-hover);
}

.bloque {
  flex: 1;
  padding: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.bloque-texto {
  text-align: justify;
  margin-bottom: 40px;
}


.bloque-texto h2 {
  margin-bottom: 20px;
}

.bloque-texto p {
  margin-bottom: 20px;
}

.texto-centrado-footer {
  text-align: center;
  margin: 30px auto 10px;
  max-width: 800px;
  color: var(--color-primary);
  font-weight: bold;
  font-size: 1.1em;
}

.footer-recursos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  background-image: url('header-background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 50px 30px;
  color: white;
  font-family: 'Open Sans', sans-serif;
  text-align: center;
  position: relative;
}

.footer-recursos::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 0;
}

.footer-recursos * {
  position: relative;
  z-index: 1;
}

.footer-columna {
  background-color: rgba(0, 0, 0, 0.55);
  border-radius: 12px;
  padding: 20px;
  max-width: 300px;
  flex: 1 1 280px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.footer-columna h4 {
  margin-bottom: 12px;
  color: var(--footer-highlight);
  font-size: 1.4em;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.footer-columna ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-columna li {
  margin-bottom: 6px;
  font-size: 0.95em;
  color: #dbe9f9;
}

.footer-columna a {
  text-decoration: none;
  color: #cce0ff;
  transition: color 0.3s ease;
}

.footer-columna a:hover {
  color: white;
}

footer {
  background: transparent;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 0.9em;
}

footer a {
  color: #cce0ff;
  text-decoration: none;
}

footer a:hover {
  color: white;
}

.panel {
  padding: 0 50px;
  text-align: justify;
  box-sizing: border-box;
  display: none;
}

#textoFAQ {
  display: none;
  padding: 40px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  max-width: 800px;
  margin: 40px auto;
  line-height: 1.6;
  text-align: justify;
}

#textoFAQ h2 {
  color: var(--color-primary);
  margin-bottom: 20px;
}

#textoFAQ p {
  margin-bottom: 15px;
}

#textoFAQ ul {
  padding-left: 20px;
  margin-bottom: 15px;
  list-style: disc;
}

#textoFAQ ul li {
  margin-bottom: 8px;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.6); /* Fondo semitransparente */
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease-in-out;
  position: relative;
}

.modal-content h3 {
  margin-top: 0;
  font-size: 1.5em;
  color: var(--color-primary);
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 24px;
  color: #888;
  cursor: pointer;
}

.close:hover {
  color: black;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@media print {
  /* Oculta todo excepto el contenido principal */
  body * {
    visibility: hidden;
  }

  .bloque,
  .bloque * {
    visibility: visible;
  }

  /* Centrar el contenido */
  .bloque {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    text-align: center;
    padding: 2rem;
  }

  /* Título general (h1 del header) — se muestra pero no en negrita */
  header h1 {
    visibility: hidden; /* Si NO quieres mostrarlo, o... */
    /* visibility: visible;
       font-weight: normal;
       text-align: center;
       font-size: 24px;
       margin-bottom: 20px;
       color: #000; */
  }

  /* Título del bloque en negrita */
  .bloque h2 {
    font-weight: bold;
    font-size: 22px;
    margin-bottom: 1rem;
    color: #000;
  }

  /* Asegura que los párrafos estén centrados */
  .bloque p, .bloque ul, .bloque ol {
    text-align: center;
    margin: 0 auto 1rem auto;
    max-width: 80%;
  }

  /* Elimina colores de fondo, si los hay */
  .bloque, .bloque * {
    background: none !important;
    box-shadow: none !important;
  }
}
ul, ol {
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
  }

  li::before {
    content: "";
  }
}
@media print {
  html, body {
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
  }

  .contenido-grid {
    page-break-after: avoid;
    break-after: avoid;
  }

  .bloque {
    page-break-inside: avoid;
    margin-bottom: 0;
  }

  /* Elimina márgenes que puedan forzar un salto */
  .bloque-texto,
  .info-card {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  /* Asegura que no haya espacio extra */
  footer, .sidebar-tip, .sidebar-vocabulario, .menu, .columna-menu {
    display: none !important;
  }

  /* El bloque impreso ocupa toda la altura disponible */
  body {
    box-sizing: border-box;
    max-height: 100vh;
  }
}

