/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}



.junta-logo-footer {
  width: 220px;
  height: auto;
  margin-right: 0;
}

.andalucia-logo-footer {
  width: 200px;
  height: auto;
  margin-right: 0;
}

/* Header styles */
.main-header {
    background: white;
    color: #333;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #ddd;
}

.header-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    gap: 0;
    height: 120px;
}

.header-left {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    flex: 0 0 auto;
    min-width: 400px;
}

.consejeria-logo {
    height: 80px;
    width: auto;
    max-width: 100%;
}

.header-right {
    background: #8fbc8f;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 40px;
    color: white;
}

.header-right h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 5px 0;
    text-shadow: none;
}

.header-right h2 {
    font-size: 20px;
    font-weight: 400;
    margin: 0;
    text-shadow: none;
}
.pct-logo {
  width: 160px;
  height: auto;
  margin-left: 0;
}


.header-text {
  flex: 1;
  text-align: center;
}

.header-text h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.institutional-info {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Navigation */
.main-navigation {
  background: #1a3d2e;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  /* Remove overflow-x: auto; */
}

.nav-item {
  color: white;
  text-decoration: none;
  padding: 1rem 1.5rem;
  white-space: nowrap;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  border-bottom-color: #4a7c59;
}

/* Dropdown Navigation Styles */
.nav-item {
  color: white;
  text-decoration: none;
  padding: 1rem 1.5rem;
  white-space: nowrap;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  position: relative;
}

.nav-item.has-dropdown {
  cursor: pointer;
}

.nav-item.has-dropdown::after {
  content: "▼";
  font-size: 0.8rem;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.nav-item.has-dropdown.active::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #8fbc8f;
  min-width: 400px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-radius: 0 0 8px 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 9999; /* Increased z-index to appear above all content */
}

.nav-item:hover .dropdown-menu,
.nav-item.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  color: white;
  text-decoration: none;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  font-size: 0.9rem;
  line-height: 1.4;
}

.dropdown-item:last-child {
  border-bottom: none;
  border-radius: 0 0 8px 8px;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
  padding-left: 2rem;
}

