/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* Sombra del menú */

.entry-title {
display: none;
}

.site-header {
box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);
}

.main-navigation, a:hover {
border-radius: 10px;
}

.entry-meta {
display: none;
}

.featured-image {
display: none;
}

.size-large {
margin-bottom: 1.5em;
}

  .boton-gradiente {
    width: 75%;
    margin: 50px auto;
    padding: 15px 20px;
    text-align: center;
    background: linear-gradient(to right, #5d9cff, #a44ddf);
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .boton-gradiente span {
    margin: 0 8px;
    white-space: nowrap;
  }

/* Aquí empiezan los estilos de las cajas de la HOME */

    .wp-posts-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
        margin: 2rem 0;
    }
    .wp-post-card {
        background: #ffffff;
        border: 2px solid transparent;
        border-radius: 16px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        overflow: hidden;
        position: relative;
    }
    .wp-post-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 1;
        border-radius: 14px;
        margin: 2px;
    }
    .wp-post-card-link {
        display: block;
        text-decoration: none;
        color: inherit;
        height: 100%;
        position: relative;
        z-index: 2;
    }
    .wp-post-card-link:hover {
        text-decoration: none;
        color: inherit;
    }
    .wp-post-card:hover {
        transform: scale(1.02);
        box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
        border-color: #667eea;
    }
    .wp-post-card-inner {
        padding: 2rem;
        height: 100%;
        min-height: 200px;
        display: flex;
        flex-direction: column;
        background: white;
        position: relative;
        z-index: 3;
    }
    .wp-post-category {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white !important;
        padding: 0.4rem 1rem;
        border-radius: 25px;
        font-size: 0.75rem;
        font-weight: 600;
        display: inline-block;
        margin-bottom: 1.5rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        align-self: flex-start;
    }
    .wp-post-title {
        font-size: 1.4rem;
        font-weight: 700;
        color: #1a202c;
        line-height: 1.4;
        margin-bottom: auto;
        transition: color 0.3s ease;
    }
    .wp-post-card:hover .wp-post-title {
        color: #667eea;
    }

    @media (max-width: 768px) {
        .wp-posts-grid {
            grid-template-columns: 1fr;
            gap: 1rem;
        }
        .wp-post-title {
            font-size: 1.2rem;
        }
        .wp-post-card-inner {
            padding: 1.5rem;
            min-height: 180px;
        }
        .wp-post-card:hover {
            transform: scale(1.01);
        }
    }

/* Aquí empiezan los estilos de quizes */

.quiz-container {
margin-top: -75px;
  max-width: 1200px;
  width: 100%;
  padding: 40px;
  text-align: center;
}

