#ediciones-search-form {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
    gap: 12px;
    flex-wrap: wrap;
}

#ediciones-search-input {
    flex: 1;
    border: none;
    outline: none;
	color: #667892;
    font-size: 16px;
    padding: 12px 16px 12px 40px;
    border-radius: 8px;
	background: #fff url('https://memoria.ludik.pe/wp-content/uploads/2025/04/Search.svg') no-repeat 14px center;
	font-family: 'Montserrat';
}

#toggle-year-dropdown {
    /* Fondo blanco inicial */
    display: inline-flex;
    align-items: center;
    justify-content: space-between; /* separa texto y flecha */
    position: relative;
    background: #fff;
    color: #042354;
    font-size: 16px;
    font-weight: 600;
    line-height: 140%;
    border: 1px solid #B3C6C6;
    border-radius: 12px;
	height: 50px;
    padding: 0px 20px; /* top/right/bottom/left */
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
	font-family: 'Montserrat';
}
.dropdown-icon {
    width: 12px;
    height: auto;
    margin-left: 8px;
}

/* Estado “dropdown abierto” */
#toggle-year-dropdown.dropdown-open {
    background: rgba(0, 78, 168, 0.10);
    border-radius: 12px 12px 0 0; /* Arriba redondeado, abajo cuadrado */
}

#ediciones-year-container {
    position: relative;
    width: auto; 
}


#ediciones-year-dropdown {
    display: none;
    position: absolute;
    z-index: 100;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 0 0 8px 8px;
    box-sizing: border-box;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
}


#ediciones-year-dropdown label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
	font-family: 'Montserrat';
	font-weight: 700;
    color: #042354;
    margin-bottom: 8px; /* Espacio entre cada label */
    cursor: pointer;
}

/* Checkbox base */
.ediciones-year-checkbox {
    /* Quitar apariencia nativa */
    appearance: none;
    -webkit-appearance: none;
    
    width: 18px;
    height: 18px;
    border-radius: 4px;
    
    /* ESTADO INACTIVO (sin marcar) */
    border: 1px solid #667892;
    background: #fff;
    
    /* Para posicionar la palomita */
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

/* ESTADO ACTIVO (cuando está marcado) */
.ediciones-year-checkbox:checked {
    border: 1px solid #ADD754;
    background: #ADD754;
}

/* Dibujamos la palomita (check) */
.ediciones-year-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #042354;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}



#ediciones-year-container {
    position: relative;
}

#ediciones-clear-btn,
#ediciones-search-btn {
    border: none;
    border-radius: 8px;
    padding: 0px 20px;
	height: 50px;
    font-weight: bold;
	font-size: 16px;
    cursor: pointer;
	font-family: 'Montserrat';
}

#ediciones-clear-btn {
    background: transparent;
    color: #042354;
	transition: background 0.3s ease-in-out;
}

#ediciones-clear-btn:hover{
	background: rgba(0, 78, 168, 0.10);
}

#ediciones-search-btn {
    background: #ADD754;
    color: #042354;
}

.edicion-item img {
    width: 100%;
    height: 240px; 
    object-fit: contain; 
    border-radius: 20px; 
}

.edicion-year {
    margin-top: 20px;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%; /* 19.6px aprox */
    text-transform: uppercase;
    color: #004EA8;  /* color de texto */
	display: flex;
	align-items: center;
}

.calendar-icon {
    width: 15px !important;      
    height: 14px !important;
    margin-right: 6px;
    vertical-align: middle; 
	border-radius: 0 !important;
}


.edicion-title {
    margin-top: 10px;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 130%; /* 23.4px aprox */
    letter-spacing: -0.36px;
    color: #042354;
}

.edicion-description {
    margin-top: 16px;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; 
    color: #3B485A;
	
    /* Limitar a 4 líneas con la técnica -webkit-line-clamp */
    display: -webkit-box;
    -webkit-line-clamp: 4; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}


#ediciones-results {
    display: grid; 
    grid-template-columns: repeat(3, 1fr);
    column-gap: 30px;
    row-gap: 60px;
}



#ediciones-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    margin-bottom: 60px;
}

#ediciones-results-counter {
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    color: #3B485A;
	font-family: "TT Norms Pro";
}

#ediciones-results-counter .result-count {
    font-weight: 700;
}


#ediciones-order-buttons {
    display: flex;
    gap: 4px;
    border: 1px solid #004591;
    border-radius: 14px;
    padding: 4px;
}

.order-btn {
    background: transparent;
	font-size: 14px;
    border: none;
    color: #004591;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
	font-family: Montserrat;
}



.order-btn:not(.active):hover {
    background: rgba(0, 78, 168, 0.10);
}

.order-btn.active {
    background: #004591;
    color: #fff;
}


/*SKELETONS*/

.skeleton {
    animation: pulse 1.5s infinite ease-in-out;
    background: #f0f0f0;
    border-radius: 20px;
    height: 400px; /* altura aproximada de una card real */
}

@keyframes pulse {
    0% {
        background-color: #f0f0f0;
    }
    50% {
        background-color: #e0e0e0;
    }
    100% {
        background-color: #f0f0f0;
    }
}





/*************************************************************
  MOSTRAR u OCULTAR elementos para mobile / desktop
*************************************************************/

/* Por defecto, el SELECT de orden se oculta en escritorio */
.mobile-only {
    display: none;
}

