/* 
Theme Name: Astra Cursos
Template: astra
Description: Tema hijo de Astra personalizado para mostrar cursos con colores y logos.
Author: Tu nombre
Version: 1.2.5
*/

/* =========================================================
   1. BASE / RESET
========================================================= */
.curso-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.curso-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* =========================================================
   2. ESTRUCTURA PRINCIPAL
========================================================= */
/* Títulos de áreas y subáreas */
.curso-area-titulo {
    text-align: center;
    margin-top: 200px;
    margin-bottom: 100px;
    font-size: clamp(28px, 3.5vw, 36px);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.curso-subarea-titulo {
    text-align: center;
    margin-top: 150px;
    margin-bottom: 75px;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

/* Círculo con logo */
.curso-circulo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.curso-circulo a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo-curso {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    float: none !important;
}

/* Nombre del curso */
.curso-nombre {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-top: 10px;
    margin-bottom: 0;
    text-align: center;
    max-width: 200px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
}

.curso-nombre a {
    color: #fff;
    text-decoration: none;
}

.curso-nombre a:hover {
    text-decoration: underline;
}

/* Buscador */
.curso-search-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.curso-search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.curso-search-input {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.curso-search-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #0073e6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.curso-search-button:hover {
    background-color: #005bb5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* =========================================================
   3. INTERACCIONES BÁSICAS
========================================================= */
.curso-item a {
    color: inherit;
    text-decoration: none;
}

/* =========================================================
   4. CAPAS ADICIONALES (colores, animaciones, efectos)
========================================================= */
/* Colores por área D84242*/
.color-ti {
    background-color: #4CD842;
}

.color-programacion {
    background-color: #83D842;
}

.color-ciberseguridad {
    background-color: #2BAA00;
}

.color-industrial {
    background-color: #42A8D8;
}

.color-mecatronica {
    background-color: #426CD8;
}

.color-automatizacion {
    background-color: #4245D8;
}

.color-mantenimiento {
    background-color: #D84242;
}


.color-tecnico {
    background-color: #808080 !important;
}

.color-diseno {
    background-color: #ff4081;
}


/* Animaciones */
@keyframes pulso {
    0% {
        box-shadow: 0 0 10px rgba(255,255,255,0.4);
    }
    50% {
        box-shadow: 0 0 20px rgba(255,255,255,0.7);
    }
    100% {
        box-shadow: 0 0 10px rgba(255,255,255,0.4);
    }
}

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

/* Efectos hover */
.curso-circulo:hover {
    transform: scale(1.15);
}

.color-ti:hover {
    box-shadow: 0 0 25px #4CD842;
}

.color-programacion:hover {
    box-shadow: 0 0 25px #83D842;
}

.color-ciberseguridad:hover {
    box-shadow: 0 0 25px #2BAA00;
}

.color-industrial:hover {
    box-shadow: 0 0 25px #42A8D8;
}

.color-mecatronica:hover {
    box-shadow: 0 0 25px #426CD8;
}

.color-automatizacion:hover {
    box-shadow: 0 0 25px #4245D8;
}

.color-mantenimiento:hover {
    box-shadow: 0 0 25px #808080;
}

.color-tecnico:hover {
    box-shadow: 0 0 25px #D84242;
}


.color-diseno:hover {
    box-shadow: 0 0 25px #ff4081;
}



/* =========================================================
   Paginación de cursos
========================================================= */
.curso-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  margin: 30px auto 10px;
  max-width: 800px;
  background: rgba(255, 255, 255, 0.06); /* contraste sutil */
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* WordPress por defecto usa .page-numbers */
.curso-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px; /* pill */
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.curso-pagination .page-numbers:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

/* Página actual — más contraste */
.curso-pagination .page-numbers.current {
  background: #0073e6;
  border-color: #0073e6;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(0, 115, 230, 0.45);
}

/* Prev/Next con un poco más de ancho */
.curso-pagination .page-numbers.prev,
.curso-pagination .page-numbers.next {
  padding: 0 14px;
}

/* Accesibilidad: focus visible para teclado */
.curso-pagination .page-numbers:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Responsivo: más compacto en móviles */
@media (max-width: 480px) {
  .curso-pagination {
    gap: 6px;
    padding: 12px 10px;
    border-radius: 10px;
  }
  .curso-pagination .page-numbers {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }
}












//Hola