.quiz-header { margin-bottom: 30px; }
.quiz-title {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 10px;
  font-weight: 700;
}
.quiz-subtitle {
  font-size: 1.1rem;
  color: #7f8c8d;
  margin-bottom: 20px;
}
.progress-bar {
  background: #ecf0f1;
  height: 8px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
}
.progress-fill {
  background: linear-gradient(90deg,#3498db,#9b59b6);
  height: 100%;
  width: 0%;
  transition: width 0.5s ease;
}
.question-container {
  display: none;
  animation: fadeIn 0.5s ease;
}
.question-container.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.question-number {
  font-size: 1rem;
  color: #9b59b6;
  font-weight: 600;
}
.question-text {
  font-size: 1.4rem;
  color: #2c3e50;
  margin: 20px 0 30px;
  font-weight: 500;
}
.options-container {
  display: grid;
  gap: 15px;
  margin-bottom: 30px;
}
.option {
  background: #fff;
  border: 2px solid #ecf0f1;
  border-radius: 12px;
  padding: 15px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
  color: #2c3e50;
}
.option:hover {
  border-color: #3498db;
  background: linear-gradient(135deg,#74b9ff,#0984e3);
  color: white;
  box-shadow: 0 5px 15px rgba(116,185,255,0.4);
}
.option.correct {
  background: linear-gradient(135deg,#00b894,#00a085);
  border-color: #00b894;
  color: white;
}
.option.incorrect {
  background: linear-gradient(135deg,#e17055,#d63031);
  border-color: #e17055;
  color: white;
}
.option.disabled {
  pointer-events: none;
  opacity: 0.7;
}
.feedback {
  margin: 20px 0;
  padding: 15px;
  border-radius: 10px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  min-height: 48px;
  transition: opacity 0.3s ease;
}
.feedback.correct {
  background: linear-gradient(135deg,#d1f2eb,#a3e6d0);
  color: #00695c;
  opacity: 1;
}
.feedback.incorrect {
  background: linear-gradient(135deg,#fadbd8,#f1948a);
  color: #b71c1c;
  opacity: 1;
}
.next-btn {
  background: linear-gradient(135deg,#667eea,#764ba2);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: none;
}

.next-btn:hover {
  transform: scale(1.02);
}

.next-btn.show { display: inline-block; }
.results {
  display: none;
  text-align: center;
}
.results.show {
  display: block;
  animation: fadeIn 0.5s ease;
}
.score-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg,#667eea,#764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  color: white;
  font-size: 2rem;
  font-weight: bold;
}
.result-title {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 15px;
  font-weight: 700;
}
.result-message {
  font-size: 1.2rem;
  color: #7f8c8d;
  margin-bottom: 30px;
}
.restart-btn {
  background: linear-gradient(135deg,#00b894,#00a085);
  color: white;
  border: none;
  padding: 15px 35px;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.restart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,184,148,0.4);
}
@media (max-width:600px) {
  .quiz-container { padding: 30px 20px; }
  .quiz-title { font-size: 2rem; }
  .question-text { font-size: 1.2rem; }
}

.option.selected {
background: linear-gradient(135deg, #2ecc71, #27ae60);
  border-color: #27ae60;
  color: white;
  box-shadow: 0 5px 15px rgba(116,185,255,0.4);
}


/* Aquí empiezan los estilos de posts relacionados */

.posts-relacionados {
    margin: 3rem 0;
    padding: 2rem 0;
}

.posts-relacionados h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.related-item {
    background: #ffffff;
    border: 2px solid #e0e7ff;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.related-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.15);
    border-color: #818cf8;
}

.related-item .category-tag {
    display: inline-block;
    background: #818cf8;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.related-item h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    color: #1f2937;
}

.related-item a {
    text-decoration: none;
    color: inherit;
}

.related-item a:hover {
    color: #6366f1;
}

/* Versión responsive */
@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
   
    .related-item {
        padding: 1.25rem;
    }
}

/* SABIAS QUE... de debajo de los posts a continuación */

  /* Caja con borde degradado REAL (sin pseudo-elementos) */
  .didyouknow {
    position: relative;
    width: 100%;
   	margin: 28px auto 40px auto;
    padding: 2.2rem;
    border-radius: 18px;
    border: 5px solid transparent; /* borde más grueso */
    /* Dos fondos: el blanco para el interior (padding-box) y el degradado para el borde (border-box) */
    background:
      linear-gradient(#ffffff, #ffffff) padding-box,
      linear-gradient(135deg, #5d9cff, #a44ddf) border-box;
    box-shadow: 0 10px 22px rgba(0,0,0,.08), 0 3px 8px rgba(0,0,0,.06); /* sombra suave */
  }

  /* Pestaña superior que "corta" el borde */
  .didyouknow-title {
    position: absolute;
    top: -18px;
    left: 22px;
    display: inline-flex;
    align-items: center;
    gap: .5ch;
    padding: 6px 12px;
    background: #fff;         /* mismo fondo que la caja */
    color: #000;              /* texto en negro */
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 10px;
    line-height: 1.1;
    box-shadow: 0 2px 6px rgba(0,0,0,.08); /* leve relieve para integrarse con el borde */
  }

  .didyouknow p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #1f2937; /* gris muy oscuro para mejor legibilidad */
  }

.didyouknow ol {
	margin-bottom: 0px;
}