/* Y si quieres ocultar los botones en mobile: */
.desktop-only {
    display: inline-block; /* visible en desktop */
}


/* Breakpoint TABLET, por ejemplo max-width: 768px */
@media (max-width: 768px) {

    /* 1) Cambiamos de 3 columnas a 2 columnas en #ediciones-results */
    #ediciones-results {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 576px) {
    /* Ocultar los botones desktop en móvil */
    .desktop-only {
        display: none !important;
    }

    /* Mostrar los elementos mobile-only en móvil */
    .mobile-only {
        display: block !important;
    }

    /* El contenedor de “Selecciona años” + “Select de orden” en la misma línea */
    #inline-year-order-mobile {
        display: flex;
        flex-wrap: nowrap; 
        align-items: stretch;  /* ambos elementos tendrán la misma altura */
        gap: 0;                /* sin espacio entre ellos */
        width: 100%;           /* ocupan todo el ancho */
    }
    /* Cada uno ocupa el mismo espacio (1 y 1) */
    #ediciones-year-container,
    #mobile-order-wrap {
        flex: 1;
        min-width: 0;
    }

    /* En móvil, 1 columna en los resultados */
    #ediciones-results {
        grid-template-columns: 1fr;
        gap: 20px; /* separación vertical entre cards */
    }

    /* Ocultar el botón Limpiar en móvil */
    #ediciones-clear-btn {
        display: none !important;
    }

    /* Quitar padding del formulario en móvil */
    #ediciones-search-form {
        padding: 20px 0 !important;
    }

    /* Quitar border-radius del dropdown de años */
    #toggle-year-dropdown {
        border-radius: 0 !important;
    }

    /* Select móvil con estilo similar al dropdown */
    #mobile-order-select {
		appearance: none;       /* Quita flecha nativa en la mayoría de navegadores */
		-webkit-appearance: none; /* Safari y viejos iOS */
		background: #fff url('https://memoria.ludik.pe/wp-content/uploads/2025/04/Vector-drop-down.svg') no-repeat right 14px center;
		background-size: 14px 14px;  /* Ajusta el tamaño del icono */
		padding-right: 40px;    /* Deja espacio para el ícono en el lado derecho */
		border: 1px solid #B3C6C6;
		border-radius: 0;       /* O 8px si lo prefieres */
		font-size: 16px;
		font-weight: 600;
		height: 50px;
		color: #042354;
		line-height: 140%;
		padding: 0px 20px;     /* O lo que uses para unificar altura */
		width: 100%;
		text-align: left;
		cursor: pointer;
		box-sizing: border-box;
		font-family: 'Montserrat';
	}

    /* Botón Buscar ocupa el 100% del ancho */
    #ediciones-search-btn {
        width: 100%;
		margin: 0 20px;
    }
	#ediciones-results-counter{
		padding: 0 20px;
	}
	#ediciones-results{
		padding: 0 20px;
	}
}

/*************************************************************
  CONTENEDOR
*************************************************************/
#ediciones-pagination .pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
	flex-wrap: wrap;
    gap: 10px;
    margin-top: 80px;
}

/*************************************************************
  BOTONES BASE
*************************************************************/
#ediciones-pagination button {
    /* Tamaño y tipografía */
    width: 46px;
    height: 46px;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 140%;
    text-align: center;
    cursor: pointer;

    /* Estilo base: borde gris, fondo blanco */
    border: 1px solid #DFDFE1;
    border-radius: 10px;
    background: #FFF;

    /* Transición suave para hover */
    transition: 
      background-color 0.3s ease-in-out, 
      border-color 0.3s ease-in-out, 
      color 0.3s ease-in-out;
}

/*************************************************************
  PAGINAS NUMÉRICAS INACTIVAS
*************************************************************/
/* Inactivas (no page-active) tienen texto #667892 */
.pagination-page {
    color: #667892; 
}

/* Hover en páginas inactivas */
.pagination-page:not(.page-active):hover {
    background: #E5EDF6 !important;
    border-color: #E5EDF6 !important;
    color: #004EA8 !important;
}

/*************************************************************
  PAGINA ACTIVA
*************************************************************/
.pagination-page.page-active {
    background: #ADD754 !important;
    border: 1px solid #ADD754 !important;
    color: #042354 !important; 
}

/*************************************************************
  FLECHAS (ANTERIOR / SIGUIENTE)
*************************************************************/
.pagination-arrow {
    /* Centramos el icono */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icono flecha */
.pagination-arrow img {
    display: block;
    width: 24px;
    height: 24px;
}


/* === CONTENEDOR DE RESULTADOS DE EDICIONES === */
.edicion-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  color: inherit;
}

/* Imagen con zoom */
.edicion-img-wrapper {
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
	background-color: #000;
	aspect-ratio: 4/2.6;
}

.edicion-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease-in-out;
}

.edicion-item:hover .edicion-img {
  transform: scale(1.1);
}

/* Título con subrayado animado */
.edicion-title {
  font-size: 18px;
  font-weight: 700;
  color: #042354;
  line-height: 130%;
  letter-spacing: -0.36px;
  position: relative;
  display: inline-block;
  width: fit-content;
  transition: all 0.3s ease-in-out;
}

.edicion-item:hover .edicion-title {
  text-decoration: underline #042354;
}

