/*
Theme Name: Aptis
Theme URI: https://aptisexamen.net/
Author: Sara
Description: Aptis
Version: 1.0
*/


html,body {
    font-family: Arial, sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f9f9f9;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

span.widget-title {
    background-color: red;
    text-align: center;
    padding: 1rem;
    color: #fff;
    display: block;
    font-weight: bold;
}

h3.widget-title {
    background-color: red;
    text-align: center;
    padding: 1rem;
    color: #fff;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


.main-grammar-test, .results-container {
    flex: 1; /* Esto asegura que el contenido crezca para llenar el espacio disponible */
}

.widget.widget_recent_entries ul{
	list-style:none;
}

.widget.widget_recent_entries ul li::before  {
  content: "📰"; /* Emoji de periódico */
  margin-right: 8px;
}



.logo h1 {
    color: #d92b2b;
    margin: 0;
}

/* Estilos base del menú */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    position: relative;
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px 15px;
    display: inline-block;
}

/* Submenú oculto */
nav ul li ul {
    position: absolute;
    top: 100%; /* Ubica el submenú debajo del elemento principal */
    left: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0;
    margin: 0;
    display: none; /* Oculta el submenú por defecto */
    z-index: 10;
}

nav ul li ul li {
    margin: 0;
}

nav ul li ul li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    white-space: nowrap; /* Evita que el texto se corte */
}

nav ul li ul li a:hover {
    background-color: #f2f2f2;
    color: #d92b2b; /* Color del texto al pasar el mouse */
}

/* Mostrar el submenú al hacer hover */
nav ul li:hover ul {
    display: block; /* Muestra el submenú al pasar el mouse */
}

/* Estilo adicional para el submenú activo */
nav ul li ul li a.active {
    color: #d92b2b;
    font-weight: bold;
}

/* Aplicar a todos los <ul> con la clase 'ul-main' */
ul.ul-main {
    list-style: none; /* Eliminar los puntos */
    padding: 0; /* Eliminar el espacio interno */
    margin: 0; /* Eliminar márgenes adicionales */
}

ul.ul-main li {
    list-style: none; /* Asegura que no haya puntos en los <li> */
    margin: 10px 0; /* Espaciado entre los elementos, opcional */
}

.main-home {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.entry-date {
    display: block;
    color: #666666ba;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: center;
    font-weight: bold;
}

/* Si quieres añadir un icono de calendario antes de la fecha */
.entry-date::before {
    content: "📅"; /* O puedes usar un icono de Font Awesome si lo tienes instalado */
    margin-right: 0.5rem;
}

h1 {
    color: #505a63;
}

.main-home article {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

article {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

article h2 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.post-thumbnail {
    margin: -1.5rem -1.5rem 1rem -1.5rem;
}


.entry-content {
    position: relative;
}

.post-thumbnail-inline {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
    width: 150px;
}

.post-thumbnail-inline img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.entry-content p:nth-of-type(1) {
    margin-top: 0;
}

.entry-content::after {
    content: '';
    display: table;
    clear: both;
}

.header-content {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.post-thumbnail-small {
    flex-shrink: 0;
    width: 150px; /* Ajusta este valor según el tamaño que desees */
}

.post-thumbnail-small img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.entry-title {
    margin: 0 0 1rem 0;
}

.entry-meta {
    font-size: 0.9rem;
    color: #666;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px 8px 0 0;
    display: block;
}
article h2 a:hover {
    text-decoration: underline;
}

.content-area {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.entry-meta {
    padding: 1rem;
    font-size: 12px;
}

h2 {
    color: #333;
    margin-bottom: 20px;
}

ul {
   padding-left: 20px;
   margin: 15px 0;
   font-size:0.9rem;
}

li {
   margin-bottom: 12px;
   line-height: 1.5;
   position: relative;
   padding-left: 15px;
}

textarea#comment {
    width: 95%;
    margin: 0 auto;
    display: block;
}

div#comments {
    padding: 2%;
}

main.single-post {
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}


.post-thumbnail {
    text-align: center;
    margin-bottom: 20px;
}

.post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}



li:last-child {
   margin-bottom: 0;
}

h2.h2-home {
    text-transform: uppercase;
    color: #8d8d8d;
    text-align: center;
}

/* Estilo para la tabla con bordes redondeados */
table {
    width: 80%;
    margin: 20px auto; /* Centra la tabla horizontalmente */
    border-collapse: separate; /* Permite aplicar bordes redondeados */
    border-spacing: 0;
    border: 1px solid #ddd; /* Color del borde exterior */
    border-radius: 10px; /* Bordes redondeados */
    overflow: hidden; /* Asegura que el contenido respete el borde redondeado */
    background-color: #fff; /* Fondo blanco para destacar */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Sombra para un efecto moderno */
}

/* Bordes redondeados específicos para encabezado y pie */
table thead tr {
    background-color: #f2f2f2; /* Fondo para encabezados */
}

table th, table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd; /* Bordes entre filas */
}

table th:first-child, table td:first-child {
    border-left: none; /* Sin borde izquierdo para la primera celda */
}

table th:last-child, table td:last-child {
    border-right: none; /* Sin borde derecho para la última celda */
}

table thead tr:first-child th:first-child {
    border-top-left-radius: 10px; /* Esquina superior izquierda */
}

table thead tr:first-child th:last-child {
    border-top-right-radius: 10px; /* Esquina superior derecha */
}

table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 10px; /* Esquina inferior izquierda */
}