.dropdown-item.main-section {
  font-weight: 600;
  background: rgba(45, 90, 61, 0.3);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.dropdown-item.sub-section {
  padding-left: 2rem;
  font-size: 0.85rem;
}

.dropdown-item.sub-section:hover {
  padding-left: 2.5rem;
}

/* Responsive dropdown */
@media (max-width: 768px) {
  /* Configuración general de navegación móvil */
  .nav-content {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-item {
    text-align: left;
    width: 100%;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  /* Menú desplegable en móvil */
  .dropdown-menu {
    position: static;
    min-width: auto;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    background: #4a7c59;
    display: none;
    padding: 0;
  }
  
  /* Control de visualización del menú desplegable */
  .nav-item.has-dropdown {
    position: relative;
  }
  
  .nav-item.has-dropdown::after {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  /* Forzar visualización de menús desplegables solo cuando están activos */
  .nav-item.has-dropdown.active .dropdown-menu {
    display: block;
  }
  
  /* Elementos dentro del menú desplegable */
  .dropdown-item {
    padding: 12px 15px;
  }
  
  .dropdown-item.sub-section {
    padding-left: 25px;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background-color: #5D924CCC;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(93, 146, 76, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: #5D924C;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(93, 146, 76, 0.4);
}

.back-to-top::before {
  content: "↑";
  color: white;
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
}

/* Responsive back to top button */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
  }
  
  .back-to-top::before {
    font-size: 18px;
  }
}

/* Breadcrumb */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumb a {
  color: #4a7c59;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Main content */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Welcome section (index only) */
.welcome-section {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.welcome-section h2 {
  color: #2d5a3d;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.welcome-text {
  font-size: 1.2rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

/* Table of contents */
.table-of-contents h2 {
  font-size: 2rem;
  color: #2d5a3d;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.table-of-contents h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #2d5a3d, #4a7c59);
  border-radius: 2px;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2rem;
}

.toc-item {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #4a7c59;
  transition: all 0.3s ease;
  display: flex;
  gap: 1.5rem;
}

.toc-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.toc-number {
  background: linear-gradient(135deg, #2d5a3d, #4a7c59);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
}


.section-content h2 {
  color: #2d5a3d !important;
  font-size: 1.6rem;
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
}

.section-content h3 {
  color: #2d5a3d !important;
  font-size: 1.3rem;
  margin: 1.5rem 0 1rem 0;
}

/* Asegurar que todos los h2 y h3 tengan el color correcto */
.main-content h2,
.main-content h3,
.content-section h2,
.content-section h3 {
  color: #2d5a3d !important;
}

/* Estilos específicos para h2 */
.main-content h2,
.content-section h2 {
  font-size: 1.6rem;
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
}

/* Estilos específicos para h3 */
.main-content h3,
.content-section h3 {
  font-size: 1.3rem;
  margin: 1.5rem 0 1rem 0;
}

.toc-content {
  flex: 1;
}

.toc-content h3 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  color: #2d5a3d;
}

.toc-content h3 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.toc-content h3 a:hover {
  color: #4a7c59;
}

.toc-content p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.toc-actions {
  margin-top: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #2d5a3d, #4a7c59);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 90, 61, 0.3);
}

/* Content sections */
.content-section {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.section-header h1 {
  color: #2d5a3d;
  font-size: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #4a7c59;
}

.section-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
  font-size: 1.1rem;
  line-height: 1.8;
}

.section-content h2 {
  color: #2d5a3d;
  font-size: 1.6rem;
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
}

.section-content h3 {
  color: #2d5a3d;
  font-size: 1.3rem;
  margin: 1.5rem 0 1rem 0;
}

/* Special boxes */
.highlight-box, ul, ol {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-left: 5px solid #4a7c59;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.highlight-box h3 {
  color: #2d5a3d;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.objectives-box {
  background: linear-gradient(135deg, #e8f5e8, #d4edda);
  border: 1px solid #4a7c59;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.objectives-box h3 {
  color: #2d5a3d;
  margin-bottom: 1rem;
}

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

.objectives-box li {
  margin-bottom: 0.8rem;
  padding-left: 2rem;
  position: relative;
}

.objectives-box li::before {
  content: "✓";
  color: #4a7c59;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.timeline-box {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.timeline-item {
  margin-bottom: 1rem;
  padding: 1rem;
  background: white;
  border-left: 4px solid #4a7c59;
  border-radius: 4px;
}

.law-reference {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  border: 1px solid #ffc107;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.law-reference h3 {
  color: #856404;
  margin-bottom: 1rem;
}

.law-reference ul {
  margin-top: 1rem;
}

/* Page navigation */
.page-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  gap: 1rem;
}

.nav-btn {
  background: linear-gradient(135deg, #2d5a3d, #4a7c59);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 90, 61, 0.3);
}

.nav-btn.prev {
  margin-right: auto;
}

.nav-btn.next {
  margin-left: auto;
}

/* Footer */
.main-footer {
  background: #2d5a3d;
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  /* antes: display: flex; justify-content: space-between; align-items: center; */
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* espacio izquierdo vacío / centro / derecha */
  align-items: center;
  gap: 1rem;
  position: relative;
}

/* Centrar la columna del medio (autores) */
.footer-info {
  grid-column: 2;
  justify-self: center;
  text-align: center;
}

/* Mantener la fecha/agradecimientos en la columna derecha */
.footer-date {
  grid-column: 3;
  justify-self: center;
  text-align: center;
}

.footer-info p,
.footer-date p {
  margin: 0.25rem 0;
  line-height: 1.3;
  font-size: 0.95rem;
    font-weight: normal; /* asegurar texto normal por defecto */

}


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

.footer-info li {
  margin-bottom: 0.3rem;
}

.footer-date {
  font-size: 1.1rem;
  font-weight: bold;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom p {
  text-align: center;
  flex: 1;
}

.linkedin {
  display: inline-block;
  transition: all 0.3s ease;
}

.linkedin a {
  color: white;
  text-decoration: none;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
}

.linkedin a:hover {
  color: white;
  text-decoration: none;
}

.linkedin:hover {
  transform: translateY(-3px);
  cursor: pointer;
}

.linkedin p {
  margin: 0;
  color: white;
  font-size: 0.9rem;
  line-height: 1.4;
}


/* New styles for expanded content */
.process-box {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.process-box h4 {
  color: #2d5a3d;
  margin-bottom: 1rem;
}

.process-box ol {
  margin-left: 1.5rem;
}

.process-box li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.results-box {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border: 1px solid #2196f3;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.results-box h4 {
  color: #1565c0;
  margin-bottom: 1rem;
}

.andalucia-results {
  background: linear-gradient(135deg, #fff3e0, #ffcc02);
  border: 1px solid #ff9800;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.andalucia-results h4 {
  color: #e65100;
  margin-bottom: 1rem;
}

.timss-results {
  background: linear-gradient(135deg, #f3e5f5, #e1bee7);
  border: 1px solid #9c27b0;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.timss-results h4 {
  color: #6a1b9a;
  margin-bottom: 1rem;
}

.regional-comparison {
  background: #f8f9fa;
  border-left: 5px solid #4a7c59;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.regional-comparison h4 {
  color: #2d5a3d;
  margin-bottom: 1rem;
}

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

.regional-comparison li {
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  background: white;
  border-radius: 4px;
  border-left: 3px solid #4a7c59;
}

.diagnostic-features {
  background: linear-gradient(135deg, #e8f5e8, #d4edda);
  border: 1px solid #28a745;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.diagnostic-features h4 {
  color: #155724;
  margin-bottom: 1rem;
}

.diagnostic-results {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.diagnostic-results h4 {
  color: #2d5a3d;
  margin-bottom: 1rem;
}

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

.diagnostic-results li {
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  background: white;
  border-radius: 4px;
  border-left: 3px solid #4a7c59;
}

.stem-descriptors {
  background: linear-gradient(135deg, #fff8e1, #ffecb3);
  border: 1px solid #ffc107;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.stem-descriptors h4 {
  color: #f57f17;
  margin-bottom: 1rem;
}

.descriptor-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: white;
  border-radius: 6px;
  border-left: 4px solid #ffc107;
}

.subject-table {
  margin: 2rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #dee2e6;
}

table th,
table td {
  padding: 1rem;
  text-align: left;
  border: 1px solid #dee2e6;
  vertical-align: top;
}

table th {
  background: #2d5a3d;
  color: white;
  font-weight: 600;
  border-color: #4a7c59;
}

table tr:hover {
  background: #f8f9fa;
}

.subject-table {
  margin: 2rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #dee2e6;
}

table th,
table td {
  padding: 1rem;
  text-align: left;
  border: 1px solid #dee2e6;
  vertical-align: top;
}

table th {
  background: #2d5a3d;
  color: white;
  font-weight: 600;
  border-color: #4a7c59;
}

/* Estilos específicos para celdas con fondo gris claro */
table th[style*="background-color: #f0f0f0"],
table td[style*="background-color: #f0f0f0"] {
  background: linear-gradient(135deg, #e8f5e8, #d4edda) !important;
  color: #2d5a3d !important;
  font-weight: 600;
  border: 1px solid #4a7c59 !important;
}

/* Alternativa para mejor contraste */
.competencia-table th[style*="background-color: #f0f0f0"],
.competencia-table td[style*="background-color: #f0f0f0"] {
  background: #e8f5e8 !important;
  color: #2d5a3d !important;
  font-weight: 600;
  border: 1px solid #4a7c59 !important;
}

/* Estilo para las celdas de encabezado de secuenciación didáctica */
.competencia-table th[style*="background-color: #2d5a3d"] {
  background: #2d5a3d !important;
  color: white !important;
  font-weight: 600;
  border: 1px solid #4a7c59 !important;
}

.competencia-table th[style*="background-color: #4a7c59"] {
  background: #4a7c59 !important;
  color: white !important;
  font-weight: 600;
  border: 1px solid #2d5a3d !important;
}

table tr:hover {
  background: #f8f9fa;
}

/* Asegurar que todas las tablas con clases específicas también tengan bordes */
.evaluation-table table,
.subject-table table,
.competencies-table table,
.competencia-table table {
  border: 1px solid #dee2e6;
}

.evaluation-table th,
.evaluation-table td,
.subject-table th,
.subject-table td,
.competencies-table th,
.competencies-table td,
.competencia-table th,
.competencia-table td {
  border: 1px solid #dee2e6;
}

.evaluation-table th,
.subject-table th,
.competencies-table th,
.competencia-table th {
  border-color: #4a7c59;
}
/* Asegurar que todas las tablas con clases específicas también tengan bordes */
.evaluation-table table,
.subject-table table,
.competencies-table table {
  border: 1px solid #dee2e6;
}

.evaluation-table th,
.evaluation-table td,
.subject-table th,
.subject-table td,
.competencies-table th,
.competencies-table td {
  border: 1px solid #dee2e6;
}

.evaluation-table th,
.subject-table th,
.competencies-table th {
  border-color: #4a7c59;
}

.subject-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.subject-table th,
.subject-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

.subject-table th {
  background: #2d5a3d;
  color: white;
  font-weight: 600;
}

.subject-table tr:hover {
  background: #f8f9fa;
}

.competency-blocks {
  margin: 2rem 0;
}

.block-item {
  margin-bottom: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  border-left: 5px solid #4a7c59;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.competencies-table {
  margin: 2rem 0;
  overflow-x: auto;
}

.competencies-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.competencies-table th,
.competencies-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
  vertical-align: top;
}

.competencies-table th {
  background: #2d5a3d;
  color: white;
  font-weight: 600;
}

.competencies-table td {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Responsive design */
@media (max-width: 768px) {

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer-bottom p {
    order: 3;
  }

  .header-content {
    flex-direction: column;
    height: auto; /* Cambiado de height fijo a auto */
    text-align: center;
    gap: 1rem;
  }

  .header-left {
    min-width: auto; /* Elimina el ancho mínimo en móvil */
    width: 100%;
  }

  .consejeria-logo {
    height: 60px; /* Logo más pequeño */
    margin: 10px 0; /* Margen para espaciado */
  }

  .header-right {
    padding: 15px;
    text-align: center;
  }

  .nav-content {
    flex-direction: column;
  }

  .nav-item {
    text-align: center;
  }

  .toc-grid {
    grid-template-columns: 1fr;
  }

  .toc-item {
    flex-direction: column;
    text-align: center;
  }

  .content-section {
    padding: 2rem;
  }

  .page-navigation {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 1rem;
  }

  .content-section {
    padding: 1.5rem;
  }

  .section-content p {
    font-size: 1rem;
  }
}