table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 10px; /* Esquina inferior derecha */
}

/* Estilo adicional para botones */
.btn {
    display: inline-block;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.btn-home {
    display: inline-block;
    background-color: #4CAF50; /* Verde */
    color: white; /* Texto blanco */
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 5px; /* Bordes redondeados */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Transiciones suaves */
}

.btn-home:hover {
    background-color: #45a049; /* Un verde más oscuro al pasar el ratón */
    transform: scale(1.05); /* Aumenta ligeramente el tamaño */
    text-decoration: none; /* Asegura que no aparezca subrayado */
}

.btn-home:active {
    background-color: #3e8e41; /* Verde más oscuro al hacer clic */
    transform: scale(0.95); /* Reduce ligeramente el tamaño */
}


.grammar { background-color: #b5d74e; }
.listening { background-color: #1fb4a7; }
.writing { background-color: #507b2f; }
.reading { background-color: #b67337; }
.speaking { background-color: #9c4d59; }

.btn:hover {
    opacity: 0.9;
}

.grammar { background-color: #b5d74e; }
.listening { background-color: #1fb4a7; }
.writing { background-color: #507b2f; }
.reading { background-color: #b67337; }
.speaking { background-color: #9c4d59; }

.btn:hover {
    opacity: 0.9;
}

/* Estilo para los encabezados con iconos */
thead th {
    text-align: center;
    vertical-align: middle;
    padding: 15px 10px;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    padding: 2%;
}

.nav-previous a,
.nav-next a {
   padding: 12px 20px;
   border-radius: 6px;
   background: #f5f5f5;
   color: #333;
   text-decoration: none;
   font-size:0.6rem;
   display:block;
   transition: all 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
   background: #e0e0e0;
   transform: translateY(-2px);
}

.nav-previous a:before {
   content: "←";
   margin-right: 8px;
}

.nav-next a:after {
   content: "→";
   margin-left: 8px;
}

.header-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 5px; /* Espacio entre el ícono y el texto */
}

.header-icon img {
    height: 40px;
}

thead th span {
    display: block;
    font-weight: bold;
    color: #333;
}

/* Sub-header Container */
.sub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    border-bottom: 5px solid red;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Timer Section */
.timer-section {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.timer-section button {
    background-color: #b5d74e;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.timer-section button:hover {
    background-color: #a4c846;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-section .logo-img {
    height: 40px;
    display: block;
}

.logo-section span {
    font-size: 16px;
    font-weight: bold;
    color: #3333338a;
    margin: 1rem;
}

/* Question Tracker Section */
.question-tracker {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 25px;
    font-weight: bold;
    color: #333;
}

.question-tracker .question-grid-icon {
    font-size: 24px;
    cursor: pointer;
    color: #333;
    transition: color 0.3s ease;
}

.question-tracker .question-grid-icon:hover {
    color: #d92b2b;
}

form {
    text-align: left;
}

.results-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    min-width: 100vh;
}

.score-summary {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.score-summary h2 {
    font-size: 2.5em;
    color: #1789FA;
    margin-bottom: 0.5rem;
}

.results-progress-summary {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0;
    gap: 1rem;
}

.score-summary p {
    font-size: 1.2em;
    color: #666;
}

.progress-summary {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
}

.summary-box {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    min-width: 150px;
}

.summary-box.correct {
    background-color: #e6ffe6;
    color: #006600;
}

.summary-box.incorrect {
    background-color: #ffe6e6;
    color: #660000;
}

.summary-box.not-answered {
    background-color: #f2f2f2;
    color: #666666;
}



  .question-grid {
        display: flex;
        flex-wrap: wrap; /* Permite que las cajas se ajusten si el espacio es limitado */
        gap: 10px;
        justify-content: center; /* Centra las cajas horizontalmente */
    }

    .question-box {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        font-size: 14px;
        font-weight: bold;
        text-align: center;
        border: 2px solid #ccc;
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

.question-box.correct {
    background-color: #4CAF50;
    color: white;
}

.question-box.incorrect {
    background-color: #f44336;
    color: white;
}

.question-box.not-answered {
    background-color: #9e9e9e;
    color: white;
}

.detailed-results {
    margin-top: 2rem;
}

.question-result {
    padding: 0.5rem;
    margin: 0.5rem 0;
    border-radius: 4px;
}

.question-result.correct {
    background-color: #f0fff0;
}

.question-result.incorrect {
    background-color: #fff0f0;
}

.question-result.not-answered {
    background-color: #f5f5f5;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-home, .btn-retry {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    background-color: #1789FA;
}

.btn-retry {
    background-color: #4CAF50;
}

/* Estilos específicos para la página Grammar Test */
.main-grammar-test {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.main-grammar-test h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.main-grammar-test p {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
}

.main-grammar-test ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.main-grammar-test ul li {
    font-size: 16px;
    color: #555;
    margin-bottom: 5px;
}

.main-grammar-test .btn-start {
    padding: 10px 20px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.main-grammar-test .btn-start:hover {
    background-color: #45a049;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.btn-nav {
    padding: 10px 20px;
    font-size: 16px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    color: white;
    transition: background-color 0.3s ease;
}

.btn-nav.back {
    background-color: #f44336; /* Rojo */
}

.btn-nav.next {
    background-color: #4caf50; /* Verde */
}

.btn-nav.finish {
    background-color: #2196f3; /* Azul */
    border: none;
    color: white;
    cursor: pointer;
}

.btn-nav:hover {
    opacity: 0.9;
}


/* Contenedor del botón Start */
.start-button-container {
    position: fixed;
    bottom: 8rem;
    left: 0;
    width: 100%;
    background-color: #ccc;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
    align-content: center;
}


.btn-start:hover, .btn-back:hover {
    background-color: #a4c846;
}

.btn-back {
    margin-left: 10px;
    background-color: #b5d74e;
    color: #333;
    border: none;
    padding: 1.5rem 1.5rem;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.btn-start {
    margin-right: 10px;
}

button.btn-start {
    margin-left: 10px;
    background-color: #b5d74e;
    color: #333;
    border: none;
    padding: 1.5rem 1.5rem;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.start-button-container .btn-start:hover {
    background-color: #a4c846; /* Verde más oscuro */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Flecha en el botón */
.start-button-container .btn-start span {
    margin-left: 10px;
    font-size: 18px;
}

/* Process */



.progress-summary {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.summary {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.summary-box {
    text-align: center;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
}

.summary-box.answered {
    background-color: #b5d74e;
    color: #fff;
}

.summary-box.not-answered {
    background-color: #ccc;
    color: #333;
}

.summary-box.flagged {
    background-color: red;
    color: #fff;
}

.question-navigation {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.question-box {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 5px;
    background-color: #ddd;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.question-box.correct {
    background-color: #b5d74e;
    color: #fff;
}

.question-box.incorrect {
    background-color: red;
    color: #fff;
}

.question-box.not-answered {
    background-color: #ccc;
    color: #333;
}

.question-box:hover {
    background-color: #aaa;
    color: #fff;
}

.btn-finish {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #4caf50;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
}

.btn-finish:hover {
    background-color: #45a049;
}

.author-box {
    display: flex;
    gap: 2em;
    padding: 2em;
    margin: 2em 0;
    background: #f5f5f5;
    border-radius: 4px;
}

.author-avatar img {
    border-radius: 50%;
}

.author-info h3 {
    margin-top: 0;
}

/* Estilos para el footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin: 0 0 10px;
    font-size: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 1rem;
}
.footer-content span {
    font-size: 9px;
    padding: 10px;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    text-decoration: none;
    color: #ddd;
    font-size: 14px;
}

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

/* Estilos específicos para results.php */



.results-container h1 {
    color: #333;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 24px;
}

.score-summary {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.score-summary h2 {
    font-size: 2.5em;
    color: #1789FA;
    margin-bottom: 0.5rem;
}

.score-summary p {
    font-size: 1.2em;
    color: #666;
}

.results-progress-summary {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0;
    gap: 1rem;
}

.results-summary-box {
    flex: 1;
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.results-summary-box .count {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.results-summary-box .label {
    font-size: 1em;
    margin-bottom: 0.5rem;
}

.results-summary-box .icon {
    font-size: 1.5em;
    margin-top: 0.5rem;
}

.results-summary-box.correct {
    background-color: #e6ffe6;
    color: #006600;
}

.results-summary-box.incorrect {
    background-color: #ffe6e6;
    color: #660000;
}

.results-summary-box.not-answered {
    background-color: #f2f2f2;
    color: #666666;
}

.results-question-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
}

.results-question-box {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s;
}

.results-question-box:hover {
    transform: scale(1.05);
}

.results-question-box.correct {
    background-color: #4CAF50;
    color: white;
}

.results-question-box.incorrect {
    background-color: #f44336;
    color: white;
}

.results-question-box.not-answered {
    background-color: #9e9e9e;
    color: white;
}

.results-detailed-analysis {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.results-detailed-analysis h3 {
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.results-question-result {
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.results-question-result.correct {
    background-color: #f0fff0;
    border-left-color: #4CAF50;
}

.results-question-result.incorrect {
    background-color: #fff0f0;
    border-left-color: #f44336;
}

.results-question-result.not-answered {
    background-color: #f5f5f5;
    border-left-color: #9e9e9e;
}

.results-question-number {
    font-weight: bold;
    margin-right: 1rem;
}

.results-user-answer,
.results-correct-answer {
    margin-left: 1rem;
    display: inline-block;
}

.results-correct-answer {
    color: #4CAF50;
}

.results-action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.results-btn-home,
.results-btn-retry {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: background-color 0.3s;
}

.results-btn-home {
    background-color: #1789FA;
}

.results-btn-retry {
    background-color: #4CAF50;
}

.results-btn-home:hover,
.results-btn-retry:hover {
    opacity: 0.9;
}
/* Media Queries */

@media (max-width: 768px) {
    .results-progress-summary {
        flex-direction: column;
    }
    
    .results-summary-box {
        margin-bottom: 1rem;
    }
    
    .results-question-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .content-area {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }

    .post-navigation {
        flex-direction: column; /* Cambia a disposición en columna */
        align-items: flex-start; /* Alinea los elementos a la izquierda */
    }
    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        margin-bottom: 10px; /* Añade espacio entre los enlaces */
        width: 100%; /* Asegura que ocupen todo el ancho disponible */
    }
    .post-navigation .nav-next {
        text-align: right; /* Opcional: Alinear a la derecha si lo prefieres */
    }
    
    .post-thumbnail-inline {
        margin: 0.2rem 0.2rem 1.5rem 0;
        width: 100%;
        text-align: center;
    }

}






/* Media query para tablets */
@media screen and (max-width: 768px) {
    .footer-content {
        padding: 2rem 1rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: row; /* Mantener los links en línea en tablet */
        justify-content: center;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .footer-content p {
        margin: 1rem 0;
    }

    .footer-content span {
        font-size: 9px;
        line-height: 1.6;
        padding: 0 1rem;
    }
}


/* Media query para móviles pequeños */
@media screen and (max-width: 320px) {
    .footer-content {
        padding: 1rem 0.5rem;
    }

    .footer-links {
        gap: 0.8rem;
    }

    .footer-content p {
        font-size: 0.8rem;
    }

    .footer-content span {
        font-size: 9px;
        line-height: 1.4;
    }
}

/* Media query para tablets grandes */
@media screen and (max-width: 1024px) {
    main {
        padding: 1.5rem;
    }

    .h2-home {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    table {
        width: 100%;
        margin: 1rem 0 2rem;
    }

    .header-icon img {
        width: 30px;
        height: 30px;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Media query para tablets */
@media screen and (max-width: 768px) {
    main {
        padding: 1rem;
    }

    .h2-home {
        font-size: 1.5rem;
        text-align: center;
    }
    
            .question-box {
            width: 40px;
            height: 40px;
            font-size: 12px;
        }

    /* Ajustar tabla para scroll horizontal */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        border-collapse: separate;
        border-spacing: 0;
    }

    thead th {
        padding: 0.8rem;
        min-width: 120px;
    }

    .header-icon {
        margin-bottom: 0.5rem;
    }

    .header-icon img {
        width: 25px;
        height: 25px;
    }

    td {
        padding: 0.8rem;
    }

    .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    p {
        text-align: left;
        font-size: 0.95rem;
        line-height: 1.6;
        margin-top: 2rem;
    }
}

/* Media query para móviles grandes */
@media screen and (max-width: 576px) {
    
    main {
        padding: 0.4rem;
    }

    .h2-home {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    thead th {
        padding: 0.6rem;
        min-width: 100px;
    }

    .header-icon img {
        width: 20px;
        height: 20px;
    }

    th span {
        font-size: 0.8rem;
    }

    td {
        padding: 0.6rem;
    }

    .btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    /* Personalizar la barra de desplazamiento */
    table::-webkit-scrollbar {
        height: 6px;
    }

    table::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    table::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }

    p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-top: 1rem;
        padding: 0 0.5rem;
    }
    
    .main-home {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0.3rem;
}

    .footer-content {
        padding: 1.5rem 0.8rem;
    }

    .footer-links {
        flex-direction: column; /* Links en columna para móvil */
        gap: 1rem;
    }

    .footer-links li {
        width: 100%;
        text-align: center;
    }
    
    span.foot-txt {
    font-size: 8px;
    }
    
    .progress-summary {
        display: flex;
        flex-direction: column;
    }

    .footer-links a {
        padding: 0.5rem;
        display: block; /* Hacer que toda el área sea clickeable */
    }

    .footer-content p {
        font-size: 0.9rem;
        margin: 1.2rem 0;
    }

    .footer-content span {
        font-size: 9px;
        line-height: 1.5;
        padding: 0 0.5rem;
    }
    
        .results-container {
        width: 90%;
        padding: 1.5rem;
        margin: 1rem auto;
        border-radius: 10px;
        min-width: auto;
    }

    .results-container h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .results-container p {
        font-size: 0.95rem;
        line-height: 1.5;
        text-align: left; /* Cambiar a left en móvil para mejor legibilidad */
        margin-bottom: 1rem;
    }

}

/* Media query para móviles pequeños */
@media screen and (max-width: 320px) {
    main {
        padding: 0.5rem;
    }

    .h2-home {
        font-size: 1.2rem;
    }

    thead th {
        min-width: 90px;
        padding: 0.5rem;
    }

    .header-icon img {
        width: 18px;
        height: 18px;
    }

    th span {
        font-size: 0.75rem;
    }

    .btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }

    p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* Media query para pantallas grandes y tablets grandes */
@media screen and (max-width: 1200px) {
    .results-container {
        width: 80%;
        margin: 2rem auto;
        padding: 2.5rem;
    }

    .results-container h1 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .results-container p {
        font-size: 1.1rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }
}

/* Media query para tablets */
@media screen and (max-width: 768px) {
    .results-container {
        width: 90%;
        padding: 2rem;
        margin: 1.5rem auto;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        min-width: auto;
    }

    .results-container h1 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
        text-align: center;
    }

    .results-container p {
        font-size: 1rem;
        line-height: 1.6;
        text-align: justify;
        hyphens: auto;
    }
}


/* Media query para móviles pequeños */
@media screen and (max-width: 320px) {
    .results-container {
        width: 95%;
        padding: 1rem;
        margin: 0.5rem auto;
        border-radius: 8px;
        min-width: auto;
    }

    .results-container h1 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .results-container p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }
}

/* Estilos para el botón hamburguesa */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px;
    position: relative;
    z-index: 1000;
}

.hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Media query para el menú responsive */
@media screen and (max-width: 968px) {
    
    .hamburger-btn {
        display: block;
        margin-left: 200px;
        bottom: 4rem;
        left: 14%;
    }

    header {
            flex-direction: column;
            padding: 1rem 0;
            max-height: 2rem;
    }

    .logo {
        margin-bottom: 1rem;
        text-align: center;
    }

    nav {
        width: 100%;
        margin-left: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul li ul {
        position: static;
        box-shadow: none;
        width: 100%;
        background-color: #f8f9fa;
    }

    nav ul li:hover > ul {
        display: none; /* Desactivamos el hover en móvil */
    }

    /* Mostrar submenú cuando el padre está activo (requiere JavaScript) */
    nav ul li.active > ul {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
        z-index:1;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
    }

    .nav-menu ul li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-menu ul li a {
        padding: 15px 0;
        display: block;
    }

    /* Estilos para el submenú */
    .submenu {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        background-color: #f8f9fa;
        padding-left: 20px;
    }

    .has-submenu.active .submenu {
        display: block;
    }

    /* Estilos para el botón hamburguesa cuando está activo */
    .hamburger-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* Media query para móviles pequeños */
@media screen and (max-width: 480px) {
    
    .nav-menu {
        width: 75%;
        max-width: none;
    }
    
    .btn-back {
        margin-left:0px;
    }
    .logo img {
        max-width: 180px;
    }

        .question-box {
            width: 35px;
            height: 35px;
            font-size: 10px;
        }

        .question-navigation h3 {
            font-size: 16px;
        }
        
    nav ul li a {
        padding: 0.8rem;
    }
    
    button.btn-start {
     margin:0;
    }
    
    .sub-header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    border-bottom: 5px solid red;
    flex-direction: column;
}

    .start-button-container {
    position: static;
    background-color: #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

}